kernel-fxtec-pro1x/sound
Takashi Iwai bbd411d70b ALSA: seq: oss: Avoid mutex lock for a long-time ioctl
[ Upstream commit 2759caad2600d503c3b0ed800e7e03d2cd7a4c05 ]

Recently we applied a fix to cover the whole OSS sequencer ioctls with
the mutex for dealing with the possible races.  This works fine in
general, but in theory, this may lead to unexpectedly long stall if an
ioctl like SNDCTL_SEQ_SYNC is issued and an event with the far future
timestamp was queued.

For fixing such a potential stall, this patch changes the mutex lock
applied conditionally excluding such an ioctl command.  Also, change
the mutex_lock() with the interruptible version for user to allow
escaping from the big-hammer mutex.

Fixes: 80982c7e834e ("ALSA: seq: oss: Serialize ioctls")
Suggested-by: Pavel Machek <pavel@ucw.cz>
Link: https://lore.kernel.org/r/20200922083856.28572-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-29 09:55:11 +01:00
..
ac97
aoa
arm
atmel
core ALSA: seq: oss: Avoid mutex lock for a long-time ioctl 2020-10-29 09:55:11 +01:00
drivers ALSA: opl3: fix infoleak in opl3 2020-07-16 08:17:25 +02:00
firewire ALSA: bebob: potential info leak in hwdep_read() 2020-10-29 09:54:57 +01:00
hda ALSA: hda: Fix potential race in unsol event handler 2020-10-01 13:14:44 +02:00
i2c
isa
mips
oss
parisc
pci ALSA: hda/realtek: Enable audio jacks of ASUS D700SA with ALC887 2020-10-29 09:54:58 +01:00
pcmcia
ppc
sh
soc ASoC: qcom: lpass-cpu: fix concurrency issue 2020-10-29 09:55:06 +01:00
sparc
spi
synth
usb ALSA: usb-audio: Fix case when USB MIDI interface has more than one extra endpoint descriptor 2020-10-01 13:14:41 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c