linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] USB: HID: Fix race between disconnect and hiddev_ioctl
@ 2010-12-06 14:45 Valentine Barshak
  2010-12-06 14:51 ` [PATCH 1/2] " Valentine Barshak
       [not found] ` <20101206144519.GA8438-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Valentine Barshak @ 2010-12-06 14:45 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: linux-usb, linux-input, linux-kernel

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-07 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-06 14:45 [PATCH 0/2] USB: HID: Fix race between disconnect and hiddev_ioctl Valentine Barshak
2010-12-06 14:51 ` [PATCH 1/2] " Valentine Barshak
2010-12-07 14:47   ` Jiri Kosina
2010-12-07 15:02     ` Valentine Barshak
     [not found] ` <20101206144519.GA8438-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2010-12-06 15:16   ` [PATCH 2/2] USB: HID: Consolidate device existence checks in hiddev_ioctl Valentine Barshak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).