From: Thomas Hellstrom Date: Mon, 27 Mar 2017 09:09:08 +0000 (+0200) Subject: drm/vmwgfx: Type-check lookups of fence objects X-Git-Tag: v3.2.91~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b989fa8e683f024aafdce3fa8b77189b03b3935;p=pandora-kernel.git 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 Reviewed-by: Sinclair Yeh [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed