Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3923439ybh; Tue, 17 Mar 2020 08:59:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuKy8xzKTbv4IXWYNMausypZ6Vic5tXjnfUJ/nCgRzmefOMj/J4gj/BPUW48OUKYEq9YkzB X-Received: by 2002:aca:4d13:: with SMTP id a19mr3952099oib.105.1584460795608; Tue, 17 Mar 2020 08:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584460795; cv=none; d=google.com; s=arc-20160816; b=cT7uo5VMIbqPmQ443hAJB1JmRqRGDmyguuNNeYQL+4xMCAk52BtGatAydY53a/X6Ju nUhaYO0asK/HPSM26v8oSWhxPyn4udq0MAMFFxeNdDwSUFY5JaUqFmnnkAVGEYPVy/nf LVISvpJ2Slqcayok/IDy5sTQ5ihngXLYCHB0IJVdYuT01rP/Q8OmNzs3MNL6C9tROSWv Q7KSe7TFpbcoWPfHwltUkflsoyaHmTuFV8iSyoXpAC0gJll91n+i7yayIGpQUkC9qukR wiaZ79zvffwOOBjCTi2mOI5Ac6rGytMVh9XW7istRWvpCWPvxWpOkfTFb3zDrRwXLuax CWug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FYhH5q4WEl1FEeszV9WnzdrzRhQsi77Q0fjkKyiS8K8=; b=vbl5hXAzIVgumf2zZCpae8cfiMaORxI0k8N5qVV5H0JBFlE5joPGoMmxpT8OarbtRb cPBgPsZD7E59/uPjPmqU3w47YuZI9JGXPivfOYlhdRSOvJs+5KYJUjT6x7ctVBxuqUzd mfG5p1ZlyQrMZMSJiYilZ7tpcxsqTEQ0mgq9tsQgFu0DUDQwbMyPUvAktVjPY8tvKiNt VGwqooO8oPbtJUBRRTOqX06tVAigEEeH9qFCECCMf28yZ9D8wsnj47vcRncPfVCikE5d Fpi855HjbXHhJOxsd0+1q+/GMB6wtMnU8fOvQX06bR1BsW5v0SyRVGvaGjogknYtQ3iW vsUQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p189si1926473oic.178.2020.03.17.08.59.40; Tue, 17 Mar 2020 08:59:55 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726564AbgCQP67 (ORCPT + 99 others); Tue, 17 Mar 2020 11:58:59 -0400 Received: from mail-wm1-f53.google.com ([209.85.128.53]:51771 "EHLO mail-wm1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbgCQP67 (ORCPT ); Tue, 17 Mar 2020 11:58:59 -0400 Received: by mail-wm1-f53.google.com with SMTP id a132so22045665wme.1 for ; Tue, 17 Mar 2020 08:58:58 -0700 (PDT) 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:message-id:references :mime-version:content-disposition:in-reply-to; bh=FYhH5q4WEl1FEeszV9WnzdrzRhQsi77Q0fjkKyiS8K8=; b=s/Uaqd36AjVrV8nBsVkpbGsBDfXcdWzFUojhtrw1D7euEE1mO9n2yoRC7CnQNJlmfd pb69r8M/E8qGTF4FEm/VWEk6ysxlNTFL0ZdMo6tMSbshc69mbDN0zGlfYy2vSdDyOwVk piGN59Dqm80KyJurDTs8d8FcJlUyutJANScB5m9RJpP61uS6UuREhVjNNskJQJ1GSWuO wUwJG/ks7f4SOAR9hIKVkXpeVj0XOjQO2vHWeq1m2fEg0iiMfUYVVRK0M1B3WZZX7ZcW 4HGy9qsAAV9X3Oyx+jtipXTBdsJt59jaHvIGecAmTNt+KHe1g4v2RQmsHcsDGiPSWuyn 2DiA== X-Gm-Message-State: ANhLgQ0ceDfex/NPjlrcD0L+QiFzkc4+CvAZU/dPRD3s9PbzT1rwC3Uk z+6NFK82Y1eRdG3sENx1snA= X-Received: by 2002:a05:600c:2250:: with SMTP id a16mr5756585wmm.57.1584460737542; Tue, 17 Mar 2020 08:58:57 -0700 (PDT) Received: from localhost (ip-37-188-255-121.eurotel.cz. [37.188.255.121]) by smtp.gmail.com with ESMTPSA id w7sm5368320wrr.60.2020.03.17.08.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 08:58:56 -0700 (PDT) Date: Tue, 17 Mar 2020 16:58:55 +0100 From: Michal Hocko To: Minchan Kim Cc: Jann Horn , Linux-MM , kernel list , Daniel Colascione , Dave Hansen , "Joel Fernandes (Google)" , Andrew Morton Subject: Re: interaction of MADV_PAGEOUT with CoW anonymous mappings? Message-ID: <20200317155855.GS26018@dhcp22.suse.cz> References: <20200312082248.GS23944@dhcp22.suse.cz> <20200312201602.GA68817@google.com> <20200312204155.GE23944@dhcp22.suse.cz> <20200313020851.GD68817@google.com> <20200313080546.GA21007@dhcp22.suse.cz> <20200313205941.GA78185@google.com> <20200316092052.GD11482@dhcp22.suse.cz> <20200317014340.GA73302@google.com> <20200317071239.GB26018@dhcp22.suse.cz> <20200317150055.GC73302@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200317150055.GC73302@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 17-03-20 08:00:55, Minchan Kim wrote: > On Tue, Mar 17, 2020 at 08:12:39AM +0100, Michal Hocko wrote: [...] > > Just to make it clear, are you really suggesting to special case > > page_check_references for madvise path? > > > > No, (page_mapcount() > 1) checks *effectively* fixes the performance > bug as well as vulnerability issue. Ahh, ok then we are on the same page. You were replying to the part where I have pointed out that you can control aging by these calls and your response suggested that this is somehow undesirable behavior or even a bug. -- Michal Hocko SUSE Labs