diff options
| author | Nikita Zhandarovich <[email protected]> | 2023-11-29 15:22:30 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-11-30 23:26:31 +0000 |
| commit | 39c960bbf9d9ea862398759e75736cfb68c3446f (patch) | |
| tree | 42a0b0bb1fbc5732b172954c443052d94638823d /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
| parent | drm/amdgpu: enable mca debug mode on APU by default (diff) | |
| download | kernel-39c960bbf9d9ea862398759e75736cfb68c3446f.tar.gz kernel-39c960bbf9d9ea862398759e75736cfb68c3446f.zip | |
drm/radeon/r600_cs: Fix possible int overflows in r600_cs_check_reg()
While improbable, there may be a chance of hitting integer
overflow when the result of radeon_get_ib_value() gets shifted
left.
Avoid it by casting one of the operands to larger data type (u64).
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: 1729dd33d20b ("drm/radeon/kms: r600 CS parser fixes")
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
