]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/panthor: Fix race condition when gathering fdinfo group samples
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Thu, 30 Jan 2025 17:28:13 +0000 (17:28 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 7 Feb 2025 14:27:01 +0000 (15:27 +0100)
commit0590c94c3596d6c1a3d549ae611366f2ad4e1d8d
tree344d85cd4065163bebaa6e8190c7bfb078543112
parentf780ef56f72912e39bdf0596e13c01d8e450dcc9
drm/panthor: Fix race condition when gathering fdinfo group samples

Commit e16635d88fa0 ("drm/panthor: add DRM fdinfo support") failed to
protect access to groups with an xarray lock, which could lead to
use-after-free errors.

Fixes: e16635d88fa0 ("drm/panthor: add DRM fdinfo support")
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250130172851.941597-6-adrian.larumbe@collabora.com
Link: https://patchwork.freedesktop.org/patch/msgid/20250107173310.88329-1-florent.tomasin@arm.com
drivers/gpu/drm/panthor/panthor_sched.c