mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Staging: serqt_usb2: kmalloc(GFP_NOIO) with spinlock held in qt_break() and qt_tiocmset()
@ 2011-08-05 14:35 Alexey Khoroshilov
  2011-08-05 15:17 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Khoroshilov @ 2011-08-05 14:35 UTC (permalink / raw)
  To: gregkh; +Cc: wfp5p, linux-kernel

qt_break() calls usb_control_msg() with spinlock held,
while usb_control_msg() calls kmalloc(GFP_NOIO) and indirectly usb_alloc_urb(GFP_NOIO).

The same is true for qt_tiocmget() and qt_tiocmset().

Is replacing spinlock with mutex an appropriate solution to fix the issue?


Found by Linux Driver Verification project (linuxtesting.org).

--
Alexey Khoroshilov
Linux Verification Center, ISPRAS

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

end of thread, other threads:[~2011-08-09  6:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 14:35 Staging: serqt_usb2: kmalloc(GFP_NOIO) with spinlock held in qt_break() and qt_tiocmset() Alexey Khoroshilov
2011-08-05 15:17 ` Greg KH
2011-08-09  6:23   ` [PATCH] Staging: serqt_usb2: fix sleeping with spinlock held Alexey Khoroshilov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®