lkml.org 
[lkml]   [2022]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v8] oom_kill.c: futex: Don't OOM reap the VMA containing the robust_list_head
    Date
    On Fri, Apr 08 2022 at 10:15, Peter Zijlstra wrote:
    > On Thu, Apr 07, 2022 at 11:28:09PM -0400, Nico Pache wrote:
    >> Theoretically a failure can still occur if there are locks mapped as
    >> PRIVATE|ANON; however, the robust futexes are a best-effort approach.
    >> This patch only strengthens that best-effort.
    >>
    >> The following case can still fail:
    >> robust head (skipped) -> private lock (reaped) -> shared lock
    >> (skipped)
    >
    > This is still all sorts of confused.. it's a list head, the entries can
    > be in any random other VMA. You must not remove *any* user memory before
    > doing the robust thing. Not removing the VMA that contains the head is
    > pointless in the extreme.
    >
    > Did you not read the previous discussion?

    Aside of that we all agreed that giving a oom-killed task time to
    cleanup itself instead of brute force cleaning it up immediately, which
    is the real problem here. Can we fix that first before adding broken
    heuristics?

    Thanks,

    tglx


    \
     
     \ /
      Last update: 2022-04-08 10:38    [W:4.640 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site