mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: mjaggi@caviumnetworks.com, linux-kernel@vger.kernel.org,
	linux-mm@kvack.org
Subject: Re: Possible race condition in oom-killer
Date: Tue, 1 Aug 2017 16:47:49 +0200	[thread overview]
Message-ID: <20170801144749.GA15780@dhcp22.suse.cz> (raw)
In-Reply-To: <201708012316.CFF21387.VMFtLFJHFOQOOS@I-love.SAKURA.ne.jp>

On Tue 01-08-17 23:16:13, Tetsuo Handa wrote:
> Michal Hocko wrote:
> >                       Once we merge [1] then the oom victim wouldn't
> > need to get TIF_MEMDIE to access memory reserves.
> > 
> > [1] http://lkml.kernel.org/r/20170727090357.3205-2-mhocko@kernel.org
> 
> False. We are not setting oom_mm to all thread groups (!CLONE_THREAD) sharing
> that mm (CLONE_VM). Thus, one thread from each thread group sharing that mm
> will have to call out_of_memory() in order to set oom_mm, and they will find
> task_will_free_mem() returning false due to MMF_OOM_SKIP already set, and
> after all goes to next OOM victim selection.

Once the patch is merged we can mark_oom_victim all of them as well.
-- 
Michal Hocko
SUSE Labs

  reply	other threads:[~2017-08-01 14:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-27  8:29 [PATCH] mm, oom: allow oom reaper to race with exit_mmap Manish Jaggi
2017-07-27  9:24 ` Michal Hocko
2017-07-28 11:52   ` Possible race condition in oom-killer Manish Jaggi
2017-07-28 12:32     ` Michal Hocko
2017-07-28 12:59       ` Tetsuo Handa
2017-07-28 13:07         ` Michal Hocko
2017-07-28 13:15           ` Tetsuo Handa
2017-07-28 13:29             ` Michal Hocko
2017-07-28 13:55               ` Tetsuo Handa
2017-07-28 14:07                 ` Michal Hocko
2017-07-29  4:31                   ` Tetsuo Handa
2017-08-01 12:14                     ` Michal Hocko
2017-08-01 14:16                       ` Tetsuo Handa
2017-08-01 14:47                         ` Michal Hocko [this message]
2017-08-01 10:46                   ` Tetsuo Handa
2017-08-01 11:30                     ` Michal Hocko
2017-07-28 13:15         ` Manish Jaggi
2017-07-28 13:50       ` Manish Jaggi
2017-07-28 14:12         ` Michal Hocko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170801144749.GA15780@dhcp22.suse.cz \
    --to=mhocko@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mjaggi@caviumnetworks.com \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®