Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp115281imm; Thu, 2 Aug 2018 15:07:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcJT8FUGwPK9ISSQnbZPhV8vkrMVoEAj3q6RGRLFrpUYfyM9BzkO1P2B/a0Q9IuvbFmzbVo X-Received: by 2002:a17:902:8d8c:: with SMTP id v12-v6mr1067411plo.94.1533247625428; Thu, 02 Aug 2018 15:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533247625; cv=none; d=google.com; s=arc-20160816; b=JV/skQQISltAl6Tk322udfhSf+rKINRQoMMPAaeaNr/IhzLxmmVFdQORD9dAMzukL1 Hby/LHHq8KrtrFirGnARshn8+ZirMe6s5icQny9fSfvoo3xmAhxJJLpVv+B8wmT8KJvh CU8n2RFSgaYkh+SIaxr7BBn7fV8E4akR0J1gbecDnDZhs3JNnCuW0hp7JmNKRvXqsDVU EzWDVWW2XZmcyzSf0+gLxg1hoMzJc80sq/pgVoZCKrGy8if5yRnMFUViUQGb7ERB5IBG WX19xmqiUvuGa0IzVYWE5oNGsylAz4PTA+p62aIeV+wFU/UX83MgzJDz5TIacX+KpSjo IJ4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=5iV3movlqc31+UJtbLSiQSGHvGT7ria3MnXOOHmVxTY=; b=w1kM2UUv6f92Od6uz1/LtO9kHY9EHr1lW67HBuUblCAl+lnpdm+4uKQQ4aEfaQYnKZ vc+QEdPWwrrTVqRPF3p09bdHQOJkod8FJV+CQnfx1rlan3PywQ6Y9ZZjqh6unQ8Oaf3E tjhsMFXrBYAyHZpq5ymHAXiYWyjIHxrptU0fs9FxzWi8ym2982AZIwMgYnk/Cx7VH3NC QWBlECCDpkJ2mSf9g4UNbNmalcRb/NDdf0YBKjAvBm6z79gdkUKGxQ6DPmxnuYH4JaXZ wbBLNTYVAXcLz4hYQcqM5q4Y+oOXxYlHR8QCrJS6YW98gf4nz5c5NemmiRcAhibHPQ1R h7MQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7-v6si2408785pll.142.2018.08.02.15.06.50; Thu, 02 Aug 2018 15:07:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731500AbeHBX7I (ORCPT + 99 others); Thu, 2 Aug 2018 19:59:08 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:10370 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726949AbeHBX7I (ORCPT ); Thu, 2 Aug 2018 19:59:08 -0400 Received: from fsav403.sakura.ne.jp (fsav403.sakura.ne.jp [133.242.250.102]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w72M60Ej075462; Fri, 3 Aug 2018 07:06:00 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav403.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav403.sakura.ne.jp); Fri, 03 Aug 2018 07:06:00 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav403.sakura.ne.jp) Received: from [192.168.1.8] (softbank126074194044.bbtec.net [126.74.194.44]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id w72M5tw6075441 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Aug 2018 07:05:59 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH] mm,page_alloc: PF_WQ_WORKER threads must sleep at should_reclaim_retry(). To: Michal Hocko Cc: Tejun Heo , Roman Gushchin , Johannes Weiner , Vladimir Davydov , David Rientjes , Andrew Morton , Linus Torvalds , linux-mm , LKML References: <55c9da7f-e448-964a-5b50-47f89a24235b@i-love.sakura.ne.jp> <20180730093257.GG24267@dhcp22.suse.cz> <9158a23e-7793-7735-e35c-acd540ca59bf@i-love.sakura.ne.jp> <20180730144647.GX24267@dhcp22.suse.cz> <20180730145425.GE1206094@devbig004.ftw2.facebook.com> <0018ac3b-94ee-5f09-e4e0-df53d2cbc925@i-love.sakura.ne.jp> <20180730154424.GG1206094@devbig004.ftw2.facebook.com> <20180730185110.GB24267@dhcp22.suse.cz> <20180730191005.GC24267@dhcp22.suse.cz> <6f433d59-4a56-b698-e119-682bb8bf6713@i-love.sakura.ne.jp> <20180731050928.GA4557@dhcp22.suse.cz> From: Tetsuo Handa Message-ID: Date: Fri, 3 Aug 2018 07:05:54 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180731050928.GA4557@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/07/31 14:09, Michal Hocko wrote: > On Tue 31-07-18 06:01:48, Tetsuo Handa wrote: >> On 2018/07/31 4:10, Michal Hocko wrote: >>> Since should_reclaim_retry() should be a natural reschedule point, >>> let's do the short sleep for PF_WQ_WORKER threads unconditionally in >>> order to guarantee that other pending work items are started. This will >>> workaround this problem and it is less fragile than hunting down when >>> the sleep is missed. E.g. we used to have a sleeping point in the oom >>> path but this has been removed recently because it caused other issues. >>> Having a single sleeping point is more robust. >> >> linux.git has not removed the sleeping point in the OOM path yet. Since removing the >> sleeping point in the OOM path can mitigate CVE-2016-10723, please do so immediately. > > is this an {Acked,Reviewed,Tested}-by? > > I will send the patch to Andrew if the patch is ok. > >> (And that change will conflict with Roman's cgroup aware OOM killer patchset. But it >> should be easy to rebase.) > > That is still a WIP so I would lose sleep over it. > Now that Roman's cgroup aware OOM killer patchset will be dropped from linux-next.git , linux-next.git will get the sleeping point removed. Please send this patch to linux-next.git .