]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/hid: hidraw: forge wrong ioctls and tests them
authorBenjamin Tissoires <bentiss@kernel.org>
Fri, 12 Sep 2025 16:58:50 +0000 (18:58 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 17 Sep 2025 09:37:23 +0000 (11:37 +0200)
commit8c62074fa824db0878a039e40f8424c3c3284f42
tree957800efd574fde73cb3ecd27357e17b91513064
parentbb6c861a290f2d6b3df2b176d2c2491f1a242265
selftests/hid: hidraw: forge wrong ioctls and tests them

We also need coverage for when the malicious user is not using the
proper ioctls definitions and tries to work around the driver.

Most of the scaffholding has been generated by claude-4-sonnet and then
carefully reviewed.

Suggested-by: Arnd Bergmann <arnd@kernel.org>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
tools/testing/selftests/hid/hidraw.c