From mboxrd@z Thu Jan 1 00:00:00 1970 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 4C083C83003 for ; Thu, 24 Aug 2023 04:48:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239553AbjHXEsZ (ORCPT ); Thu, 24 Aug 2023 00:48:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239268AbjHXEsK (ORCPT ); Thu, 24 Aug 2023 00:48:10 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 026B410E4 for ; Wed, 23 Aug 2023 21:48:07 -0700 (PDT) Received: from nazgul.tnic (unknown [78.130.214.203]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id EC95A1EC014A; Thu, 24 Aug 2023 06:48:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1692852486; h=from:from: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:in-reply-to:in-reply-to: references:references; bh=RkY6/PlaNbCqHbv+mUg57FRSqwR1Kl3iWtSEf5+qhJc=; b=ZddjU+aqVPN+y/UZWp732PjduPNPh4cZDTJHKb+cmdpGMIi/4jQ/LY46NfiQwszyIti6Xi ZwRRqJ9LBWRL2KAE45riEwbES9tzRUa34RMmnxHa1ybFBuZvoBq7F5oO1VPHHe9tSUgNU2 sdGAug9MjzO3VV+FWoiLDiToUbPJoFA= Date: Thu, 24 Aug 2023 06:48:18 +0200 From: Borislav Petkov To: Josh Poimboeuf Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Babu Moger , Paolo Bonzini , Sean Christopherson , David.Kaplan@amd.com, Andrew Cooper , Nikolay Borisov , gregkh@linuxfoundation.org, Thomas Gleixner Subject: Re: [PATCH 10/22] x86/srso: Print mitigation for retbleed IBPB case Message-ID: <20230824044818.GDZObhEh3MWZN8vcfW@fat_crate.local> References: <3836b2e27c9537d95ecce2a1e33e53315176ebc1.1692580085.git.jpoimboe@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <3836b2e27c9537d95ecce2a1e33e53315176ebc1.1692580085.git.jpoimboe@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 20, 2023 at 06:19:07PM -0700, Josh Poimboeuf wrote: > When overriding the requested mitigation with IBPB due to retbleed=ibpb, > print the actual mitigation. > > Signed-off-by: Josh Poimboeuf > --- > arch/x86/kernel/cpu/bugs.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c > index da480c089739..4e332707a343 100644 > --- a/arch/x86/kernel/cpu/bugs.c > +++ b/arch/x86/kernel/cpu/bugs.c > @@ -2427,7 +2427,7 @@ static void __init srso_select_mitigation(void) > if (has_microcode) { > pr_info("Retbleed IBPB mitigation enabled, using same for SRSO\n"); This print was supposed to do that. Now you have two for the IBPB case. If you want to print it using the usual format, then whack the above. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette