linux-stable/sound/core/seq/oss
Takashi Iwai 297224fc09 ALSA: seq: oss: Fix racy open/close of MIDI devices
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>
2023-06-16 09:26:41 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
seq_oss.c ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_oss_device.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_event.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_event.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_init.c ALSA: seq: oss: fix typo 2022-03-14 07:51:22 +01:00
seq_oss_ioctl.c sound fixes for 5.2 2019-07-05 02:03:50 +09:00
seq_oss_midi.c ALSA: seq: oss: Fix racy open/close of MIDI devices 2023-06-16 09:26:41 +02:00
seq_oss_midi.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_readq.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_readq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_rw.c ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_oss_synth.c ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_oss_synth.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00
seq_oss_timer.c ALSA: Use fallthrough pseudo-keyword 2020-07-09 13:01:29 +02:00
seq_oss_timer.h ALSA: seq: oss: remove unused inline function snd_seq_oss_timer_is_realtime 2020-04-29 15:58:55 +02:00
seq_oss_writeq.c ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_oss_writeq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00