Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp598472ybi; Sat, 15 Jun 2019 07:36:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvILTqh5bnNUf5z8VL3TiJK3fEVqwv66RaSC8sU1yCU61L+Z32U6yS562tGsz/SGpHkG9K X-Received: by 2002:a63:a02:: with SMTP id 2mr17005268pgk.315.1560609400094; Sat, 15 Jun 2019 07:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560609400; cv=none; d=google.com; s=arc-20160816; b=VzFlMHIwxgsykOi9s+1DPgP0IteJHqv8orEW44NZWettiQn/4YmswzttATQJZsI3zR X7mM5TtbXkMzEu3Z+Bj4teCNMSa9+6zJRbyjw3io2DTFE5WaABK75Et1ZOp76k3nmDlL P1dzjYb25gMccuOKMwD9BBbKlVhKqcS1t60nvnub5M7V0Qdtf/CboYQOhixapPWE7adt BjUgYeT18izN3VuLt7+xiSwxXvO0dZxreHjqeNqfqVuOQ+9Obc+MFRDMrmUkBMX8hmJ6 jz1Snc++/otNnuqeBQtA6ri3YD4YQJNb4Y/kl097DnKiSswDlOQ+zXUqgRiJ7hVooGXA wQPw== 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:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=UqGYvkbVjP4rRZQi5PbGy+iN1fbcbBPk/XvebNojU4s=; b=RX61ct05e3APPxAQpG43bUAL5f1o0CA1hborWE+O0ixbrg9M3bhjJNjPqvxUwBontb 3lTc+P94ZecgqDoU117MERgZqrRoEF0kkTBvdAIlpLGsL5oM4F5p9Hi5kxKMJEfPdnHw C7vCkbssFgmcS2qETn6hE0GlOHiYg0lGSu0a9Vi6PHNwfGArB2KX4m+Ezp6Gt2g8Pzp4 dcaP4ng9bm9fEIeukP09RtzNO9CnkyLSrTXU9zYDdo6brEmO39SE5W2imHwqE3kCBy5T rMsSzxuhGUmsLQArwQzZlfDe60y0ZmztElCVODUSexriyrcGSGD6zvjIz6NrxOHJ8/f2 jPNg== 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 h5si4721229pgd.55.2019.06.15.07.36.24; Sat, 15 Jun 2019 07:36:40 -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 S1726658AbfFOOgW (ORCPT + 99 others); Sat, 15 Jun 2019 10:36:22 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:52171 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfFOOgV (ORCPT ); Sat, 15 Jun 2019 10:36:21 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45R0Qp6Gd5z1rWTY; Sat, 15 Jun 2019 16:36:18 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45R0Qp5Wgzz1qqkh; Sat, 15 Jun 2019 16:36:18 +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 CV3ATwZ73GD7; Sat, 15 Jun 2019 16:36:17 +0200 (CEST) X-Auth-Info: WeiuE3FkP22bpwRZXiPgSc5kxd0EGyhb2xJKE3Lx5DsQLNHL9KEEXkKT6N7vRlPZ 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 16:36:17 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 98FE02C0C9A; Sat, 15 Jun 2019 16:36:15 +0200 (CEST) From: Andreas Schwab To: Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, j.neuschaefer@gmx.net, Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Subject: Re: [PATCH] powerpc/mm/32s: only use MMU to mark initmem NX if STRICT_KERNEL_RWX References: <1e412310cc18ea654fb2ce4c935654d8d1069f27.1550775950.git.christophe.leroy@c-s.fr> <8736kb9fry.fsf_-_@igel.home> <20190615152559.Horde.0lTFIZALxZ-RI75z94G3jA8@messagerie.si.c-s.fr> X-Yow: I'm using my X-RAY VISION to obtain a rare glimpse of the INNER WORKINGS of this POTATO!! Date: Sat, 15 Jun 2019 16:36:15 +0200 In-Reply-To: <20190615152559.Horde.0lTFIZALxZ-RI75z94G3jA8@messagerie.si.c-s.fr> (Christophe Leroy's message of "Sat, 15 Jun 2019 15:25:59 +0200") Message-ID: <87pnne9aqo.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; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Jun 15 2019, Christophe Leroy wrote: > Andreas Schwab a écrit : > >> If STRICT_KERNEL_RWX is disabled, never use the MMU to mark initmen >> nonexecutable. > > I dont understand, can you elaborate ? It breaks suspend. > This area is mapped with BATs so using change_page_attr() is pointless. There must be a reason STRICT_KERNEL_RWX is not available with HIBERNATE. 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."