Re: [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-14 Thread Christian König
Coming back to the original patch. Am 08.04.25 um 11:17 schrieb Denis Arefev: > The user can set any value to the variable ‘bo_number’, via the ioctl > command DRM_IOCTL_AMDGPU_BO_LIST. This will affect the arithmetic > expression ‘in->bo_number * in->bo_info_size’, which is prone to > overflow. A

Re: [PATCH] drm/amdgpu: check a user-provided number of BOs in list

2025-04-08 Thread Christian König
Am 08.04.25 um 11:17 schrieb Denis Arefev: > The user can set any value to the variable ‘bo_number’, via the ioctl > command DRM_IOCTL_AMDGPU_BO_LIST. This will affect the arithmetic > expression ‘in->bo_number * in->bo_info_size’, which is prone to > overflow. Add a valid value check. As far as I