summaryrefslogtreecommitdiff
path: root/rust/zerocopy/rustdoc/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorXiaogang Chen <xiaogang.chen@amd.com>2026-06-16 13:25:56 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-06-17 18:24:53 -0400
commit2321831d7e95d4e1abaff3ffd682be9dd45db62e (patch)
treec63a3b7226c368af754eda39d12e70597c2b163f /rust/zerocopy/rustdoc/git@git.tavy.me:linux.git
parent516bf737a5602875f6c28d1028967837c8edf2c0 (diff)
drm/amdkfd: Use memdup_array_user to copy data from/to user space at kfd ioctls
Several kfd ioctls need transfer array data from/to user space. Kfd driver uses kmalloc_array with user provided size. That can oversize alloc or 32-bit wrap with hostile value. Replace it by memdup_array_user that does overflow checking and allocates through dedicated slab caches, also physical continuous as kmalloc. Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 4eca4742eb215951f9739ffe0122d179d545a7a4)
Diffstat (limited to 'rust/zerocopy/rustdoc/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions