Re: [PATCH bluetooth v1] Bluetooth: hci_core: Initialize LTK before publication
From: patchwork-bot+bluetooth
Date: Tue Oct 20 2026 - 14:26:39 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 18:56:24 +0800 you wrote:
> hci_add_ltk() publishes a newly allocated LTK on hdev->long_term_keys
> before initializing its address, type, value, authentication state,
> encryption size, EDIV, and random value. hci_find_ltk() and the debugfs
> long_term_keys_show() traverse this list under RCU and can therefore see
> a zero or partially initialized key before those stores complete.
>
> The race is reachable by racing an LTK addition with another CPU looking
> up or dumping long-term keys. For example, userspace can issue
> MGMT_OP_LOAD_LONG_TERM_KEYS while another process reads the corresponding
> debugfs file.
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: hci_core: Initialize LTK before publication
https://git.kernel.org/bluetooth/bluetooth-next/c/fd0191d9375d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html