Re: [PATCH] Bluetooth: initialize skb_queue_head at l2cap_chan_create()

2021-03-22 Thread Marcel Holtmann
Hi Tetsuo, > syzbot is hitting "INFO: trying to register non-static key." message [1], > for "struct l2cap_chan"->tx_q.lock spinlock is not yet initialized when > l2cap_chan_del() is called due to e.g. timeout. > > Since "struct l2cap_chan"->lock mutex is initialized at l2cap_chan_create() > imme

[PATCH] Bluetooth: initialize skb_queue_head at l2cap_chan_create()

2021-03-21 Thread Tetsuo Handa
syzbot is hitting "INFO: trying to register non-static key." message [1], for "struct l2cap_chan"->tx_q.lock spinlock is not yet initialized when l2cap_chan_del() is called due to e.g. timeout. Since "struct l2cap_chan"->lock mutex is initialized at l2cap_chan_create() immediately after "struct l2