]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: timer: Fix wrong instance passed to slave callbacks
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Feb 2016 16:36:25 +0000 (17:36 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:59 +0000 (15:44 -0700)
commit3cdff76f672e65dfc89e0a05654372e447bb696c
tree10e73cc34148141587577a2a4c39685d26821510
parent656a09d80cffd53c64696d1868aa3e78ab3f5114
ALSA: timer: Fix wrong instance passed to slave callbacks

Orabug: 23330850

[ Upstream commit 117159f0b9d392fb433a7871426fad50317f06f7 ]

In snd_timer_notify1(), the wrong timer instance was passed for slave
ccallback function.  This leads to the access to the wrong data when
an incompatible master is handled (e.g. the master is the sequencer
timer and the slave is a user timer), as spotted by syzkaller fuzzer.

This patch fixes that wrong assignment.

BugLink: http://lkml.kernel.org/r/CACT4Y+Y_Bm+7epAb=8Wi=AaWd+DYS7qawX52qxdCfOfY49vozQ@mail.gmail.com
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 47eef3475c5f3063fc20e938f2fe24cd84d731aa)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
sound/core/timer.c