Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp453023iog; Fri, 17 Jun 2022 06:47:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tsinaYO4hd+m2LcZYZS5z1EZtoefaulBvQ9SocO3rBT5HdgCgpvsGrEgdI3UIG79IS8zI1 X-Received: by 2002:a17:907:3c81:b0:6e6:cf3e:6e14 with SMTP id gl1-20020a1709073c8100b006e6cf3e6e14mr9370086ejc.181.1655473629537; Fri, 17 Jun 2022 06:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655473629; cv=none; d=google.com; s=arc-20160816; b=Oys5KB7uWxkInbgwTZA0+nvJZT2Smql5ckCmDMHpsMgDnM62w2g+grYbK+nIQZ00lu umpcXWrfb5DRoAYGMuKtVgzoD0E5jSekLXaaNKIPIDuV9PxtyhVhQuAxlICxwCQwN+Eh rf/mmBaTywLU7dr3pw17Helul40KFbpOTt55jFA4Ow8bLN+ogPdwOsOjALdvL17HanW9 cixUeKgezBjgP8GpSQQwVukSb7n7A8H8lLh8kelk5HFUYhNB/Q38JiICSL5ryWyagkVA 9El+KjvMLh1jzdTrcPy2aAMaIURmm0zCYk9VA4sSNaA7qjyCCYrs+dCkd7xXGGovf673 vQKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zDpXDuqpvgzFWjIbNlcO+gbKjzhBODohTr3+PF/LVl4=; b=pLRUPt0v2D7FdOEKaar0Dz36trcj2D3OEC7y5qMy3EBv8DJEh2Xsww/SAlbPruvhdZ ebpwktKSUzgcocQ5iAO85cYQVAUUKmZ2++gHcmJ78w0UJ+k/QWfFi67qw2bwBYL7gfye X/JMZtUGASSFQSx9Ple+Lwt6wwUCfaj3yTTS/ysvpIK8fljy2IxzZWUWQpYqVZFvEPVj dEbp+7H/L/oWOPlRenRDCY/ZX4IZrtBFnL9B06UXAZ8faH6Kb97P0mFBwhTvNiZD63MX q2KsXcgd3Zfy539znDYfT5Jo8xrnthl7Y0HXgFPrSqevuXTesgmyjp+9JuyYaz3MQjjo 5Y3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FxYZ47ZI; 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 gt33-20020a1709072da100b00711c694564csi5237699ejc.705.2022.06.17.06.46.42; Fri, 17 Jun 2022 06:47:09 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=FxYZ47ZI; 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 S1382271AbiFQNkc (ORCPT + 99 others); Fri, 17 Jun 2022 09:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381935AbiFQNk3 (ORCPT ); Fri, 17 Jun 2022 09:40:29 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03ADC3F30C; Fri, 17 Jun 2022 06:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zDpXDuqpvgzFWjIbNlcO+gbKjzhBODohTr3+PF/LVl4=; b=FxYZ47ZIOZ1WA+g/I4/tSaO7Xe 3ysEJ7+2R/wI9vsqiRGfQaj9lnENjMIH2p2msSDcu768oYrmXlqg2N7wo+R4tlvKBKLlcgE+520Bq Njom2JorsnWaR8vuuqrTrsy5KPV3OAf1TeQdYgLeYqWU9VF7/LbGCQacHzGt0J19tBygNEkt9d2ud nP3gGNeXsFSGnJNEuyjC82J31PWPKnpGCDsfQNzTCuwndU4E6eFZKOLADh3LcFL3DhdA2m7XZ3s0V U8Pzi6+amx1m5gRzPpC9bJMOp2VIBTrkhwRLDg3b7ANYaLScwQgpOJT/DTzn4cCzkYwXi0ButxeBD ztAFC6/A==; Received: from dhcp-077-249-017-003.chello.nl ([77.249.17.3] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1o2CD0-002s0x-Hi; Fri, 17 Jun 2022 13:40:22 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id A799E9816B5; Fri, 17 Jun 2022 15:40:20 +0200 (CEST) Date: Fri, 17 Jun 2022 15:40:20 +0200 From: Peter Zijlstra To: Ard Biesheuvel Cc: Linux Kernel Mailing List , Mark Rutland , Thomas Bogendoerfer , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , "open list:MIPS" , "open list:S390" Subject: Re: [PATCH v2 3/3] jump_label: make initial NOP patching the special case Message-ID: References: <20220615154142.1574619-1-ardb@kernel.org> <20220615154142.1574619-4-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Thu, Jun 16, 2022 at 01:25:02PM +0200, Ard Biesheuvel wrote: > On Wed, 15 Jun 2022 at 17:41, Ard Biesheuvel wrote: > > > > Instead of defaulting to patching NOP opcodes at init time, and leaving > > it to the architectures to override this if this is not needed, switch > > to a model where doing nothing is the default. This is the common case > > by far, as only MIPS requires NOP patching at init time. On all other > > architectures, the correct encodings are emitted by the compiler and so > > no initial patching is needed. > > > > Signed-off-by: Ard Biesheuvel > > Acked-by: Mark Rutland > > Acked-by: Peter Zijlstra (Intel) > > --- > > Documentation/staging/static-keys.rst | 3 --- > > arch/arc/kernel/jump_label.c | 13 ------------- > > arch/arm/kernel/jump_label.c | 6 ------ > > arch/arm64/kernel/jump_label.c | 11 ----------- > > arch/mips/include/asm/jump_label.h | 2 ++ > > arch/parisc/kernel/jump_label.c | 11 ----------- > > arch/riscv/kernel/jump_label.c | 12 ------------ > > arch/s390/kernel/jump_label.c | 5 ----- > > arch/x86/kernel/jump_label.c | 13 ------------- > > kernel/jump_label.c | 14 +++++--------- > > 10 files changed, 7 insertions(+), 83 deletions(-) > > > > This needs the following hunk as well, as spotted by the bot: > > --- a/include/linux/jump_label.h > +++ b/include/linux/jump_label.h > @@ -220,8 +220,6 @@ extern void jump_label_lock(void); > extern void jump_label_unlock(void); > extern void arch_jump_label_transform(struct jump_entry *entry, > enum jump_label_type type); > -extern void arch_jump_label_transform_static(struct jump_entry *entry, > - enum jump_label_type type); > extern bool arch_jump_label_transform_queue(struct jump_entry *entry, > enum jump_label_type type); > extern void arch_jump_label_transform_apply(void); > Done, Thanks!