mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] sound/core/seq: A possible sleep-in-atomic bug in snd_virmidi_dev_receive_event
@ 2017-10-09  2:42 Jia-Ju Bai
  2017-10-09  9:08 ` [alsa-devel] " Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Jia-Ju Bai @ 2017-10-09  2:42 UTC (permalink / raw)
  To: perex, tiwai, o-takashi, mingo, danielmentz; +Cc: alsa-devel, linux-kernel

According to seq_virmidi.c, the driver may sleep under a read spinlock.
The function call path is:
snd_virmidi_dev_receive_event (acquire the spinlock)
   snd_seq_dump_var_event
     copy_from_user --> may sleep

This bug is found by my static analysis tool and my code review.


Thanks,
Jia-Ju Bai

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

end of thread, other threads:[~2017-10-09  9:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-09  2:42 [BUG] sound/core/seq: A possible sleep-in-atomic bug in snd_virmidi_dev_receive_event Jia-Ju Bai
2017-10-09  9:08 ` [alsa-devel] " Takashi Iwai

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®