]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: refactor malicious adv data check
authorBrian Gix <brian.gix@intel.com>
Wed, 24 Nov 2021 20:16:28 +0000 (12:16 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 24 Nov 2021 16:29:12 +0000 (17:29 +0100)
commite75d43b657467e852eaf8db4c1aa02f87ce86459
tree36438f3acd4d31a48494192a2ed28849cdbbf131
parent9f48ae7303f105dade75b91a7536b1e57d7eba0a
Bluetooth: refactor malicious adv data check

Check for out-of-bound read was being performed at the end of while
num_reports loop, and would fill journal with false positives. Added
check to beginning of loop processing so that it doesn't get checked
after ptr has been advanced.

Signed-off-by: Brian Gix <brian.gix@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_event.c