Re: [PATCH RESEND] Bluetooth: hci_core: add lockdep check to hci_conn lookups
From: patchwork-bot+bluetooth
Date: Mon Aug 17 2026 - 15:47:51 EST
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>:
On Sun, 16 Aug 2026 13:26:21 +0300 you wrote:
> Add lockdep check for RCU || hdev->lock in hci_conn_hash lookups that
> return hci_conn pointer, as dereferencing that without locks can be
> TOCTOU issue. It used to be several callsites did not hold appropriate
> locks.
>
> The check is equivalent to removing rcu_read_lock() and doing instead
> list_for_each_entry_rcu(c, &h->list, list, lockdep_is_held(&hdev->lock))
> Although there should not be any remaining callsites without locks,
> don't remove the rcu_read_lock() for now, and just add the warning here.
>
> [...]
Here is the summary with links:
- [RESEND] Bluetooth: hci_core: add lockdep check to hci_conn lookups
https://git.kernel.org/bluetooth/bluetooth-next/c/f4fe51177b82
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html