]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amdgpu: fix out of bounds access in gfx11 during ip dump
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 2 Jul 2024 08:19:20 +0000 (13:49 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Jul 2024 22:07:16 +0000 (18:07 -0400)
commitea67deb03cc0b3f6e00b4aab87732672d73295b5
tree44b5f1d6869299d39dfea1bdf899c594819fc6ee
parent94845ea05758ae94cc305a7bf3d536cad40bf15c
drm/amdgpu: fix out of bounds access in gfx11 during ip dump

During ip dump in gfx11 the index variable is reused but is
not reinitialized to 0 and this causes the index calculation
to be wrong and access out of bound access.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c