aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorPavel Skripkin <[email protected]>2021-08-19 18:15:21 +0300
committerMarcel Holtmann <[email protected]>2021-08-19 17:27:39 +0200
commitf41a4b2b5eb7872109723dab8ae1603bdd9d9ec1 (patch)
treea8e0255f7472be877e0cb9c32b517f327135b9d1 /tools/perf/scripts/python/bin
parent8274db0776d12de1be87a8504e60a608cb1b2212 (diff)
Bluetooth: add timeout sanity check to hci_inquiry
Syzbot hit "task hung" bug in hci_req_sync(). The problem was in unreasonable huge inquiry timeout passed from userspace. Fix it by adding sanity check for timeout value to hci_inquiry(). Since hci_inquiry() is the only user of hci_req_sync() with user controlled timeout value, it makes sense to check timeout value in hci_inquiry() and don't touch hci_req_sync(). Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Reported-and-tested-by: [email protected] Signed-off-by: Pavel Skripkin <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions