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

2025-05-14 Thread Rob Clark
On Wed, May 14, 2025 at 7:58 AM Tvrtko Ursulin wrote: > > > On 14/05/2025 14:57, Rob Clark wrote: > > On Wed, May 14, 2025 at 3:01 AM Tvrtko Ursulin > > wrote: > >> > >> > >> On 13/05/2025 15:16, Rob Clark wrote: > >>> On Fri, May 9, 2025 at 8:34 AM Tvrtko Ursulin > >>> wrote: > > Dma

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

2025-05-14 Thread Tvrtko Ursulin
On 14/05/2025 14:57, Rob Clark wrote: On Wed, May 14, 2025 at 3:01 AM Tvrtko Ursulin wrote: On 13/05/2025 15:16, Rob Clark wrote: On Fri, May 9, 2025 at 8:34 AM Tvrtko Ursulin wrote: Dma-fence objects currently suffer from a potential use after free problem where fences exported to user

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

2025-05-14 Thread Rob Clark
On Wed, May 14, 2025 at 3:01 AM Tvrtko Ursulin wrote: > > > On 13/05/2025 15:16, Rob Clark wrote: > > On Fri, May 9, 2025 at 8:34 AM Tvrtko Ursulin > > wrote: > >> > >> Dma-fence objects currently suffer from a potential use after free problem > >> where fences exported to userspace and other dr

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

2025-05-14 Thread Tvrtko Ursulin
On 13/05/2025 15:16, Rob Clark wrote: On Fri, May 9, 2025 at 8:34 AM Tvrtko Ursulin wrote: 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

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

2025-05-13 Thread Rob Clark
On Fri, May 9, 2025 at 8:34 AM Tvrtko Ursulin wrote: > > 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 thi

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

2025-05-09 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