Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1958139rdb; Tue, 5 Sep 2023 09:51:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmxv2X14y2uf1oh107xW2xG2t6jtuydyhkM9V739Zg7Xtoziz77IMzIWyg0xfv2wGRxKz7 X-Received: by 2002:a05:6512:230e:b0:501:b3e6:f307 with SMTP id o14-20020a056512230e00b00501b3e6f307mr4534479lfu.2.1693932698374; Tue, 05 Sep 2023 09:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693932698; cv=none; d=google.com; s=arc-20160816; b=nKknQy1pHKqzNx1pVpb5619bbMv4feE2WxnKEQJToHnpztFvK9m6UAEAc0fivhF0dU Aiqn1RnZBJkjHhlLHJ6gSPLGlaIuM9+XaXpM2t3N59IKSvzxVcTekOZoZK3OwAI9u8Y0 LPylTm4qkLyueG5k1MIqcJ7vIvMEKmWv4m9RBoPQ0xq7Jmq83ZBrepaTEdirM4l5FpPD MTQL+prGXO6LQo+4YK7aqEVoD4yb0S/Xe/0C6vFIBr54zyNeGF0sYw1cjO7/JDC5Dkbl DlBrj0IMjMR9pt1QPp7YcSONx/2mk5kuFZ2HMed9eLF7H2BVPb1DzrHUwyaIHxY5jGDq M0TA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LJrUzc7kPXsypsFG8rFky6xsHqjxQTcbq31ykslFFUE=; fh=ZwaEcDYNCnlh+U7YxZ1LCEcet9pcdhSkEX0cCEOksvY=; b=J+L8mPMsIVKfb89dwfyumYMycY8hip54CceFaxZA0q4dC6IIXCtf1detI+ACpngUtS JnhV4E65Uek4wl/I5hqwJH68AxRtuIwuy0KE+KPeJYlxqfZECK3w09Z8mZi8XprVHh8n WImx7yiuCopFdreH06XfRAHJL7QnjOvGAuPRhr9d22Y8YWSFO4dfbMRmAG445+fV5C24 S7gLbrDoqG/GqyxSpA7KHAkiq/bMzvmFtNhv/GC8Edg2KxvhN5nW03+chEStdO1Oz9xB MmzV10EN1zQ8O6Qj4HTEVNyJNKMHQVWqyU/uLTNHg6RrpjAy7JR3MqKXPK7Gnzq4dXPg zqqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uCF2PukU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d14-20020aa7ce0e000000b0052889bc60e8si7932009edv.97.2023.09.05.09.51.12; Tue, 05 Sep 2023 09:51:38 -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=@kernel.org header.s=k20201202 header.b=uCF2PukU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352398AbjIEQ1V (ORCPT + 99 others); Tue, 5 Sep 2023 12:27:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350948AbjIEFFQ (ORCPT ); Tue, 5 Sep 2023 01:05:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BE9218C for ; Mon, 4 Sep 2023 22:05:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id CE88FB810A8 for ; Tue, 5 Sep 2023 05:05:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B840C433CB; Tue, 5 Sep 2023 05:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693890310; bh=IuB7d7u3ZasrJgf6zWs7ZIAwIpl7dQyQe9v+nAwbKYs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uCF2PukUXjchG9OFTipxyx6+qp03BnPf9X5ZDX4bmI1wXdlUTZOjjXCCJ/FwKvyQZ nqaMKA11X53xmuTePeTQ5bhwxxpUoDlB9bGXvSgZJLuNpvFhiEIki9XhV7Cwo+DUIZ xludqMA/OCip5bf7WeT/6wnhJtExj05c2Wv8RTptvGzjgMSaAhYRic+bZkICdgGAM6 Z56Gke4t5KCmiBXbs0i+atUSpDaU2u3wkQ5YOXffU8RLjPKxcbGydxCAdLNc06DuLq rYjk6n4g4Rgh28XM6glxgTvqSOEz3lFL2CEzgd/RW1+1kndMaD0qph/1gtuK/8yZTc TG46XsrUEeMqw== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Borislav Petkov , Peter Zijlstra , Babu Moger , Paolo Bonzini , Sean Christopherson , David.Kaplan@amd.com, Andrew Cooper , Nikolay Borisov , gregkh@linuxfoundation.org, Thomas Gleixner Subject: [PATCH v3 06/20] x86/srso: Print actual mitigation if requested mitigation isn't possible Date: Mon, 4 Sep 2023 22:04:50 -0700 Message-ID: <7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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 If the kernel wasn't compiled to support the requested option, print the actual option that ends up getting used. Reviewed-by: Borislav Petkov (AMD) Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/cpu/bugs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 2859a54660a2..235c0e00ae51 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -2461,7 +2461,6 @@ static void __init srso_select_mitigation(void) srso_mitigation = SRSO_MITIGATION_SAFE_RET; } else { pr_err("WARNING: kernel not compiled with CPU_SRSO.\n"); - goto pred_cmd; } break; @@ -2473,7 +2472,6 @@ static void __init srso_select_mitigation(void) } } else { pr_err("WARNING: kernel not compiled with CPU_IBPB_ENTRY.\n"); - goto pred_cmd; } break; @@ -2485,7 +2483,6 @@ static void __init srso_select_mitigation(void) } } else { pr_err("WARNING: kernel not compiled with CPU_SRSO.\n"); - goto pred_cmd; } break; -- 2.41.0