aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorNikita Zhandarovich <[email protected]>2023-11-29 15:22:12 +0000
committerAlex Deucher <[email protected]>2023-11-30 23:26:31 +0000
commitb5c5baa458faa5430c445acd9a17481274d77ccf (patch)
tree33102ed467fe35f1be819119be7510c16aa4d5fd /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentdrm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg() (diff)
downloadkernel-b5c5baa458faa5430c445acd9a17481274d77ccf.tar.gz
kernel-b5c5baa458faa5430c445acd9a17481274d77ccf.zip
drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check()
It may be possible, albeit unlikely, to encounter integer overflow during the multiplication of several unsigned int variables, the result being assigned to a variable 'size' of wider type. Prevent this potential behaviour by converting one of the multiples to unsigned long. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE. Fixes: 0242f74d29df ("drm/radeon: clean up CS functions in r100.c") Signed-off-by: Nikita Zhandarovich <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions