Re: [PATCH 1/3] drm/etnaviv: don't trigger OOM killer when page allocation fails

2017-06-26 Thread Michal Hocko
On Tue 20-06-17 11:25:24, Daniel Vetter wrote: > On Tue, Jun 20, 2017 at 11:22:06AM +0200, Lucas Stach wrote: > > Am Dienstag, den 20.06.2017, 11:06 +0200 schrieb Daniel Vetter: > > > On Tue, Jun 06, 2017 at 09:17:06AM +0200, Lucas Stach wrote: > > > > GPU buffers can be quite large, so userspace i

Re: [PATCH 1/3] drm/etnaviv: don't trigger OOM killer when page allocation fails

2017-06-25 Thread Lucas Stach
Am Montag, den 26.06.2017, 07:52 +0200 schrieb Michal Hocko: > On Tue 20-06-17 11:25:24, Daniel Vetter wrote: > > On Tue, Jun 20, 2017 at 11:22:06AM +0200, Lucas Stach wrote: > > > Am Dienstag, den 20.06.2017, 11:06 +0200 schrieb Daniel Vetter: > > > > On Tue, Jun 06, 2017 at 09:17:06AM +0200, Luca

Re: [PATCH 1/3] drm/etnaviv: don't trigger OOM killer when page allocation fails

2017-06-20 Thread Daniel Vetter
On Tue, Jun 20, 2017 at 11:22:06AM +0200, Lucas Stach wrote: > Am Dienstag, den 20.06.2017, 11:06 +0200 schrieb Daniel Vetter: > > On Tue, Jun 06, 2017 at 09:17:06AM +0200, Lucas Stach wrote: > > > GPU buffers can be quite large, so userspace is expected to deal with > > > allocation failure. Don't

Re: [PATCH 1/3] drm/etnaviv: don't trigger OOM killer when page allocation fails

2017-06-20 Thread Lucas Stach
Am Dienstag, den 20.06.2017, 11:06 +0200 schrieb Daniel Vetter: > On Tue, Jun 06, 2017 at 09:17:06AM +0200, Lucas Stach wrote: > > 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

Re: [PATCH 1/3] drm/etnaviv: don't trigger OOM killer when page allocation fails

2017-06-20 Thread Daniel Vetter
On Tue, Jun 06, 2017 at 09:17:06AM +0200, Lucas Stach wrote: > 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

[PATCH 1/3] drm/etnaviv: don't trigger OOM killer when page allocation fails

2017-06-06 Thread Lucas Stach
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