Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp494167ybi; Sat, 15 Jun 2019 05:29:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4xEMtCB9WeRcpTQ0oDoujZjFAUfKAxIomYyDUjXKzZAnHHl/Uz4NLgJ+m0HMHcZwEXid+ X-Received: by 2002:a17:902:2869:: with SMTP id e96mr94627184plb.203.1560601752774; Sat, 15 Jun 2019 05:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560601752; cv=none; d=google.com; s=arc-20160816; b=Bgj4wtn1pG1C88X9m5vX/9zx6+6YNWEfOp3AAae+w5xOjwwPNtX78OOX1V/7A4K6W8 nHT2PKxdSDDpX74CehXKqkUwB4nrUlNChpsjNIDzky5zyH5jb+gCSV9iTbvx99OGvx8W 30Djgs81cTgXRNfjNNrqkB9VS6eixDYGukoHO+7Uq70C2AL3qSd6IOLLoRQzgLoH0o0u maDseIkEvFB3W+uZ0YUwwYLOmY7SH8wIFvawdgQZRjeTQaGIY0+VarC/AH6WgUoo7cd+ 0FYWRIWrX5jwh03RtfTSsW5b1/YkoFH/2Rwux+Kr6zMAgAnnxlITaYp5v2k9kd3CGmmd vIcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=ZEfkBsOO4Rddt65dok37rLj/l9pm0ULF31HIOUS2adw=; b=uJYf3F9DUU11YZUImZ2L1g6UENNW/LYmckkZoseZivwqMpYxY1Cnz8o6gsEnufxCb3 2z4beIhc1q0zAuOUuKs7lrGZ06DUcHM2klHi0IqtVulm6o8ZkW7PnJWqcoiB1VFhJ1QB CEldc+fPnww99EZS9Mqf37xvaKiDlBslLcD2JFq6xOWQ+KT5fY+PTvwavopMqQGCQHPw U12cOXcNCSEjH/EJZZya+ptBUFdQ0poJKlzSMQGsOgSkdMow1KnJ6Mr+vE/jNr2CddpX K1vm73p36LDGHQzq7pLcTiAysPj1G8iixrHfbWVSk/7gwJVyHCMGX/F5u5pF6cHv/z7z kyzQ== 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 r16si4717972pls.424.2019.06.15.05.28.45; Sat, 15 Jun 2019 05:29:12 -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 S1726511AbfFOM2l (ORCPT + 99 others); Sat, 15 Jun 2019 08:28:41 -0400 Received: from mail-out.m-online.net ([212.18.0.9]:47617 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725446AbfFOM2l (ORCPT ); Sat, 15 Jun 2019 08:28:41 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45QxbT3gzFz1rFDl; Sat, 15 Jun 2019 14:28:37 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45QxbT2NhDz1qqkh; Sat, 15 Jun 2019 14:28:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id TfqFOYFLjnQz; Sat, 15 Jun 2019 14:28:36 +0200 (CEST) X-Auth-Info: OQbThpk8h3LyExLjWVy0gLSRfEJA3KB+AaHbnxoN4dOUOIKp68nqKB9ZJEV0X+1N Received: from igel.home (ppp-46-244-181-62.dynamic.mnet-online.de [46.244.181.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 15 Jun 2019 14:28:36 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id D72C52C0C9A; Sat, 15 Jun 2019 14:28:35 +0200 (CEST) From: Andreas Schwab To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , j.neuschaefer@gmx.net, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v5 13/16] powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX References: <1e412310cc18ea654fb2ce4c935654d8d1069f27.1550775950.git.christophe.leroy@c-s.fr> X-Yow: Fold, fold, FOLD!! FOLDING many items!! Date: Sat, 15 Jun 2019 14:28:35 +0200 In-Reply-To: <1e412310cc18ea654fb2ce4c935654d8d1069f27.1550775950.git.christophe.leroy@c-s.fr> (Christophe Leroy's message of "Thu, 21 Feb 2019 19:08:49 +0000 (UTC)") Message-ID: <877e9n9gng.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Feb 21 2019, Christophe Leroy wrote: > diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c > index a000768a5cc9..6e56a6240bfa 100644 > --- a/arch/powerpc/mm/pgtable_32.c > +++ b/arch/powerpc/mm/pgtable_32.c > @@ -353,7 +353,10 @@ void mark_initmem_nx(void) > unsigned long numpages = PFN_UP((unsigned long)_einittext) - > PFN_DOWN((unsigned long)_sinittext); > > - change_page_attr(page, numpages, PAGE_KERNEL); > + if (v_block_mapped((unsigned long)_stext) + 1) That is always true. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."