Re: [RFC v3 07/10] dma-fence: Add safe access helpers and document the rules

2025-05-14 Thread Tvrtko Ursulin
On 14/05/2025 14:50, Christian König wrote: I'm going to push patches #1-#6 to drm-misc-next. They make sense as a stand alone cleanups anyway. Holding off for now because the 64 bit seqno flag needs a build fix. I have it locally but was waiting for more feedback on the series. > But tha

Re: [RFC v3 07/10] dma-fence: Add safe access helpers and document the rules

2025-05-14 Thread Christian König
I'm going to push patches #1-#6 to drm-misc-next. They make sense as a stand alone cleanups anyway. But that here needs a bit more documentation I think. On 5/13/25 09:45, Tvrtko Ursulin wrote: > Dma-fence objects currently suffer from a potential use after free problem > where fences exported t

[RFC v3 07/10] dma-fence: Add safe access helpers and document the rules

2025-05-13 Thread Tvrtko Ursulin
Dma-fence objects currently suffer from a potential use after free problem where fences exported to userspace and other drivers can outlive the exporting driver, or the associated data structures. The discussion on how to address this concluded that adding reference counting to all the involved ob