android_kernel_samsung_a7y1.../sound/core
Takashi Iwai 563cae4a28 ALSA: info: Fix racy addition/deletion of nodes
commit 8c2f870890fd28e023b0fcf49dcee333f2c8bad7 upstream.

The ALSA proc helper manages the child nodes in a linked list, but its
addition and deletion is done without any lock.  This leads to a
corruption if they are operated concurrently.  Usually this isn't a
problem because the proc entries are added sequentially in the driver
probe procedure itself.  But the card registrations are done often
asynchronously, and the crash could be actually reproduced with
syzkaller.

This patch papers over it by protecting the link addition and deletion
with the parent's mutex.  There is "access" mutex that is used for the
file access, and this can be reused for this purpose as well.

Reported-by: syzbot+48df349490c36f9f54ab@syzkaller.appspotmail.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 15:57:17 +02:00
..
oss ALSA: pcm: Fix possible OOB access in PCM oss plugins 2020-04-06 13:00:58 +02:00
seq ALSA: seq: Fix OOB-reads from strlcpy 2020-04-06 15:08:14 +02:00
compress_offload.c ALSA: compress: add support for 32bit calls in a 64bit kernel 2020-04-06 13:00:44 +02:00
control_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
control.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ctljack.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
device.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hrtimer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hwdep_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
hwdep.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
info_oss.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
info.c ALSA: info: Fix racy addition/deletion of nodes 2020-04-06 15:57:17 +02:00
init.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
isadma.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
jack.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memalloc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
memory.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
misc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_dmaengine.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_drm_eld.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_iec958.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_lib.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_memory.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_misc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_native.c ALSA: PCM: check if ops are defined before suspending PCM 2020-04-06 14:51:27 +02:00
pcm_timer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm_trace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
pcm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rawmidi_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rawmidi.c ALSA: rawmidi: Fix potential Spectre v1 vulnerability 2020-04-06 13:00:54 +02:00
rtctimer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sgbuf.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sound_oss.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sound.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
timer_compat.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
timer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
vmaster.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30