summaryrefslogtreecommitdiff
path: root/scripts/include
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2026-02-24 09:43:09 +0300
committerAlex Deucher <alexander.deucher@amd.com>2026-02-26 00:47:17 +0300
commitfcec012c664247531aed3e662f4280ff804d1476 (patch)
treeec1d60e1ad6f97c44ef600870b02a2fb9adbac9c /scripts/include
parentbe267e15f99bc97cbe202cd556717797cdcf79a5 (diff)
downloadlinux-fcec012c664247531aed3e662f4280ff804d1476.tar.xz
drm/amdgpu: add upper bound check on user inputs in wait ioctl
Huge input values in amdgpu_userq_wait_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. v2: squash in Srini's fix 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>
Diffstat (limited to 'scripts/include')
0 files changed, 0 insertions, 0 deletions