]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Tighten security around surface sharing v2
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 19 Mar 2014 09:45:11 +0000 (10:45 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Mar 2014 13:19:03 +0000 (14:19 +0100)
commita55427fabe515b9daf1c3512216f0640b7cd83bf
tree8ead3c5e0a3bacf4ff5eb3f876a9e880aa4f9d58
parent3c938ba963d67b98cdf277dd1620d4109ea09f18
drm/vmwgfx: Tighten security around surface sharing v2

If using legacy (non-prime) surface sharing, only allow surfaces
to be shared between clients with the same master. This will block
malicious clients from peeking at contents at surfaces from other
(possibly vt-switched) masters.

v2:
s/legacy_client/primary_client/

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c