drm/amdgpu/mes: fix use-after-free issue
Subsystems (2)
PATCH v2 1/1 drm/amdgpu/mes: fix use-after-free issue
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]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +1 -0
@@ -1128,6 +1128,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); }
Signature · 1 line
2.41.0
Quoted 6 lines · Jack Xiao
Delete fence fallback timer to fix the ramdom
use-after-free issue.v2: move to
amdgpu_mes.cSigned-off-by Jack Xiao <[email protected]>
Acked-by Lijo Lazar <[email protected]>
Thanks,
Lijo
Quoted 16 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +1
-0@@ -1128,6 +1128,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); }
Am 22.04.24 um 13:12 schrieb Lazar, Lijo:
Quoted 9 lines · Jack Xiao
Quoted 6 lines
Delete fence fallback timer to fix the ramdom
use-after-free issue.v2: move to
amdgpu_mes.cSigned-off-by Jack Xiao <[email protected]>Acked-by Lijo Lazar <[email protected]>
Acked-by Christian König <[email protected]>
Quoted 20 lines
Thanks,
LijoQuoted 16 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c +1
-0@@ -1128,6 +1128,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); }