diff options
author | Zack Rusin <[email protected]> | 2022-10-25 23:19:35 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2022-10-31 11:50:23 -0400 |
commit | 4cf949c7fafe21e085a4ee386bb2dade9067316e (patch) | |
tree | 934fb69424571c5eebf770ebe2efd4e24f9e4da2 /tools/perf/scripts/python/libxed.py | |
parent | 4dba27f1a14592ac4cf71c3bc1cc1fd05dea8015 (diff) |
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 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions