WSL2-Linux-Kernel/sound/core/seq
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
..
oss ALSA: seq: oss: Fix racy open/close of MIDI devices 2023-09-19 12:22:29 +02:00
Kconfig
Makefile
seq.c
seq_clientmgr.c ALSA: seq: Fix data-race at module auto-loading 2022-09-08 12:28:08 +02:00
seq_clientmgr.h
seq_compat.c
seq_dummy.c ALSA: seq: Fix comments of wrong client number for MIDI Passthrough 2021-07-27 12:53:00 +02:00
seq_fifo.c
seq_fifo.h
seq_info.c
seq_info.h
seq_lock.c
seq_lock.h
seq_memory.c ALSA: seq: Fix function prototype mismatch in snd_seq_expand_var_event 2022-12-14 11:37:16 +01:00
seq_memory.h
seq_midi.c
seq_midi_emul.c
seq_midi_event.c
seq_ports.c ALSA: seq: Fix racy deletion of subscriber 2021-08-03 13:43:40 +02:00
seq_ports.h
seq_prioq.c
seq_prioq.h
seq_queue.c ALSA: seq: Set upper limit of processed events 2022-01-27 11:05:00 +01:00
seq_queue.h
seq_system.c
seq_system.h
seq_timer.c
seq_timer.h
seq_virmidi.c