Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp990976rwb; Thu, 8 Dec 2022 05:37:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vvhGcl/JWzW9hP+4a37pIoqrgcGyn7Low77bGys4qOd1y6QmJM65d55WA0OaKPGp20glO X-Received: by 2002:a63:571c:0:b0:478:c025:2aa1 with SMTP id l28-20020a63571c000000b00478c0252aa1mr14777745pgb.142.1670506675987; Thu, 08 Dec 2022 05:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670506675; cv=none; d=google.com; s=arc-20160816; b=NvHMuC4mRDJ4SJgVM8OpgrEA/6Yg14UhVqPPNz0yrDKlDcmiS8xn0whn7kKQcEh2m3 HRvrRr3QoyiyapvpbYlnI5nw6neNdnjXEoVJDgxj8niqrnOdAq0ZVO39fxOhsvCP0o6d eZJpAcjdHkCbbkCgXvrz3QVyUm5ikI8ONJD+uZosAzsOJez7fZeiAM8CTYUAIjxYQXKl MCnWXCTuARoLfDs5VIYY/CFbKaO9mG4Cql6FVvMckBpWArLNjeZTddhn7bnsVhkj5fsJ I3mG8ZuPyGXWFtpUb9rvjuQsJh/8BamUyPrCVudWoLJ/gBy6uB4Esq/r2nZU+NJjyUUX PUGw== 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=0BsX+6QcXw6rHLLRawoqX7fllrWhR6ahvN2bobOcMT4=; b=Nqx0AH3zxrDFyA4ELuqSrQ8z4sEVnybj/bSDtnprGatdQtahFMaNmWAgQmewIrIs04 WLwQkvZfGSgqrvfimoBIGm+p/VkWdBD0gAwfOarrkUZwdItpLg+xmnT4yhD7b2MgY9fy BP6Xx696blfhwM0jeEvaGiUF33nMon+emlJ2D88/1NGjisZLWD6G/E46enFPf0Nqoh53 kxN1dLAXgeZeV/zGBBoler7kE0uSb4h6lqaLUw9su+Tc5dP0Supy3j21ZRGI5uoF0pEx 2+MNnjg+GlgD9goNfxmHFbII+Wu6hpjYfZwjDr7zdqrKv/LJv7YCzyMPRr2zsohKlFqZ yZrA== 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 l4-20020a056a0016c400b00571a681de73si20818996pfc.293.2022.12.08.05.37.46; Thu, 08 Dec 2022 05:37:55 -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 S230097AbiLHMts (ORCPT + 72 others); Thu, 8 Dec 2022 07:49:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230037AbiLHMtm (ORCPT ); Thu, 8 Dec 2022 07:49:42 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E97A727CD1 for ; Thu, 8 Dec 2022 04:49:41 -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 X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4NSYrh50JTz4xZ7; Thu, 8 Dec 2022 23:49:40 +1100 (AEDT) From: Michael Ellerman To: bgray@linux.ibm.com, Nicholas Piggin , Michael Ellerman , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH v2 1/5] powerpc/code-patching: Remove #ifdef CONFIG_STRICT_KERNEL_RWX Message-Id: <167050321439.1457988.16908884696488370128.b4-ty@ellerman.id.au> Date: Thu, 08 Dec 2022 23:40:14 +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 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 Fri, 2 Dec 2022 09:31:39 +0100, Christophe Leroy wrote: > No need to have one implementation of patch_instruction() for > CONFIG_STRICT_KERNEL_RWX and one for !CONFIG_STRICT_KERNEL_RWX. > > In patch_instruction(), call raw_patch_instruction() when > !CONFIG_STRICT_KERNEL_RWX. > > In poking_init(), bail out immediately, it will be equivalent > to the weak default implementation. > > [...] Applied to powerpc/next. [1/5] powerpc/code-patching: Remove #ifdef CONFIG_STRICT_KERNEL_RWX https://git.kernel.org/powerpc/c/84ecfe6f38ae4ee779ebd97ee173937fff565bf9 [2/5] powerpc/feature-fixups: Refactor entry fixups patching https://git.kernel.org/powerpc/c/6076dc349b1c587c74c37027efff76f0fa4646f4 [3/5] powerpc/feature-fixups: Refactor other fixups patching https://git.kernel.org/powerpc/c/3d1dbbca33a9c6dd3aafd4d14aaea9cc310723e1 [4/5] powerpc/feature-fixups: Do not patch init section after init https://git.kernel.org/powerpc/c/b988e7797d09379057cf991ae082f9ad7a309a63 [5/5] powerpc/code-patching: Remove protection against patching init addresses after init https://git.kernel.org/powerpc/c/6f3a81b60091031c2c14eb2373d1937b027deb46 cheers