[PATCH 0/2] Bluetooth: RFCOMM: Fix listener shutdown and TTY setup

Cen Zhang posted 2 patches 2 hours ago
net/bluetooth/rfcomm/sock.c |  2 +-
net/bluetooth/rfcomm/tty.c  | 11 +++++------
2 files changed, 6 insertions(+), 7 deletions(-)
[PATCH 0/2] Bluetooth: RFCOMM: Fix listener shutdown and TTY setup
Posted by Cen Zhang 2 hours ago
Sashiko found that an RFCOMM socket can still start listening after
shutdown, allowing release to skip accept queue cleanup. Reject
listen after shutdown.

The review also found that failed TTY registration can leave a
transferred DLC open. Close the DLC before dropping the port
references and purge pending input when the port is destroyed. Use
the existing RFCOMM_CONNINFO locking to avoid waiting for the socket
lock while holding global locks during handoff.

Cen Zhang (2):
  Bluetooth: RFCOMM: Reject listen after socket shutdown
  Bluetooth: RFCOMM: Close DLC on TTY registration failure

 net/bluetooth/rfcomm/sock.c |  2 +-
 net/bluetooth/rfcomm/tty.c  | 11 +++++------
 2 files changed, 6 insertions(+), 7 deletions(-)


base-commit: f57f78086ab54f3b3122fbaeba2c842ba7bb6d00

---