Skip to content

Bluetooth: L2CAP: part 2 of l2cap_conn::chan_l locking fixes

Pauli Virtanen linux-bluetooth lkml 1 version Applied

Status from this message: This series was applied to bluetooth/bluetooth-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4Bluetooth: L2CAP: take lock for l2cap_chan_del in l2cap_ecred_rsp_deferinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+64 -01 replyApplied
2/4Bluetooth: L2CAP: annotate locking for l2cap_chan_del()include/net/bluetooth/l2cap.h net/bluetooth/6lowpan.c net/bluetooth/l2cap_core.c+74 -330 repliesApplied
3/4Bluetooth: L2CAP: annotate locking for l2cap_ops callbacksinclude/net/bluetooth/l2cap.h net/bluetooth/l2cap_core.c+10 -40 repliesApplied
4/4Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has connnet/bluetooth/l2cap_core.c net/bluetooth/l2cap_sock.c+8 -10 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Bluetooth: L2CAP: part 2 of l2cap_conn::chan_l locking fixes

Rebase to fix conflict in remaining commits from series
https://lore.kernel.org/linux-bluetooth/[email protected]/

Fixed minor conflict vs. moved mutex_lock + l2cap_chan_lock in diff context
commit ddaccd985bb0 ("Bluetooth: L2CAP: fix out-of-bounds write in l2cap_ecred_connect")

No other changes than resolving that.

Pauli Virtanen (4):
Bluetooth: L2CAP: take lock for l2cap_chan_del in
l2cap_ecred_rsp_defer
Bluetooth: L2CAP: annotate locking for l2cap_chan_del()
Bluetooth: L2CAP: annotate locking for l2cap_ops callbacks
Bluetooth: L2CAP: refuse __l2cap_chan_add if chan already has conn

 include/net/bluetooth/l2cap.h |  65 +++++++++++--------
 net/bluetooth/6lowpan.c       |   2 +
 net/bluetooth/l2cap_core.c    | 113 ++++++++++++++++++++++++++++++++--
 net/bluetooth/l2cap_sock.c    |   2 +
 4 files changed, 150 insertions(+), 32 deletions(-)
Signature · 1 line
2.55.0