linux_dsm_epyc7002/sound/soc
Dragos Tarcatu 72b46612d0
ASoC: topology: Prevent use-after-free in snd_soc_get_pcm_runtime()
remove_link() is currently calling snd_soc_remove_pcm_runtime() after
it has already freed the memory for the link name. But this is later
read from snd_soc_get_pcm_runtime() causing a KASAN use-after-free
warning. Reorder the cleanups to fix this issue.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20191218000518.5830-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-12-18 20:00:05 +00:00
..
adi
amd ASoC: amd: Drop superfluous ioctl PCM ops 2019-12-11 15:55:28 +00:00
atmel ASoC: atmel: Drop superfluous ioctl PCM ops 2019-12-11 15:55:46 +00:00
au1x ASoC: au1x: Use managed buffer allocation 2019-12-11 16:43:18 +00:00
bcm ASoC: bcm: Drop superfluous ioctl PCM ops 2019-12-11 15:56:04 +00:00
cirrus
codecs ASoC: rt5677-spi: Use managed buffer allocation 2019-12-11 16:43:29 +00:00
dwc ASoC: dwc: Use managed buffer allocation 2019-12-11 16:43:19 +00:00
fsl ASoC: fsl: imx-audmix: use snd_soc_dai_link_component for codec_conf 2019-12-16 12:02:02 +00:00
generic ASoC: simple-card: Don't create separate link when platform is present 2019-12-10 13:10:40 +00:00
hisilicon
img
intel ASoC: Intel: boards: fix incorrect HDMI Kconfig dependency 2019-12-18 19:53:55 +00:00
jz4740
kirkwood ASoC: kirkwood: Drop superfluous ioctl PCM ops 2019-12-11 15:57:19 +00:00
mediatek ASoC: mediatek: mt8183-da7219-max98357: use snd_soc_dai_link_component for codec_conf 2019-12-16 12:02:32 +00:00
meson ASoC: meson: Use managed buffer allocation 2019-12-11 16:43:20 +00:00
mxs
pxa ASoC: pxa: Drop superfluous ioctl PCM ops 2019-12-11 15:58:04 +00:00
qcom ASoC: qcom: Drop superfluous ioctl PCM ops 2019-12-11 15:58:23 +00:00
rockchip
samsung ASoC: samsung: speyside: use snd_soc_dai_link_component for codec_conf 2019-12-16 12:02:48 +00:00
sh ASoC: sh: Drop superfluous ioctl PCM ops 2019-12-11 16:51:07 +00:00
sirf
sof ASoC: SOF: imx: Read SAI parameters and send them to DSP 2019-12-18 19:54:25 +00:00
spear
sprd ASoC: sprd: Drop superfluous ioctl PCM ops 2019-12-11 15:59:40 +00:00
sti
stm ASoC: stm32: Use managed buffer allocation 2019-12-11 16:43:23 +00:00
sunxi
tegra ASoC: soc-core: find rtd via dai_link pointer at snd_soc_get_pcm_runtime() 2019-12-10 13:15:21 +00:00
ti ASoC: ti: rx51: use snd_soc_dai_link_component for codec_conf 2019-12-16 12:02:52 +00:00
txx9 ASoC: txx9: Use managed buffer allocation 2019-12-11 16:43:24 +00:00
uniphier ASoC: uniphier: Drop superfluous ioctl PCM ops 2019-12-11 16:51:25 +00:00
ux500
xilinx ASoC: xilinx: Use managed buffer allocation 2019-12-11 16:43:25 +00:00
xtensa ASoC: xtensa: Use managed buffer allocation 2019-12-11 16:43:26 +00:00
zte
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-component.c
soc-compress.c ASoC: compress: Add pm_runtime support 2019-12-17 12:35:02 +00:00
soc-core.c ASoC: soc-core: remove legacy style of codec_conf 2019-12-16 12:02:56 +00:00
soc-dai.c
soc-dapm.c
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: generic-dmaengine-pcm: Use managed buffer allocation 2019-12-11 16:43:23 +00:00
soc-io.c
soc-jack.c
soc-ops.c
soc-pcm.c Merge branch 'for-5.5' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-5.6 2019-12-10 13:27:14 +00:00
soc-topology.c ASoC: topology: Prevent use-after-free in snd_soc_get_pcm_runtime() 2019-12-18 20:00:05 +00:00
soc-utils.c ASoC: utils: Drop superfluous ioctl PCM ops 2019-12-11 16:00:48 +00:00