[PATCH 0/2] ASoC: topology: fix use-after-free when removing components

Mark Brown broonie at kernel.org
Mon Jun 15 17:05:30 CEST 2020


On Fri, 12 Jun 2020 15:59:36 -0500, Pierre-Louis Bossart wrote:
> This patchset fixes a memory allocation issue and removes a 100%
> reproducible use-after-free report thrown by KASAN in automated module
> removal tests across multiple platforms.
> 
> All the credit goes to Bard Liao for root-causing the issue. DAIs may
> be registered at the same time as a component, or when the topology is
> loaded. This two-step registration causes the memory for
> topology-based DAIs to allocated last, and conversely to be released
> first by devres, before the component is released and the DAIs removed
> from the component DAI list with snd_soc_unregister_dais().
> 
> [...]

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] ASoC: soc-devres: add devm_snd_soc_register_dai()
      commit: 0fae253af563cf5d1f5dc651d520c3eafd74f183
[2/2] ASoC: soc-topology: use devm_snd_soc_register_dai()
      commit: 6ae4902f2f3400503f9b78e87e8371e4ffde1e0c

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


More information about the Alsa-devel mailing list