Re: [PATCH] Bluetooth: 6lowpan: Drain RCU readers on registration failure

From: patchwork-bot+bluetooth

Date: Fri Oct 09 2026 - 10:22:53 EST


Hello:

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

On Thu, 8 Oct 2026 12:11:35 +0800 you wrote:
> A lowpan_btle_dev is embedded in its net_device allocation and must
> remain alive until readers of bt_6lowpan_devices have left their RCU
> sections. setup_netdev() publishes it before registration, but its
> error path only unlinks it before calling free_netdev().
>
> If a second controller's registration fails while multicast is sent
> on an existing 6LoWPAN interface, send_mcast_pkt() can already have
> selected the new entry. It reads entry->netdev before checking which
> interface owns it. An early failure, such as allocating the device's
> name node, leaves NETREG_UNINITIALIZED, so free_netdev() releases the
> storage immediately.
>
> [...]

Here is the summary with links:
- Bluetooth: 6lowpan: Drain RCU readers on registration failure
https://git.kernel.org/bluetooth/bluetooth-next/c/f664d75735b0

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