]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: add upper bound check on user inputs in signal ioctl
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 20 Feb 2026 08:17:58 +0000 (13:47 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Feb 2026 21:29:26 +0000 (16:29 -0500)
commitbe267e15f99bc97cbe202cd556717797cdcf79a5
tree712535c17ff78f7a05d552bad24a1cf158eb6235
parent2de9353e193fd62dfa65c45890dd2f9c53f12527
drm/amdgpu: add upper bound check on user inputs in signal ioctl

Huge input values in amdgpu_userq_signal_ioctl can lead to a OOM and
could be exploited.

So check these input value against AMDGPU_USERQ_MAX_HANDLES
which is big enough value for genuine use cases and could
potentially avoid OOM.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c