From nobody Tue Feb 10 00:21:37 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6EAADCA100C for ; Tue, 5 Sep 2023 16:41:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245035AbjIEQkj (ORCPT ); Tue, 5 Sep 2023 12:40:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354201AbjIEKJn (ORCPT ); Tue, 5 Sep 2023 06:09:43 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 298951B6; Tue, 5 Sep 2023 03:09:40 -0700 (PDT) Date: Tue, 05 Sep 2023 10:09:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1693908578; 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=Nikn5nT7mRHvGuQLwVBZ0Tw3TXMGsLO8Dii3obYIOYU=; b=42/D4NUkB4MoudoV+LPb5GgePntdt/1tLdLx1Z9Pd1CZNHb5keyrxWwdBnv7kkj3Eaijeb ZRomIbeKjiASLsxuXClDDaCeHMTzhfsh6wXkjfvwBK8/oC9ryp8pLCh0cfSXvfmnOsCjx+ YfdI3IlR+Lai8TgromOJ1go1l+ERORRusa9P13s5YKPZbtxsQMZqDp3J/Fgpi2qgj5Fbai NEH76u2m4MmmhQMTYKyl7A8t6EWJYRZ5hUjdvz2GguA+rKfso5D2YHWsxnhjGujnUtnEGE k247Shm70iGLfuyoe2WkUEiMNWJah9OQQ0T7TBJf3NaM4Kcmr2cWj77Bb1hYLg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1693908578; 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=Nikn5nT7mRHvGuQLwVBZ0Tw3TXMGsLO8Dii3obYIOYU=; b=WHVYaKTfZQxINf2OL6tNKh6uAVhzBYT9Cf6wWt8QrzC6eGPy6IArNY0fuxTtvdG4D/3er0 TXKaV7ZVAi/5nuBQ== From: "tip-bot2 for Josh Poimboeuf" 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 , Ingo Molnar , "Borislav Petkov (AMD)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: MIME-Version: 1.0 Message-ID: <169390857829.27769.8589230734646512218.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/bugs branch of tip: Commit-ID: 2294b77c2483ebc7a6c1cca2becf6b0164564a5b Gitweb: https://git.kernel.org/tip/2294b77c2483ebc7a6c1cca2becf6b016= 4564a5b Author: Josh Poimboeuf AuthorDate: Mon, 04 Sep 2023 22:04:51 -07:00 Committer: Ingo Molnar CommitterDate: Tue, 05 Sep 2023 12:05:06 +02:00 x86/srso: Print mitigation for retbleed IBPB case When overriding the requested mitigation with IBPB due to retbleed=3Dibpb, print the mitigation in the usual format instead of a custom error message. Signed-off-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Acked-by: Borislav Petkov (AMD) Link: https://lore.kernel.org/r/ec3af919e267773d896c240faf30bfc6a1fd6304.16= 93889988.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) =20 if (retbleed_mitigation =3D=3D RETBLEED_MITIGATION_IBPB) { if (has_microcode) { - pr_err("Retbleed IBPB mitigation enabled, using same for SRSO\n"); srso_mitigation =3D SRSO_MITIGATION_IBPB; - goto pred_cmd; + goto out; } } =20 @@ -2490,7 +2489,8 @@ static void __init srso_select_mitigation(void) break; } =20 - 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"); =20 pred_cmd: if ((!boot_cpu_has_bug(X86_BUG_SRSO) || srso_cmd =3D=3D SRSO_CMD_OFF) &&