Re: [PATCH bluetooth v1] Bluetooth: hci_core: Initialize link key before publication
From: patchwork-bot+bluetooth
Date: Tue Oct 20 2026 - 14:25:27 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Mon, 19 Oct 2026 16:17:11 +0800 you wrote:
> hci_add_link_key() allocates a new link key with kzalloc(), inserts it into
> hdev->link_keys with list_add_rcu(), and only then initializes its address,
> value, type, and PIN length. RCU readers such as hci_find_link_key()
> and the debugfs link_keys_show() do not take hci_dev_lock, so they can
> traverse the new entry during that initialization window and observe
> a zero or partially initialized key.
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: hci_core: Initialize link key before publication
https://git.kernel.org/bluetooth/bluetooth-next/c/153c30aec42d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html