linux_dsm_epyc7002/drivers/gpu/drm/amd
Dan Carpenter ff30e9e850 drm/amdgpu: fix integer overflow test in amdgpu_bo_list_create()
We accidentally left out the size of the amdgpu_bo_list struct.  It
could lead to memory corruption on 32 bit systems.  You'd have to
pick the absolute maximum and set "num_entries == 59652323" then size
would wrap to 16 bytes.

Fixes: 920990cb08 ("drm/amdgpu: allocate the bo_list array after the list")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Bas Nieuwenhuizen <basni@chromium.org>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-08-27 11:10:42 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amdgpu: fix integer overflow test in amdgpu_bo_list_create() 2018-08-27 11:10:42 -05:00
amdkfd drm/amdkfd: Call kfd2kgd.set_compute_idle 2018-07-16 19:10:37 -04:00
display drm/amd/display: enable ABGR and XBGR formats (v4) 2018-08-27 11:10:18 -05:00
include drm/amdgpu: update atomfirmware.h 2018-08-27 11:10:23 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amd/pp: OverDrive gfx domain voltage on Tonga 2018-08-27 11:10:41 -05:00