Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp822601pxb; Wed, 16 Feb 2022 05:18:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJznR4/lrXxPcr1/c56touHQXj8944KK1rwN7xSx2lMHCVxcMiyX1A0KNhP2OtQhbC+3XX5q X-Received: by 2002:aa7:cfda:0:b0:410:aaaa:320 with SMTP id r26-20020aa7cfda000000b00410aaaa0320mr2992110edy.360.1645017486138; Wed, 16 Feb 2022 05:18:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645017486; cv=none; d=google.com; s=arc-20160816; b=DCNjV6GQSFMvBd//S2pLHC4zSJHxp5eWuy1RU8Jc2GdcyI7OFO+SYGTzcwdNRiDynb zIvLAgerA+li3IZ7AauJGkI5lrQpTrUn7p94AoVBXe7eZCAYEpiR5fhNayV66e7hk3LL jEGB1K7MXF+g01NlHU5oTyKyGsLIzfxHDXAf8vtsOiSJrzVkM3+gQHdN9VyQG2XihT66 6sT6PgDPXf6bPC5h5Isr9xveew/YGWYbdH+WtqVzASTJwN0FGyVYXqFlfShWBoLzKwNk QmpNBnwNtWW9RWvywxX6uMMMsiX0rXIyYzSqBtZ8bFfIGk6MVhyK7gpf4RwWvoCBsYMu 9XOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:cc:to:from; bh=A74yNb5yIuZ5+5rtOzmyTMQAmg/4F8aFdUhN8vhMxEU=; b=SIZwEY37+d8VDaaKZEt0h8fFm3caJM9siXQGgvFwRIXkeu1ibYsrKURNJ87ElSaWTI SkmkRAtrIgTtesd1hcUq0bttxHygncJNAu0w8pB++M7aOWWkGnqkmaWx6qIxWPEBzf+A HQsmskGH5C3gdpXBWvYgXjmMjiyfO7Z1i2u/UblpgMtQ5Bixilpa4pucsbc+iasSN3mn rjYDJRp5Bu5z8HnLRN1wt+XmHf4+Mzy99HwjJOsFsUcLL0XZI6MvV5B2xJnccXwiDLWF ALokMAewBbRvLncGaqkx6m9o9V6rkEhMxu6R0rURNW2qk5P9kTPENroFPbUR2g8IuXvM S3rw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d8si1649514edt.642.2022.02.16.05.17.42; Wed, 16 Feb 2022 05:18:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233248AbiBPMab (ORCPT + 99 others); Wed, 16 Feb 2022 07:30:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:36382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233203AbiBPMa0 (ORCPT ); Wed, 16 Feb 2022 07:30:26 -0500 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AB152A4146 for ; Wed, 16 Feb 2022 04:30:13 -0800 (PST) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4JzHNM68mqz4xmt; Wed, 16 Feb 2022 23:30:11 +1100 (AEDT) From: Michael Ellerman To: Benjamin Herrenschmidt , Christophe Leroy , Michael Ellerman , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: <1e6162f334167e75f1140082932e3a354b16daba.1642413973.git.christophe.leroy@csgroup.eu> References: <1e6162f334167e75f1140082932e3a354b16daba.1642413973.git.christophe.leroy@csgroup.eu> Subject: Re: [PATCH] powerpc/32s: Enable STRICT_MODULE_RWX for the 603 core Message-Id: <164501434892.521186.15893809567759741150.b4-ty@ellerman.id.au> Date: Wed, 16 Feb 2022 23:25:48 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Mon, 17 Jan 2022 10:06:39 +0000, Christophe Leroy wrote: > The book3s/32 MMU doesn't support per page execution protection and > doesn't support RO protection for kernel pages. > > However, on the 603 which implements software loaded TLBs, execution > protection is honored by the TLB Miss handler which doesn't load > Instruction TLB for non executable pages. And RO protection is > honored by clearing the C bit for RO pages, leading to DSI. > > [...] Applied to powerpc/next. [1/1] powerpc/32s: Enable STRICT_MODULE_RWX for the 603 core https://git.kernel.org/powerpc/c/0670010f3b10aeaad0dfdf0dad0bcd020fc70eb5 cheers