acrn-kernel/sound/core/seq
Takashi Iwai 3e7e04b747 ALSA: seq: Fix data-race at module auto-loading
It's been reported that there is a possible data-race accessing to the
global card_requested[] array at ALSA sequencer core, which is used
for determining whether to call request_module() for the card or not.
This data race itself is almost harmless, as it might end up with one
extra request_module() call for the already loaded module at most.
But it's still better to fix.

This patch addresses the possible data race of card_requested[] and
client_requested[] arrays by replacing them with bitmask.
It's an atomic operation and can work without locks.

Reported-by: Abhishek Shah <abhishek.shah@columbia.edu>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/CAEHB24_ay6YzARpA1zgCsE7=H9CSJJzux618E=Ka4h0YdKn=qA@mail.gmail.com
Link: https://lore.kernel.org/r/20220823072717.1706-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2022-08-24 07:59:06 +02:00
..
oss ALSA: seq: oss: Fix data-race for max_midi_devs access 2022-08-23 17:00:12 +02:00
Kconfig
Makefile
seq.c
seq_clientmgr.c ALSA: seq: Fix data-race at module auto-loading 2022-08-24 07:59:06 +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 ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_fifo.h
seq_info.c
seq_info.h
seq_lock.c
seq_lock.h
seq_memory.c ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_memory.h
seq_midi.c ALSA: seq: Fix assignment in if condition 2021-06-09 17:30:26 +02:00
seq_midi_emul.c
seq_midi_event.c
seq_ports.c ALSA: seq: replace ternary operator with max() 2022-05-17 08:49:42 +02:00
seq_ports.h
seq_prioq.c
seq_prioq.h
seq_queue.c ALSA: seq: Set upper limit of processed events 2021-12-07 17:52:28 +01:00
seq_queue.h
seq_system.c
seq_system.h
seq_timer.c ALSA: seq: Fix race of snd_seq_timer_open() 2021-06-10 17:21:30 +02:00
seq_timer.h
seq_virmidi.c ALSA: seq: virmidi: Add a drain operation 2022-01-06 16:08:07 +01:00