Re: [PATCH v2 0/2] ASoC: amd: Fix borrowed ACPI codec device references
From: Mark Brown
Date: Mon Sep 28 2026 - 14:55:15 EST
On Wed, 23 Sep 2026 02:50:55 +0800, Yibo Tan wrote:
> ASoC: amd: Fix borrowed ACPI codec device references
>
> Two AMD machine drivers treat a borrowed ACPI physical device pointer as an
> owned reference. The ES8336 driver drops it on a GPIO lookup failure; the
> ACP3x driver drops it on an allocation failure and also stores it beyond
> probe. Both paths produced a KASAN use-after-free during device unregister
> in focused tests calling the production callbacks. The corresponding fixed
> tests reached the same failure paths without a kernel diagnostic.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4
Thanks!
[1/2] ASoC: amd: acp-es8336: Use an owned codec device reference
https://git.kernel.org/broonie/sound/c/c257e3bcb36f
[2/2] ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
https://git.kernel.org/broonie/sound/c/095025078dc3
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark