Skip to content
Commit 0381ac3c authored by Xiaohui Zhang's avatar Xiaohui Zhang Committed by Alex Deucher
Browse files

drm/radeon: Initialize fences array entries in radeon_sa_bo_next_hole



Similar to the handling of amdgpu_sa_bo_next_hole in commit 6a15f3ff
("drm/amdgpu: Initialize fences array entries in amdgpu_sa_bo_next_hole"),
we thought a patch might be needed here as well.

The entries were only initialized once in radeon_sa_bo_new. If a fence
wasn't signalled yet in the first radeon_sa_bo_next_hole call, but then
got signalled before a later radeon_sa_bo_next_hole call, it could
destroy the fence but leave its pointer in the array, resulting in
use-after-free in radeon_sa_bo_new.

Signed-off-by: default avatarXiaohui Zhang <xiaohuizhang@ruc.edu.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 4e2d1044
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment