alistair23-linux/sound
Takashi Iwai f3ac9f7376 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>
2017-02-28 22:15:51 +01:00
..
aoa
arm
atmel
core ALSA: seq: Fix link corruption by event error handling 2017-02-28 22:15:51 +01:00
drivers ALSA: drivers: Constify snd_rawmidi_ops 2017-01-12 12:50:06 +01:00
firewire Merge branch 'topic/intel-lpe-audio' into for-next 2017-01-25 22:11:17 +01:00
hda Linux 4.10-rc1 2017-01-24 16:24:18 +00:00
i2c
isa ALSA: isa: Constify snd_rawmidi_ops 2017-01-12 12:50:16 +01:00
mips ALSA: mips: avoid potential uninitialized variable use 2017-01-16 14:33:42 +01:00
oss sound: oss/ad1848: remove some dead code 2017-01-31 21:41:19 +01:00
parisc
pci ALSA: hda - Add subwoofer support for Dell Inspiron 17 7000 Gaming 2017-02-28 17:58:05 +01:00
pcmcia ALSA: vx: Fix possible transfer overflow 2017-01-04 18:01:35 +01:00
ppc
sh ktime: Cleanup ktime_set() usage 2016-12-25 17:21:22 +01:00
soc Merge remote-tracking branches 'asoc/topic/wm8753' and 'asoc/topic/zte' into asoc-next 2017-02-19 16:37:07 +00:00
sparc dbri: move dereference after check for NULL 2016-12-06 12:18:22 -05:00
spi
synth ALSA: synth: use designated initializers 2016-12-28 16:06:16 +01:00
usb ALSA: usb-audio: Tidy up mixer_us16x08.c 2017-02-22 15:07:20 +01:00
x86 ALSA: x86: hdmi: select CONFIG_SND_PCM 2017-02-21 23:39:14 +01:00
ac97_bus.c
Kconfig ALSA: add Intel HDMI LPE audio driver for BYT/CHT-T 2017-01-25 14:23:46 +01:00
last.c
Makefile ALSA: add Intel HDMI LPE audio driver for BYT/CHT-T 2017-01-25 14:23:46 +01:00
sound_core.c