]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1d1e1598ce1c2a3e9fb20d414ca9d0cfe22a8df
treeb96ae6140a414f7eb0577da2c6b20270ff3483f8
parentb411336e6cc265065dee3385d5b3df547695c48d
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