Files
linux-stable-mirror/drivers/hid
Oliver Neukum eeceb6f4dd HID: usbhid: fix deadlock in hid_post_reset()
[ Upstream commit 8df2c1b47e ]

You can build a USB device that includes a HID component
and a storage or UAS component. The components can be reset
only together. That means that hid_pre_reset() and hid_post_reset()
are in the block IO error handling. Hence no memory allocation
used in them may do block IO because the IO can deadlock
on the mutex held while resetting a device and calling the
interface drivers.
Use GFP_NOIO for all allocations in them.

Fixes: dc3c78e434 ("HID: usbhid: Check HID report descriptor contents after device reset")
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-06-01 17:39:18 +02:00
..
2024-04-27 17:07:09 +02:00
2026-03-04 07:20:43 -05:00