Commit 69e5f4ec authored by xinhui pan's avatar xinhui pan Committed by Guo Mengqi
Browse files

drm/amdgpu: validate the parameters of bo mapping operations more clearly

mainline inclusion
from mainline-v6.9-rc5
commit 6fef2d4c00b5b8561ad68dd2b68173f5c6af1e75
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9J3KG
CVE: CVE-2024-26922

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6fef2d4c00b5b8561ad68dd2b68173f5c6af1e75



--------------------------------

Verify the parameters of
amdgpu_vm_bo_(map/replace_map/clearing_mappings) in one common place.

Fixes: dc54d3d1 ("drm/amdgpu: implement AMDGPU_VA_OP_CLEAR v2")
Cc: stable@vger.kernel.org
Reported-by: default avatarVlad Stolyarov <hexed@google.com>
Suggested-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarxinhui pan <xinhui.pan@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGuo Mengqi <guomengqi3@huawei.com>
parent a36feeb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment