mirror-linux/tools/testing/selftests/hid
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
..
progs selftests/hid: fix kfunc inclusions with newer bpftool 2024-11-29 15:27:04 +01:00
tests selftests/hid: add a test case for the recent syzbot underflow 2025-07-13 09:53:28 +02:00
.gitignore selftests/hid: Add host-tools to .gitignore 2024-12-10 12:46:54 +01:00
Makefile tools: Remove redundant quiet setup 2025-02-18 16:27:43 -03:00
config bpfilter: remove bpfilter 2024-01-04 10:23:10 -08:00
config.common lib/crc: remove unnecessary prompt for CONFIG_CRC_T10DIF 2025-04-04 11:31:42 -07:00
config.x86_64 selftests: hid: add vmtest.sh 2023-01-18 22:08:38 +01:00
hid-apple.sh selftests: hid: import hid-tools hid-apple tests 2023-04-12 17:13:38 +02:00
hid-core.sh selftests: hid: import hid-tools hid-core tests 2023-04-12 17:13:37 +02:00
hid-gamepad.sh selftests: hid: import hid-tools hid-gamepad tests 2023-04-12 17:13:37 +02:00
hid-ite.sh selftests: hid: import hid-tools hid-ite tests 2023-04-12 17:13:38 +02:00
hid-keyboard.sh selftests: hid: import hid-tools hid-keyboards tests 2023-04-12 17:13:37 +02:00
hid-mouse.sh selftests: hid: import hid-tools hid-mouse tests 2023-04-12 17:13:37 +02:00
hid-multitouch.sh selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
hid-sony.sh selftests: hid: import hid-tools hid-sony and hid-playstation tests 2023-04-12 17:13:38 +02:00
hid-tablet.sh selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
hid-usb_crash.sh selftests: hid: import hid-tools usb-crash tests 2023-04-12 17:13:38 +02:00
hid-wacom.sh selftests: hid: import hid-tools wacom tests 2023-04-12 17:13:38 +02:00
hid_bpf.c Revert "HID: bpf: allow write access to quirks field in struct hid_device" 2024-11-25 09:21:47 -08:00
hid_common.h selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device 2024-10-04 16:10:46 +02:00
hidraw.c selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device 2024-10-04 16:10:46 +02:00
run-hid-tools-tests.sh selftests: hid: fix typo and exit code 2024-11-28 14:43:49 +01:00
settings selftests: hid: import hid-tools hid-multitouch and hid-tablets tests 2023-04-12 17:13:37 +02:00
vmtest.sh selftests/hid: vmtest.sh: allow finer control on the build steps 2023-12-07 09:52:03 +01:00