summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-24 22:29:16 +0800
committerBenjamin Tissoires <bentiss@kernel.org>2026-10-15 17:59:31 +0200
commit02f3607d0beb82e76481568bf631235e6a319b47 (patch)
treecf2aebcab91247325594ba6d8374be3542aeb09f /tools/perf/scripts/python/stackcollapse.py
parent493268f459bb6aeeecbc77f2204c11ad74d05213 (diff)
HID: roccat: ryos: reject short special reports
The raw event callback runs before HID core validates and zero-pads the report. It reads the report number without checking the received length and passes matching data to roccat_report_event(), which copies a complete struct ryos_report_special. A truncated report can therefore cause an out-of-bounds read and expose adjacent data through the Roccat character device. Require a complete special report before inspecting or forwarding it. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw-event length validation to hid-asus. Fixes: 6f3a19360545 ("HID: roccat: add support for Ryos MK keyboards") 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