2011-08-04 11:10:01

by Colin Beckingham

[permalink] [raw]
Subject: Permission denied (13) on Samsung WEP475 headset?

I'd like to provide some feedback regarding a Samsung WEP475 headset
which fails to connect to linux specifically.

The USB bluetooth adapter is a Model: Belkin BLUETOOTH USB +EDR ADAPTER
v2.1 UHE which successfully interconnects with 2 Jabra and 1 Plantronics
headsets, plus a Nokia E71 phone. Samsung WEP475 successfully connects
to a Windows XP machine and to the Nokia E71.

Using Opensuse 11.4 with custom kernel 3.0 currently, (also fails with
2.6.38), bluez 4.96 and bluedevil manager.

Symptoms are that bluedevil sees the headset in pairing mode and
correctly retrieves the name WEP475, connected button flashes green and
then returns to grey (not connected). WEP475 led changes to connected
status but bluedevil shows headset not connected and headset does not work.

With bluetoothd in debug mode, I get the following transactions in
/var/log/messages:

Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:conn_complete() status 0x00
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
src/adapter.c:adapter_get_device() 00:---:47
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:remote_features_information() hci0 status 0
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:remote_name_information() hci0 status 0
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
audio/headset.c:headset_set_channel() Discovered Handsfree service on
channel 2
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
audio/headset.c:rfcomm_connect() /org/bluez/13226/hci0/dev_00_---_47:
Connecting to 00:---:47 channel 2
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:link_key_request() hci0 dba 00:---:47
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:get_auth_info() hci0 dba 00:---:47
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:link_key_request() kernel auth requirements = 0x04
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:link_key_request() Matching key found
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:link_key_request() link key type 0x04
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:auth_complete() hci0 status 0
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:bonding_complete() status 0x00
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
src/event.c:btd_event_bonding_complete() status 0x00
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
src/adapter.c:adapter_get_device() 00:---:47
Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
src/device.c:device_bonding_complete() bonding (nil) status 0x00
Aug 4 06:22:52 linux-xxxx bluetoothd[13227]: Permission denied (13)
Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
audio/headset.c:headset_set_state() State changed
/org/bluez/13226/hci0/dev_00_---_47: HEADSET_STATE_CONNECTING ->
HEADSET_STATE_DISCONNECTED
Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
plugins/hciops.c:disconn_complete() handle 11 status 0x00
Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
src/event.c:btd_event_disconn_complete()
Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
src/adapter.c:adapter_remove_connection()

I have tried clearing the contents of /var/lib/bluetooth/ forcing the
system to recreate, but no difference.
--
---
Colin Beckingham


2011-08-08 14:01:43

by Colin Beckingham

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?


On 08/08/2011 09:53 AM, Peter Hurley wrote:
> On Mon, 2011-08-08 at 09:31 -0400, Colin Beckingham wrote:
>>
>> On 08/08/2011 08:38 AM, Peter Hurley wrote:
>>> On Sat, 2011-08-06 at 13:22 -0400, Colin Beckingham wrote:
>>>> On 08/06/2011 12:50 PM, Peter Hurley wrote:
>>>>> On Sat, 2011-08-06 at 11:33 -0400, Colin Beckingham wrote:
>>>>>> Hi Peter:
>>>>>>
>>>>> ...<snip>...
>>>>>> I ran # hciconfig hci0 sspmode 1 to force the adapter into a secure attempt.
>>>>>>
>>>>>> I downloaded and installed the latest hcidump which identifies itself
>>>>>> (hcidump -v) as 2.0 even though it is marked as 2.1 version on the webpage.
>>>>>>
>>>>>> Made another attempt to connect, here is the syslog
>>>>>>
>>>>>> # tail -n 100 /var/log/messages | grep bluetoothd
>>>>>> Aug 6 05:15:39 linux-c96h bluetoothd[1246]: Audio connection got
>>>>>> disconnected
>>>>>> Aug 6 11:23:29 linux-c96h bluetoothd[1246]: Rejecting request: remote
>>>>>> device can't provide MITM
>>>>>> Aug 6 11:23:56 linux-c96h bluetoothd[1246]: Discovery session
>>>>>> 0x7f801d0a6ca0 with :1.4178 activated
>>>>>> Aug 6 11:24:01 linux-c96h bluetoothd[1246]: Stopping discovery
>>>>>> Aug 6 11:24:13 linux-c96h bluetoothd[1246]: Permission denied (13)
>>>>>>
>>>>>> and a binary hcidump is attached.
>>>>>
>>>>> Hi Colin,
>>>>>
>>>>> That makes a lot more sense!
>>>>>
>>>>> Would you please repeat the experiment with bluetoothd in debug mode,
>>>>> though? That would give me a lot more information to work with about how
>>>>> bluetoothd got to that point.
>>>>>
>>>>> As before, please capture hcidump binary at the same time. Also please
>>>>> include every bluetoothd syslog message starting from the start of the
>>>>> experiment.
>>>>>
>>>>> I appreciate your patience helping me to track down this bug.
>>>>>
>>>>> Regards,
>>>>> Peter Hurley
>>>>
>>>> Sorry, forgot to set bluetoothd in debug mode.
>>>>
>>>> Attached are my latest logs, 2 files, wep475a.*. Note in the syslog that
>>>> the first entry is timestamped way before the experiment was launched,
>>>> so the log should have everything that bluetoothd wrote for the current
>>>> experiment.
>>>
>>> Hi Colin,
>>>
>>> Well, the new logs did not recreate the "Rejecting request: remote
>>> device can't provide MITM". However, they did show 2 things:
>>>
>>> 1. The host controller has a race condition bug which has been seen
>>> before (see this thread
>>> http://comments.gmane.org/gmane.linux.bluez.kernel/14286 for the really
>>> technical discussion)
>>>
>>> That's why the initial attempt by the device at connecting an RFCOMM
>>> channel is rejected (@ 13:13:02.533713).
>>>
>>> Nevertheless, the headset is found anyway and Bluez connects to the
>>> headset. After establishing an insecure SDP link, Bluez attempts to open
>>> an RFCOMM channel to the device, and
>>>
>>> 2. the kernel attempts to connect the RFCOMM channel prior to the link
>>> being encrypted, so the device rejects the connection.
>>>
>>> There were some last minute changes to 3.0 final that directly impacts
>>> how this is supposed to work. However, even with those changes it's
>>> unclear to me how #2 is happening.
>>>
>>> Would you be willing to run the same experiment as before but with the
>>> kernel bluetooth module enabled for debug output? If your kernel is
>>> configured for dynamic debug (Kernel hacking/Enable dynamic printk()
>>> support => Y), doing this is trivial:
>>> # sudo su
>>> # echo -n "module bluetooth +p"
>>> > /sys/kernel/debug/dynamic_debug/control
>>> < perform experiment>
>>> # echo -n "module bluetooth -p"
>>> > /sys/kernel/debug/dynamic_debug/control
>>>
>>> Regards,
>>> Peter Hurley
>>
>> Peter, before I do this, let me just verify that my kernel is set up
>> right. I checked for dynamic printk and I am not clear that I have the
>> setting needed. Here is what my .config tells me for dynamic and printk
>> separately.
>>
>> > cat .config | grep DYNAMIC
>> CONFIG_NETCONSOLE_DYNAMIC=y
>> CONFIG_DVB_DYNAMIC_MINORS=y
>> CONFIG_SND_DYNAMIC_MINORS=y
>> # CONFIG_USB_DYNAMIC_MINORS is not set
>> CONFIG_HAVE_DYNAMIC_FTRACE=y
>> CONFIG_DYNAMIC_DEBUG=y
> ^^^^^^^^
>
> This is the one and it's set correctly.
>
>> > cat .config | grep PRINTK
>> CONFIG_PRINTK=y
>> CONFIG_SND_VERBOSE_PRINTK=y
>> CONFIG_PRINTK_TIME=y
>> # CONFIG_BOOT_PRINTK_DELAY is not set
>> CONFIG_EARLY_PRINTK=y
>> CONFIG_EARLY_PRINTK_DBGP=y
>>
>> Could you confirm that I am ok to go?
>
> BTW, I just figured out how the kernel does the wrong thing now. If you
> want to wait on running this experiment, that's fine with me. I can
> contact you if someone wants proof that this happens.
>
> ~Peter

OK, Peter, I will put a hold on this. Let me know if you need further input.
--
---
Colin Beckingham

2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cyBleHBl
cmltZW50LCB0aGF0J3MgZmluZSB3aXRoIG1lLiBJIGNhbg0KY29udGFjdCB5b3UgaWYgc29tZW9u
ZSB3YW50cyBwcm9vZiB0aGF0IHRoaXMgaGFwcGVucy4NCg0KflBldGVyDQo=

2011-08-08 13:31:28

by Colin Beckingham

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?



On 08/08/2011 08:38 AM, Peter Hurley wrote:
> On Sat, 2011-08-06 at 13:22 -0400, Colin Beckingham wrote:
>> On 08/06/2011 12:50 PM, Peter Hurley wrote:
>>> On Sat, 2011-08-06 at 11:33 -0400, Colin Beckingham wrote:
>>>> Hi Peter:
>>>>
>>> ...<snip>...
>>>> I ran # hciconfig hci0 sspmode 1 to force the adapter into a secure attempt.
>>>>
>>>> I downloaded and installed the latest hcidump which identifies itself
>>>> (hcidump -v) as 2.0 even though it is marked as 2.1 version on the webpage.
>>>>
>>>> Made another attempt to connect, here is the syslog
>>>>
>>>> # tail -n 100 /var/log/messages | grep bluetoothd
>>>> Aug 6 05:15:39 linux-c96h bluetoothd[1246]: Audio connection got
>>>> disconnected
>>>> Aug 6 11:23:29 linux-c96h bluetoothd[1246]: Rejecting request: remote
>>>> device can't provide MITM
>>>> Aug 6 11:23:56 linux-c96h bluetoothd[1246]: Discovery session
>>>> 0x7f801d0a6ca0 with :1.4178 activated
>>>> Aug 6 11:24:01 linux-c96h bluetoothd[1246]: Stopping discovery
>>>> Aug 6 11:24:13 linux-c96h bluetoothd[1246]: Permission denied (13)
>>>>
>>>> and a binary hcidump is attached.
>>>
>>> Hi Colin,
>>>
>>> That makes a lot more sense!
>>>
>>> Would you please repeat the experiment with bluetoothd in debug mode,
>>> though? That would give me a lot more information to work with about how
>>> bluetoothd got to that point.
>>>
>>> As before, please capture hcidump binary at the same time. Also please
>>> include every bluetoothd syslog message starting from the start of the
>>> experiment.
>>>
>>> I appreciate your patience helping me to track down this bug.
>>>
>>> Regards,
>>> Peter Hurley
>>
>> Sorry, forgot to set bluetoothd in debug mode.
>>
>> Attached are my latest logs, 2 files, wep475a.*. Note in the syslog that
>> the first entry is timestamped way before the experiment was launched,
>> so the log should have everything that bluetoothd wrote for the current
>> experiment.
>
> Hi Colin,
>
> Well, the new logs did not recreate the "Rejecting request: remote
> device can't provide MITM". However, they did show 2 things:
>
> 1. The host controller has a race condition bug which has been seen
> before (see this thread
> http://comments.gmane.org/gmane.linux.bluez.kernel/14286 for the really
> technical discussion)
>
> That's why the initial attempt by the device at connecting an RFCOMM
> channel is rejected (@ 13:13:02.533713).
>
> Nevertheless, the headset is found anyway and Bluez connects to the
> headset. After establishing an insecure SDP link, Bluez attempts to open
> an RFCOMM channel to the device, and
>
> 2. the kernel attempts to connect the RFCOMM channel prior to the link
> being encrypted, so the device rejects the connection.
>
> There were some last minute changes to 3.0 final that directly impacts
> how this is supposed to work. However, even with those changes it's
> unclear to me how #2 is happening.
>
> Would you be willing to run the same experiment as before but with the
> kernel bluetooth module enabled for debug output? If your kernel is
> configured for dynamic debug (Kernel hacking/Enable dynamic printk()
> support => Y), doing this is trivial:
> # sudo su
> # echo -n "module bluetooth +p"
> > /sys/kernel/debug/dynamic_debug/control
> < perform experiment>
> # echo -n "module bluetooth -p"
> > /sys/kernel/debug/dynamic_debug/control
>
> Regards,
> Peter Hurley

Peter, before I do this, let me just verify that my kernel is set up
right. I checked for dynamic printk and I am not clear that I have the
setting needed. Here is what my .config tells me for dynamic and printk
separately.

> cat .config | grep DYNAMIC
CONFIG_NETCONSOLE_DYNAMIC=y
CONFIG_DVB_DYNAMIC_MINORS=y
CONFIG_SND_DYNAMIC_MINORS=y
# CONFIG_USB_DYNAMIC_MINORS is not set
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_DYNAMIC_DEBUG=y

> cat .config | grep PRINTK
CONFIG_PRINTK=y
CONFIG_SND_VERBOSE_PRINTK=y
CONFIG_PRINTK_TIME=y
# CONFIG_BOOT_PRINTK_DELAY is not set
CONFIG_EARLY_PRINTK=y
CONFIG_EARLY_PRINTK_DBGP=y

Could you confirm that I am ok to go?
--
---
Colin Beckingham

2011-08-08 12:38:21

by Peter Hurley

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

T24gU2F0LCAyMDExLTA4LTA2IGF0IDEzOjIyIC0wNDAwLCBDb2xpbiBCZWNraW5naGFtIHdyb3Rl
Og0KPiBPbiAwOC8wNi8yMDExIDEyOjUwIFBNLCBQZXRlciBIdXJsZXkgd3JvdGU6DQo+ID4gT24g
U2F0LCAyMDExLTA4LTA2IGF0IDExOjMzIC0wNDAwLCBDb2xpbiBCZWNraW5naGFtIHdyb3RlOg0K
PiA+PiBIaSBQZXRlcjoNCj4gPj4NCj4gPiAuLi48c25pcD4uLi4NCj4gPj4gSSByYW4gIyBoY2lj
b25maWcgaGNpMCBzc3Btb2RlIDEgdG8gZm9yY2UgdGhlIGFkYXB0ZXIgaW50byBhIHNlY3VyZSBh
dHRlbXB0Lg0KPiA+Pg0KPiA+PiBJIGRvd25sb2FkZWQgYW5kIGluc3RhbGxlZCB0aGUgbGF0ZXN0
IGhjaWR1bXAgd2hpY2ggaWRlbnRpZmllcyBpdHNlbGYNCj4gPj4gKGhjaWR1bXAgLXYpIGFzIDIu
MCBldmVuIHRob3VnaCBpdCBpcyBtYXJrZWQgYXMgMi4xIHZlcnNpb24gb24gdGhlIHdlYnBhZ2Uu
DQo+ID4+DQo+ID4+IE1hZGUgYW5vdGhlciBhdHRlbXB0IHRvIGNvbm5lY3QsIGhlcmUgaXMgdGhl
IHN5c2xvZw0KPiA+Pg0KPiA+PiAjIHRhaWwgLW4gMTAwIC92YXIvbG9nL21lc3NhZ2VzIHwgZ3Jl
cCBibHVldG9vdGhkDQo+ID4+IEF1ZyAgNiAwNToxNTozOSBsaW51eC1jOTZoIGJsdWV0b290aGRb
MTI0Nl06IEF1ZGlvIGNvbm5lY3Rpb24gZ290DQo+ID4+IGRpc2Nvbm5lY3RlZA0KPiA+PiBBdWcg
IDYgMTE6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aXMNCmNvbmZpZ3VyZWQg
Zm9yIGR5bmFtaWMgZGVidWcgKEtlcm5lbCBoYWNraW5nL0VuYWJsZSBkeW5hbWljIHByaW50aygp
DQpzdXBwb3J0ID0+IFkpLCBkb2luZyB0aGlzIGlzIHRyaXZpYWw6DQojIHN1ZG8gc3UNCiMgZWNo
byAtbiAibW9kdWxlIGJsdWV0b290aCArcCINCiAgICAgICAgICAgICAgICAgICAgPiAvc3lzL2tl
cm5lbC9kZWJ1Zy9keW5hbWljX2RlYnVnL2NvbnRyb2wNCjwgcGVyZm9ybSBleHBlcmltZW50ID4N
CiMgZWNobyAtbiAibW9kdWxlIGJsdWV0b290aCAtcCINCiAgICAgICAgICAgICAgICAgICAgPiAv
c3lzL2tlcm5lbC9kZWJ1Zy9keW5hbWljX2RlYnVnL2NvbnRyb2wNCg0KUmVnYXJkcywNClBldGVy
IEh1cmxleQ0K

2011-08-06 17:22:46

by Colin Beckingham

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

On 08/06/2011 12:50 PM, Peter Hurley wrote:
> On Sat, 2011-08-06 at 11:33 -0400, Colin Beckingham wrote:
>> Hi Peter:
>>
> ...<snip>...
>> I ran # hciconfig hci0 sspmode 1 to force the adapter into a secure attempt.
>>
>> I downloaded and installed the latest hcidump which identifies itself
>> (hcidump -v) as 2.0 even though it is marked as 2.1 version on the webpage.
>>
>> Made another attempt to connect, here is the syslog
>>
>> # tail -n 100 /var/log/messages | grep bluetoothd
>> Aug 6 05:15:39 linux-c96h bluetoothd[1246]: Audio connection got
>> disconnected
>> Aug 6 11:23:29 linux-c96h bluetoothd[1246]: Rejecting request: remote
>> device can't provide MITM
>> Aug 6 11:23:56 linux-c96h bluetoothd[1246]: Discovery session
>> 0x7f801d0a6ca0 with :1.4178 activated
>> Aug 6 11:24:01 linux-c96h bluetoothd[1246]: Stopping discovery
>> Aug 6 11:24:13 linux-c96h bluetoothd[1246]: Permission denied (13)
>>
>> and a binary hcidump is attached.
>
> Hi Colin,
>
> That makes a lot more sense!
>
> Would you please repeat the experiment with bluetoothd in debug mode,
> though? That would give me a lot more information to work with about how
> bluetoothd got to that point.
>
> As before, please capture hcidump binary at the same time. Also please
> include every bluetoothd syslog message starting from the start of the
> experiment.
>
> I appreciate your patience helping me to track down this bug.
>
> Regards,
> Peter Hurley

Sorry, forgot to set bluetoothd in debug mode.

Attached are my latest logs, 2 files, wep475a.*. Note in the syslog that
the first entry is timestamped way before the experiment was launched,
so the log should have everything that bluetoothd wrote for the current
experiment.

--
---
Colin Beckingham


Attachments:
wep475a.hci (11.54 kB)
wep475a.log (41.14 kB)
Download all attachments

2011-08-06 16:50:28

by Peter Hurley

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

T24gU2F0LCAyMDExLTA4LTA2IGF0IDExOjMzIC0wNDAwLCBDb2xpbiBCZWNraW5naGFtIHdyb3Rl
Og0KPiBIaSBQZXRlcjoNCj4gDQouLi48c25pcD4uLi4NCj4gSSByYW4gIyBoY2ljb25maWcgaGNp
MCBzc3Btb2RlIDEgdG8gZm9yY2UgdGhlIGFkYXB0ZXIgaW50byBhIHNlY3VyZSBhdHRlbXB0Lg0K
PiANCj4gSSBkb3dubG9hZGVkIGFuZCBpbnN0YWxsZWQgdGhlIGxhdGVzdCBoY2lkdW1wIHdoaWNo
IGlkZW50aWZpZXMgaXRzZWxmIA0KPiAoaGNpZHVtcCAtdikgYXMgMi4wIGV2ZW4gdGhvdWdoIGl0
IGlzIG1hcmtlZCBhcyAyLjEgdmVyc2lvbiBvbiB0aGUgd2VicGFnZS4NCj4gDQo+IE1hZGUgYW5v
dGhlciBhdHRlbXB0IHRvIGNvbm5lY3QsIGhlcmUgaXMgdGhlIHN5c2xvZw0KPiANCj4gIyB0YWls
IC1uIDEwMCAvdmFyL2xvZy9tZXNzYWdlcyB8IGdyZXAgYmx1ZXRvb3RoZA0KPiBBdWcgIDYgMDU6
MTU6MzkgbGludXgtYzk2aCBibHVldG9vdGhkWzEy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YXJ0aW5nIGZyb20gdGhlIHN0YXJ0IG9mIHRoZQ0KZXhwZXJpbWVudC4NCg0KSSBhcHBy
ZWNpYXRlIHlvdXIgcGF0aWVuY2UgaGVscGluZyBtZSB0byB0cmFjayBkb3duIHRoaXMgYnVnLg0K
DQpSZWdhcmRzLA0KUGV0ZXIgSHVybGV5DQo=

2011-08-06 15:33:29

by Colin Beckingham

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

Hi Peter:

On 08/06/2011 10:36 AM, Peter Hurley wrote:
> On Thu, 2011-08-04 at 10:54 -0400, Peter Hurley wrote:
>> Hi Colin,
>>
>> On Thu, 2011-08-04 at 08:17 -0400, Johan Hedberg wrote:
>>> Hi Colin,
>>>
>>> On Thu, Aug 04, 2011, Colin Beckingham wrote:
>>>> I'd like to provide some feedback regarding a Samsung WEP475 headset
>>>> which fails to connect to linux specifically.
>>>>
>>>> The USB bluetooth adapter is a Model: Belkin BLUETOOTH USB +EDR
>>>> ADAPTER v2.1 UHE which successfully interconnects with 2 Jabra and 1
>>>> Plantronics headsets, plus a Nokia E71 phone. Samsung WEP475
>>>> successfully connects to a Windows XP machine and to the Nokia E71.
>>>>
>>>> Using Opensuse 11.4 with custom kernel 3.0 currently, (also fails
>>>> with 2.6.38), bluez 4.96 and bluedevil manager.
>>>>
>>>> Symptoms are that bluedevil sees the headset in pairing mode and
>>>> correctly retrieves the name WEP475, connected button flashes green
>>>> and then returns to grey (not connected). WEP475 led changes to
>>>> connected status but bluedevil shows headset not connected and
>>>> headset does not work.
>>>>
>>>> With bluetoothd in debug mode, I get the following transactions in
>>>> /var/log/messages:
>>>
>>> There seems to be something strange going on with the secure simple
>>> pairing logic. For some reason the initial link key isn't good enough
>>> (auth request + link key negative reply after the initial key has been
>>> generated) and then there's a user confirm negative reply for the second
>>> attempt. It'd be good to get to the bottom of this and fix it properly,
>>> but meanwhile you can probably work around this by disabling SSP on your
>>> side (hciconfig hci0 sspmode 0) and retrying pairing.
>>
>> You're having this problem because the remote device supports SSP but
>> not MITM protection. Some socket is requiring BT_SECURITY_HIGH (thus
>> requiring MITM) -- therefore the kernel is correctly disconnecting and
>> returning 'Authentication Failure' (although returning 'Insufficient
>> Authentication' would probably be better).
>>
>> I think the GATT browser is demanding BT_SECURITY_HIGH -- not sure why
>> though (I don't think it needs to. I'll get back to you on that...)
>
> Colin-
>
> Well, I was wrong about it being related to GATT. I can see some other
> possibilities but I'm confused by the syslog relative to the bt capture
> (eg., the syslog clearly shows a found key but the hcidump shows link
> key negative reply). Were they taken at the same time?!
>
> Regards,
> Peter
>
> PS - If you do send another hcidump, please send a binary capture (with
> timestamps) as you have an old version of hcidump that doesn't decode
> not-automatically-flushable l2cap packets.

I ran # hciconfig hci0 sspmode 1 to force the adapter into a secure attempt.

I downloaded and installed the latest hcidump which identifies itself
(hcidump -v) as 2.0 even though it is marked as 2.1 version on the webpage.

Made another attempt to connect, here is the syslog

# tail -n 100 /var/log/messages | grep bluetoothd
Aug 6 05:15:39 linux-c96h bluetoothd[1246]: Audio connection got
disconnected
Aug 6 11:23:29 linux-c96h bluetoothd[1246]: Rejecting request: remote
device can't provide MITM
Aug 6 11:23:56 linux-c96h bluetoothd[1246]: Discovery session
0x7f801d0a6ca0 with :1.4178 activated
Aug 6 11:24:01 linux-c96h bluetoothd[1246]: Stopping discovery
Aug 6 11:24:13 linux-c96h bluetoothd[1246]: Permission denied (13)

and a binary hcidump is attached.
--
---
Colin Beckingham


Attachments:
wep475.hci (8.79 kB)

2011-08-06 14:36:52

by Peter Hurley

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

T24gVGh1LCAyMDExLTA4LTA0IGF0IDEwOjU0IC0wNDAwLCBQZXRlciBIdXJsZXkgd3JvdGU6DQo+
IEhpIENvbGluLA0KPiANCj4gT24gVGh1LCAyMDExLTA4LTA0IGF0IDA4OjE3IC0wNDAwLCBKb2hh
biBIZWRiZXJnIHdyb3RlOg0KPiA+IEhpIENvbGluLA0KPiA+I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Q0KDQpSZWdhcmRzLA0KUGV0ZXINCg==

2011-08-04 13:22:19

by Colin Beckingham

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

On 08/04/2011 08:17 AM, Johan Hedberg wrote:
> Hi Colin,
>
> On Thu, Aug 04, 2011, Colin Beckingham wrote:
>> I'd like to provide some feedback regarding a Samsung WEP475 headset
>> which fails to connect to linux specifically.
>>
>> The USB bluetooth adapter is a Model: Belkin BLUETOOTH USB +EDR
>> ADAPTER v2.1 UHE which successfully interconnects with 2 Jabra and 1
>> Plantronics headsets, plus a Nokia E71 phone. Samsung WEP475
>> successfully connects to a Windows XP machine and to the Nokia E71.
>>
>> Using Opensuse 11.4 with custom kernel 3.0 currently, (also fails
>> with 2.6.38), bluez 4.96 and bluedevil manager.
>>
>> Symptoms are that bluedevil sees the headset in pairing mode and
>> correctly retrieves the name WEP475, connected button flashes green
>> and then returns to grey (not connected). WEP475 led changes to
>> connected status but bluedevil shows headset not connected and
>> headset does not work.
>>
>> With bluetoothd in debug mode, I get the following transactions in
>> /var/log/messages:
>
> There seems to be something strange going on with the secure simple
> pairing logic. For some reason the initial link key isn't good enough
> (auth request + link key negative reply after the initial key has been
> generated) and then there's a user confirm negative reply for the second
> attempt. It'd be good to get to the bottom of this and fix it properly,
> but meanwhile you can probably work around this by disabling SSP on your
> side (hciconfig hci0 sspmode 0) and retrying pairing.
>
> Johan
>

Johan, sspmode 0 did have a positive effect. I have now been able to
pair the headset and use it in a pipe arecord to aplay context with good
results at least two times from scratch. Thanks very much.

What further feedback would be useful to developers to track down the
fundamental issue?
--
---
Colin Beckingham


2011-08-04 12:17:03

by Johan Hedberg

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?

Hi Colin,

On Thu, Aug 04, 2011, Colin Beckingham wrote:
> I'd like to provide some feedback regarding a Samsung WEP475 headset
> which fails to connect to linux specifically.
>
> The USB bluetooth adapter is a Model: Belkin BLUETOOTH USB +EDR
> ADAPTER v2.1 UHE which successfully interconnects with 2 Jabra and 1
> Plantronics headsets, plus a Nokia E71 phone. Samsung WEP475
> successfully connects to a Windows XP machine and to the Nokia E71.
>
> Using Opensuse 11.4 with custom kernel 3.0 currently, (also fails
> with 2.6.38), bluez 4.96 and bluedevil manager.
>
> Symptoms are that bluedevil sees the headset in pairing mode and
> correctly retrieves the name WEP475, connected button flashes green
> and then returns to grey (not connected). WEP475 led changes to
> connected status but bluedevil shows headset not connected and
> headset does not work.
>
> With bluetoothd in debug mode, I get the following transactions in
> /var/log/messages:

There seems to be something strange going on with the secure simple
pairing logic. For some reason the initial link key isn't good enough
(auth request + link key negative reply after the initial key has been
generated) and then there's a user confirm negative reply for the second
attempt. It'd be good to get to the bottom of this and fix it properly,
but meanwhile you can probably work around this by disabling SSP on your
side (hciconfig hci0 sspmode 0) and retrying pairing.

Johan

2011-08-04 11:30:24

by Colin Beckingham

[permalink] [raw]
Subject: Re: Permission denied (13) on Samsung WEP475 headset?



On 08/04/2011 07:10 AM, Colin Beckingham wrote:
> I'd like to provide some feedback regarding a Samsung WEP475 headset
> which fails to connect to linux specifically.
>
> The USB bluetooth adapter is a Model: Belkin BLUETOOTH USB +EDR ADAPTER
> v2.1 UHE which successfully interconnects with 2 Jabra and 1 Plantronics
> headsets, plus a Nokia E71 phone. Samsung WEP475 successfully connects
> to a Windows XP machine and to the Nokia E71.
>
> Using Opensuse 11.4 with custom kernel 3.0 currently, (also fails with
> 2.6.38), bluez 4.96 and bluedevil manager.
>
> Symptoms are that bluedevil sees the headset in pairing mode and
> correctly retrieves the name WEP475, connected button flashes green and
> then returns to grey (not connected). WEP475 led changes to connected
> status but bluedevil shows headset not connected and headset does not work.
>
> With bluetoothd in debug mode, I get the following transactions in
> /var/log/messages:
>
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:conn_complete() status 0x00
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> src/adapter.c:adapter_get_device() 00:---:47
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:remote_features_information() hci0 status 0
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:remote_name_information() hci0 status 0
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> audio/headset.c:headset_set_channel() Discovered Handsfree service on
> channel 2
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> audio/headset.c:rfcomm_connect() /org/bluez/13226/hci0/dev_00_---_47:
> Connecting to 00:---:47 channel 2
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:link_key_request() hci0 dba 00:---:47
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:get_auth_info() hci0 dba 00:---:47
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:link_key_request() kernel auth requirements = 0x04
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:link_key_request() Matching key found
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:link_key_request() link key type 0x04
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:auth_complete() hci0 status 0
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:bonding_complete() status 0x00
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> src/event.c:btd_event_bonding_complete() status 0x00
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> src/adapter.c:adapter_get_device() 00:---:47
> Aug 4 06:22:51 linux-xxxx bluetoothd[13227]:
> src/device.c:device_bonding_complete() bonding (nil) status 0x00
> Aug 4 06:22:52 linux-xxxx bluetoothd[13227]: Permission denied (13)
> Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
> audio/headset.c:headset_set_state() State changed
> /org/bluez/13226/hci0/dev_00_---_47: HEADSET_STATE_CONNECTING ->
> HEADSET_STATE_DISCONNECTED
> Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
> plugins/hciops.c:disconn_complete() handle 11 status 0x00
> Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
> src/event.c:btd_event_disconn_complete()
> Aug 4 06:22:52 linux-xxxx bluetoothd[13227]:
> src/adapter.c:adapter_remove_connection()
>
> I have tried clearing the contents of /var/lib/bluetooth/ forcing the
> system to recreate, but no difference.

Attached is hcidump

--
---
Colin Beckingham


Attachments:
btdump.tar.gz (1.60 kB)