Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4990161imm; Tue, 31 Jul 2018 03:49:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcV9flLxaam+r/fZxIEtFMC1zSEvM62FWQ1b7SDrfsfcfF73xmPlROINWgzgeQXA5jYKhuS X-Received: by 2002:a63:d5b:: with SMTP id 27-v6mr19616723pgn.107.1533034160421; Tue, 31 Jul 2018 03:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533034160; cv=none; d=google.com; s=arc-20160816; b=o9DYOCssdFzmmrxkVgAbJc1cvVQu9c7TXYoYlQSbRjMn+OBPD2fL6m5WHE4TXtd9a1 /w+i/tq58IRPtoAxMtZGEhQry8dyHkhRgTek4RwffBMVHQcD7H0AFqaprEWDmxoelQE+ joOIQqnMGuW994lkpm+gxAEZqrSHL8nZ33HhAFQqF7dFvaQGZa7ln+hkAR8wH/GpQcGv B5qejZja4GAva92CQRgvP0GGIBl/O6tYGoN2hAR66MHMHRIlvifKZSeFcwg+dNu17PKQ Nyw0Q1BvrYCYxpRovMACaDCzmxeckqqhBBmsEW61Df/m9nJZk4SPreeFeiyj20crnoCx 08+g== 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=ju5yILhuBrFAPo2Mve0Mq+FLN32R2IXHhyzwctGxd+M=; b=ZBmRjVMh/bsbbpO+D4Fr5Q8aqer1pi+ArDJjik2cKMSX7Z3HEi0oBdc3qHgOWauJOI /eivnF9ETw2HNMvQ80FTEWEqp5aWE1qj7n+pQ79qpE79RW3uRb/6jZjjGvtc3urcqvgx rBZfdCM3I0lV/4kgr3wP7Hc7GCIj5v0o4jBx6dzmCybj2l6BbwT1Zgo6WgUz08DoKzVg iVbXmM/QAuOm9USg2LtWHEDIG2nUCOGY7gpuZ2zdLO52KLXio/moe7C1JIJPt/vqOZ2M 0Cr4A3mTQ3wW/LaE5nKcqX/zvGtVELzWZCzB9kwjexPp2wqTpjwmyIywVEFeOIVr410z dgDw== 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 g12-v6si12059897pla.403.2018.07.31.03.49.06; Tue, 31 Jul 2018 03:49:20 -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 S1731920AbeGaM1o (ORCPT + 99 others); Tue, 31 Jul 2018 08:27:44 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:61309 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731264AbeGaM1o (ORCPT ); Tue, 31 Jul 2018 08:27:44 -0400 Received: from fsav301.sakura.ne.jp (fsav301.sakura.ne.jp [153.120.85.132]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id w6VAlxXT001629; Tue, 31 Jul 2018 19:47:59 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav301.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav301.sakura.ne.jp); Tue, 31 Jul 2018 19:47:59 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav301.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 w6VAln17001609 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 31 Jul 2018 19:47:58 +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: Tue, 31 Jul 2018 19:47:45 +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'm saying that "we used to have a sleeping point in the oom path but this has been removed recently" is not true. You need to send that patch to linux.git first if you want to refer that patch in this patch. > > I will send the patch to Andrew if the patch is ok. Andrew, can we send the "we used to have a sleeping point in the oom path but this has been removed recently" patch to linux.git ? > >> (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. >