]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: fix memory corruption with legacy/sou connectors
authorRob Clark <rclark@redhat.com>
Wed, 17 Jan 2018 15:16:20 +0000 (10:16 -0500)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 17 Jan 2018 15:27:45 +0000 (16:27 +0100)
commit82963a1303acac7dcce11c1032eb2cb3b86d89b5
tree96aa941a448dde50e732eb687cf39ecab6aee20c
parent4854f12d8bb126d46a646feea024833ab79a32c1
drm/vmwgfx: fix memory corruption with legacy/sou connectors

It looks like in all cases 'struct vmw_connector_state' is used.  But
only in stdu connectors, was atomic_{duplicate,destroy}_state() properly
subclassed.  Leading to writes beyond the end of the allocated connector
state block and all sorts of fun memory corruption related crashes.

Fixes: e60e4ca40434 "drm/vmwgfx: Connector atomic state"
Cc: <stable@vger.kernel.org>
Signed-off-by: Rob Clark <rclark@redhat.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c
drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c