linux/sound
Takashi Iwai b3defb791b ALSA: seq: Make ioctls race-free
The ALSA sequencer ioctls have no protection against racy calls while
the concurrent operations may lead to interfere with each other.  As
reported recently, for example, the concurrent calls of setting client
pool with a combination of write calls may lead to either the
unkillable dead-lock or UAF.

As a slightly big hammer solution, this patch introduces the mutex to
make each ioctl exclusive.  Although this may reduce performance via
parallel ioctl calls, usually it's not demanded for sequencer usages,
hence it should be negligible.

Reported-by: Luo Quan <a4651386@163.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2018-01-11 14:37:51 +01:00
..
ac97
aoa
arm
atmel
core ALSA: seq: Make ioctls race-free 2018-01-11 14:37:51 +01:00
drivers ALSA: aloop: Fix racy hw constraints adjustment 2018-01-05 16:44:16 +01:00
firewire
hda ALSA: hda: Drop useless WARN_ON() 2017-12-22 10:56:56 +01:00
i2c
isa
mips
oss
parisc
pci ALSA: hda - Apply the existing quirk to iMac 14,1 2018-01-10 11:11:54 +01:00
pcmcia
ppc
sh
soc Merge remote-tracking branches 'asoc/fix/rt5663', 'asoc/fix/tlv320aic31xx' and 'asoc/fix/twl4030' into asoc-linus 2017-12-20 15:43:15 +00:00
sparc
spi
synth
usb ASoC: Fixes for v4.15 2017-12-20 17:36:04 +01:00
x86
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c