Message ID | 6eaaf0680dc8c57a5c61e9445b589169371f50a8.1692580085.git.jpoimboe@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2835659vqi; Mon, 21 Aug 2023 00:22:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGP6YmRoaN/BnIneQbjBPC049DUwmDdweg98QKSxcy5g3/p8zZCkUn2QwAFDjSu4ZBgIwC7 X-Received: by 2002:a17:907:7623:b0:99d:f0e8:5623 with SMTP id jy3-20020a170907762300b0099df0e85623mr3995058ejc.54.1692602531627; Mon, 21 Aug 2023 00:22:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692602531; cv=none; d=google.com; s=arc-20160816; b=b2TRM64GG5Lbj5V5igWNMIUVh429PVu2ghELNHYenBZyh+PvF0sF/zEd5GhCnmrTow EELOna+93O8YqRfuyk/o7sEw2e348js/vjQ2VXqzQxuoWZzSNHZCW5Y9EMMQb82rsTjK f/XJ791LncWi5yRtPXP4/t2YM70p3zNlh4JZhYoKqLfec7uENh7uEn+3VqSsVFEdIbO7 MgxcMYR79M8psBioaVsdv755jeRV3MmiIujiJhOA9muM/gKyq9V3cjWpUzxnZw5WFe0r jBRYLOTRFq/ypwYT2DxJFjraHxUd+HwOS9JvFE7TjIAy572Tf4OZIFmBmb/qiQZ9cfpI JydQ== 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=s0MyYfbr/zSpDGwWfNM+i44fvpgkz/Dn8Ju/FDoOLXk=; fh=1KVrD/LnRsN9N7k2d12iARV4DA2tVMW012QtKSrD46c=; b=bg8XioPhgDbY0KyguZ6jaMEVxbwY8JHGCVxlhCkQ7OIwOJl5BxyHb9JpttTFWEwJMx QuHPfUTTrC2uNsi9E6FAdxeqxaSNUcrYfzW9G6y9Gtk83KBiz2S4Gcyb/Vt50A0f6Ibj yORXRljmMmAD82hQsk3sURX8uccWOSq8hEkIqEY5+j+6+Pret2Fg610fXaB4IHe5BRKt rZ7hO3I5POyuw4wFxHYm3oLoZxuzDh2DuUGmh0osHWi1CO7hduPPMo7Dv1hNAMrWqlwD rThlzqbwqlbrdEAsC9wbBG2C1hgPbFuHSjtNIXW1gmg1N7IgWWtUgEWD0tGXMA0YeFD4 MMTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=twdOzBuS; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a170906154500b00987d66e6d26si5105474ejd.250.2023.08.21.00.21.48; Mon, 21 Aug 2023 00:22:11 -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=twdOzBuS; 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 S232303AbjHUBTm (ORCPT <rfc822;chiang.bai@gmail.com> + 99 others); Sun, 20 Aug 2023 21:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50708 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232282AbjHUBTc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 20 Aug 2023 21:19:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69B0BA0 for <linux-kernel@vger.kernel.org>; Sun, 20 Aug 2023 18:19:31 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 499FA6260A for <linux-kernel@vger.kernel.org>; Mon, 21 Aug 2023 01:19:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 467B2C433C7; Mon, 21 Aug 2023 01:19:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692580770; bh=KnSxGMkMYqvVYSB4k0ly/1z4B47bW+EAymF48KXoKGs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=twdOzBuSlNbaNUhUJKLguFajHFuYhRj99egxZUqQbBAN93TX5JeOXCF+7NfpHI1f0 yUkLU2fn9rKUryEVu3QwMIsjJ5yftsBx3N/sgun+62ND9HOoFeTgNxqdiY2+LVXWjq I99XYW6BVnmek0yhxCMRGAFkT7o2bWmxa1gjy4JYCBEF6lvUqtQUmilBG2KqyLphD8 okqCa3QIfTNP38JH1G6C9erGMuxtYt0ItSDBtTSqge0nLX/NKpxQRJaB/0WhuOv8e4 2FrUGKda3ISIVPzQAN3qq3lrUcoGabfd3m5Ui3pwYy5uwW4wUPhuQGFCQBauwqYEaX 38bAZBjyow4+Q== From: Josh Poimboeuf <jpoimboe@kernel.org> To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Borislav Petkov <bp@alien8.de>, Peter Zijlstra <peterz@infradead.org>, Babu Moger <babu.moger@amd.com>, Paolo Bonzini <pbonzini@redhat.com>, Sean Christopherson <seanjc@google.com>, David.Kaplan@amd.com, Andrew Cooper <andrew.cooper3@citrix.com>, Nikolay Borisov <nik.borisov@suse.com>, gregkh@linuxfoundation.org, Thomas Gleixner <tglx@linutronix.de> Subject: [PATCH 06/22] x86/srso: Print actual mitigation if requested mitigation isn't possible Date: Sun, 20 Aug 2023 18:19:03 -0700 Message-ID: <6eaaf0680dc8c57a5c61e9445b589169371f50a8.1692580085.git.jpoimboe@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <cover.1692580085.git.jpoimboe@kernel.org> References: <cover.1692580085.git.jpoimboe@kernel.org> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774822392357223676 X-GMAIL-MSGID: 1774822392357223676 |
Series |
SRSO fixes/cleanups
|
|
Commit Message
Josh Poimboeuf
Aug. 21, 2023, 1:19 a.m. UTC
If the kernel wasn't compiled to support the requested option, print the
actual option that ends up getting used.
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
---
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 ff5bfe8f0ee9..579e06655613 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;