Re: [PATCH 0/2] Bluetooth: RFCOMM: Protect sockets during teardown and TTY handoff
From: Luiz Augusto von Dentz
Date: Mon Nov 23 2026 - 13:06:56 EST
Hi Cen,
On Sat, Nov 21, 2026 at 2:03 AM Cen Zhang <zzzccc427@xxxxxxxxx> 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