kernel-fxtec-pro1x/sound/hda
Takashi Iwai ac8196928f ALSA: hda: Fix potential race in unsol event handler
[ Upstream commit c637fa151259c0f74665fde7cba5b7eac1417ae5 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:44 +02:00
..
ext
array.c
hda_bus_type.c
hdac_bus.c ALSA: hda: Fix potential race in unsol event handler 2020-10-01 13:14:44 +02:00
hdac_component.c
hdac_controller.c
hdac_device.c ALSA: hda: fix a runtime pm issue in SOF when integrated GPU is disabled 2020-09-17 13:45:26 +02:00
hdac_i915.c
hdac_regmap.c
hdac_stream.c
hdac_sysfs.c
hdmi_chmap.c
Kconfig
local.h
Makefile
trace.c
trace.h