summaryrefslogtreecommitdiff
path: root/sound/pci/cs5535audio/cs5535audio.h
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-26 14:27:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-08-22 07:48:36 +0200
commit8419b74a43fe4d6a3a4a6d33b00746f5446fb472 (patch)
tree5e129a62cf234a16f01d0fb2c86a18bdf8c90058 /sound/pci/cs5535audio/cs5535audio.h
parentc48a18584d81b2fbdc1d7deba41525bfc9114255 (diff)
ALSA: virmidi: Fix too long output trigger loop
commit 50e9ffb1996a5d11ff5040a266585bad4ceeca0a upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci/cs5535audio/cs5535audio.h')
0 files changed, 0 insertions, 0 deletions