aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2022-10-26 03:19:35 +0000
committerZack Rusin <[email protected]>2022-10-31 15:50:23 +0000
commit4cf949c7fafe21e085a4ee386bb2dade9067316e (patch)
tree934fb69424571c5eebf770ebe2efd4e24f9e4da2 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/rockchip: lvds: fix PM usage counter unbalance in poweron (diff)
downloadkernel-4cf949c7fafe21e085a4ee386bb2dade9067316e.tar.gz
kernel-4cf949c7fafe21e085a4ee386bb2dade9067316e.zip
drm/vmwgfx: Validate the box size for the snooped cursor
Invalid userspace dma surface copies could potentially overflow the memcpy from the surface to the snooped image leading to crashes. To fix it the dimensions of the copybox have to be validated against the expected size of the snooped cursor. Signed-off-by: Zack Rusin <[email protected]> Fixes: 2ac863719e51 ("vmwgfx: Snoop DMA transfers with non-covering sizes") Cc: <[email protected]> # v3.2+ Reviewed-by: Michael Banack <[email protected]> Reviewed-by: Martin Krastev <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions