]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
etnaviv: fix gem object list corruption
authorLucas Stach <l.stach@pengutronix.de>
Mon, 11 Sep 2017 13:29:31 +0000 (15:29 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 12 Oct 2017 21:20:48 +0000 (16:20 -0500)
commitc43cbee0ebe7e9e888bca1ed4eb8fb20d962f930
treee43d12025ee104371dc2ed98e7cd1eccb2e1ab4d
parent9b522c3696c066054556fe4d3a1404adb915c59c
etnaviv: fix gem object list corruption

BugLink: http://bugs.launchpad.net/bugs/1721777
commit 518417525f3652c12fb5fad6da4ade66c0072fa3 upstream.

All manipulations of the gem_object list need to be protected by
the list mutex, as GEM objects can be created and freed in parallel.
This fixes a kernel memory corruption.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/gpu/drm/etnaviv/etnaviv_gem.c