2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/sound/soc/sof/intel
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
..
apl.c ALSA/ASoC: Intel: clarify Copyright information 2024-05-07 10:37:51 +09:00
atom.c ASoC: SOF: Intel: Use str_yes_no() helper in atom_dump() 2025-01-06 13:08:33 +00:00
atom.h ASoC: SOF: Intel: clarify Copyright information 2024-05-06 23:59:35 +09:00
bdw.c ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:55 +00:00
byt.c ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:55 +00:00
cnl.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ext_manifest.h ASoC: SOF: Intel: clarify Copyright information 2024-05-06 23:59:35 +09:00
hda-bus.c ASoC: SOF: Intel: hda-bus: Use PIO mode on ACE2+ platforms 2025-05-09 18:20:14 +09:00
hda-codec.c ASoC: SOF: Intel: hda: add softdep pre to snd-hda-codec-hdmi module 2025-02-06 11:33:49 +00:00
hda-common-ops.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-ctrl.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-dai-ops.c ASoC: SOF: Intel: hda: Always clean up link DMA during stop 2024-10-17 12:11:20 +01:00
hda-dai.c ASoC: SOF: Intel: hda-dai: Remove unnecessary bool conversion 2025-03-03 13:00:03 +00:00
hda-dsp.c ASoC: SOF: hda/ptl: Move mic privacy change notification sending to a work 2025-03-31 12:51:55 +01:00
hda-ipc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-ipc.h ASoC: SOF: Intel: clarify Copyright information 2024-05-06 23:59:35 +09:00
hda-loader-skl.c ASoC: SOF: Intel: clarify Copyright information 2024-05-06 23:59:35 +09:00
hda-loader.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-mlink.c ASoC: SOF: Intel: hda-mlink: Add support for mic privacy in VS SHIM registers 2025-03-08 16:06:41 +00:00
hda-pcm.c ASoC: SOF: Intel: hda-pcm: Follow the pause_supported flag to drop PAUSE support 2024-12-13 13:10:30 +00:00
hda-probes.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-sdw-bpt.c ASoC: SOF: Intel: hda-sdw-bpt: add CHAIN_DMA support 2025-03-10 12:31:19 +05:30
hda-stream.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-trace.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda.c ASoC: SOF: Intel: hda: Use devm_kstrdup() to avoid memleak. 2025-06-24 16:39:42 +01:00
hda.h ASoC: SOF: Intel: add initial support for WCL 2025-05-19 22:40:03 +02:00
icl.c ALSA/ASoC: Intel: clarify Copyright information 2024-05-07 10:37:51 +09:00
Kconfig ASoC: SOF: Intel: Let SND_SOF_SOF_HDA_SDW_BPT select SND_HDA_EXT_CORE 2025-03-31 12:27:26 +05:30
lnl.c ASoC: SOF: Intel: Create ptl.c as placeholder for Panther Lake features 2025-03-08 16:06:39 +00:00
lnl.h ASoC: SOF: Intel: Create ptl.c as placeholder for Panther Lake features 2025-03-08 16:06:39 +00:00
Makefile soundwire updates for 6.15 2025-04-01 12:43:13 -07:00
mtl.c ASoC: SOF: Intel: mtl: Stop exporting dsp_ops callback functions 2025-03-08 16:06:38 +00:00
mtl.h ASoC: SOF: Intel: mtl: Stop exporting dsp_ops callback functions 2025-03-08 16:06:38 +00:00
pci-apl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-cnl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-icl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-lnl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-mtl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-ptl.c ASoC: SOF: Intel: add initial support for WCL 2025-05-19 22:40:03 +02:00
pci-skl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-tgl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-tng.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
ptl.c ASoC: SOF: Intel: add initial support for WCL 2025-05-19 22:40:03 +02:00
ptl.h ASoC: SOF: Intel: ptl: Add support for mic privacy 2025-03-08 16:06:43 +00:00
shim.h ASoC: SOF: hda/shim: Add callbacks to handle mic privacy change for sdw 2025-03-08 16:06:42 +00:00
skl.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
telemetry.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
telemetry.h ASoC: SOF: Intel: clarify Copyright information 2024-05-06 23:59:35 +09:00
tgl.c ALSA/ASoC: Intel: clarify Copyright information 2024-05-07 10:37:51 +09:00
tracepoints.c ASoC: SOF: Intel: move hda.c to different module 2024-05-05 23:45:48 +09:00