summaryrefslogtreecommitdiff
path: root/kernel/stop_machine.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-01-08 13:58:31 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-17 09:38:51 +0100
commit3a00564cb49f17e5ca2a1d6e34c7ea7b1113f49e (patch)
treebbbb4ceddd5c07a6f0d48d14b4bab9b16a284849 /kernel/stop_machine.c
parent8e81425e80c90667464540694967337e318e545b (diff)
ALSA: pcm: Abort properly at pending signal in OSS read/write loops
commit 29159a4ed7044c52e3e2cf1a9fb55cec4745c60b upstream. The loops for read and write in PCM OSS emulation have no proper check of pending signals, and they keep processing even after user tries to break. This results in a very long delay, often seen as RCU stall when a huge unprocessed bytes remain queued. The bug could be easily triggered by syzkaller. As a simple workaround, this patch adds the proper check of pending signals and aborts the loop appropriately. Reported-by: syzbot+993cb4cfcbbff3947c21@syzkaller.appspotmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/stop_machine.c')
0 files changed, 0 insertions, 0 deletions