aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
diff options
context:
space:
mode:
authorYu Zhao <[email protected]>2019-01-07 22:51:15 +0000
committerAlex Deucher <[email protected]>2019-01-08 21:26:50 +0000
commitc4a32b266da7bb702e60381ca0c35eaddbc89a6c (patch)
treeaf07926e4794a778ad656fdb277b230c08db6463 /drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
parentdrm/amdgpu: validate user pitch alignment (diff)
downloadkernel-c4a32b266da7bb702e60381ca0c35eaddbc89a6c.tar.gz
kernel-c4a32b266da7bb702e60381ca0c35eaddbc89a6c.zip
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: [email protected] # v4.2+ Reviewed-by: Michel Dänzer <[email protected]> Signed-off-by: Yu Zhao <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c')
0 files changed, 0 insertions, 0 deletions