Re: [PATCH v2 2/2] drm/panthor: Avoid sleep locking in the internal BO size path

2025-02-24 Thread Boris Brezillon
Hi Adrian, On Thu, 20 Feb 2025 20:26:23 + Adrián Larumbe wrote: > Hi Boris, > > On 15.02.2025 10:44, Boris Brezillon wrote: > > On Fri, 14 Feb 2025 20:55:21 + > > Adrián Larumbe wrote: > > > > > Commit 434e5ca5b5d7 ("drm/panthor: Expose size of driver internal BO's > > > over > > >

Re: [PATCH v2 2/2] drm/panthor: Avoid sleep locking in the internal BO size path

2025-02-20 Thread Adrián Larumbe
Hi Boris, On 15.02.2025 10:44, Boris Brezillon wrote: > On Fri, 14 Feb 2025 20:55:21 + > Adrián Larumbe wrote: > > > Commit 434e5ca5b5d7 ("drm/panthor: Expose size of driver internal BO's over > > fdinfo") locks the VMS xarray, to avoid UAF errors when the same VM is > > being concurrently de

Re: [PATCH v2 2/2] drm/panthor: Avoid sleep locking in the internal BO size path

2025-02-15 Thread Boris Brezillon
On Fri, 14 Feb 2025 20:55:21 + Adrián Larumbe wrote: > Commit 434e5ca5b5d7 ("drm/panthor: Expose size of driver internal BO's over > fdinfo") locks the VMS xarray, to avoid UAF errors when the same VM is > being concurrently destroyed by another thread. However, that puts the > current thread

[PATCH v2 2/2] drm/panthor: Avoid sleep locking in the internal BO size path

2025-02-14 Thread Adrián Larumbe
Commit 434e5ca5b5d7 ("drm/panthor: Expose size of driver internal BO's over fdinfo") locks the VMS xarray, to avoid UAF errors when the same VM is being concurrently destroyed by another thread. However, that puts the current thread in atomic context, which means taking the VMS' heap locks will tri