Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1679122pxb; Wed, 9 Feb 2022 02:00:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMatend1zOpT7DM7KDQUjDeZgwH0ed7+OJXxmDg51BBYpDlkv/GDiwiz6AzJQn49lUcJbm X-Received: by 2002:a62:38d3:: with SMTP id f202mr1417761pfa.56.1644400837560; Wed, 09 Feb 2022 02:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400837; cv=none; d=google.com; s=arc-20160816; b=DvTxTpyo9xNu/ssUz6Q52bgyTKNMgIQsqpOZl6FQ0Ji0xAS8f1ktMLHvNB4ny8XTax xUkPWIYDUVYq4TDa3EmBGGFxMjXTBzv94c0t2+6K6ZFPtswmPqyHTHpKfk/q+a1yDQ/e 767t9LdwPvSHqbDrAw6V4kSSw0D7hQwFT+XiorlHTUPeeQHYH5IAD+b5flghVXvGj/Yj 43FAFmI3RO1vPiFOWLdOO+xSiVhSCmTZx77WTMoUY2e8GHXLxEWHxacRhgvhxDNPjyoX YcCpCNrrS/qBo+o7KwNwrtKMcRUZCw6xg1YrVCuBvQ5Aw4p1XLOYw61ZcB0QqAuRkQKW 2LPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=tmDPD28soEhWKnT4DxmAlJVsPBF7OE1oQKQpzgysMBQ=; b=XReNAL7ysYsxqpuSLyP+pLVcomuhkpAa124czcZzLmufsJrH8DsFKoZbelSdAKUal4 JL+oaGalYU+1dh46346X77pnl9FwmEtDJ1zml+30cok2L+pPElw5vp2FMZSBzh/yXNuQ C9BY7a2FjI/WU7JJA/UHW1sJ01OxiZF4OpyxuvMuPDK8W0DINoRO97fF1pbAdKe6aHRU nGuZVVFoB2+2CL9VvxolXpkYbpJDm/Wbwu2b/IPILm9AcX/wQk1vicSM/rUKi+Wo5sKw PFmhBfTbShcGU+sghvLXnrElXG7ie7xFbnmhDwI5RWlJ1eD6ArQ07TzMlfb9tRRRctT8 6tcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-54-ed header.b=JWSanQhl; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-54-rsa header.b=azqVTrJC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id na2si3520155pjb.134.2022.02.09.02.00.23; Wed, 09 Feb 2022 02:00:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=neutral (no key) header.i=@lespinasse.org header.s=srv-54-ed header.b=JWSanQhl; dkim=pass (test mode) header.i=@lespinasse.org header.s=srv-54-rsa header.b=azqVTrJC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lespinasse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348480AbiBGRqf (ORCPT + 99 others); Mon, 7 Feb 2022 12:46:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346053AbiBGRjy (ORCPT ); Mon, 7 Feb 2022 12:39:54 -0500 Received: from server.lespinasse.org (server.lespinasse.org [IPv6:2001:470:82ab::100:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA100C0401D5 for ; Mon, 7 Feb 2022 09:39:53 -0800 (PST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-54-ed; t=1644255593; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=tmDPD28soEhWKnT4DxmAlJVsPBF7OE1oQKQpzgysMBQ=; b=JWSanQhlWOlcCshcpo0ZLiIFik09w09xx0LOoJpxqM/35WhVvLXux5ETCN/tYTwOPZOmH Sz+OEp1YBGocQSbDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lespinasse.org; i=@lespinasse.org; q=dns/txt; s=srv-54-rsa; t=1644255593; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to : from; bh=tmDPD28soEhWKnT4DxmAlJVsPBF7OE1oQKQpzgysMBQ=; b=azqVTrJC2t9aHb73Mc7K5JF3T+Ei7qWcPfKtwXIkOLCBlUKpwcUefS5+HLMknaaJNR7tX 09k3gRggYZbk6RtWhH4dLIy/iIqvJ1mtxDJYhJA0vrlg+DDxHMbSwE4oEQZGwu48sFU/O/H HKLYjp2GJkyyYBkNbcIspA33ASwU7aZ2YF7ilD7i05GCftosl6T4Gab299dyBrBjS89/M7Y ULbWqTUcGqS9ybPDUrMfFx/BhdL2OWcKqfx/Ru7gz73vplukNMscipuB9HYboK/J6I3Mkbm 8bMdrDEZgMi7U0O5ugo7YkWZPidtJ9w/Vt627tq3RR1wLfmtdri8qwpugHSw== Received: by server.lespinasse.org (Postfix, from userid 1000) id 8910E160B2F; Mon, 7 Feb 2022 09:39:53 -0800 (PST) Date: Mon, 7 Feb 2022 09:39:53 -0800 From: Michel Lespinasse To: Matthew Wilcox Cc: Andrew Morton , Michel Lespinasse , Linux-MM , linux-kernel@vger.kernel.org, kernel-team@fb.com, Laurent Dufour , Jerome Glisse , Peter Zijlstra , Michal Hocko , Vlastimil Babka , Davidlohr Bueso , Liam Howlett , Rik van Riel , Paul McKenney , Song Liu , Suren Baghdasaryan , Minchan Kim , Joel Fernandes , David Rientjes , Axel Rasmussen , Andy Lutomirski , Sebastian Andrzej Siewior Subject: Re: [PATCH v2 00/35] Speculative page faults Message-ID: <20220207173953.GD12302@lespinasse.org> References: <20220128131006.67712-1-michel@lespinasse.org> <20220131171434.89870a8f1ae294912e7ff19e@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 01, 2022 at 02:20:39AM +0000, Matthew Wilcox wrote: > On Mon, Jan 31, 2022 at 05:14:34PM -0800, Andrew Morton wrote: > > On Fri, 28 Jan 2022 05:09:31 -0800 Michel Lespinasse wrote: > > > The next step is to walk down the existing page table tree to find the > > > current pte entry. This is done with interrupts disabled to avoid > > > races with munmap(). > > > > Sebastian, could you please comment on this from the CONFIG_PREEMPT_RT > > point of view? > > I am not a fan of this approach. For other reasons, I think we want to > switch to RCU-freed page tables, and then we can walk the page tables > with the RCU lock held. Some architectures already RCU-free the page > tables, so I think it's just a matter of converting the rest. Note - I have no problem with switching to RCU-freed page tables everywhere when and if we end up needing to. I just don't see that this need comes from the SPF patchset, so I don't think this should be introduced as an artificial dependency. -- Michel "walken" Lespinasse