]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe: Fix possible UAF in guc_exec_queue_process_msg
authorMatthew Brost <matthew.brost@intel.com>
Wed, 24 Jul 2024 16:43:41 +0000 (09:43 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 24 Jul 2024 20:41:01 +0000 (13:41 -0700)
commit1a394b4f504f33eac8c38b6f42ba025105c7e869
tree9d034727f78202a59f9eab453dca3c64d8d25ea9
parentb46119578167150810184494b2a097c40e2144b8
drm/xe: Fix possible UAF in guc_exec_queue_process_msg

Store xe_device ahead of processing message as message can be free'd in
some cases.

v2:
 - Including missing local changes
v3:
 - Resend for CI

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202407231445.rpisd1vA-lkp@intel.com/
Fixes: d930c19fdff3 ("drm/xe: Build PM into GuC CT layer")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240724164341.1848954-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c