Re: [PATCH] Bluetooth: hci_sync: Serialize local codec list cleanup

From: patchwork-bot+bluetooth

Date: Thu Sep 10 2026 - 16:53:26 EST


Hello:

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

On Sat, 22 Aug 2026 01:43:50 +0800 you wrote:
> hci_dev_close_sync() clears hdev->local_codecs after releasing hdev->lock.
> Codec list additions and both traversals in sco_sock_getsockopt() use that
> lock, but the close path does not. A close and BT_CODEC query can therefore
> interleave as follows:
>
> hci_dev_close_sync() sco_sock_getsockopt()
> hci_dev_lock()
> fetch codec entry
> hci_codec_list_clear()
> kfree(entry)
> read entry->id
>
> [...]

Here is the summary with links:
- Bluetooth: hci_sync: Serialize local codec list cleanup
https://git.kernel.org/bluetooth/bluetooth-next/c/ee0662ba1e0a

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