mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: RFCOMM: Fix listener shutdown and TTY setup
@ 2026-11-25 15:22 Cen Zhang
  2026-11-25 15:22 ` [PATCH 1/2] Bluetooth: RFCOMM: Reject listen after socket shutdown Cen Zhang
  2026-11-25 15:22 ` [PATCH 2/2] Bluetooth: RFCOMM: Close DLC on TTY registration failure Cen Zhang
  0 siblings, 2 replies; 3+ messages in thread
From: Cen Zhang @ 2026-11-25 15:22 UTC (permalink / raw)
  To: marcel, luiz.dentz
  Cc: linux-bluetooth, linux-kernel, stable, baijiaju1990, jjzuming, zzzccc427

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

---

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-25 15:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-25 15:22 [PATCH 0/2] Bluetooth: RFCOMM: Fix listener shutdown and TTY setup Cen Zhang
2026-11-25 15:22 ` [PATCH 1/2] Bluetooth: RFCOMM: Reject listen after socket shutdown Cen Zhang
2026-11-25 15:22 ` [PATCH 2/2] Bluetooth: RFCOMM: Close DLC on TTY registration failure Cen Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®