]> Git Repo - J-linux.git/commitdiff
drm/amdgpu/mes: fix use-after-free issue
authorJack Xiao <[email protected]>
Mon, 22 Apr 2024 08:22:54 +0000 (16:22 +0800)
committerAlex Deucher <[email protected]>
Wed, 24 Apr 2024 03:23:46 +0000 (23:23 -0400)
Delete fence fallback timer to fix the ramdom
use-after-free issue.

v2: move to amdgpu_mes.c

Signed-off-by: Jack Xiao <[email protected]>
Acked-by: Lijo Lazar <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c

index a00cf4756ad0e2f371742e760183882773a80243..1569bef030eac166ea6194427ca9c8489cc62796 100644 (file)
@@ -1132,6 +1132,7 @@ void amdgpu_mes_remove_ring(struct amdgpu_device *adev,
                return;
 
        amdgpu_mes_remove_hw_queue(adev, ring->hw_queue_id);
+       del_timer_sync(&ring->fence_drv.fallback_timer);
        amdgpu_ring_fini(ring);
        kfree(ring);
 }
This page took 0.060484 seconds and 4 git commands to generate.