android_kernel_samsung_msm8976/sound/core
Takashi Iwai da8f540ce6 ALSA: pcm: Check PCM state at xfern compat ioctl
commit f13876e2c33a657a71bcbb10f767c0951b165020 upstream.

Since snd_pcm_ioctl_xfern_compat() has no PCM state check, it may go
further and hit the sanity check pcm_sanity_check() when the ioctl is
called right after open.  It may eventually spew a kernel warning, as
triggered by syzbot, depending on kconfig.

The lack of PCM state check there was just an oversight.  Although
it's no real crash, the spurious kernel warning is annoying, so let's
add the proper check.

Reported-by: syzbot+1dac3a4f6bc9c1c675d4@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>
2019-07-27 21:49:07 +02:00
..
oss ALSA: pcm: Allow aborting mutex lock at OSS read/write loops 2019-07-27 21:46:28 +02:00
seq ALSA: seq: Fix regression by incorrect ioctl_mutex usages 2019-07-27 21:46:10 +02:00
Kconfig
Makefile
compress_offload.c This is the 3.10.97 stable release 2017-04-18 17:17:20 +02:00
control.c ALSA: core: Fix unexpected error at replacing user TLV 2019-07-27 21:44:40 +02:00
control_compat.c ALSA: ctl: Fix ioctls for X32 ABI 2016-03-09 15:31:55 -08:00
ctljack.c
device.c
hrtimer.c ALSA: timer: Limit max instances per timer 2019-07-27 21:45:43 +02:00
hwdep.c
hwdep_compat.c
info.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
info_oss.c
init.c
isadma.c
jack.c
memalloc.c
memory.c
misc.c
pcm.c Merge tag 'LA.BR.1.3.6-05410-8976.0' of https://source.codeaurora.org/quic/la/kernel/msm-3.10 into HEAD 2018-02-06 13:11:45 +01:00
pcm_compat.c ALSA: pcm: Check PCM state at xfern compat ioctl 2019-07-27 21:49:07 +02:00
pcm_lib.c ALSA: pcm: Remove yet superfluous WARN_ON() 2019-07-27 21:46:29 +02:00
pcm_memory.c
pcm_misc.c
pcm_native.c ALSA: core: Report audio_tstamp in snd_pcm_sync_ptr 2019-07-27 21:49:00 +02:00
pcm_timer.c ALSA: pcm: use lock to protect substream runtime resource 2018-01-21 21:32:44 -08:00
rawmidi.c ALSA: rawmidi: Avoid racy info ioctl via ctl device 2019-07-27 21:46:17 +02:00
rawmidi_compat.c ALSA: rawmidi: Fix ioctls X32 ABI 2016-03-09 15:31:55 -08:00
rtctimer.c
sgbuf.c
sound.c
sound_oss.c
timer.c ALSA: timer: Limit max instances per timer 2019-07-27 21:45:43 +02:00
timer_compat.c ALSA: timer: Remove kernel warning at compat ioctl error paths 2019-07-27 21:46:05 +02:00
vmaster.c