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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:38:32 +0000 (12:38 +0200)
commited528923541afc1228c5a66e98845148aca51e24
tree16be59d4d03d3e1c575b9fa095d53dc865ad3b55
parent8f8ee9706b0a64a3506b9d9789ace7c44f3d817d
drm/vmwgfx: Type-check lookups of fence objects

commit f7652afa8eadb416b23eb57dec6f158529942041 upstream.

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.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c