Re: [RFC v2 13/13] drm/xe: Make dma-fences compliant with the safe access rules

2025-05-12 Thread Matthew Brost
On Fri, May 09, 2025 at 04:33:52PM +0100, Tvrtko Ursulin wrote: > Xe can free some of the data pointed to by the dma-fences it exports. Most > notably the timeline name can get freed if userspace closes the associated > submit queue. At the same time the fence could have been exported to a > third

[RFC v2 13/13] drm/xe: Make dma-fences compliant with the safe access rules

2025-05-09 Thread Tvrtko Ursulin
Xe can free some of the data pointed to by the dma-fences it exports. Most notably the timeline name can get freed if userspace closes the associated submit queue. At the same time the fence could have been exported to a third party (for example a sync_fence fd) which will then cause an use- after-