]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Use copy_from_user() instead of __copy_from_user()
authorHarish Chegondi <harish.chegondi@intel.com>
Thu, 1 May 2025 19:14:45 +0000 (12:14 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 7 May 2025 16:27:40 +0000 (09:27 -0700)
commitaef87a5fdb5117eafb498ac4fc25e9f26f630f45
tree88c43b27204c1a5f339d56a1492854febf7afbb9
parent12370bfcc4f0bdf70279ec5b570eb298963422b5
drm/xe: Use copy_from_user() instead of __copy_from_user()

copy_from_user() has more checks and is more safer than
__copy_from_user()

Suggested-by: Kees Cook <kees@kernel.org>
Signed-off-by: Harish Chegondi <harish.chegondi@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://lore.kernel.org/r/acabf20aa8621c7bc8de09b1bffb8d14b5376484.1746126614.git.harish.chegondi@intel.com
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_eu_stall.c
drivers/gpu/drm/xe/xe_exec.c
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_oa.c
drivers/gpu/drm/xe/xe_vm.c