android_kernel_samsung_msm8976/sound/core/seq
Takashi Iwai c82e203b23 ALSA: seq: Fix regression by incorrect ioctl_mutex usages
This is the revised backport of the upstream commit
b3defb791b26ea0683a93a4f49c77ec45ec96f10

We had another backport (e.g. 623e5c8ae32b in 4.4.115), but it applies
the new mutex also to the code paths that are invoked via faked
kernel-to-kernel ioctls.  As reported recently, this leads to a
deadlock at suspend (or other scenarios triggering the kernel
sequencer client).

This patch addresses the issue by taking the mutex only in the code
paths invoked by user-space, just like the original fix patch does.

Reported-and-tested-by: Andres Bertens <abertensu@yahoo.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-07-27 21:46:10 +02:00
..
oss ALSA: seq: Fix OSS sysex delivery in OSS emulation 2019-07-27 21:45:45 +02:00
Kconfig
Makefile ALSA: OSS sequencer should be initialized after snd_seq_system_client_init 2009-07-19 19:10:01 +02:00
seq.c device.h: cleanup users outside of linux/include (C files) 2012-03-11 14:27:37 -04:00
seq_clientmgr.c ALSA: seq: Fix regression by incorrect ioctl_mutex usages 2019-07-27 21:46:10 +02:00
seq_clientmgr.h ALSA: seq: Make ioctls race-free 2019-07-27 21:45:59 +02:00
seq_compat.c ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode 2016-01-28 21:49:30 -08:00
seq_device.c various: Fix spelling of "registered" in comments. 2012-11-19 14:29:46 +01:00
seq_dummy.c ALSA: seq-dummy: remove deadlock-causing events on close 2015-02-05 22:35:36 -08:00
seq_fifo.c ALSA: seq: Fix race during FIFO resize 2019-07-27 21:43:33 +02:00
seq_fifo.h
seq_info.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
seq_info.h
seq_lock.c ALSA: seq: Enable 'use' locking in all configurations 2019-07-27 21:45:17 +02:00
seq_lock.h ALSA: seq: Enable 'use' locking in all configurations 2019-07-27 21:45:17 +02:00
seq_memory.c ALSA: seq: Fix racy cell insertions during snd_seq_pool_done() 2019-07-27 21:43:32 +02:00
seq_memory.h ALSA: seq: Fix racy cell insertions during snd_seq_pool_done() 2019-07-27 21:43:32 +02:00
seq_midi.c sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
seq_midi_emul.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
seq_midi_event.c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
seq_ports.c ALSA: seq: Fix use-after-free at creating a port 2017-12-22 20:23:53 +00:00
seq_ports.h
seq_prioq.c
seq_prioq.h
seq_queue.c ALSA: seq: Fix race at creating a queue 2019-07-27 21:43:31 +02:00
seq_queue.h
seq_system.c sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
seq_system.h
seq_timer.c ALSA: seq: Fix yet another races among ALSA timer accesses 2016-02-19 14:22:39 -08:00
seq_timer.h
seq_virmidi.c ALSA: seq: Fix copy_from_user() call inside lock 2019-07-27 21:45:36 +02:00