Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2141299rdb; Thu, 17 Aug 2023 11:56:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFigqTgOWiq8hRq0aI+5X7J+jX5dKO05d9JYUMXtYMws5rcK/c8RuKuZzogg8BYXjs8DuO/ X-Received: by 2002:a17:903:1212:b0:1bc:69d0:a024 with SMTP id l18-20020a170903121200b001bc69d0a024mr327829plh.33.1692298585680; Thu, 17 Aug 2023 11:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692298585; cv=none; d=google.com; s=arc-20160816; b=hi8pjvj13Rue8oc/75lCRGcONJ+SC+ey/5jdJdy+90SgQ0eIfmLiZyR1hJasCZrkLW ngAZZPyAXeWzU/TtFufniSeM2VKxt7vwXBvrCfKWv0oOM5gXZvkTndpqE++GfPQs1SDM agz1T7Lv81rarjW5j0NnmcWMTaRdo9wh8etzb+baNq30iGCHflIBSICtRC/Bal3JqtGk CJFI22PIg4ddX06F/8caQ7QM/h9W9yj+CnhY0/kU05F3Pt2vdzYU+LK90Vo/Z+VoPcCD 3KxTa5BM6pRrDWuY7LzSTjHpCW4SzfdCUpWcKG2wWrL+G4HriDD9I9R9N74stqXuuX6l 99Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uvnPgEuic1Jggdmg7dQVC6Zlf/UTREQ5i2bDnAIGRCM=; fh=gKLyGoVE5kyeekC9wm1hIBWPDfgK5z4wsOZ8yWMTN4s=; b=Khdn7V1TqCIF2wCdbfiopdMjopowf9iyOccetpIZp996Wl5Upa59f5AIxmZ+qDggzh fa4Oh2S0HH2Br3IC/2xcJfrWg0SfPEFCYEJcbsB+5I0UdIrftR+6jiiopm5Yi2k8pv4I 6A15cIX19Ps/+oZAJA87lkjs1ng2y0H95xoEAP14aHi/FRWeBxbZHQnBnp2aaQfDA+MG mqr3WwtIURquAYNYKIPyDOguNXGqn6geNWMdt6opxLJhQlhvezuGxv2lbgJ8IDgeD5Ak YxAPh6Obrj6zBhkUGx60yKFfGK7E+PEDxveYFjSpyjAkxf3SLXKLZH8HqrMIa223xEHS 1b0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="oV/uPJOH"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902db0a00b001b89b63b877si117896plx.446.2023.08.17.11.56.13; Thu, 17 Aug 2023 11:56:25 -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="oV/uPJOH"; 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 S1352363AbjHQOyr (ORCPT + 99 others); Thu, 17 Aug 2023 10:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352390AbjHQOyc (ORCPT ); Thu, 17 Aug 2023 10:54: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 460DA30F1 for ; Thu, 17 Aug 2023 07:54:27 -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 D052167391 for ; Thu, 17 Aug 2023 14:54:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 014D5C433C8; Thu, 17 Aug 2023 14:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692284066; bh=zNN/g2JEV2MQM8Bk9Kb5enaybQWGkgP+9T/6BrJgIxg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oV/uPJOHtATL/EGrGtqxS8C+/lo+NIBrSI9qdUo6DCw5snH/vLu5tQBL9n+ma4bOO 0FvDGCC9urv+ylLk/ElEii1mEunlhnNgUH92lfZQYW/goFKxBnb069ZLVCmMe/mD2x oFcUyOrkIL06is9bTa5jJChAGKFelHO8DsTr6bXEukQEkBberZ4bve88NxO33M3UlI PnJGshBYJFuS3g1QQqcJTOogj+N0YDTcXx250Ee4oOybQ9BXVO/MCq12Ky7k36NL+5 TenAk5v3Pdx+p8TWmyFcSciEPzyRMwQHpt5pEp0FdAc7m8Zwe/zvy4kfwOfZIjAcjP yh888be2oTHpw== Date: Thu, 17 Aug 2023 07:54:24 -0700 From: Josh Poimboeuf To: Borislav Petkov Cc: Nikolay Borisov , X86 ML , Josh Poimboeuf , LKML Subject: Re: [PATCH] x86/srso: Correct the mitigation status when SMT is disabled Message-ID: <20230817145424.g7hkq7zj2iotaedn@treble> References: <20230815095724.GBZNtMBPUJSEegviJN@fat_crate.local> <20230815195831.2opbgrznnpszaa32@treble> <20230815201753.GGZNvdcbPHXtEXn4As@fat_crate.local> <20230815212751.xhsyn7iwj2gwpuk5@treble> <20230816083057.GCZNyJQVARsxD3rNAm@fat_crate.local> <20230816160757.oegndrcnf2fvt7l3@treble> <20230816173531.GMZN0I40DEFE38Zxuz@fat_crate.local> <20230816182940.xw67h5xbilqpb5au@treble> <20230816185830.GOZN0cVl/pJcZUiPGY@fat_crate.local> <20230817090727.GBZN3jT0+gH2iTyeOF@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230817090727.GBZN3jT0+gH2iTyeOF@fat_crate.local> 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: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 17, 2023 at 11:07:27AM +0200, Borislav Petkov wrote: > From: "Borislav Petkov (AMD)" > Date: Tue, 15 Aug 2023 11:53:13 +0200 > Subject: [PATCH] x86/srso: Correct the mitigation status when SMT is disabled > > Specify how is SRSO mitigated when SMT is disabled. Also, correct the > SMT check for that. > > Fixes: e9fbc47b818b ("x86/srso: Disable the mitigation on unaffected configurations") > Suggested-by: Josh Poimboeuf > Signed-off-by: Borislav Petkov (AMD) > Link: https://lore.kernel.org/r/20230814200813.p5czl47zssuej7nv@treble Acked-by: Josh Poimboeuf -- Josh