Commit 385315d
Bluetooth: Don't initialize msft/aosp when using user channel
A race condition is triggered when usermode control is given to
userspace before the kernel's MSFT query responds, resulting in an
unexpected response to userspace's reset command.
Issue can be observed in btmon:
< HCI Command: Vendor (0x3f|0x001e) plen 2 #3 [hci0]
05 01 ..
@ USER Open: bt_stack_manage (privileged) version 2.22 {0x0002} [hci0]
< HCI Command: Reset (0x03|0x0003) plen 0 #4 [hci0]
> HCI Event: Command Complete (0x0e) plen 5 #5 [hci0]
Vendor (0x3f|0x001e) ncmd 1
Status: Command Disallowed (0x0c)
05 .
> HCI Event: Command Complete (0x0e) plen 4 #6 [hci0]
Reset (0x03|0x0003) ncmd 2
Status: Success (0x00)
Reviewed-by: Abhishek Pandit-Subedi <[email protected]>
Reviewed-by: Sonny Sasaka <[email protected]>
Signed-off-by: Jesse Melhuish <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>1 parent a27c519 commit 385315d
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3887 | 3887 | | |
3888 | 3888 | | |
3889 | 3889 | | |
3890 | | - | |
3891 | | - | |
| 3890 | + | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
3892 | 3894 | | |
3893 | 3895 | | |
3894 | 3896 | | |
| |||
4031 | 4033 | | |
4032 | 4034 | | |
4033 | 4035 | | |
4034 | | - | |
4035 | | - | |
| 4036 | + | |
| 4037 | + | |
| 4038 | + | |
| 4039 | + | |
4036 | 4040 | | |
4037 | 4041 | | |
4038 | 4042 | | |
| |||
0 commit comments