diff options
| author | Mark Brown <broonie@kernel.org> | 2026-11-18 17:37:21 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-11-18 17:37:21 +0000 |
| commit | c07bf60ce5878dc3602d5271785589a7e5e1d1fa (patch) | |
| tree | b6d53cc72b404d011f62a6d082a5a3d5b1ab7ed2 /tools/perf/scripts/python | |
| parent | 34430741db6b166f5bce6363c93ca6825758db63 (diff) | |
| parent | 4c15e549b7ad03183d10826da91e9ddc207a02cd (diff) | |
ASoC: qcom: qdsp6: bound the compress ring by the DMA buffer
Julius Bairaktaris <julius@bairaktaris.de> says:
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.
I used Claude (Anthropic) to help write these patches.
Link: https://patch.msgid.link/20261111080624.244291-1-julius@bairaktaris.de
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
