Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2130718rdb; Mon, 20 Nov 2023 02:59:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNx5MYl1eeCudpSAZHMC7x4Y6EkvbuIgnidHvy5El7WgTI+1PXWLsOEbvlGgnsIWLGZkkl X-Received: by 2002:a05:6830:1101:b0:6d7:dd35:2a9c with SMTP id w1-20020a056830110100b006d7dd352a9cmr367789otq.20.1700477979209; Mon, 20 Nov 2023 02:59:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700477979; cv=none; d=google.com; s=arc-20160816; b=HZZsPRxyD6PdEw6x5u+az1GCTckjLXVWE2oVD0+gjcplVkpQodsr/mym74p7VBj2t0 34xvEBps7jX7/OBMAJQvH1q7vzYo8RP4xHmxVB+BUu5kMGQSmuUPOMTlmg6YyANI0gY9 3xTsV72aTl/jWqKXYGEPkQo1Xg8Hs47ZF6O6efIC1qMAz8ka13cWK5s2OGfAhn/10K3y dy19s2Le5m7kNckzguw1XrUXsFf4tXaESGgPNo2hFa+vZRhHoyWl52qS6iBh9wHmykj9 z6p38AGcqgX19/nA5Wx5X8tR75LO6CFSBEu85Cj4GvCDHDmn9oQXKnPh6GPw105dEeha VzhA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=w3RVGtwvMaa0LWKwchTi9Ln865mxgwWs3dJKxuLZfco=; fh=bEaXtmS8lzRItYrE/RfaVyKNdc9i8y6GHBEJVBz/DUE=; b=FwkKUiSPxJio1fRV3Wx3VA7govTlKngIIXC0Gm1P1Cb0JsxxBwnj318gY1JtuiKYEw LFFxg4A3GDmMQ1oB52U2i/kSQ6Rr6RNVTHfbL47RXEVx96N9IA3TC3VGGuFUFYk4rvyg JY7VuW7U+ZSJHQc/BoWY2wx2U7LNPZseq858hfwMsyWolaPEQo9WgmFgINbDmC/0TkgQ IhTsV4DDCqU8x9sfRJ4QmKecHsj16vykdmte+ltml8NhrIoEsutiNoi+ncBj36okSpNr gidS869jLhEtAnpVZva8eH6OrgkC0mzGQ7M3eZ/ftj7FFfAeVIMx0Ljpp/9OX3WdV/RD oZ7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I4EqiGCn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k2-20020a633d02000000b005bd2ab86667si8162615pga.651.2023.11.20.02.59.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 02:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I4EqiGCn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 20BE68072158; Mon, 20 Nov 2023 02:56:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232963AbjKTKz7 (ORCPT + 99 others); Mon, 20 Nov 2023 05:55:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232742AbjKTKz4 (ORCPT ); Mon, 20 Nov 2023 05:55:56 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1D15E8 for ; Mon, 20 Nov 2023 02:55:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700477751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=w3RVGtwvMaa0LWKwchTi9Ln865mxgwWs3dJKxuLZfco=; b=I4EqiGCnLPfV7lAjM9em7p7V6qCAAnWZTlJ+QwA2hzhIO+upLwO6osjvgmT0lhaVDPN00M zaebeB36y0u+9n4oS6uOFfqJJkvv9v9ROs0ozVAe8TWPgFWsOuVQQ1EoaNFZQuAAq665xs an+v5Bl2RtmbvwcGvf9O8A9FUzFb0Ek= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-148-KaDYnevWOLCl99oI2912ag-1; Mon, 20 Nov 2023 05:55:47 -0500 X-MC-Unique: KaDYnevWOLCl99oI2912ag-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 79FFD28B72E2; Mon, 20 Nov 2023 10:55:46 +0000 (UTC) Received: from vschneid-thinkpadt14sgen2i.remote.csb (unknown [10.39.195.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0AA7A2026D4C; Mon, 20 Nov 2023 10:55:40 +0000 (UTC) From: Valentin Schneider To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-arch@vger.kernel.org, x86@kernel.org Cc: Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Josh Poimboeuf , Pawan Gupta , Ingo Molnar , Dave Hansen , "H. Peter Anvin" , Paolo Bonzini , Wanpeng Li , Vitaly Kuznetsov , Arnd Bergmann , Jason Baron , Steven Rostedt , Ard Biesheuvel , Frederic Weisbecker , "Paul E. McKenney" , Feng Tang , Andrew Morton , "Mike Rapoport (IBM)" , Vlastimil Babka , David Hildenbrand , "ndesaulniers@google.com" , Michael Kelley , "Masami Hiramatsu (Google)" Subject: [PATCH 0/5] jump_label: Fix __ro_after_init keys for modules & annotate some keys Date: Mon, 20 Nov 2023 11:55:23 +0100 Message-ID: <20231120105528.760306-1-vschneid@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 20 Nov 2023 02:56:11 -0800 (PST) Hi folks, After chatting about deferring IPIs [1] at LPC I had another look at my patches and realized a handful of them could already be sent as-is. This series contains the __ro_after_init static_key bits, which fixes __ro_after_init keys used in modules (courtesy of PeterZ) and flags more keys as __ro_after_init. [1]: https://lore.kernel.org/lkml/20230720163056.2564824-1-vschneid@redhat.com/ Cheers, Valentin Peter Zijlstra (1): jump_label,module: Don't alloc static_key_mod for __ro_after_init keys Valentin Schneider (4): context_tracking: Make context_tracking_key __ro_after_init x86/kvm: Make kvm_async_pf_enabled __ro_after_init x86/speculation: Make mds_user_clear __ro_after_init x86/tsc: Make __use_tsc __ro_after_init arch/x86/kernel/cpu/bugs.c | 2 +- arch/x86/kernel/kvm.c | 2 +- arch/x86/kernel/tsc.c | 2 +- include/asm-generic/sections.h | 5 ++++ include/linux/jump_label.h | 1 + init/main.c | 1 + kernel/context_tracking.c | 2 +- kernel/jump_label.c | 49 ++++++++++++++++++++++++++++++++++ 8 files changed, 60 insertions(+), 4 deletions(-) -- 2.41.0