FAILED: patch "[PATCH] drm/amd/amdgpu: validate the shadow BO." failed to apply to 4.9-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.9-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
1cd99a8d97c90e04d526d843f2be950f6e4e3bd2Mon Sep 17 00:00:00 2001
From: Alex Xie <[email protected]>
Date: Wed, 30 Nov 2016 17:19:40 -0500
Subject: [PATCH] drm/amd/amdgpu: validate the shadow BO.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Fixes a rare NULL pointer dereference in amdgpu_ttm_bind.
The issue was found by Nicolai Haehnle.
The patch was tested by Nicolai Haehnle.
Signed-off-by Alex Xie <[email protected]>
Reviewed-by Chunming Zhou <[email protected]>
Reviewed-by Christian König <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +1 -1
@@ -451,7 +451,7 @@ static int amdgpu_cs_validate(void *param, struct amdgpu_bo *bo)return r;if (bo->shadow) - r =amdgpu_cs_bo_validate (p, bo); + r =amdgpu_cs_bo_validate (p, bo->shadow);return r; }