Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420899

Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully

From Michal Hocko <mhocko@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully
Date 2016-06-13 16:20 +0200
Message-ID <rJASC-7p1-31@gated-at.bofh.it> (permalink)
References <rI6MV-5RF-3@gated-at.bofh.it> <rJye5-5AU-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 13-06-16 13:23:48, Michal Hocko wrote:
> On Thu 09-06-16 13:52:07, Michal Hocko wrote:
> > I would like to explore ways how to remove kthreads (use_mm) special
> > case. It shouldn't be that hard, we just have to teach the page fault
> > handler to recognize oom victim mm and enforce EFAULT for kthreads
> > which have borrowed that mm.
> 
> So I was trying to come up with solution for this which would require to
> hook into the pagefault an enforce EFAULT when the mm is being reaped
> by the oom_repaer. Not hard but then I have checked the current users
> and none of them is really needing to read from the userspace (aka
> copy_from_user/get_user). So we actually do not need to do anything
> special.

As pointed out by Tetsuo [1] vhost does realy on copy_from_user. I just
missed that. So scratch this. I will revisit a potential solution for
this but that would be outside of this series scope.

[1] http://lkml.kernel.org/r/201606132252.IAE00593.OJQSFMtVFOLHOF@I-love.SAKURA.ne.jp
-- 
Michal Hocko
SUSE Labs

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully Michal Hocko <mhocko@kernel.org> - 2016-06-13 13:30 +0200
  Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully Michal Hocko <mhocko@kernel.org> - 2016-06-13 16:20 +0200
    Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully Oleg Nesterov <oleg@redhat.com> - 2016-06-14 22:20 +0200
      Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully Oleg Nesterov <oleg@redhat.com> - 2016-06-14 22:50 +0200
      Re: [PATCH 0/10 -v4] Handle oom bypass more gracefully Michal Hocko <mhocko@kernel.org> - 2016-06-16 08:40 +0200

csiph-web