commit | 004f8ac8393bcda1358506f81225e12d9254698d | [log] [tgz] |
---|---|---|
author | Soumya Managoli <quic_c_smanag@quicinc.com> | Fri Jan 06 14:37:20 2023 +0530 |
committer | Alexander Martinz <alex@amartinz.at> | Wed Oct 25 07:55:06 2023 +0200 |
tree | b2981cc1cf83a4b9bb22ccf2954bd6a52ff97133 | |
parent | 242ce7d39fedd0c48c3874085a26a9e6a2862e77 [diff] |
ASoC: msm-pcm-q6-v2: Add dsp buf check Current logic copies user buf size of data from the avail dsp buf at a given offset. If this offset returned from DSP in READ_DONE event goes out of bounds or is corrupted, then it can lead to out of bounds DSP buffer access, resulting in memory fault. Fix is to add check for this buf offset, if it is within the buf size range. Change-Id: I7753cc6db394704dbb959477150141d42b836bef Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>