All of lore.kernel.org
 help / color / mirror / Atom feed
* SMP Security Request breaks previously working bluetooth mouse
@ 2015-09-01  7:19 Oon-Ee Ng
  2015-09-04  1:45 ` Oon-Ee Ng
  2015-09-04  9:26 ` Johan Hedberg
  0 siblings, 2 replies; 4+ messages in thread
From: Oon-Ee Ng @ 2015-09-01  7:19 UTC (permalink / raw)
  To: linux-bluetooth

I refer (to the best of my knowledge) to the patch submitted in [1].

When upgrading from 4.1.5 to 4.1.6 (Arch Linux), my Lenovo N700
Bluetooth mouse stops working. Downgrading fixes, hence unlikely to be
a hardware issue.

When on 4.1.6 (bugged version) dmesg spams this every 3 minutes or so:-
Bluetooth: SMP security requested but not available

Please advise on additional details which may be required.

[2] is my original bug report in my distro's channel, including the
above details in a bit more verbose form.

[1] - https://lkml.org/lkml/2015/8/14/369
[2] - https://bugs.archlinux.org/task/46006

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SMP Security Request breaks previously working bluetooth mouse
  2015-09-01  7:19 SMP Security Request breaks previously working bluetooth mouse Oon-Ee Ng
@ 2015-09-04  1:45 ` Oon-Ee Ng
  2015-09-04  1:53   ` Oon-Ee Ng
  2015-09-04  9:26 ` Johan Hedberg
  1 sibling, 1 reply; 4+ messages in thread
From: Oon-Ee Ng @ 2015-09-04  1:45 UTC (permalink / raw)
  To: linux-bluetooth

The report below is still an issue with linux-4.2

On Tue, Sep 1, 2015 at 3:19 PM, Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
> I refer (to the best of my knowledge) to the patch submitted in [1].
>
> When upgrading from 4.1.5 to 4.1.6 (Arch Linux), my Lenovo N700
> Bluetooth mouse stops working. Downgrading fixes, hence unlikely to be
> a hardware issue.
>
> When on 4.1.6 (bugged version) dmesg spams this every 3 minutes or so:-
> Bluetooth: SMP security requested but not available
>
> Please advise on additional details which may be required.
>
> [2] is my original bug report in my distro's channel, including the
> above details in a bit more verbose form.
>
> [1] - https://lkml.org/lkml/2015/8/14/369
> [2] - https://bugs.archlinux.org/task/46006

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SMP Security Request breaks previously working bluetooth mouse
  2015-09-04  1:45 ` Oon-Ee Ng
@ 2015-09-04  1:53   ` Oon-Ee Ng
  0 siblings, 0 replies; 4+ messages in thread
From: Oon-Ee Ng @ 2015-09-04  1:53 UTC (permalink / raw)
  To: linux-bluetooth

Also - the bugzilla report to anyone interested -
https://bugzilla.kernel.org/show_bug.cgi?id=104011

On Fri, Sep 4, 2015 at 9:45 AM, Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
> The report below is still an issue with linux-4.2
>
> On Tue, Sep 1, 2015 at 3:19 PM, Oon-Ee Ng <ngoonee.talk@gmail.com> wrote:
>> I refer (to the best of my knowledge) to the patch submitted in [1].
>>
>> When upgrading from 4.1.5 to 4.1.6 (Arch Linux), my Lenovo N700
>> Bluetooth mouse stops working. Downgrading fixes, hence unlikely to be
>> a hardware issue.
>>
>> When on 4.1.6 (bugged version) dmesg spams this every 3 minutes or so:-
>> Bluetooth: SMP security requested but not available
>>
>> Please advise on additional details which may be required.
>>
>> [2] is my original bug report in my distro's channel, including the
>> above details in a bit more verbose form.
>>
>> [1] - https://lkml.org/lkml/2015/8/14/369
>> [2] - https://bugs.archlinux.org/task/46006

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: SMP Security Request breaks previously working bluetooth mouse
  2015-09-01  7:19 SMP Security Request breaks previously working bluetooth mouse Oon-Ee Ng
  2015-09-04  1:45 ` Oon-Ee Ng
@ 2015-09-04  9:26 ` Johan Hedberg
  1 sibling, 0 replies; 4+ messages in thread
From: Johan Hedberg @ 2015-09-04  9:26 UTC (permalink / raw)
  To: Oon-Ee Ng; +Cc: linux-bluetooth

Hi,

On Tue, Sep 01, 2015, Oon-Ee Ng wrote:
> I refer (to the best of my knowledge) to the patch submitted in [1].
> 
> When upgrading from 4.1.5 to 4.1.6 (Arch Linux), my Lenovo N700
> Bluetooth mouse stops working. Downgrading fixes, hence unlikely to be
> a hardware issue.
> 
> When on 4.1.6 (bugged version) dmesg spams this every 3 minutes or so:-
> Bluetooth: SMP security requested but not available
> 
> Please advise on additional details which may be required.

My guess is that your adapter is being initially powered on by the
legacy HCI_DEV_UP ioctl (e.g. "hciconfig hci0 up") which causes the SMP
context not to be initialized properly.

You would still not be able to repair with earlier 4.1.x kernels because
of this (i.e. they also have a similar issue you just haven't triggered)
but from 4.1.6 onward there's an extra check to prevent NULL pointer
dereferences (and hence the kernel crashing) if the SMP context is not
initialized.

The check for the SMP context is however done earlier than really
necessary and the patch I've just sent should move it to a better place,
i.e. still allow encrypting with existing LTKs.

The proper fix (which will make all of SMP work again) is to locate the
"hciconfig hci0 up" and not use it anymore (use either bluetoothctl,
btmgmt or some other mgmt-based method for powering on the adapter).

Johan

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-04  9:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-01  7:19 SMP Security Request breaks previously working bluetooth mouse Oon-Ee Ng
2015-09-04  1:45 ` Oon-Ee Ng
2015-09-04  1:53   ` Oon-Ee Ng
2015-09-04  9:26 ` Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.