summaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-01-09 23:11:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-07 11:07:54 -0800
commit6aab3aa52366a0051e5abf8aae4616c42053fd8e (patch)
tree23b47ec1d3220506f7d31058b42da91bd96183bb /CREDITS
parent524a6efbd1234439ba00176006ed95ad7d007da6 (diff)
downloadlinux-stable-6aab3aa52366a0051e5abf8aae4616c42053fd8e.tar.gz
linux-stable-6aab3aa52366a0051e5abf8aae4616c42053fd8e.tar.bz2
linux-stable-6aab3aa52366a0051e5abf8aae4616c42053fd8e.zip
ALSA: seq: Make ioctls race-free
commit b3defb791b26ea0683a93a4f49c77ec45ec96f10 upstream. 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> Signed-off-by: Takashi Iwai <tiwai@suse.de> [bwh: Backported to 4.4: ioctl dispatch is done from snd_seq_do_ioctl(); take the mutex and add ret variable there.] Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions