aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorTerry Junge <[email protected]>2025-03-12 22:23:31 +0000
committerJiri Kosina <[email protected]>2025-04-24 09:31:25 +0000
commitfe7f7ac8e0c708446ff017453add769ffc15deed (patch)
tree135ea6189571ac0e15317db7bb6676cb203bee14 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentMerge tag 'hid-for-linus-2025032601' of git://git.kernel.org/pub/scm/linux/ke... (diff)
downloadkernel-fe7f7ac8e0c708446ff017453add769ffc15deed.tar.gz
kernel-fe7f7ac8e0c708446ff017453add769ffc15deed.zip
HID: usbhid: Eliminate recurrent out-of-bounds bug in usbhid_parse()
Update struct hid_descriptor to better reflect the mandatory and optional parts of the HID Descriptor as per USB HID 1.11 specification. Note: the kernel currently does not parse any optional HID class descriptors, only the mandatory report descriptor. Update all references to member element desc[0] to rpt_desc. Add test to verify bLength and bNumDescriptors values are valid. Replace the for loop with direct access to the mandatory HID class descriptor member for the report descriptor. This eliminates the possibility of getting an out-of-bounds fault. Add a warning message if the HID descriptor contains any unsupported optional HID class descriptors. Reported-by: [email protected] Closes: https://syzkaller.appspot.com/bug?extid=c52569baf0c843f35495 Fixes: f043bfc98c19 ("HID: usbhid: fix out-of-bounds bug") Cc: [email protected] Signed-off-by: Terry Junge <[email protected]> Reviewed-by: Michael Kelley <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions