Re: [PATCH v2] Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup
From: patchwork-bot+bluetooth
Date: Mon Sep 14 2026 - 13:13:19 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Sat, 12 Sep 2026 23:09:45 -0400 you wrote:
> rfcomm_sock_cleanup_listen() closes unaccepted child sockets through
> rfcomm_sock_close(), which takes the child socket lock before
> rfcomm_dlc_close() acquires rfcomm_mutex. The RFCOMM worker takes these
> locks in reverse order while handling connections and DLC state changes,
> so lockdep reports a possible deadlock.
>
> Close dequeued children without taking their socket lock. The accept queue
> owns a reference to each child, and bt_accept_dequeue() locks the child
> while unlinking it and clearing its parent pointer.
>
> [...]
Here is the summary with links:
- [v2] Bluetooth: RFCOMM: avoid socket lock inversion in listener cleanup
https://git.kernel.org/bluetooth/bluetooth-next/c/0186e4e1e5c2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html