WSL2-Linux-Kernel/sound
Takashi Iwai 8c1b60dad0 ALSA: seq: oss: Fix racy open/close of MIDI devices
[ Upstream commit 297224fc09 ]

Although snd_seq_oss_midi_open() and snd_seq_oss_midi_close() can be
called concurrently from different code paths, we have no proper data
protection against races.  Introduce open_mutex to each seq_oss_midi
object for avoiding the races.

Reported-by: "Gong, Sishuai" <sishuai@purdue.edu>
Closes: https://lore.kernel.org/r/7DC9AF71-F481-4ABA-955F-76C535661E33@purdue.edu
Link: https://lore.kernel.org/r/20230612125533.27461-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-19 12:22:29 +02:00
..
ac97
aoa
arm
atmel
core ALSA: seq: oss: Fix racy open/close of MIDI devices 2023-09-19 12:22:29 +02:00
drivers
firewire
hda
i2c
isa
mips
oss
parisc
pci
pcmcia
ppc
sh
soc ASoC: atmel: Fix the 8K sample parameter in I2SC master 2023-09-19 12:22:28 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Fix init call orders for UAC1 2023-09-06 21:28:38 +01:00
virtio
x86
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c