linux-stable/sound/core/seq/oss
Takashi Iwai 97d3472b43 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:47:58 +02:00
..
Makefile
seq_oss.c ALSA: seq: oss: Avoid mutex lock for a long-time ioctl 2020-10-29 09:55:11 +01:00
seq_oss_device.h
seq_oss_event.c ALSA: seq: oss: Hardening for potential Spectre v1 2018-04-25 10:37:45 +02:00
seq_oss_event.h
seq_oss_init.c
seq_oss_ioctl.c ALSA: seq: fix incorrect order of dest_client/dest_ports arguments 2019-07-10 09:53:42 +02:00
seq_oss_midi.c ALSA: seq: oss: Fix racy open/close of MIDI devices 2023-09-23 10:47:58 +02:00
seq_oss_midi.h
seq_oss_readq.c
seq_oss_readq.h
seq_oss_rw.c ALSA: seq: fix incorrect order of dest_client/dest_ports arguments 2019-07-10 09:53:42 +02:00
seq_oss_synth.c ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info() 2021-01-27 11:05:34 +01:00
seq_oss_synth.h ALSA: seq: oss: Hardening for potential Spectre v1 2018-04-25 10:37:45 +02:00
seq_oss_timer.c ALSA: seq_oss: Mark expected switch fall-through 2018-08-04 08:30:45 +02:00
seq_oss_timer.h
seq_oss_writeq.c
seq_oss_writeq.h