diff options
| author | Matthew Auld <[email protected]> | 2025-07-31 09:38:11 +0000 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2025-08-12 16:52:26 +0000 |
| commit | 145832fbdd17b1d77ffd6cdd1642259e101d1b7e (patch) | |
| tree | 9053782d81202832470a0602c0a56080a420f85c /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | |
| parent | drm/xe/migrate: don't overflow max copy size (diff) | |
| download | kernel-145832fbdd17b1d77ffd6cdd1642259e101d1b7e.tar.gz kernel-145832fbdd17b1d77ffd6cdd1642259e101d1b7e.zip | |
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 <[email protected]>
Cc: Maciej Patelczyk <[email protected]>
Cc: Matthew Brost <[email protected]>
Reviewed-by: Stuart Summers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit 9b7ca35ed28fe5fad86e9d9c24ebd1271e4c9c3e)
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions
