Re: [PATCH] Bluetooth: bnep: pin L2CAP connection during netdev registration

From: patchwork-bot+bluetooth

Date: Tue Jun 30 2026 - 16:39:23 EST


Hello:

This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:

On Sun, 28 Jun 2026 02:50:58 +0200 you wrote:
> bnep_add_connection() reads the L2CAP connection without holding the
> channel lock, then passes its HCI device to register_netdev(). Controller
> teardown can clear and release that connection concurrently, leaving the
> network device registration path to dereference a freed parent device.
>
> Take a reference to the L2CAP connection while holding the channel lock.
> Retain it until register_netdev() has taken the parent device reference.
>
> [...]

Here is the summary with links:
- Bluetooth: bnep: pin L2CAP connection during netdev registration
https://git.kernel.org/bluetooth/bluetooth-next/c/d66f0661748e

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html