Skip to content

USB: HID: Fix race between disconnect and hiddev_ioctl

Valentine Barshak linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2USB: HID: Fix race between disconnect and hiddev_ioctldrivers/hid/usbhid/hiddev.c+131 -372 replies
2/2USB: HID: Consolidate device existence checks in hiddev_ioctldrivers/hid/usbhid/hiddev.c+103 -1840 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] USB: HID: Fix race between disconnect and hiddev_ioctl

If a USB HID device is disconneceted, the hiddev_ioctl could try to access invalid hiddev->hid pointer.

The following two patches attempt to fix race condition between disconnect and hiddev_ioctl and make hiddev_ioctl always return -ENODEV on a disconnected device.