linux-yocto/sound/soc
Tamura Dai 6c038b58a2
ASoC: SOF: Intel: hda: Use devm_kstrdup() to avoid memleak.
sof_pdata->tplg_filename can have address allocated by kstrdup()
and can be overwritten. Memory leak was detected with kmemleak:

unreferenced object 0xffff88812391ff60 (size 16):
  comm "kworker/4:1", pid 161, jiffies 4294802931
  hex dump (first 16 bytes):
    73 6f 66 2d 68 64 61 2d 67 65 6e 65 72 69 63 00  sof-hda-generic.
  backtrace (crc 4bf1675c):
    __kmalloc_node_track_caller_noprof+0x49c/0x6b0
    kstrdup+0x46/0xc0
    hda_machine_select.cold+0x1de/0x12cf [snd_sof_intel_hda_generic]
    sof_init_environment+0x16f/0xb50 [snd_sof]
    sof_probe_continue+0x45/0x7c0 [snd_sof]
    sof_probe_work+0x1e/0x40 [snd_sof]
    process_one_work+0x894/0x14b0
    worker_thread+0x5e5/0xfb0
    kthread+0x39d/0x760
    ret_from_fork+0x31/0x70
    ret_from_fork_asm+0x1a/0x30

Signed-off-by: Tamura Dai <kirinode0@gmail.com>
Link: https://patch.msgid.link/20250615235548.8591-1-kirinode0@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2025-06-24 16:39:42 +01:00
..
adi
amd ASoC: amd: ps: fix for soundwire failures during hibernation exit sequence 2025-06-23 14:20:29 +01:00
apple ASoC: apple: mca: Drop default ARCH_APPLE in Kconfig 2025-06-13 12:12:26 +01:00
atmel
au1x
bcm
cirrus
codecs ASoC: rt721-sdca: fix boost gain calculation error 2025-06-24 13:55:18 +01:00
dwc
fsl treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
generic AsoC: Phase out hybrid PCI devres 2025-05-06 08:42:25 +09:00
google
hisilicon
img
intel ASoC: Intel: sof-function-topology-lib: Print out the unsupported dmic count 2025-06-19 15:44:42 +01:00
jz4740
kirkwood
loongson ASoC: loongson: Fix build warnings about export.h 2025-06-08 23:29:06 +01:00
mediatek Merge branch 'for-linus' into for-next 2025-05-22 20:34:24 +02:00
meson ASoC: meson: meson-card-utils: use of_property_present() for DT parsing 2025-04-24 12:56:15 +01:00
mxs
pxa
qcom ASoC: qcom: sm8250: Fix possibly undefined reference 2025-06-23 00:26:25 +01:00
renesas AsoC: Phase out hybrid PCI devres 2025-05-06 08:42:25 +09:00
rockchip ASoC: rockchip: add Serial Audio Interface (SAI) driver 2025-04-22 15:35:17 +01:00
samsung
sdca ASoC: SDCA: Create DAI drivers from DisCo 2025-05-20 11:15:40 +01:00
sdw_utils ASoC: sdw_utils: Fix potential NULL pointer deref in is_sdca_endpoint_present() 2025-06-10 12:46:16 +01:00
sof ASoC: SOF: Intel: hda: Use devm_kstrdup() to avoid memleak. 2025-06-24 16:39:42 +01:00
spear
sprd
starfive ASoC: starfive: Use max() to simplify code in jh7110_tdm_syncdiv() 2025-04-25 13:20:00 +01:00
sti
stm AsoC: Phase out hybrid PCI devres 2025-05-06 08:42:25 +09:00
sunxi
tegra ASoC: tegra: Tegra264 support in isomgr_bw 2025-05-22 11:02:12 +01:00
ti ASoC: ti: omap-hdmi: Re-add dai_link->platform to fix card init 2025-06-02 12:27:43 +01:00
uniphier
ux500
xilinx
xtensa
Kconfig
Makefile
soc-ac97.c
soc-acpi.c
soc-card-test.c
soc-card.c
soc-component.c
soc-compress.c
soc-core.c ASoC: soc-core: merge snd_soc_unregister_component() and snd_soc_unregister_component_by_driver() 2025-05-12 21:09:44 +09:00
soc-dai.c
soc-dapm.c ASoC: dapm: Add component level pin switches 2025-05-20 11:15:38 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c
soc-jack.c
soc-link.c
soc-ops-test.c
soc-ops.c
soc-pcm.c ASoC: pcm: Do not open FEs with no BEs connected 2025-06-02 12:27:42 +01:00
soc-topology-test.c
soc-topology.c
soc-usb.c
soc-utils-test.c
soc-utils.c ASoC: soc-utils: Check string pointer validity in snd_soc_dlc_is_dummy() 2025-05-16 13:18:15 +02:00