diff options
author | 2023-08-04 11:14:45 -0700 | |
---|---|---|
committer | 2023-08-11 11:56:35 -0700 | |
commit | a2bcd2b63271a93a695fabbfbf459c603d956d48 (patch) | |
tree | 815444d71ee42efd9d83bbd29077fa8afa3b51d6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | Bluetooth: Fix potential use-after-free when clear keys (diff) | |
download | wireguard-linux-a2bcd2b63271a93a695fabbfbf459c603d956d48.tar.xz wireguard-linux-a2bcd2b63271a93a695fabbfbf459c603d956d48.zip |
Bluetooth: hci_sync: Avoid use-after-free in dbg for hci_add_adv_monitor()
KSAN reports use-after-free in hci_add_adv_monitor().
While adding an adv monitor,
hci_add_adv_monitor() calls ->
msft_add_monitor_pattern() calls ->
msft_add_monitor_sync() calls ->
msft_le_monitor_advertisement_cb() calls in an error case ->
hci_free_adv_monitor() which frees the *moniter.
This is referenced by bt_dev_dbg() in hci_add_adv_monitor().
Fix the bt_dev_dbg() by using handle instead of monitor->handle.
Fixes: b747a83690c8 ("Bluetooth: hci_sync: Refactor add Adv Monitor")
Signed-off-by: Manish Mandlik <mmandlik@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions