Skip to content
Snippets Groups Projects
Commit 82926f52 authored by Matthew Brost's avatar Matthew Brost Committed by Lucas De Marchi
Browse files

drm/xe: Don't free job in TDR

Freeing job in TDR is not safe as TDR can pass the run_job thread
resulting in UAF. It is only safe for free job to naturally be called by
the scheduler. Rather free job in TDR, add to pending list.

Closes: drm/xe/kernel#2811


Cc: Matthew Auld <matthew.auld@intel.com>
Fixes: e275d61c ("drm/xe/guc: Handle timing out of signaled jobs gracefully")
Signed-off-by: default avatarMatthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241003001657.3517883-3-matthew.brost@intel.com


(cherry picked from commit ea2f6a77)
Signed-off-by: default avatarLucas De Marchi <lucas.demarchi@intel.com>
parent ed931fb4
No related branches found
No related tags found
No related merge requests found
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