diff options
author | 2018-07-26 14:27:59 +0200 | |
---|---|---|
committer | 2018-07-27 08:59:25 +0200 | |
commit | 50e9ffb1996a5d11ff5040a266585bad4ceeca0a (patch) | |
tree | 08e78c81cff8ff31ef01923c4ea5436732c4eed2 /CREDITS | |
parent | ALSA: cs5535audio: Fix invalid endian conversion (diff) | |
download | linux-50e9ffb1996a5d11ff5040a266585bad4ceeca0a.tar.gz linux-50e9ffb1996a5d11ff5040a266585bad4ceeca0a.tar.bz2 linux-50e9ffb1996a5d11ff5040a266585bad4ceeca0a.zip |
ALSA: virmidi: Fix too long output trigger loop
The virmidi output trigger tries to parse the all available bytes and
process sequencer events as much as possible. In a normal situation,
this is supposed to be relatively short, but a program may give a huge
buffer and it'll take a long time in a single spin lock, which may
eventually lead to a soft lockup.
This patch simply adds a workaround, a cond_resched() call in the loop
if applicable. A better solution would be to move the event processor
into a work, but let's put a duct-tape quickly at first.
Reported-and-tested-by: Dae R. Jeong <threeearcat@gmail.com>
Reported-by: syzbot+619d9f40141d826b097e@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions