linux-stable/sound/core/seq
Takashi Iwai b63f097950 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-23 10:46:54 +02:00
..
oss ALSA: seq: oss: Fix racy open/close of MIDI devices 2023-09-23 10:46:54 +02:00
Kconfig
Makefile
seq.c
seq_clientmgr.c ALSA: seq: Fix data-race at module auto-loading 2022-09-15 12:23:51 +02:00
seq_clientmgr.h
seq_compat.c
seq_dummy.c
seq_fifo.c ALSA: seq: Fix potential concurrent access to the deleted pool 2019-09-06 10:20:52 +02:00
seq_fifo.h ALSA: seq: Fix potential concurrent access to the deleted pool 2019-09-06 10:20:52 +02:00
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:26:12 +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-15 13:03:28 +02:00
seq_ports.h ALSA: seq: Fix race of get-subscription call vs port-delete ioctls 2019-06-19 08:20:56 +02:00
seq_prioq.c
seq_prioq.h
seq_queue.c ALSA: seq: Set upper limit of processed events 2022-01-27 09:00:58 +01:00
seq_queue.h ALSA: seq: Use bool for snd_seq_queue internal flags 2021-01-09 13:37:38 +01:00
seq_system.c ALSA: seq: Do error checks at creating system ports 2019-11-20 17:59:41 +01:00
seq_system.h
seq_timer.c ALSA: seq: Fix concurrent access to queue current tick/time 2020-02-28 16:36:16 +01:00
seq_timer.h ALSA: seq: Fix concurrent access to queue current tick/time 2020-02-28 16:36:16 +01:00
seq_virmidi.c ALSA: seq: virmidi: Fix running status after receiving sysex 2020-04-02 16:34:17 +02:00