android_kernel_samsung_msm8976/sound/drivers
Takashi Iwai 3e24e598a4 ALSA: dummy: Disable switching timer backend via sysfs
commit 7ee96216c31aabe1eb42fb91ff50dae9fcd014b2 upstream.

ALSA dummy driver can switch the timer backend between system timer
and hrtimer via its hrtimer module option.  This can be also switched
dynamically via sysfs, but it may lead to a memory corruption when
switching is done while a PCM stream is running; the stream instance
for the newly switched timer method tries to access the memory that
was allocated by another timer method although the sizes differ.

As the simplest fix, this patch just disables the switch via sysfs by
dropping the writable bit.

BugLink: http://lkml.kernel.org/r/CACT4Y+ZGEeEBntHW5WHn2GoeE0G_kRrCmUh6=dWyy-wfzvuJLg@mail.gmail.com
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-19 14:22:39 -08:00
..
mpu401 ALSA: add/change some comments describing function return values 2013-03-12 08:32:53 +01:00
opl3 sound: Remove unnecessary semicolon 2012-10-06 16:47:53 +02:00
opl4 ALSA: opl4: use list_move_tail instead of list_del/list_add_tail 2012-09-05 09:14:45 +02:00
pcsp ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
vx ALSA: Make snd_printd() and snd_printdd() inline 2013-01-25 18:32:14 +01:00
aloop.c ALSA: pcm_format_to_bits strong-typed conversion 2013-04-29 13:36:15 +02:00
dummy.c ALSA: dummy: Disable switching timer backend via sysfs 2016-02-19 14:22:39 -08:00
Kconfig ALSA: sound kconfig typo 2013-04-24 14:02:36 +02:00
Makefile ALSA: introduce the snd-aloop module for the PCM loopback 2010-08-09 14:21:11 +02:00
ml403-ac97cr.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
mtpav.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
mts64.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
pcm-indirect2.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pcm-indirect2.h
portman2x4.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
serial-u16550.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00
virmidi.c ALSA: drivers: remove __dev* attributes 2012-12-07 07:34:32 +01:00