diff options
| author | Evgeny Pimenov <[email protected]> | 2025-04-01 20:40:58 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-04-06 22:18:17 +0000 |
| commit | a31a4934b31faea76e735bab17e63d02fcd8e029 (patch) | |
| tree | 28495491d3843d7d21ab550f8e972c5a0c42d9f2 /drivers/fpga/tests | |
| parent | ASoC: dwc: always enable/disable i2s irqs (diff) | |
| download | kernel-a31a4934b31faea76e735bab17e63d02fcd8e029.tar.gz kernel-a31a4934b31faea76e735bab17e63d02fcd8e029.zip | |
ASoC: qcom: Fix sc7280 lpass potential buffer overflow
Case values introduced in commit
5f78e1fb7a3e ("ASoC: qcom: Add driver support for audioreach solution")
cause out of bounds access in arrays of sc7280 driver data (e.g. in case
of RX_CODEC_DMA_RX_0 in sc7280_snd_hw_params()).
Redefine LPASS_MAX_PORTS to consider the maximum possible port id for
q6dsp as sc7280 driver utilizes some of those values.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 77d0ffef793d ("ASoC: qcom: Add macro for lpass DAI id's max limit")
Cc: [email protected] # v6.0+
Suggested-by: Mikhail Kobuk <[email protected]>
Suggested-by: Alexey Khoroshilov <[email protected]>
Signed-off-by: Evgeny Pimenov <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/tests')
0 files changed, 0 insertions, 0 deletions
