aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGravatar Niels Dossche <dossche.niels@gmail.com> 2022-04-05 19:37:52 +0200
committerGravatar Marcel Holtmann <marcel@holtmann.org> 2022-05-13 13:05:49 +0200
commitfb048cae51bacdfbbda2954af3c213fdb1d484f4 (patch)
tree96641604e4a77081c2e4b01add51dc00f1a1642b /kernel
parentBluetooth: use hdev lock in activate_scan for hci_is_adv_monitoring (diff)
downloadlinux-fb048cae51bacdfbbda2954af3c213fdb1d484f4.tar.gz
linux-fb048cae51bacdfbbda2954af3c213fdb1d484f4.tar.bz2
linux-fb048cae51bacdfbbda2954af3c213fdb1d484f4.zip
Bluetooth: use hdev lock for accept_list and reject_list in conn req
All accesses (both reads and modifications) to hdev->{accept,reject}_list are protected by hdev lock, except the ones in hci_conn_request_evt. This can cause a race condition in the form of a list corruption. The solution is to protect these lists in hci_conn_request_evt as well. I was unable to find the exact commit that introduced the issue for the reject list, I was only able to find it for the accept list. Fixes: a55bd29d5227 ("Bluetooth: Add white list lookup for incoming connection requests") Signed-off-by: Niels Dossche <dossche.niels@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions