]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: protect le accept and resolv lists with hdev->lock
authorNiels Dossche <dossche.niels@gmail.com>
Fri, 22 Apr 2022 22:31:17 +0000 (00:31 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 13 May 2022 11:05:49 +0000 (13:05 +0200)
commitad5018a2b6b267c1be0a0eb35b95637c2e4d9759
tree5d7b8cec2aab7b03a21f7313cd481d8f28f31e0c
parent1c364f92c0ccab6386b28949d37c44a3071d6a0a
Bluetooth: protect le accept and resolv lists with hdev->lock

Concurrent operations from events on le_{accept,resolv}_list are
currently unprotected by hdev->lock.
Most existing code do already protect the lists with that lock.
This can be observed in hci_debugfs and hci_sync.
Add the protection for these events too.

Fixes: 5b2b4b860d0f ("Bluetooth: Add definitions and track LE resolve list modification")
Fixes: d0b264335893 ("Bluetooth: Track LE white list modification via HCI commands")
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c