Received: by 10.192.165.148 with SMTP id m20csp22518imm; Thu, 19 Apr 2018 12:15:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+W0eOsnMsmfnmsBBgvQOZ6r5ewBk5Q4gj3eS39rtPx5xQqlTc2mVX4o9BCEp4eD7fAdPFz X-Received: by 10.101.96.47 with SMTP id p15mr6071395pgu.430.1524165342264; Thu, 19 Apr 2018 12:15:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524165342; cv=none; d=google.com; s=arc-20160816; b=DTI3Db7N3i3jtZ4KK+BOzK0jeWZdWSG8+HDM9DGCbB3UdEV4IysHDaHwN7j+ZQtZkC 7CR1H/lwtEa1A9Vzz/2ExCWBzPUGCWepqRKLLbbNiDqU/kKL2Gx28evIRCIAODR4erk8 p01ToENdTRmGgR61y9Bi4x88UZnEqPZzCKzYHbY0M5GLL4uYWmBGcQ9IWz5HfMsWR+z3 8JfjruZYrGCD6SmrsKrXWmiQ6PfDOSpdLkgF2d8JboJXe3scCAKNJQwu59sGM4XfcLpJ KMnMwuxJGw8WYuXDhM5BWQyD+PeT+RhPOQELZVbUTisQMw+/VvKeJNgmsCwXCk/caL4b fZWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=DUaDaWkbv7fZKY9YFjmr3w/AI9PMEV+sdL5qgr48bMw=; b=ErYxfrjFOZMx1+b50BZXRvmv1gdLTjGRqeRycuJ0E2kfubi6GSF2FD7gY/d5RgBV4P g/Y5be0h1InKRqJ7NENW8rrxxprxF5I8ANdVgbRyH2/F7WiDUMTLTZoJZJAFj+r11ISI hKOxoSr5O2slyLUKAiNZvAw1qdJnxWy308IUV8FdjCcpeJMPq6kXHOM9LziK9UwFab04 tlc6eIUgwAX4STIDm7h9u7HOFk3XyA+D1HYzfM/kM8W8ACqppEpmKO4sqwoqsISmUuE8 3RHGhhul9zwvRKzgb5xSZ0QuQuc8xjZERfmEKh8EhUzu9vgPlUe1Epx46st+c5rzQbL+ ZCaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hVW4KuIS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x124si3494454pgb.651.2018.04.19.12.15.26; Thu, 19 Apr 2018 12:15:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hVW4KuIS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753379AbeDSTOH (ORCPT + 99 others); Thu, 19 Apr 2018 15:14:07 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:36068 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753269AbeDSTOG (ORCPT ); Thu, 19 Apr 2018 15:14:06 -0400 Received: by mail-pf0-f181.google.com with SMTP id g14so3096239pfh.3 for ; Thu, 19 Apr 2018 12:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=DUaDaWkbv7fZKY9YFjmr3w/AI9PMEV+sdL5qgr48bMw=; b=hVW4KuIS4RnLgTfljHC/30kSJwAgBTsN2wjq31/Cm4wEuU65VpATqm8Jb9H0W2V8Hv FOZl5gwE+9Yo3zu4hxvgyr0SJDxo203ryju+bjd6Q32EZKH8JtSwwmpd1f++5U8OtSqp cljaB/FOG1UNZqO4FBVFMyIlxQb5hbqxMrv/4jcIIFcGVPYfkoE22MrrXFuqFy/2LUub ppZz6/cMy287uKNBm1ZL4QEQJqKQbQWWm/W0sfWLZtmsaUFyw1cBoBbDBRiRLILzts+h tnFx2huw6WztTmTGfSeqOGowTQ5QTZVPxsalT9k3iTXJD/jzyL4E+wBaY37Bc2zpDDKp trFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=DUaDaWkbv7fZKY9YFjmr3w/AI9PMEV+sdL5qgr48bMw=; b=d6odxlqSucjrrvGMUnJyJgykUwbPnX0rzmEtuDUv05+UkpDUfmu/QmzD88FNtQ+Gv2 jeTyraWag+XdzkZnO9dZ12pYKLUGCYYZb4UYC/eYfelE+J7u88N+HdYIlKx/HvJvI9fR p2X0mICqehJGrQ0uTFS/tiCWcsi0h3KdIQn5A00z5GuLKXt/O4BEplGmkcbDWon37x18 chZM1L6AVLjohGIe6JZtr9OckuRtXZ9PkQ0IhcPj3eha72n6c/gg44YES876CC0ZPUCS 8fRdQGmDlJBz+zFstH5B/jHnrt78lSAu25fVBulAek3ekSp7HwiHNEPHTuXl8Ak6o7cE iF2w== X-Gm-Message-State: ALQs6tBXVqxJhq5Mv0ql/hnQ8yF8W7uryvoXMjCHoFQOCL706OeOSZAj dKwhe4BS0pJ+zSwA+Xu1HIwnYA== X-Received: by 10.99.111.201 with SMTP id k192mr6139080pgc.143.1524165245835; Thu, 19 Apr 2018 12:14:05 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id z10sm7330303pgz.73.2018.04.19.12.14.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Apr 2018 12:14:04 -0700 (PDT) Date: Thu, 19 Apr 2018 12:14:04 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Tetsuo Handa cc: mhocko@kernel.org, akpm@linux-foundation.org, aarcange@redhat.com, guro@fb.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [patch v2] mm, oom: fix concurrent munlock and oom reaper unmap In-Reply-To: <201804191945.BBF87517.FVMLOQFOHSFJOt@I-love.SAKURA.ne.jp> Message-ID: References: <20180418075051.GO17484@dhcp22.suse.cz> <20180419063556.GK17484@dhcp22.suse.cz> <201804191945.BBF87517.FVMLOQFOHSFJOt@I-love.SAKURA.ne.jp> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 19 Apr 2018, Tetsuo Handa wrote: > current code has a possibility that the OOM reaper is disturbed by > unpredictable dependencies, like I worried that > > I think that there is a possibility that the OOM reaper tries to reclaim > mlocked pages as soon as exit_mmap() cleared VM_LOCKED flag by calling > munlock_vma_pages_all(). > > when current approach was proposed. That's exactly the issue that this patch is fixing, yes. If you brought that possibility up then I'm sorry that it was ignored.