diff options
| author | Pauli Virtanen <pav@iki.fi> | 2026-08-16 13:26:21 +0300 |
|---|---|---|
| committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2026-08-17 14:21:04 -0400 |
| commit | f4fe51177b82176080035025754d89f8e730f72f (patch) | |
| tree | 3258f91cf3c40f41340bd01f11a147565669db18 /scripts/objdiff | |
| parent | f716a05f496718a7f70a7765291ad8e7858c81a2 (diff) | |
| download | linux-next-f4fe51177b82176080035025754d89f8e730f72f.tar.gz linux-next-f4fe51177b82176080035025754d89f8e730f72f.zip | |
Bluetooth: hci_core: add lockdep check to hci_conn lookups
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.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
