Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2710234ybk; Tue, 12 May 2020 06:21:16 -0700 (PDT) X-Google-Smtp-Source: APiQypJwJroPaJn+bxiD/NAQ8y/osfmD7bDn1cF09swxxUel1xQxcO6c7grTKomCD9HDJccAXyvU X-Received: by 2002:a17:906:90c1:: with SMTP id v1mr16916822ejw.322.1589289675930; Tue, 12 May 2020 06:21:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589289675; cv=none; d=google.com; s=arc-20160816; b=SYzk5Z1/vCnIK8AN/QD8nei8YvbDMzJjpbojgIWXz1ZXVZzZzafErjFSOKFPZhaE5O Q5Oan2jX/YCuJ0ODL1B5pjHBLqTSY2hwTMZ2em2tWVODSKNxZ6fkSLH5qY9o1vtiTIrK f0QKCg2xjYbn450+Ht+cGPmG2Q7mLO3y0o3Bj3yVpI6gBTuby0SzgYWK0L2sGs+stZER mfTEw/2B0iUI9DTfVOHN36+37Ox/K64E4Ywk0d6+4JEjZjR+a1RFrP3FFJxNXRQxNlvo MYBTWoF44ygyQocs8HtUkgIRB+2kSVbxpJ416S9Rj4hYqsc6jvfQxLmVWAZCbkv8ZSbf FHxg== 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 :dkim-signature; bh=4qw/GqdeMXMhEvp2UNCYNMj+ZEbPP3maTTUH8WjSIYU=; b=oFNhGAKwe01lWEEJlgoSGoAmj1OfUbQB+Sjh5MCX19NqGSnC15rLj+bJzWi4p73Ncc NanOy8M3RUUVp+t1Fe7KzLyoH4N71W8ZVeUldC3mr6F7agH6nJh/gLH0B0v3BCY/Bqhn qgc+lxNiJT1nu9P1Wc/6C6LcqNDhJdhKhQSp/JszmyRWNXTtWGnNlzNa2B/P9sjuNd9Z wsMZ4XJsVuiW/e3izs6SPDs3YpQJKGYLNCDHdwzVms5NfuxuYO695nyE8gXsodqTHl61 WcJAJGbmCMoTjNnSqruGO7iJrrQhS8gF153phj0dqgaPsjfKOdIIj+Kdjn4EWVeF6Sb2 mvdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=f+DjJQ6p; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u22si8580022edd.207.2020.05.12.06.20.51; Tue, 12 May 2020 06:21:15 -0700 (PDT) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=f+DjJQ6p; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729519AbgELNTV (ORCPT + 99 others); Tue, 12 May 2020 09:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725923AbgELNTU (ORCPT ); Tue, 12 May 2020 09:19:20 -0400 Received: from merlin.infradead.org (unknown [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73F30C061A0C for ; Tue, 12 May 2020 06:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=4qw/GqdeMXMhEvp2UNCYNMj+ZEbPP3maTTUH8WjSIYU=; b=f+DjJQ6pkCxGWzY7p97Ayuzsuf OWuW/tRbef1rZjdvJiOqx0hWSa9Iq6/4SNkEb7ig3FLlCduzGlF8K8hyrC5jcyHCquewW3fdj82o2 sfgZloBiDDmy1oyVANYHOdZk2uRZoeMYLelNT79aaEU/UjUrHTSQ1ZbZ/PlKk2Ccs0n9sOKjBk6Ic CkMwNrdpOlh/etkBONJN2Hgi/elSox94KWpHEUt867NbZ/WhamzawfG50iVWeAnuD/jyarhui6+jb Du+A5DTVtaguQTwghHB7KTRqm8NX4iMnqkwgmOhQNKnMnjDLB8B31CkrbomdyIdKcgRmNTq4gDPt4 II4f7Bag==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jYUoE-0004YX-R8; Tue, 12 May 2020 13:18:58 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4FE1B300261; Tue, 12 May 2020 15:18:57 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3449620962E22; Tue, 12 May 2020 15:18:57 +0200 (CEST) Date: Tue, 12 May 2020 15:18:57 +0200 From: Peter Zijlstra To: Steven Price Cc: Jan Beulich , the arch/x86 maintainers , lkml Subject: Re: your "x86: mm: convert dump_pagetables to use walk_page_range" change Message-ID: <20200512131857.GI2978@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 02:02:51PM +0100, Steven Price wrote: > > Additionally I'd like to note that note_page()'s "unsigned long val" > > parameter isn't wide enough for 32-bit PAE PTEs, and hence the NX > > flag will always be seen as clear in new_prot in such configs. > > Ah, interesting. I'm not sure what type is actually guaranteed to be > correct. pgprotval_t is x86 specific, but it might be necessary to extend it > to other architectures. I think I got the "unsigned long" from the generic > page.h (and because it happens to work on most architectures) - but hadn't > noticed that that file was specifically only for NOMMU architectures. unsigned long long should cover the i386-PAE / ARMv7-LPAE cases. I can't, from teh top of my head, remember if there's anybody else who has a longer PTE.