summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_beep.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2016-01-13 19:48:01 +0300
committerTakashi Iwai <tiwai@suse.de>2016-01-14 16:07:21 +0300
commitaf368027a49a751d6ff4ee9e3f9961f35bb4fede (patch)
treeca51f654c1b2f2d660a211b2a21dacc57f36cb62 /sound/pci/hda/hda_beep.c
parent91815d8aa7e2f45d30e51caa297061ad893628d9 (diff)
downloadlinux-af368027a49a751d6ff4ee9e3f9961f35bb4fede.tar.xz
ALSA: timer: Fix race among timer ioctls
ALSA timer ioctls have an open race and this may lead to a use-after-free of timer instance object. A simplistic fix is to make each ioctl exclusive. We have already tread_sem for controlling the tread, and extend this as a global mutex to be applied to each ioctl. The downside is, of course, the worse concurrency. But these ioctls aren't to be parallel accessible, in anyway, so it should be fine to serialize there. 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/pci/hda/hda_beep.c')
0 files changed, 0 insertions, 0 deletions