Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1913507rdg; Sun, 15 Oct 2023 03:03:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxJ1xa9dRkLmAQmlj1UA+6HiTyW6GpMlUD1CdWElJ0u/q7VXuDsDAz8mp8faiWxYDI3d/i X-Received: by 2002:a05:6358:9195:b0:134:f326:e819 with SMTP id j21-20020a056358919500b00134f326e819mr37899920rwa.29.1697364235585; Sun, 15 Oct 2023 03:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697364235; cv=none; d=google.com; s=arc-20160816; b=bJ9N2zuh0OUStk7FIfBhwT01uCSz1ttJ2sohBXfCNwQhwg9QOzva5Gec3g7plsIia+ b5B1zwc+WuZSJ14TpA7lnu6kOMi7tFob1ICaRgTVEOXBV4fKUKUXzUu4taE1KRUor947 mG86gmsV19UZ1a095/OTZfzHvpFMLkuWoxjM7v8eOFy+qCEciau7lspHkRMYEM/p3Ipj XOZbuTDuPeb5sP52biSUBqNyH5beSKU+8KVNRVk62Zj5dqHn76Ihuc9m9uoviJhl/ZQ5 sFwuZ8nJe994Caud3SlE8Txve2fFKdT7PhNVwguB8Uj2YiezqA4pihj3Wq1Ua49iFXnI W0DQ== 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:dkim-signature; bh=kOWLjiDpvHE5NpXC9jG7b3FrojOzk472gOHlXk+Q33c=; fh=IR91BQ3BTLGB+0AI4Bc2xTyey5jdWHvJZTUP1W3El1o=; b=uUKkWjMcPZH0SPcZZlYqlPtys50GP6M5S84gYyIKSd8aY3uS2NID3JitkXURKk3O3e Aa36TFMmnkU59GWNv23sNizsS4DAFpVWRvgBvploZ/eRTTmnOiybwWmA0zDCibhRxGbn oEz0UIFYJA9F8T4evh34YXz3nrbCJ8pMrxh6E5vc9liVrAL+SGm7KSOuFNiGWgSudBt1 910CN5Fi+55szcNeKbhBZg9+KGKQ1Up7q0iFrdXP7gn/tJC4qtDLXF+VHn0SQLCsEpgW /U2MimtGBj6jmDRHk+bwjHr2zD83lYqufOwwnzNsa8ZansxyJeXYQi1it7lkk4dPoCnO BHaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=rBCIV0Qe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q34-20020a63f962000000b0057d7cff25b8si8111665pgk.198.2023.10.15.03.03.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Oct 2023 03:03:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=rBCIV0Qe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 6E828805C167; Sun, 15 Oct 2023 03:03:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229826AbjJOKDc (ORCPT + 99 others); Sun, 15 Oct 2023 06:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjJOKD3 (ORCPT ); Sun, 15 Oct 2023 06:03:29 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B68BCDE for ; Sun, 15 Oct 2023 03:03:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1697364200; bh=kOWLjiDpvHE5NpXC9jG7b3FrojOzk472gOHlXk+Q33c=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=rBCIV0QeEgpaqeHWTRKOjcXQAoTKonEC1zu+hDBOH9+1Lc2hYuPynU4INIFqkiA/9 iPUXL+F/5yeB7Nao50xfT0Ax3C08fkIRGM1bMX+GvTCE6/4Nk7MVZkcRLQwLlS6Tmm PcnTnaMG8KdcCWiCvQz1bljKwiDjGWj1FieYG/R+TOLyOetUuIeFj4ueNa+RMQIc4Y O9I/8i8gSeqqe71JXX0ORfLeL2g34YiGh648nVWMI1y9iZf4G/knP52TDSkFDI0Int zXbIUyjxqv2dObj9CC6WDcLmZFRhqEGLmjn+HgkXuh9P5bQ5heu5lEDp5YcQzBRoLV ied1zNMhSWtbw== 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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4S7bRD5hCvz4wnx; Sun, 15 Oct 2023 21:03:20 +1100 (AEDT) From: Michael Ellerman To: Nicholas Piggin , Christophe Leroy Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org In-Reply-To: References: Subject: Re: (subset) [PATCH v2 00/37] Implement execute-only protection on powerpc Message-Id: <169736402375.957740.6017054245951697068.b4-ty@ellerman.id.au> Date: Sun, 15 Oct 2023 21:00:23 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 15 Oct 2023 03:03:53 -0700 (PDT) On Mon, 25 Sep 2023 20:31:14 +0200, Christophe Leroy wrote: > This series reworks _PAGE_FLAGS on all platforms in order > to implement execute-only protection on all powerpc. > > For all targets except 40x and 604 it will be a real execute-only > protection as the hardware and/or software allows a distinct protection. > > For 40x and 604 that's a poor's man execute-only protection in the > way that once the page is in the TLB it can be executed. But it's > better than nothing and allows to have a similar implementation for > all sorts of powerpc. > > [...] Patches 1 and 2 applied to powerpc/fixes. [01/37] powerpc/8xx: Fix pte_access_permitted() for PAGE_NONE https://git.kernel.org/powerpc/c/5d9cea8a552ee122e21fbd5a3c5d4eb85f648e06 [02/37] powerpc/64e: Fix wrong test in __ptep_test_and_clear_young() https://git.kernel.org/powerpc/c/5ea0bbaa32e8f54e9a57cfee4a3b8769b80be0d2 cheers