summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-24 22:29:15 +0800
committerBenjamin Tissoires <bentiss@kernel.org>2026-10-15 17:59:31 +0200
commit493268f459bb6aeeecbc77f2204c11ad74d05213 (patch)
tree82e824d7067cd48f7036841dd06cfec1e27f28ff /tools/perf/scripts/python/stackcollapse.py
parente95917a606f486e46f5136fc1b72190742a091d6 (diff)
HID: roccat: pyra: reject short button reports
The raw event callback runs before HID core validates and zero-pads the report. It passes the buffer to helpers which inspect data[0] and read a complete struct pyra_mouse_event_button for button reports. A truncated report can therefore cause an out-of-bounds read. Require enough data for the button report before calling either helper. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw-event length validation to hid-asus. Fixes: cb7cf3da0daa ("HID: roccat: add driver for Roccat Pyra mouse") Cc: stable@vger.kernel.org Signed-off-by: Jiale Yao <yaojiale02@163.com> Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions