Re: [PATCH v4] Bluetooth: hci_serdev: Unregister HCI before freeing the TX buffer
From: patchwork-bot+bluetooth
Date: Mon Nov 30 2026 - 15:00:22 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Thu, 26 Nov 2026 18:59:41 +0000 you wrote:
> Unregister frees hu->tx_skb before hci_unregister_dev() waits for an
> in-flight HCI close or reset. That path can still flush the same frame,
> causing a use-after-free or double free.
>
> Unregister HCI first, before clearing protocol readiness and cancelling
> write_work. Skip the HCI flush and close callbacks during unregister;
> the transport teardown frees the frame and closes the protocol and port
> once setup and HCI close have finished.
>
> [...]
Here is the summary with links:
- [v4] Bluetooth: hci_serdev: Unregister HCI before freeing the TX buffer
https://git.kernel.org/bluetooth/bluetooth-next/c/0b70f26a31f3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html