Re: [PATCH bluetooth v1] Bluetooth: hci_core: Initialize IRK before publication
From: patchwork-bot+bluetooth
Date: Tue Oct 20 2026 - 14:25:18 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 19:16:11 +0800 you wrote:
> hci_add_irk() initializes the identity address and address type of a newly
> allocated IRK, publishes it on hdev->identity_resolving_keys, and only then
> initializes its value and RPA. RCU readers such as hci_find_irk_by_rpa()
> and the debugfs identity_resolving_keys_show() can traverse the new entry
> during that window and see a zero or partially initialized IRK.
>
> The race is reachable by racing an IRK addition with another CPU resolving
> or dumping IRKs. In particular, userspace can issue MGMT_OP_LOAD_IRKS
> while another process reads the corresponding debugfs file or triggers RPA
> resolution.
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: hci_core: Initialize IRK before publication
https://git.kernel.org/bluetooth/bluetooth-next/c/7404cfafe3e2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html