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


Groups > linux.kernel > #1615204

Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read()

From Greg KH <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read()
Date 2017-04-03 15:30 +0200
Message-ID <tsads-7pt-31@gated-at.bofh.it> (permalink)
References <tr907-7Ov-43@gated-at.bofh.it> <trayR-r5-5@gated-at.bofh.it> <trbXX-1rZ-7@gated-at.bofh.it> <trl1f-7rF-1@gated-at.bofh.it> <trDAR-2Oc-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Apr 01, 2017 at 07:34:53PM -0700, Doug Anderson wrote:
> Hi,
> 
> On Fri, Mar 31, 2017 at 11:48 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> > On Fri, Mar 31, 2017 at 02:00:13PM -0700, Doug Anderson wrote:
> >> On Fri, Mar 31, 2017 at 12:29 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> >> BTW: I presume that nobody has decided that it would be a wise idea to
> >> pick the OOM reaper code back to any stable trees?  It seemed a bit
> >> too scary to me, so I wrote a dumber (but easier to backport) solution
> >> that avoided the deadlocks I was seeing.  http://crosreview.com/465189
> >> and the 3 patches above it in case anyone else stumbles on this thread
> >> and is curious.
> >
> > What specific upstream OOM patches are you referring to?  I'm always
> > glad to review patches for stable kernels, just email
> > stable@vger.kernel.org the git commit ids and we can take it from there.
> 
> +stable
> 
> I was wondering about the concept of porting the OOM Reaper back to
> older kernels.  The OOM reaper was originally introduced in:
> 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/mm/oom_kill.c?id=aac453635549699c13a84ea1456d5b0e574ef855
> 
> Basically the problem described in that patch exists in many older
> kernels and I've certainly seen crashes related to this in 3.10, but I
> believe older kernels see the same problems too.
> 
> Personally I wouldn't know exactly which patches were important to
> backport and how far to go.  One could arbitrarily try to backport up
> to 4.6.7 (since 4.6 was the first kernel to really have the OOM
> reaper) and ignore all the reaper fixes that landed since then.  This
> would probably be doable for kernel 4.4, though if anyone was trying
> to support older kernels it might get harder.

Well, I would need someone to give me a list of commits, and actually
test it to see if it is something that people use/want before I can
queue anything up for a stable release...

{hint}

thanks,

greg k-h

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


Thread

[RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read() Douglas Anderson <dianders@chromium.org> - 2017-03-31 20:00 +0200
  Re: [RFC PATCH] binder: Don't require the binder lock when killed in  binder_thread_read() Greg KH <gregkh@linuxfoundation.org> - 2017-03-31 21:40 +0200
    Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read() Doug Anderson <dianders@chromium.org> - 2017-03-31 23:10 +0200
      Re: [RFC PATCH] binder: Don't require the binder lock when killed in  binder_thread_read() Greg KH <gregkh@linuxfoundation.org> - 2017-04-01 08:50 +0200
        Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read() Doug Anderson <dianders@chromium.org> - 2017-04-02 04:40 +0200
          Re: [RFC PATCH] binder: Don't require the binder lock when killed in  binder_thread_read() Greg KH <gregkh@linuxfoundation.org> - 2017-04-03 15:30 +0200
            Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read() Doug Anderson <dianders@chromium.org> - 2017-04-03 20:10 +0200
              Re: [RFC PATCH] binder: Don't require the binder lock when killed in  binder_thread_read() Michal Hocko <mhocko@kernel.org> - 2017-04-04 09:50 +0200
                Re: [RFC PATCH] binder: Don't require the binder lock when killed in binder_thread_read() Doug Anderson <dianders@chromium.org> - 2017-04-04 17:20 +0200
                Re: [RFC PATCH] binder: Don't require the binder lock when killed in  binder_thread_read() Michal Hocko <mhocko@kernel.org> - 2017-04-04 17:30 +0200
  Re: [RFC PATCH] binder: Don't require the binder lock when killed in  binder_thread_read() peter enderborg <peter.enderborg@sonymobile.com> - 2017-04-03 15:50 +0200

csiph-web