Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vmwgfx: Support the NOP_ERROR command

Can be used by user-space applications to test and verify the kernel
command buffer error recovery functionality.

Malicious user-space apps could potentially use this command to slow down
graphics processing somewhat, but they could also accomplish the same thing
using a random malformed command so this should be considered safe.
At least as safe as it gets.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>

authored by

Thomas Hellstrom and committed by
Sinclair Yeh
5f55be5f 65b97a2b

+2
+2
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
··· 3303 3303 true, false, true), 3304 3304 VMW_CMD_DEF(SVGA_3D_CMD_NOP, &vmw_cmd_ok, 3305 3305 true, false, true), 3306 + VMW_CMD_DEF(SVGA_3D_CMD_NOP_ERROR, &vmw_cmd_ok, 3307 + true, false, true), 3306 3308 VMW_CMD_DEF(SVGA_3D_CMD_ENABLE_GART, &vmw_cmd_invalid, 3307 3309 false, false, true), 3308 3310 VMW_CMD_DEF(SVGA_3D_CMD_DISABLE_GART, &vmw_cmd_invalid,