diff options
| author | 2026-08-29 17:20:02 +0300 | |
|---|---|---|
| committer | 2026-10-14 13:25:55 -0400 | |
| commit | 32d86e048d8efedb7aa6cbbd3c36c3c435401c92 (patch) | |
| tree | 04ac1f23cd03b20f45a2a56095959f8aadf33e25 /scripts/Makefile.thinlto | |
| parent | Bluetooth: 6lowpan: avoid concurrent peer_del() in bt_6lowpan_disconnect (diff) | |
Bluetooth: L2CAP: hold conn->lock for __l2cap_ecred_conn_rsp_defer
__l2cap_ecred_conn_rsp_defer() > __l2cap_chan_list_id() accesses
conn->chan_l which is guarded by conn->lock. The lock fails to be held
when calling from l2cap_sock.c.
Fix by using l2cap_chan_conn_lock(), and taking the locks in required
order l2cap_conn::lock > l2cap_chan::lock > sk. Leave fast path with
sk->sk_state precheck. Move the L2CAP defer handling to
l2cap_sock_defer().
The code should also take l2cap_chan_lock() for sibling channels, but
that needs separate fix due to lock nesting.
Fixes: ab4eedb790ca ("Bluetooth: L2CAP: Fix corrupted list in hci_chan_del")
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
