diff options
| author | Matthew Auld <matthew.auld@intel.com> | 2025-07-31 10:38:11 +0100 |
|---|---|---|
| committer | Matthew Auld <matthew.auld@intel.com> | 2025-08-07 16:59:22 +0100 |
| commit | 9b7ca35ed28fe5fad86e9d9c24ebd1271e4c9c3e (patch) | |
| tree | 30a9d3ce7768c85035d49195e2cfad46082a757d /rust/helpers/xarray.c | |
| parent | 8c2d61e0e916e077fda7e7b8e67f25ffe0f361fc (diff) | |
drm/xe/migrate: prevent potential UAF
If we hit the error path, the previous fence (if there is one) has
already been put() prior to this, so doing a fence_wait could lead to
UAF. Tweak the flow to do to the put() until after we do the wait.
Fixes: 270172f64b11 ("drm/xe: Update xe_ttm_access_memory to use GPU for non-visible access")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Maciej Patelczyk <maciej.patelczyk@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://lore.kernel.org/r/20250731093807.207572-8-matthew.auld@intel.com
Diffstat (limited to 'rust/helpers/xarray.c')
0 files changed, 0 insertions, 0 deletions
