]> 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)
commit60b1a3ace64626861c9889488df2fe916a72a769
tree36438f3acd4d31a48494192a2ed28849cdbbf131
parent6bb51cbe24ae86223a3da48e017cbd3b3880f3a1
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