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
config.common lib/crc: remove unnecessary prompt for CONFIG_CRC_T10DIF 2025-04-04 11:31:42 -07:00
config.x86_64
hid-apple.sh
hid-core.sh
hid-gamepad.sh
hid-ite.sh
hid-keyboard.sh
hid-mouse.sh
hid-multitouch.sh
hid-sony.sh
hid-tablet.sh
hid-usb_crash.sh
hid-wacom.sh
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
vmtest.sh