diff options
author | Takashi Iwai <tiwai@suse.de> | 2016-02-01 12:06:42 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-02-01 12:21:46 +0100 |
commit | 2d1b5c08366acd46c35a2e9aba5d650cb5bf5c19 (patch) | |
tree | 61e6e56dc08107b25eafb2ada7e583f51378139d /sound/sparc | |
parent | f1d51595a2a54d725cd6a21dd54508335a14ab90 (diff) |
ALSA: seq: Fix race at closing in virmidi driver
The virmidi driver has an open race at closing its assigned rawmidi
device, and this may lead to use-after-free in
snd_seq_deliver_single_event().
Plug the hole by properly protecting the linked list deletion and
calling in the right order in snd_virmidi_input_close().
BugLink: http://lkml.kernel.org/r/CACT4Y+Zd66+w12fNN85-425cVQT=K23kWbhnCEcMB8s3us-Frw@mail.gmail.com
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/sparc')
0 files changed, 0 insertions, 0 deletions