aboutsummaryrefslogtreecommitdiff
path: root/drivers/pci/controller/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorYu Zhao <yuzhao@google.com>2019-01-07 15:51:15 -0700
committerAlex Deucher <alexander.deucher@amd.com>2019-01-08 16:26:50 -0500
commitc4a32b266da7bb702e60381ca0c35eaddbc89a6c (patch)
treeaf07926e4794a778ad656fdb277b230c08db6463 /drivers/pci/controller/dwc/pci-keystone.c
parent89f23b6efef554766177bf51aa754bce14c3e7da (diff)
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>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-keystone.c')
0 files changed, 0 insertions, 0 deletions