Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp730553rwl; Thu, 10 Aug 2023 00:09:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpE75eorKa1pTl8591Sj7rMtOBYHBIfQxu83HT0Ybpk82RauQT2hRCe6I3Sv1IAE+ePy66 X-Received: by 2002:a17:906:8462:b0:99c:1ea4:350 with SMTP id hx2-20020a170906846200b0099c1ea40350mr1054020ejc.77.1691651348270; Thu, 10 Aug 2023 00:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691651348; cv=none; d=google.com; s=arc-20160816; b=Vl9fKxPioqrsOvwn8tFhgTj6eBmsbz9BWzxg0v8YMiZUjcRzm9o8UJ0sZYvR0kxp0v PzcdYie9D9ZN0SD/xJtJNkHoGOFb/ghbfz4bVokslJhzFhxFDJXh5Bj9kJ9MAQugG6Qk 0T8QHl8qqZ2es6po9P2BVuF6KKKD0SYCviZELVkcLSTlVxxqexKmz/4h01d0+1lt+sND m63LqS6P6IM4eEmB2DKLboWVfl5QbL89JGr2kYFXVjOSvd6gFSDoAAYqgt65nmRAE3c1 MHP2UQTCcU1eaevTL6g1DJeWl4g8QfNl/eoBmj2YE90Ox5d5aURYftAFp6cY+AclKlMB 93rQ== 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=m4zM2+z1rjaB7F5yt/edZGt4JBMI4g3d1rwPeNAPs6g=; fh=ueKZh+WG55YfcGhmNCDk9TALM9dTa6rDmJ6HzTOhg8M=; b=kSo9xff7tcOj1YGyDrm1uoZGpDD4YnkngB+w7sewPEvD3PhHsuyD37eTx2/0bgnB4R +SoHrUmJkGI6ljBT0aRV70HCzruuDZQfYx0Fg6XxNxI7TqpADpLBHcTvJDpl/Jfzauiu 59Zs3nT0LOS566dYKuIqaKHNxrUR/gwlpb1r72HCHHwgy1qffbfv1r5YLLFGf1X1EufY JEIyaOGnoP5OuPCVL8t9wBaid3R6r/y1RyoeegRmCFsz6yB7y1bNq/8p0IKhehA+qU88 2v4J4COkLeZEYTCMTSPnY739hyErgD/EWcz+pYRc26evDXElcOirnInOgl9cFyqeatrv LoqQ== 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 b7-20020a170906194700b00991fe707692si893161eje.63.2023.08.10.00.08.43; Thu, 10 Aug 2023 00:09:08 -0700 (PDT) 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 S231962AbjHJGDx (ORCPT + 99 others); Thu, 10 Aug 2023 02:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229597AbjHJGDw (ORCPT ); Thu, 10 Aug 2023 02:03:52 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4838C10FE for ; Wed, 9 Aug 2023 23:03:51 -0700 (PDT) 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 4RLxFH0Z6Lz4wxn; Thu, 10 Aug 2023 16:03:47 +1000 (AEST) 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: [PATCH v3 0/9] Cleanup/Optimise KUAP (v3) Message-Id: <169164734543.180689.11688137369448247481.b4-ty@ellerman.id.au> Date: Thu, 10 Aug 2023 16:02:25 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS 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 Tue, 11 Jul 2023 17:59:12 +0200, Christophe Leroy wrote: > This series is cleaning up a bit KUAP in preparation of using objtool > to validate UACCESS. > > There are two main changes in this series: > > 1/ Simplification of KUAP on book3s/32 > > [...] Applied to powerpc/next. [1/9] powerpc/kuap: Avoid unnecessary reads of MD_AP https://git.kernel.org/powerpc/c/880df2d46a3f23f30f954f6e64c576d7f411cc46 [2/9] powerpc/kuap: Avoid useless jump_label on empty function https://git.kernel.org/powerpc/c/1bec4adcd59e923df6b7f5d492a9e4b8dfd22039 [3/9] powerpc/kuap: Fold kuep_is_disabled() into its only user https://git.kernel.org/powerpc/c/38bb171b958480b484e8e980be76c7d3656881ea [4/9] powerpc/features: Add capability to update mmu features later https://git.kernel.org/powerpc/c/6b289911c80d45fd8da3d24ea14706361381b78d [5/9] powerpc/kuap: MMU_FTR_BOOK3S_KUAP becomes MMU_FTR_KUAP https://git.kernel.org/powerpc/c/4589a2b7894d4266380b65e13291f609cf19dd19 [6/9] powerpc/kuap: Use MMU_FTR_KUAP on all and refactor disabling kuap https://git.kernel.org/powerpc/c/26e041208291bfdea1cb9e26bc94a0f9499efe15 [7/9] powerpc/kuap: Simplify KUAP lock/unlock on BOOK3S/32 https://git.kernel.org/powerpc/c/5222a1d5142ec4f9ec063b274b80e20639584dbc [8/9] powerpc/kuap: KUAP enabling/disabling functions must be __always_inline https://git.kernel.org/powerpc/c/eb52f66f0abd468caf8be4e690d7fdef96250c2f [9/9] powerpc/kuap: Use ASM feature fixups instead of static branches https://git.kernel.org/powerpc/c/3a24ea0df83e32355d897a18bbd82e05986dcdc3 cheers