android_kernel_samsung_a7y1.../sound/core
Takashi Iwai e053f38c71 ALSA: seq: Cover unsubscribe_port() in list_mutex
commit 7c32ae35fbf9cffb7aa3736f44dec10c944ca18e upstream.

The call of unsubscribe_port() which manages the group count and
module refcount from delete_and_unsubscribe_port() looks racy; it's
not covered by the group list lock, and it's likely a cause of the
reported unbalance at port deletion.  Let's move the call inside the
group list_mutex to plug the hole.

Reported-by: syzbot+e4c8abb920efa77bace9@syzkaller.appspotmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 19:02:50 +02:00
..
oss ALSA: pcm: Fix possible OOB access in PCM oss plugins 2020-04-06 13:00:58 +02:00
seq ALSA: seq: Cover unsubscribe_port() in list_mutex 2020-04-06 19:02:50 +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