aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorPhilipp Stanner <[email protected]>2023-09-20 12:36:10 +0000
committerDave Airlie <[email protected]>2023-10-09 06:59:47 +0000
commit569c8d82f95eb5993c84fb61a649a9c4ddd208b3 (patch)
treed8dd6433d6d37349c737238eb5b9979d48371c32 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentstring.h: add array-wrappers for (v)memdup_user() (diff)
downloadkernel-569c8d82f95eb5993c84fb61a649a9c4ddd208b3.tar.gz
kernel-569c8d82f95eb5993c84fb61a649a9c4ddd208b3.zip
kernel: kexec: copy user-array safely
Currently, there is no overflow-check with memdup_user(). Use the new function memdup_array_user() instead of memdup_user() for duplicating the user-space array safely. Suggested-by: David Airlie <[email protected]> Signed-off-by: Philipp Stanner <[email protected]> Acked-by: Baoquan He <[email protected]> Reviewed-by: Kees Cook <[email protected]> Reviewed-by: Zack Rusin <[email protected]> Signed-off-by: Dave Airlie <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions