Message ID | 169780184235.3135.8762098632049050879.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp991024vqb; Fri, 20 Oct 2023 04:39:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEuCeILcyLAaPvbCyWr18p3FPFVZxGhbxesu56Xs+8vTRDu/IgzAX/SGLhRCwJXfszyEiUU X-Received: by 2002:a05:6a20:734c:b0:17a:e2dd:ea39 with SMTP id v12-20020a056a20734c00b0017ae2ddea39mr1845494pzc.5.1697801951686; Fri, 20 Oct 2023 04:39:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697801951; cv=none; d=google.com; s=arc-20160816; b=PzoXWu+O3tNxAmXnNs+0Mr5BBNUDw3i4nBO8aVJdqPuY7FJaQ+UsQxhld8Q9Qbukv3 z5OlRdE3V5sIgADa7qf7cSXJpxdwl4OCLlzfxwhDQhZB0Pb9cHdp5OvcrC7ZoZhPD3x7 PgI1KJdCdT3aViGIguOqKCew7hZ5NypFzizNreVJYBDfo3fTwWmad3yUzE/PLtSUSq/J hYKIPLEPMZ4X0TmxFinZF9mUHzgkhAFm+0iyadd8heKvPcR40j0KmQ1MOOx2qLt3RDtL V1sq0xL2+tuOYHWLx3bnLO4jiFzNOSvs1Pmhh461ntZRMNpX7E3cMPJHb60MkPLQiKAc xUAA== 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=VZnpPAqbrmv02HdC2w4Y3PtXSM3mmPBUz8+kcQ5+Adw=; fh=TJa98jjcJcAUyvo2yQiOqi+wukdLlQU80th5XskGe8U=; b=KXXIx/Y2HPPM/BuLmJIuwwead2F6HNuANsRnGqacysWPuxynFrvuFS5C2KZx6H4XSx KjireynEEJNcE+iAnBMEPHxtfFrp1JbrRBEgUFi+/JOibi8hutKE0sPSCMN0S358xvQY 8HrGAH5NSeApmLxTe3rPuCLe86Qw4LzgK4gVr0ZfU4U2U2mDPMqTemWXdGWJgEEgkrHL GqXsLDvYpvJq3sbzcT3wPoN1/Pf6OydU/JDGsCajLZjybrAc4j+KtCSBBHfI0XScIQrn wiInLGPbGNiG6zKmtIT0YOfraj9O3mDusJLy7QUnKera/dbojGzA4t72+aEou5Ew9+7c gtOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=h6O1zJr8; 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id pi15-20020a17090b1e4f00b0027749a1fe74si1799814pjb.182.2023.10.20.04.39.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 04:39:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=h6O1zJr8; 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:2 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 agentk.vger.email (Postfix) with ESMTP id C8DAF82EA15C; Fri, 20 Oct 2023 04:39:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377172AbjJTLiL (ORCPT <rfc822;lkml4gm@gmail.com> + 25 others); Fri, 20 Oct 2023 07:38:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377209AbjJTLh1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 20 Oct 2023 07:37:27 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EC99D68; Fri, 20 Oct 2023 04:37:24 -0700 (PDT) Date: Fri, 20 Oct 2023 11:37:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1697801843; 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=VZnpPAqbrmv02HdC2w4Y3PtXSM3mmPBUz8+kcQ5+Adw=; b=h6O1zJr8vYsDscJEJhPrBRGFLx56y452Arg7XKtxFxRIL5LUsLi+TnIw/7263kFIkBDViA 3WuRVQSGis148MyNEEC8A9M+MTONIA5QICQ47bdsWq1+2+egTkXWSFPFlHbYjLocgaJ/0c YFLrnwRrFwLkuC6z2A3H1SjMxKSJHqnbd2RWTC5+91f1jkbAU/y+ZT1wgoEM1SST0CKKQn fMJXyTjGNVNWS8MovGTK0OVTcCIDc1MJyVlgsyNMq+654/ZX/8rbG3o+wJNKG/FzzA12ra VNwS869PwnBqszEIGDmkZuvO8yKGfdtux4muj7aewL6x8UG4Oqw6hp+UyNsUuw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1697801843; 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=VZnpPAqbrmv02HdC2w4Y3PtXSM3mmPBUz8+kcQ5+Adw=; b=fVwOEpHuuk2FN8H5FSfdFlwZ7xCsBqCPNpqQedq9F127TeoS7e5KlqPMv2/Vs8N+ZWhvCC 7mwLTbXMO2Y+NYDQ== 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 mitigation for retbleed IBPB case 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: <ec3af919e267773d896c240faf30bfc6a1fd6304.1693889988.git.jpoimboe@kernel.org> References: <ec3af919e267773d896c240faf30bfc6a1fd6304.1693889988.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <169780184235.3135.8762098632049050879.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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Fri, 20 Oct 2023 04:39:04 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777488420390080099 X-GMAIL-MSGID: 1780274379026648714 |
Series |
[tip:,x86/bugs] x86/srso: Print mitigation for retbleed IBPB case
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Oct. 20, 2023, 11:37 a.m. UTC
The following commit has been merged into the x86/bugs branch of tip: Commit-ID: de9f5f7b06a5b7adbfdd8016f011120a4e928add Gitweb: https://git.kernel.org/tip/de9f5f7b06a5b7adbfdd8016f011120a4e928add Author: Josh Poimboeuf <jpoimboe@kernel.org> AuthorDate: Mon, 04 Sep 2023 22:04:51 -07:00 Committer: Borislav Petkov (AMD) <bp@alien8.de> CommitterDate: Fri, 20 Oct 2023 11:45:24 +02:00 x86/srso: Print mitigation for retbleed IBPB case When overriding the requested mitigation with IBPB due to retbleed=ibpb, print the mitigation in the usual format instead of a custom error message. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Acked-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/ec3af919e267773d896c240faf30bfc6a1fd6304.1693889988.git.jpoimboe@kernel.org --- arch/x86/kernel/cpu/bugs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 235c0e0..6c47f37 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -2425,9 +2425,8 @@ static void __init srso_select_mitigation(void) if (retbleed_mitigation == RETBLEED_MITIGATION_IBPB) { if (has_microcode) { - pr_err("Retbleed IBPB mitigation enabled, using same for SRSO\n"); srso_mitigation = SRSO_MITIGATION_IBPB; - goto pred_cmd; + goto out; } } @@ -2490,7 +2489,8 @@ static void __init srso_select_mitigation(void) break; } - pr_info("%s%s\n", srso_strings[srso_mitigation], (has_microcode ? "" : ", no microcode")); +out: + pr_info("%s%s\n", srso_strings[srso_mitigation], has_microcode ? "" : ", no microcode"); pred_cmd: if ((!boot_cpu_has_bug(X86_BUG_SRSO) || srso_cmd == SRSO_CMD_OFF) &&