From: Jia-Ju Bai <baijiaju1990@163.com>
To: perex@perex.cz, tiwai@suse.com, o-takashi@sakamocchi.jp,
mingo@kernel.org, danielmentz@google.com
Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Subject: [BUG] sound/core/seq: A possible sleep-in-atomic bug in snd_virmidi_dev_receive_event
Date: Mon, 9 Oct 2017 10:42:15 +0800 [thread overview]
Message-ID: <a3e0863a-c47e-de76-828d-2dcd4b2b18a0@163.com> (raw)
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
next reply other threads:[~2017-10-09 2:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-09 2:42 Jia-Ju Bai [this message]
2017-10-09 9:08 ` [alsa-devel] " Takashi Iwai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a3e0863a-c47e-de76-828d-2dcd4b2b18a0@163.com \
--to=baijiaju1990@163.com \
--cc=alsa-devel@alsa-project.org \
--cc=danielmentz@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=o-takashi@sakamocchi.jp \
--cc=perex@perex.cz \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®