Please sign in to comment.
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. Change-Id: Iaa21b00f62e02cc58e346a29846e0fce6536e860 Reported-by: Dmitry Vyukov <firstname.lastname@example.org> Tested-by: Dmitry Vyukov <email@example.com> Cc: <firstname.lastname@example.org> Signed-off-by: Takashi Iwai <email@example.com>
- Loading branch information...