diff options
| author | 2026-10-08 12:09:35 +0200 | |
|---|---|---|
| committer | 2026-10-09 21:59:16 +0100 | |
| commit | 7764289d76a38c3a2f9b093bf17e193ab54acd70 (patch) | |
| tree | 89e449b59018f22529b55f188415931964e9637e /scripts/Makefile.thinlto | |
| parent | gpu: buddy: Drop the stale @p line from the gpu_buddy_print() kernel-doc (diff) | |
drm/panthor: Fix TOCTOU race between GROUP_REGISTERED check and erase
panthor_group_destroy() checks the GROUP_REGISTERED mark and then calls
xa_erase() without holding the xarray lock across both. If the handle is
destroyed by another thread in between, and a concurrent GROUP_CREATE
reuses the freed ID, the first destroy erases and releases the new,
still-initializing group, leading to a use-after-free in
panthor_group_create().
Do the mark check and erase atomically under xa_lock().
Fixes: eec7e23d848d ("drm/panthor: Prevent potential UAF in group creation")
Assisted-by: Claude:claude-opus-5.5
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Cc: stable@vger.kernel.org
Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20261008100935.3059587-1-osama.abdelkader@gmail.com
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
