Re: [PATCH] drm/amdgpu: fix integer overflow test in amdgpu_bo_list_create()

2018-08-10 Thread Huang Rui
On Fri, Aug 10, 2018 at 06:50:32PM +0800, Dan Carpenter wrote: > 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.

Re: [PATCH] drm/amdgpu: fix integer overflow test in amdgpu_bo_list_create()

2018-08-10 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Fri, Aug 10, 2018 at 12:50 PM Dan Carpenter wrote: > > 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