summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-07-07 13:26:44 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-07-10 15:16:07 +0200
commitce8101c331956bbd3e20681331dfd22eb7c1c1ea (patch)
tree27395c1baba0a15ab4a1eb2780313e9b51761469 /tools/perf/scripts/python
parent91a8c8c718889fc8ccf5c38b750d790e9f36f92d (diff)
net: usb: pegasus: don't rely on id table pointer arithmetic
The current code is broken when dynamic ID is involved; in such cases usb_device_id parameter of probe lives on the heap and the pointer arithmetic will get an index that is wildly out of bound. Instead of keeping a side table for additional information, use driver_info field of the usb_device_id. The dynamic ID parsing code needs to be updated for this; convert it to just write to the reserved entry for dynamic ID and remove the weird loop. Signed-off-by: Gary Guo <gary@garyguo.net> Link: https://patch.msgid.link/20260707-usb_dyn_id_uaf-v2-5-632dcf3adfba@garyguo.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions