summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2017-02-08 12:35:39 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-14 15:25:41 -0800
commit5024b2fb8e49091044e450a0548979bb711588d6 (patch)
treeef24bbe8e0fa498264157ade3c800860a609ef56 /virt
parent2e0feb524caccbe9c061997f63b97e4f695e816e (diff)
ALSA: seq: Fix race at creating a queue
commit 4842e98f26dd80be3623c4714a244ba52ea096a8 upstream. When a sequencer queue is created in snd_seq_queue_alloc(),it adds the new queue element to the public list before referencing it. Thus the queue might be deleted before the call of snd_seq_queue_use(), and it results in the use-after-free error, as spotted by syzkaller. The fix is to reference the queue object at the right time. Reported-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 'virt')
0 files changed, 0 insertions, 0 deletions