linux/sound/soc
Danilo Krummrich 2b38efc05b driver core: platform: use generic driver_override infrastructure
When a driver is probed through __driver_attach(), the bus' match()
callback is called without the device lock held, thus accessing the
driver_override field without a lock, which can cause a UAF.

Fix this by using the driver-core driver_override infrastructure taking
care of proper locking internally.

Note that calling match() from __driver_attach() without the device lock
held is intentional. [1]

Link: https://lore.kernel.org/driver-core/DGRGTIRHA62X.3RY09D9SOK77P@kernel.org/ [1]
Reported-by: Gui-Dong Han <hanguidong02@gmail.com>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=220789
Fixes: 3d713e0e38 ("driver core: platform: add device binding path 'driver_override'")
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20260303115720.48783-5-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
2026-03-17 20:30:57 +01:00
..
adi
amd ASoC: amd: acp-mach-common: Add missing error check for clock acquisition 2026-03-11 19:18:17 +00:00
apple
atmel Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
au1x Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
bcm Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
cirrus
codecs ASoC: codecs: rt1011: Use component to get the dapm context in spk_mode_put 2026-03-10 19:32:56 +00:00
dwc
fsl ASoC: fsl_easrc: Fix event generation in fsl_easrc_iec958_set_reg() 2026-03-01 23:48:02 +00:00
generic ASoC: simple-card-utils: fix graph_util_is_ports0() for DT overlays 2026-03-10 01:02:43 +00:00
google
hisilicon
img
intel ASoC: Intel: sof_sdw: Add quirk for Alienware Area 51 (2025) 0CCD SKU 2026-03-01 23:48:09 +00:00
jz4740
kirkwood
loongson Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mediatek Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
meson Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
mxs ASoC: mxs-saif: support usage with simple-audio-card 2025-10-16 14:25:41 +01:00
pxa Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
qcom ASoC: qcom: qdsp6: Fix q6apm remove ordering during ADSP stop and start 2026-03-09 00:16:51 +00:00
renesas Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
rockchip ASoC: rockchip: i2s-tdm: Use param rate if not provided by set_sysclk 2026-02-19 11:45:49 +00:00
samsung driver core: platform: use generic driver_override infrastructure 2026-03-17 20:30:57 +01:00
sdca ASoC: SDCA: Add allocation failure check for Entity name 2026-03-03 14:23:32 +00:00
sdw_utils ASoC: sdw_utils: Add quirk to ignore RT722 DMIC DAI 2026-01-26 21:22:47 +00:00
sof Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
sophgo ASoC: sophgo: fix 64-bit division build failure 2026-02-02 12:09:35 +00:00
spacemit ASoC: spacemit: fix incorrect error check for sspa clock 2025-11-07 19:49:45 +00:00
spear
sprd Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
starfive
sti
stm ASoC: stm32: sai: fix device and OF node leaks on 2025-11-26 22:56:01 +00:00
sunxi ASoC: sunxi: sun50i-dmic: Add missing check for devm_regmap_init_mmio 2026-01-27 12:46:04 +00:00
tegra ASoC: tegra: Add support for Tegra238 soundcard 2026-03-09 14:17:50 +00:00
ti ASoC: ti: davinci-mcasp: Add asynchronous mode support 2026-02-04 18:21:52 +00:00
uniphier ASoC: uniphier: use snd_kcontrol_chip() instead of snd_soc_kcontrol_component() 2025-10-20 02:44:30 +01:00
ux500 ASoC: ux500: mop500_ab8500: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:48 +00:00
xilinx Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
xtensa
Kconfig ASoC: sophgo: add CV1800B I2S/TDM controller driver 2026-01-27 12:52:03 +00:00
Makefile ASoC: sophgo: add CV1800B I2S/TDM controller driver 2026-01-27 12:52:03 +00:00
soc-ac97.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-acpi.c
soc-card-test.c
soc-card.c
soc-component.c ASoC: soc-component: remove snd_soc_component_xxx() wrapper 2026-01-26 11:44:41 +00:00
soc-compress.c
soc-core.c ASoC: detect empty DMI strings 2026-03-11 15:28:35 +00:00
soc-dai.c ASoC: soc-core: check ops & auto_selectable_formats in snd_soc_dai_get_fmt() to prevent dereference error 2025-10-30 14:32:19 +00:00
soc-dapm.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
soc-devres.c
soc-generic-dmaengine-pcm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-jack.c ASoC: soc-jack: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:30 +00:00
soc-link.c
soc-ops-test.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-ops.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-pcm.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-topology-test.c
soc-topology.c ASoC: soc-topology: convert to snd_soc_dapm_xxx() 2025-11-17 00:18:32 +00:00
soc-usb.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
soc-utils-test.c
soc-utils.c