diff options
| author | Jaroslav Kysela <[email protected]> | 2025-05-23 15:41:51 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2025-05-26 10:33:52 +0000 |
| commit | f4ba2ea57da51d616b689c4b8826c517ff5a8523 (patch) | |
| tree | c6cd9ebf77fe5ff33d3c0051291dca8126ac5123 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | firmware: cs_dsp: Fix OOB memory read access in KUnit test (wmfw info) (diff) | |
| download | kernel-f4ba2ea57da51d616b689c4b8826c517ff5a8523.tar.gz kernel-f4ba2ea57da51d616b689c4b8826c517ff5a8523.zip | |
firmware: cs_dsp: Fix OOB memory read access in KUnit test (ctl cache)
KASAN reported out of bounds access - cs_dsp_ctl_cache_init_multiple_offsets().
The code uses mock_coeff_template.length_bytes (4 bytes) for register value
allocations. But later, this length is set to 8 bytes which causes
test code failures.
As fix, just remove the lenght override, keeping the original value 4
for all operations.
Cc: Simon Trimmer <[email protected]>
Cc: Charles Keepax <[email protected]>
Cc: Richard Fitzgerald <[email protected]>
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Jaroslav Kysela <[email protected]>
Reviewed-by: Richard Fitzgerald <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
