Files
android_kernel_xiaomi_sm8450/drivers/gpu/drm/amd/amdgpu
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
..
2018-10-24 20:04:03 -05:00
2018-12-21 15:28:43 -05:00
2018-11-29 10:34:03 +10:00
2017-10-20 13:28:44 -04:00
2018-11-05 15:49:37 -05:00
2018-11-29 10:34:03 +10:00
2018-08-28 11:22:42 -05:00
2016-08-31 15:21:09 -04:00
2018-11-05 15:49:37 -05:00
2018-12-14 12:04:38 -05:00