Re: [PATCH 0/2] ASoC: qcom: qdsp6: bound the compress ring by the DMA buffer

From: Mark Brown

Date: Thu Nov 19 2026 - 08:47:47 EST


On Wed, 11 Nov 2026 09:06:22 +0100, Julius Bairaktaris wrote:
> ASoC: qcom: qdsp6: bound the compress ring by the DMA buffer
>
> q6apm-dai and q6asm-dai allocate a fixed 8 MiB DMA buffer when a
> compress stream opens and take the ring geometry from
> SNDRV_COMPRESS_SET_PARAMS without comparing it to that buffer. Their
> copy callbacks place each write() at the stream position modulo the
> ring size, so a user who can open the compress node and asks for a
> larger ring makes write() copy data of their choice past the buffer.
> Each patch rejects such a ring in set_params.
>
> [...]

Applied to

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

Thanks!

[1/2] ASoC: qcom: q6apm-dai: reject compress rings larger than the DMA buffer
https://git.kernel.org/broonie/sound/c/3857bc06e5a4
[2/2] ASoC: qcom: q6asm-dai: reject compress rings larger than the DMA buffer
https://git.kernel.org/broonie/sound/c/4c15e549b7ad

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