linux-yocto/include/uapi
Benjamin Tissoires 347a13f8a6 HID: hidraw: tighten ioctl command parsing
[ Upstream commit 75d5546f60 ]

The handling for variable-length ioctl commands in hidraw_ioctl() is
rather complex and the check for the data direction is incomplete.

Simplify this code by factoring out the various ioctls grouped by dir
and size, and using a switch() statement with the size masked out, to
ensure the rest of the command is correctly matched.

Fixes: 9188e79ec3 ("HID: add phys and name ioctls to hidraw")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 12:04:00 +02:00
..
asm-generic Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
cxl fwctl/cxl: Fix uuid_t usage in uapi 2025-04-11 20:45:43 -03:00
drm drm/amdgpu: Replace HQD terminology with slots naming 2025-07-16 16:17:36 -04:00
fwctl
linux HID: hidraw: tighten ioctl command parsing 2025-10-15 12:04:00 +02:00
misc misc: amd-sbi: Add support for register xfer 2025-05-21 14:44:41 +02:00
mtd
rdma IB: Extend UVERBS_METHOD_REG_MR to get DMAH 2025-07-23 01:42:11 -04:00
regulator
scsi
sound
video
xen
Kbuild