summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2026-07-10 11:23:42 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2026-07-13 10:09:08 -0400
commitda55f570191d5d72f10c607a7043b947eb05ea46 (patch)
tree0c737840d61e9dd6378999024f35458410ab2b72 /tools/perf/scripts/python/event_analyzing_sample.py
parent16cd66443957e4ad42155c6fec401012f600c6f8 (diff)
Bluetooth: mgmt: hold reference for hci_conn in mgmt_pending_cmds
Dereferencing RCU-protected pointers outside critical sections is invalid and may lead to UAF. Use of hci_conn in hci_sync callbacks also needs to hold refcount to avoid UAF. Take appropriate locks for hci_conn lookups, and take refcount for hci_conn pointers stored in mgmt_pending_cmd so that the pointer stays valid. When accessing conn->state, ensure hdev->lock is held to avoid data race. Fixes: 7b445e220db9 ("Bluetooth: MGMT: Fix holding hci_conn reference while command is queued") Signed-off-by: Pauli Virtanen <pav@iki.fi> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions