OSDN Git Service

drm/vmwgfx: Type-check lookups of fence objects
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 27 Mar 2017 09:09:08 +0000 (11:09 +0200)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 30 Mar 2017 09:42:54 +0000 (11:42 +0200)
commitf7652afa8eadb416b23eb57dec6f158529942041
treeb96ae6140a414f7eb0577da2c6b20270ff3483f8
parentd64a04720b0e64c1cd0726a3a27b360822fbee22
drm/vmwgfx: Type-check lookups of fence objects

A malicious caller could otherwise hand over handles to other objects
causing all sorts of interesting problems.

Testing done: Ran a Fedora 25 desktop using both Xorg and
gnome-shell/Wayland.

Cc: <stable@vger.kernel.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c