Skip to content
Snippets Groups Projects
Commit 5d623ffb authored by Nirmoy Das's avatar Nirmoy Das Committed by Greg Kroah-Hartman
Browse files

drm/xe/ufence: Prefetch ufence addr to catch bogus address

[ Upstream commit 9c1813b3 ]

access_ok() only checks for addr overflow so also try to read the addr
to catch invalid addr sent from userspace.

Link: drm/xe/kernel#1630


Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241016082304.66009-2-nirmoy.das@intel.com


Signed-off-by: default avatarNirmoy Das <nirmoy.das@intel.com>
(cherry picked from commit 9408c450)
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0e39f795
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment