aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/scheduler
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-08-10 18:50:32 +0800
committerAlex Deucher <alexander.deucher@amd.com>2018-08-27 11:10:42 -0500
commitff30e9e8509cb877dc7cbc776b36c70f5bdd290f (patch)
treea890dbb842f5a75983309beac1dfc651309f6c03 /drivers/gpu/drm/scheduler
parentdrm/amd/pp: OverDrive gfx domain voltage on Tonga (diff)
downloadlinux-dev-ff30e9e8509cb877dc7cbc776b36c70f5bdd290f.tar.xz
linux-dev-ff30e9e8509cb877dc7cbc776b36c70f5bdd290f.zip
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: 920990cb080a ("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>
Diffstat (limited to 'drivers/gpu/drm/scheduler')
0 files changed, 0 insertions, 0 deletions