[tip:,x86/bugs] x86/srso: Print actual mitigation if requested mitigation isn't possible
Message ID | 169547161243.27769.14468505492181595370.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp302160vqu; Sat, 23 Sep 2023 10:47:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEYy4e8IJy01xUQH4kJUmMJXJ7iGHuus1UyTgn6AA3eUDryYE6l1SSLP1dhu6BNe+PSOhdE X-Received: by 2002:a05:6a20:1451:b0:154:a1e4:b676 with SMTP id a17-20020a056a20145100b00154a1e4b676mr3858116pzi.4.1695491221774; Sat, 23 Sep 2023 10:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695491221; cv=none; d=google.com; s=arc-20160816; b=NWgFaACxb4zRP1C78tM4BdyQMT4JQe2YD7H2In/tMQFktfYdxfnB+4vt8oXbbdj+ib dkBbeqbCAklhgXqDSmGj1sy0ulX7Ge/ftqyzWnXN3UGDgHM2YVaZ5G78NKFQNzEiCUXZ yGCth6/BhBuv0jLVYikkXWwTcAIufUvorLuJa4RO7/T2jMlbBkuJ8Iz1zMzHIcBKHh1Q eYgC1UvfwlG+b+BUy8Jl3K+bPr+QbmJXZxTrp/+eRAaxXq8UIc9jSFpGCuI43iYWZa6r o+pnA9cq/21NfDr97a7FYIx08T44JWdUD4zSnzkXGdRmpHJb3f/HbYEXi3Y4V2CWZrI/ ULiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=7WhUjWOTYtXHh/5KhjL7Q0CvVvEnG8Xg2ak54ziNto8=; fh=TJa98jjcJcAUyvo2yQiOqi+wukdLlQU80th5XskGe8U=; b=c3KSN6w6k2q5Up8aFsiKqUThILIw/9DWtXqCB/qQzwr6lnlwy6VkBMZt9pA9mq1irJ RssOxVSLPiVvrTTMDRoYkRHbt1xRVx3z80IUZn+DsIfW7L+/Wrocd3WQEZToZUP44Hr/ AG6zJXuevm0fG3znHbqTJ6LRqgmmh/L9fZCGi2IFxk2xo2JDvR+ruNuPoz1UUT+Gh2Lp hFjM0SLq4YQ2ao7wv38EQ9NsCdM3HIweYAY4m18YBQlUZp2WL1kU3koZuuEGD3dSWagv Qq7J8j/5R9Ddn8MOzgJLWfDaZZc/aWf+TLBUYG3gueemUKFE1cDmpJgCIbdRzcShDVL8 49GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Tr8u3MAM; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id by7-20020a056a02058700b00573fa4cfe4asi6881201pgb.39.2023.09.23.10.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 10:47:01 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=Tr8u3MAM; dkim=neutral (no key) header.i=@linutronix.de; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 17DA180713C0; Sat, 23 Sep 2023 05:21:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231867AbjIWMVB (ORCPT <rfc822;chrisfriedt@gmail.com> + 29 others); Sat, 23 Sep 2023 08:21:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbjIWMU3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 23 Sep 2023 08:20:29 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56EE01B3; Sat, 23 Sep 2023 05:20:14 -0700 (PDT) Date: Sat, 23 Sep 2023 12:20:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695471613; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7WhUjWOTYtXHh/5KhjL7Q0CvVvEnG8Xg2ak54ziNto8=; b=Tr8u3MAM+IBgtbsOF014ujH90WT/L5x01937BGxmkOQTkkA0QHgE7x9byEUmy29SBwtYZ3 wUWWSoNSv0VKJhPFU1wTH7tBWPg5Em5RPzZn5iagxH2yKjlrcUMa9tM1bekzbqMasC3WIO FnbBGe1/HmnBEHiSr3s5yJJHqQtpqvOhU8LaroacFNcVVLz6OmW6TVlMr9UQRn1SsPWHb1 JJGytv7bw5drOXz5SRL8+2GOY04q8LIu3Vohb4uqNUJ/CW7QrJBUAPBxGJ5kYS55Rn4jMR rMK4Mxe8jSCC9uFtg1e4cZDgbMJDOJ9fBHZdkbczhcTcRQExTXCDPkVRKtTaAw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695471613; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7WhUjWOTYtXHh/5KhjL7Q0CvVvEnG8Xg2ak54ziNto8=; b=udgNR4OcwMV9Vi8yceYxkgr4FRJAJttzgg4jA8LSKox4DCJE9eujGS26ORa97rqTZAbscM maUT3OVROUe3MbDA== From: "tip-bot2 for Josh Poimboeuf" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/bugs] x86/srso: Print actual mitigation if requested mitigation isn't possible Cc: Josh Poimboeuf <jpoimboe@kernel.org>, Ingo Molnar <mingo@kernel.org>, "Borislav Petkov (AMD)" <bp@alien8.de>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.jpoimboe@kernel.org> References: <7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <169547161243.27769.14468505492181595370.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 23 Sep 2023 05:21:15 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777466394389056941 X-GMAIL-MSGID: 1777851403372048677 |
Series |
[tip:,x86/bugs] x86/srso: Print actual mitigation if requested mitigation isn't possible
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Sept. 23, 2023, 12:20 p.m. UTC
The following commit has been merged into the x86/bugs branch of tip: Commit-ID: f9548addc12d02ee731ccd4a91ae55657e819d7d Gitweb: https://git.kernel.org/tip/f9548addc12d02ee731ccd4a91ae55657e819d7d Author: Josh Poimboeuf <jpoimboe@kernel.org> AuthorDate: Mon, 04 Sep 2023 22:04:50 -07:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Sat, 23 Sep 2023 14:13:02 +02:00 x86/srso: Print actual mitigation if requested mitigation isn't possible 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> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/7e7a12ea9d85a9f76ca16a3efb71f262dee46ab1.1693889988.git.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 2859a54..235c0e0 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;