Skip to content

Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff

Cen Zhang 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 pm-bluetooth-objects-candidate-0218-v8-da37c8a6b33c9d2d8efc-0@gmail.com

Versions newest first

  1. v1 Latest2 patches 2 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2Bluetooth: RFCOMM: Hold the listener across child unlinknet/bluetooth/rfcomm/sock.c+12 -51 replyApplied
2/2Bluetooth: RFCOMM: Close the socket before transferring its DLCnet/bluetooth/rfcomm/tty.c+8 -120 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/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff

Socket notification and TTY handoff can outlive the object which made the socket's borrowed pointers valid. Keep the listener alive across child unlink and notification, and finish old socket users before the TTY replaces its DLC callbacks.

Cen Zhang (2):
Bluetooth: RFCOMM: Hold the listener across child unlink
Bluetooth: RFCOMM: Close the socket before transferring its DLC

 net/bluetooth/rfcomm/sock.c | 17 ++++++++++++-----
 net/bluetooth/rfcomm/tty.c  | 20 ++++++++------------
 2 files changed, 20 insertions(+), 17 deletions(-)

---