diff options
| author | Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> | 2025-08-20 10:39:04 +0200 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2025-08-24 22:15:25 -0700 |
| commit | 8ae04fe9ffc93d6bc3bc63ac08375427d69cee06 (patch) | |
| tree | 59817e76b649c8b62628480589d8c86dd168a44b /rust/helpers/err.c | |
| parent | 13dda74a164b570d93d412e812dc80549506410f (diff) | |
drm/xe/xe_sync: avoid race during ufence signaling
Marking ufence as signalled after copy_to_user() is too late.
Worker thread which signals ufence by memory write might be raced
with another userspace vm-bind call. In map/unmap scenario unmap
may still see ufence is not signalled causing -EBUSY. Change the
order of marking / write to user-fence fixes this issue.
Fixes: 977e5b82e090 ("drm/xe: Expose user fence from xe_sync_entry")
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/5536
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250820083903.2109891-2-zbigniew.kempczynski@intel.com
Diffstat (limited to 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions
