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

2025-02-28 Thread Boris Brezillon
On Thu, 27 Feb 2025 23:16:26 + Adrián Larumbe wrote: > -static int panthor_alloc_heap_chunk(struct panthor_device *ptdev, > +static int panthor_alloc_heap_chunk(struct panthor_heap_pool *pool, > struct panthor_vm *vm, > struc

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

2025-02-27 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