mirror-linux/tools/testing/selftests/hid/tests
Benjamin Tissoires 3a1d22bd85 selftests/hid: add a test case for the recent syzbot underflow
Syzbot found a buffer underflow in __hid_request(). Add a related test
case for it.

It's not perfect, but it allows to catch a corner case when a report
descriptor is crafted so that it has a size of 0.

Link: https://patch.msgid.link/20250710-report-size-null-v2-4-ccf922b7c4e5@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
2025-07-13 09:53:28 +02:00
..
__init__.py
base.py selftests/hid: skip tests with HID-BPF if udev-hid-bpf is not installed 2024-05-07 15:39:58 +02:00
base_device.py selftests/hid: add support for HID-BPF pre-loading before starting a test 2024-05-07 15:39:26 +02:00
base_gamepad.py selftests/hid: import base_gamepad.py from hid-tools 2024-05-07 15:39:47 +02:00
conftest.py
descriptors_wacom.py selftests: hid: import hid-tools wacom tests 2023-04-12 17:13:38 +02:00
test_apple_keyboard.py selftests: hid: import hid-tools hid-apple tests 2023-04-12 17:13:38 +02:00
test_gamepad.py selftests/hid: add tests for the Raptor Mach 2 joystick 2024-05-07 15:39:55 +02:00
test_hid_core.py
test_ite_keyboard.py selftests: hid: import hid-tools hid-ite tests 2023-04-12 17:13:38 +02:00
test_keyboard.py selftests: hid: import hid-tools hid-keyboards tests 2023-04-12 17:13:37 +02:00
test_mouse.py selftests/hid: add a test case for the recent syzbot underflow 2025-07-13 09:53:28 +02:00
test_multitouch.py selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
test_sony.py selftests: hid: import hid-tools hid-sony and hid-playstation tests 2023-04-12 17:13:38 +02:00
test_tablet.py selftests/hid: add Huion Kamvas Pro 19 tests 2024-05-07 15:39:43 +02:00
test_usb_crash.py selftests: hid: import hid-tools usb-crash tests 2023-04-12 17:13:38 +02:00
test_wacom_generic.py selftests/hid: wacom: fix confidence tests 2024-01-18 09:15:38 +01:00