linux-yocto/include
Benjamin Tissoires 5b1c071d5e HID: hidraw: tighten ioctl command parsing
[ Upstream commit 75d5546f60b36900051d75ee623fceccbeb6750c ]

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:00:12 +02:00
..
acpi ACPICA: Avoid sequence overread in call to strncmp() 2025-06-27 11:11:26 +01:00
asm-generic once: fix race by moving DO_ONCE to separate section 2025-10-15 12:00:03 +02:00
clocksource
crypto crypto: sha256 - fix crash at kexec 2025-10-06 11:17:51 +02:00
cxl
drm drm/tests: Do not use drm_fb_blit() in format-helper tests 2025-08-28 16:31:12 +02:00
dt-bindings
keys
kunit
kvm
linux bpf: Enforce expected_attach_type for tailcall compatibility 2025-10-15 12:00:04 +02:00
math-emu
media
memory
misc
net Bluetooth: hci_event: Fix UAF in hci_acl_create_conn_sync 2025-10-02 13:44:10 +02:00
pcmcia
ras
rdma
rv
scsi
soc
sound ASoC: tas2781: Fix the wrong step for TLV on tas2781 2025-08-15 12:14:06 +02:00
target
trace filelock: add FL_RECLAIM to show_fl_flags() macro 2025-10-15 11:59:53 +02:00
uapi HID: hidraw: tighten ioctl command parsing 2025-10-15 12:00:12 +02:00
ufs
vdso vdso: Add struct __kernel_old_timeval forward declaration to gettime.h 2025-10-15 11:59:58 +02:00
video
xen