drm/amdgpu: check alignment on CPU page for bo map
stable inclusion from stable-5.10.28 commit 8c71f5b309556503dbc8650637bcd1d2576b15f5 bugzilla: 51779 -------------------------------- commit e3512fb6 upstream. The page table of AMDGPU requires an alignment to CPU page so we should check ioctl parameters for it. Return -EINVAL if some parameter is unaligned to CPU page, instead of corrupt the page table sliently. Reviewed-by:Christian König <christian.koenig@amd.com> Signed-off-by:
Xi Ruoyao <xry111@mengyan1223.wang> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Chen Jun <chenjun102@huawei.com> Acked-by:
Weilong Chen <chenweilong@huawei.com> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment