Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/panthor: fix for dma-fence safe access rules

Commit 506aa8b02a8d6 ("dma-fence: Add safe access helpers and document
the rules") details the dma-fence safe access rules. The most common
culprit is that drm_sched_fence_get_timeline_name may race with
group_free_queue.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Cc: stable@vger.kernel.org # v6.17+
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251204174545.399059-1-olvaffe@gmail.com

authored by

Chia-I Wu and committed by
Steven Price
efe24898 97f41984

+4
+4
drivers/gpu/drm/panthor/panthor_sched.c
··· 23 23 #include <linux/module.h> 24 24 #include <linux/platform_device.h> 25 25 #include <linux/pm_runtime.h> 26 + #include <linux/rcupdate.h> 26 27 27 28 #include "panthor_devfreq.h" 28 29 #include "panthor_device.h" ··· 943 942 struct panthor_group, 944 943 release_work); 945 944 u32 i; 945 + 946 + /* dma-fences may still be accessing group->queues under rcu lock. */ 947 + synchronize_rcu(); 946 948 947 949 for (i = 0; i < group->queue_count; i++) 948 950 group_free_queue(group, group->queues[i]);