kernel_optimize_test/sound
Takashi Iwai c637fa1512 ALSA: hda: Fix potential race in unsol event handler
The unsol event handling code has a loop retrieving the read/write
indices and the arrays without locking while the append to the array
may happen concurrently.  This may lead to some inconsistency.
Although there hasn't been any proof of this bad results, it's still
safer to protect the racy accesses.

This patch adds the spinlock protection around the unsol handling loop
for addressing it.  Here we take bus->reg_lock as the writer side
snd_hdac_bus_queue_event() is also protected by that lock.

Link: https://lore.kernel.org/r/20200516062556.30951-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2020-05-16 08:27:11 +02:00
..
ac97
aoa
arm ASoC: arm: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer 2020-03-27 14:44:56 +00:00
atmel
core ALSA: Replace zero-length array with flexible-array 2020-05-07 22:30:36 +02:00
drivers ALSA: portman2x4: Use bitwise instead of arithmetic operator for flags 2020-05-07 09:07:15 +02:00
firewire ALSA: firewire-motu: fulfill missing entries in Kconfig 2020-05-11 09:12:06 +02:00
hda ALSA: hda: Fix potential race in unsol event handler 2020-05-16 08:27:11 +02:00
i2c
isa ALSA: isa/wavefront: prevent out of bounds write in ioctl 2020-05-01 12:25:49 +02:00
mips ALSA: sgio2audio: Remove usage of dropped hw_params/hw_free functions 2020-03-06 12:06:41 +01:00
oss .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
parisc sound updates for 5.6-rc1 2020-01-28 16:26:57 -08:00
pci ALSA: hda: Use hdac_to_hda_codec macro 2020-05-05 08:59:02 +02:00
pcmcia
ppc ALSA: sound/ppc: Use bitwise instead of arithmetic operator for flags 2020-05-07 09:06:11 +02:00
sh
soc ALSA: hda: Use hdac_to_hda_codec macro 2020-05-05 08:59:02 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Add duplex sound support for USB devices using implicit feedback 2020-05-15 19:14:29 +02:00
x86 sound updates for 5.6-rc1 2020-01-28 16:26:57 -08:00
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c