]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: validate SVM ioctl nattr against buffer size
authorAlysa Liu <Alysa.Liu@amd.com>
Tue, 21 Apr 2026 14:18:28 +0000 (10:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 Apr 2026 14:58:16 +0000 (10:58 -0400)
commit5eca8bfdfa456c3304ca77523718fe24254c172f
treed37d71ed9ab1e4dbe453bf17b8e572218cd59df9
parent793aebf57db58f48230dd8878d60a80a5c49cb1e
drm/amdkfd: validate SVM ioctl nattr against buffer size

Validate nattr field against the buffer size, preventing
out-of-bounds buffer access via user-controlled attribute count.

Reviewed-by: Amir Shetaia <Amir.Shetaia@amd.com>
Signed-off-by: Alysa Liu <Alysa.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
drivers/gpu/drm/amd/amdkfd/kfd_priv.h