[PATCH 0/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff

Cen Zhang posted 2 patches 4 days, 6 hours ago
net/bluetooth/rfcomm/sock.c | 17 ++++++++++++-----
net/bluetooth/rfcomm/tty.c  | 20 ++++++++------------
2 files changed, 20 insertions(+), 17 deletions(-)
[PATCH 0/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff
Posted by Cen Zhang 4 days, 6 hours ago
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(-)

---
Re: [PATCH 0/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff
Posted by Luiz Augusto von Dentz 1 day, 19 hours ago
Hi Cen,

On Sat, Nov 21, 2026 at 2:03 AM Cen Zhang <zzzccc427@gmail.com> wrote:
>
> 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(-)
>
> ---

Netdev sashiko found a couple of problems:

https://netdev-ai.bots.linux.dev/sashiko/#/patchset/pm-bluetooth-objects-candidate-0218-v8-da37c8a6b33c9d2d8efc-0%40gmail.com

-- 
Luiz Augusto von Dentz