All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff
@ 2026-11-21  7:02 Cen Zhang
  2026-11-21  7:02 ` [PATCH 1/2] Bluetooth: RFCOMM: Hold the listener across child unlink Cen Zhang
  2026-11-21  7:02 ` [PATCH 2/2] Bluetooth: RFCOMM: Close the socket before transferring its DLC Cen Zhang
  0 siblings, 2 replies; 3+ messages in thread
From: Cen Zhang @ 2026-11-21  7:02 UTC (permalink / raw)
  To: marcel, luiz.dentz
  Cc: linux-bluetooth, linux-kernel, baijiaju1990, jjzuming, zzzccc427

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(-)

---

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

end of thread, other threads:[~2026-11-21  7:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-21  7:02 [PATCH 0/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff Cen Zhang
2026-11-21  7:02 ` [PATCH 1/2] Bluetooth: RFCOMM: Hold the listener across child unlink Cen Zhang
2026-11-21  7:02 ` [PATCH 2/2] Bluetooth: RFCOMM: Close the socket before transferring its DLC Cen Zhang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.