summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorLijo Lazar <lijo.lazar@amd.com>2025-03-26 10:58:38 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-04-07 22:18:59 +0300
commit5df0d6addb7e9b6f71f7162d1253762a5be9138e (patch)
tree9e69991b1528d75061678eaa103174af4f22783f /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdaafa303d19f5522e4c24fbf5c1c981a16df2c2f (diff)
downloadlinux-5df0d6addb7e9b6f71f7162d1253762a5be9138e.tar.xz
drm/amdgpu: Add basic validation for RAS header
If RAS header read from EEPROM is corrupted, it could result in trying to allocate huge memory for reading the records. Add some validation to header fields. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions