drm/etnaviv: don't trigger OOM killer when page allocation fails
authorLucas Stach <dev@lynxeye.de>
Tue, 6 Jun 2017 07:17:06 +0000 (09:17 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 3 Jul 2017 08:54:52 +0000 (10:54 +0200)
commit6cbf04001ec0eede72a43f297c93586971445128
tree255e93e717a0a14f05626a0ef8556de94df5e8ab
parent12d016626f99f48edbf5b006625b4e8c0de1eec7
drm/etnaviv: don't trigger OOM killer when page allocation fails

GPU buffers can be quite large, so userspace is expected to deal with
allocation failure. Don't trigger the OOM killer when page allocation for
the GEM objects fails, as this opens an easy possiblity for unprivileged
applications to DOS the system,a s the shmem pages are not fully accounted
to the allocating process.

Signed-off-by: Lucas Stach <dev@lynxeye.de>
drivers/gpu/drm/etnaviv/etnaviv_gem.c