linux_dsm_epyc7002/drivers/gpu/drm/amd
Yu Zhao c4a32b266d drm/amdgpu: validate user GEM object size
When creating frame buffer, userspace may request to attach to a
previously allocated GEM object that is smaller than what GPU
requires. Validation must be done to prevent out-of-bound DMA,
otherwise it could be exploited to reveal sensitive data.

This fix is not done in a common code path because individual
driver might have different requirement.

Cc: stable@vger.kernel.org # v4.2+
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-01-08 16:26:50 -05:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amdgpu: validate user GEM object size 2019-01-08 16:26:50 -05:00
amdkfd drm/amdkfd: Fix handling of return code of dma_buf_get 2018-12-18 17:39:11 -05:00
display drm/amd/display: Fix MST dp_blank REG_WAIT timeout 2018-12-20 12:13:35 -05:00
include drm/amd/powerplay: support BOOTUP_DEFAULT power profile mode 2019-01-02 15:24:48 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amd/powerplay: drop the unnecessary uclk hard min setting 2019-01-08 16:26:34 -05:00