summaryrefslogtreecommitdiffstats
path: root/fs/pstore
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-02-28 22:15:51 +0100
committerTakashi Iwai <tiwai@suse.de>2017-02-28 22:15:51 +0100
commitf3ac9f737603da80c2da3e84b89e74429836bb6d (patch)
tree8f6aef03fd1ea117451942feb37df49709c0f7cf /fs/pstore
parentALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming (diff)
downloadlinux-f3ac9f737603da80c2da3e84b89e74429836bb6d.tar.xz
linux-f3ac9f737603da80c2da3e84b89e74429836bb6d.zip
ALSA: seq: Fix link corruption by event error handling
The sequencer FIFO management has a bug that may lead to a corruption (shortage) of the cell linked list. When a sequencer client faces an error at the event delivery, it tries to put back the dequeued cell. When the first queue was put back, this forgot the tail pointer tracking, and the link will be screwed up. Although there is no memory corruption, the sequencer client may stall forever at exit while flushing the pending FIFO cells in snd_seq_pool_done(), as spotted by syzkaller. This patch addresses the missing tail pointer tracking at snd_seq_fifo_cell_putback(). Also the patch makes sure to clear the cell->enxt pointer at snd_seq_fifo_event_in() for avoiding a similar mess-up of the FIFO linked list. Reported-by: Dmitry Vyukov <dvyukov@google.com> Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'fs/pstore')
0 files changed, 0 insertions, 0 deletions