Re: [PATCH v2 1/2] drm/panthor: Replace sleep locks with spinlocks in fdinfo path

2025-02-15 Thread Boris Brezillon
On Fri, 14 Feb 2025 20:55:20 + Adrián Larumbe wrote: > Commit 0590c94c3596 ("drm/panthor: Fix race condition when gathering fdinfo > group samples") introduced an xarray lock to deal with potential > use-after-free errors when accessing groups fdinfo figures. However, this > toggles the kerne

[PATCH v2 1/2] drm/panthor: Replace sleep locks with spinlocks in fdinfo path

2025-02-14 Thread Adrián Larumbe
Commit 0590c94c3596 ("drm/panthor: Fix race condition when gathering fdinfo group samples") introduced an xarray lock to deal with potential use-after-free errors when accessing groups fdinfo figures. However, this toggles the kernel's atomic context status, so the next nested mutex lock will raise