Searched hist:"056484916 a131ebad65ee33048ec959f6186befc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/gpu/drm/radeon/ |
H A D | r100.c | diff 056484916a131ebad65ee33048ec959f6186befc Wed Nov 29 09:22:12 CST 2023 Nikita Zhandarovich <n.zhandarovich@fintech.ru> drm/radeon/r100: Fix integer overflow issues in r100_cs_track_check()
[ Upstream commit b5c5baa458faa5430c445acd9a17481274d77ccf ]
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 <n.zhandarovich@fintech.ru> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
|