linux_dsm_epyc7002/sound
Charles Keepax f4aa5e214e
ASoC: dapm: Move dai_link widgets to runtime to fix use after free
The newly added CODEC to CODEC DAI link widget pointers in
snd_soc_dai_link are better placed in snd_soc_pcm_runtime.
snd_soc_dai_link is really intended for static configuration of
the DAI, and the runtime for dynamic data.  The snd_soc_dai_link
structures are not destroyed if the card is unbound. The widgets
are cleared up on unbind, however if the card is rebound as the
snd_soc_dai_link structures are reused these pointers will be left at
their old values, causing access to freed memory.

Fixes: 595571cca4 ("ASoC: dapm: Fix regression introducing multiple copies of DAI widgets")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200526161930.30759-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2020-05-27 13:24:13 +01:00
..
ac97
aoa
arm
atmel
core sound fixes for 5.7-rc1 2020-04-10 12:27:06 -07:00
drivers
firewire
hda
i2c
isa
mips
oss
parisc
pci sound fixes for 5.7-rc1 2020-04-10 12:27:06 -07:00
pcmcia
ppc
sh
soc ASoC: dapm: Move dai_link widgets to runtime to fix use after free 2020-05-27 13:24:13 +01:00
sparc
spi
synth
usb ALSA: usb-audio: Add mixer workaround for TRX40 and co 2020-04-08 16:05:55 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c