Thread (13 messages) 13 messages, 4 authors, 2015-06-30

Re: [4.1.0-07254-gc13c810] Regression: Bluetooth not working.

From: Jörg Otte <hidden>
Date: 2015-06-26 14:28:31
Also in: lkml

2015-06-26 12:03 GMT+02:00 J=C3=B6rg Otte [off-list ref]:
2015-06-26 11:37 GMT+02:00 Marcel Holtmann [off-list ref]:
quoted
Hi Joerg,
quoted
Bluetooth is inoperable in current Linus tree and the
first bad commit is:

835a6a2f8603237a3e6cded5a6765090ecb06ea5 is the first bad commit
commit 835a6a2f8603237a3e6cded5a6765090ecb06ea5
Author: Alexey Dobriyan [off-list ref]
Date:   Wed Jun 10 20:28:33 2015 +0300

   Bluetooth: Stop sabotaging list poisoning

   list_del() poisons pointers with special values, no need to overwrit=
e them.
quoted
quoted
   Signed-off-by: Alexey Dobriyan [off-list ref]
   Signed-off-by: Marcel Holtmann [off-list ref]

My BT adapter is an intel 8087:07da
I reverted that commit and this fixed the problem for me.
today we had a patch from Tedd fixing the list initialization in the HID=
P code.
quoted
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c
index 9070dfd6b4ad..f1a117f8cad2 100644
--- a/net/bluetooth/hidp/core.c
+++ b/net/bluetooth/hidp/core.c
@@ -915,6 +915,7 @@ static int hidp_session_new(struct hidp_session **ou=
t, const bdaddr_t *bdaddr,
quoted
        session->conn =3D l2cap_conn_get(conn);
        session->user.probe =3D hidp_session_probe;
        session->user.remove =3D hidp_session_remove;
+       INIT_LIST_HEAD(&session->user.list);
        session->ctrl_sock =3D ctrl_sock;
        session->intr_sock =3D intr_sock;
        skb_queue_head_init(&session->ctrl_transmit);

Could this be fixing it for you as well?
I will check this when I am at home in the
afternoon.
The patch works for me too.

Thanks, J=C3=B6rg
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help