TencentOS-kernel/drivers/gpu/drm/amd
Xℹ Ruoyao bce6a0df5a drm/amdgpu: check alignment on CPU page for bo map
commit e3512fb67093fabdf27af303066627b921ee9bd8 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>
2021-05-20 16:06:50 +08:00
..
acp Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
amdgpu drm/amdgpu: check alignment on CPU page for bo map 2021-05-20 16:06:50 +08:00
amdkfd drm/amdkfd: Fix leak in dmabuf import 2021-03-16 16:43:21 +08:00
display drm/amd/display: Revert dram_clock_change_latency for DCN2.1 2021-04-12 12:53:24 +08:00
include Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
powerplay drm/amd/pm: do not use ixFEATURE_STATUS for checking smc running 2021-03-16 16:40:43 +08:00