summaryrefslogtreecommitdiff
path: root/sound/synth
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2016-02-01 14:06:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-20 01:28:31 +0300
commitcf4fa9310beba9da9d7b9852146a0c2c4f451b74 (patch)
tree91762c7dfe6b1b2f1bec48c0fc08108015c0728d /sound/synth
parenta1f25b12b7079bc695bca53712627028566c30a2 (diff)
downloadlinux-cf4fa9310beba9da9d7b9852146a0c2c4f451b74.tar.xz
ALSA: seq: Fix race at closing in virmidi driver
commit 2d1b5c08366acd46c35a2e9aba5d650cb5bf5c19 upstream. 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> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/synth')
0 files changed, 0 insertions, 0 deletions