aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-usbgen/usb_ids.patch
Commit message (Collapse)AuthorAgeFilesLines
* tools/usbgen: extract driver namesAndrey Konovalov2025-08-211-15/+15
| | | | | | | | | | Change the kernel patch and the syz-usbgen tool to split the extracted USB IDs by the driver they belong to. This will allow for a more precise patching of class/driver-specific USB descriptors. Also update USB IDs with Linux kernel 6.16.
* tools/syz-usbgen: update dumping patchAndrey Konovalov2024-07-251-16/+8
| | | | Make it work on newer kernels.
* tools/syz-usbgen: fix usb_ids.patchPavel Skripkin2021-09-101-16/+16
| | | | | | | | | | | | | | | | | Previous patch causes build error on top of v5.14: error: ‘usb_bus_type’ undeclared (first use in this function); did you mean ‘hid_bus_type’? 2299 | bus_for_each_drv(&usb_bus_type, NULL, NULL, usb_device_id_dump_driver); | ^~~~~~~~~~~~ | hid_bus_type Fix it by including drivers/usb/core/usb.h where usb_bus_type declaration is. Also, removed duplicate is_usb_device_driver definition, since it's already in drivers/usb/core/usb.h. Tested localy on qemu Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
* tools/syz-usbgen: update patch to dump usb idsAndrey Konovalov2019-11-151-30/+62
| | | | The patch doesn't properly work on some kernels, some ids might not be printed.
* sys/linux: extract USB HID ids (#1294)Andrey Konovalov2019-07-221-14/+84
| | | | | | | | | | | | | | | | | | * sys/linux: extract USB HID ids As it turns out the HID kernel subsystem registers only one USB driver that checks that the interface of the connected device has HID class and then looks up its own list of vendor/device ids to find a matching driver. This means that we currently don't generate proper vendor/device ids for USB HID devices. This patch updates the syz-usbgen tool to also extract USB HID vendor/device ids from a running kernel and makes the generated descriptions for HID devices to be patched using the extracted ids. This patch also contains some minor improvements to USB descriptions (better HID descriptions and more replies for some USB classes/drivers). * sys/linux: run make generate
* sys: add USB descriptionsAndrey Konovalov2019-04-111-0/+40
This commit adds syzkaller descriptions for USB fuzzing. The descriptions in vusb.txt are written manually and cover different kinds of USB descriptors. The descriptions in init_vusb_ids.go are generated automanitally by the syz-usbgen tool and contain the vendor, device and some other IDs that map to different USB drivers.