Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5746971rwb; Wed, 9 Aug 2023 08:35:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHw3GpydRNjTFT3rYR5fUc0J+2tpHdqPCtNpr3HaU51lPXkmv8yPDNCqhWmXoHBQ5TK4ff4 X-Received: by 2002:a05:6a21:7788:b0:13c:9869:1aba with SMTP id bd8-20020a056a21778800b0013c98691abamr2895321pzc.45.1691595350501; Wed, 09 Aug 2023 08:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691595350; cv=none; d=google.com; s=arc-20160816; b=izW+l7YGmpwUTOAnhZazOT1PMkKuF2fqyT/M8rIlkDJ5V6oRaPWzdaVNZaeVFTqpID JPu7eOwuLqR0wR4352NsIAaetwkbGO+tONwtVOA3MLlIh6xXPflUpXcU5ZgGVmGBSxq5 iVcmm7ob8Aq2B9xbCDM103glHqQd6/j7DHfZOINjCh4NcZhR1SK2V4G2ZmhCW/SSSkWg S+iOQ3hdFdrOEz8c8icg7VpnvPtgeKP/28LLUS2nflzQDbHmp39IV9t7Q+4Zn0BBKdtf rfGdnMvDfnM2bDeAaNd4toxJu5eAV2jfVKMoWKNHqhgofH4dj9HrOwwcrtxgPlvwfadd 7tPw== 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=0ObpDcYNsRG0VzR5n0awEO1RSnMJz4dwJFr4ldIsC+8=; fh=nIqJPQrB4V45MOdRoOCBABHD990j3QSMCgsf+X0qIaI=; b=FftpQzTUxv5VFvUo28Zi5mRoU0EaStcMwnJ/u0to/l06ry+thvgVorlNo4ib5tdFBp rgR9gqo2sFNT9KMWhRiy2ECh4JoVIVfVuMgbTwXqGxddc6Cob/IUTIOOEvfRVhTCjM2c 8jHLLJ/ydQvkWo58bryWpWaqOaBj/aPEVLTZKiFLYWGbN8tcEqhWEzRfQTPlBQOQeC3+ MMOajlz20+Qat20dKC7b52Lvh0Tl8hXuWbBcwRAhViF3Vapshl6Ygogm6BO+sDrGgtGh /DAVAQdo0sbXwRWv5Y1s0TC05dHNmEos8czsFh6FLLc3BQ95k/Ypu4HeMnRUGZAM5o4r JMUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KUnvAil3; 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 y39-20020a056a00182700b006825d2884acsi9648175pfa.72.2023.08.09.08.35.37; Wed, 09 Aug 2023 08:35:50 -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=KUnvAil3; 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 S233427AbjHIOwE (ORCPT + 99 others); Wed, 9 Aug 2023 10:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234011AbjHIOv6 (ORCPT ); Wed, 9 Aug 2023 10:51:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDE01EE for ; Wed, 9 Aug 2023 07:51:57 -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 6BDFA63D01 for ; Wed, 9 Aug 2023 14:51:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06DF7C433C7; Wed, 9 Aug 2023 14:51:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691592716; bh=Wr9cFgm6xSs6mjUOqRcDglcWyGoDaCa70ogEzfhhv8E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KUnvAil3pqUkXhx7zaD1OmRPIvBmhPYjzifd33X1fpvpoJ3pQpCYZkc+M/LZ+LVx/ iXWIs0zFP0uH1BL7dc0PyAWpZZqlkK52vLizD1IoSQ8F9y1fjpjRXr24yYoqUWUtjr JNvBb2zMPOH37CIfsQqceY9bu64qbzO76NL/ZeAA74qJ/UjfnAYGZ4hz4xwtgfBHlV d+lvwRUPb7DOanscaWPZO7DdYrhS8B18+v2Rcp9TYN/D1jOZdhbKOakVwV8PDAaRPd sev9b5XuARfyuDjrjOdqcqN+gMRAXBXqYMKbbYdUbx4m0azFMlKS21XyEI2M8ssTGo LamPYdqEQruBg== Date: Wed, 9 Aug 2023 10:51:53 -0400 From: Josh Poimboeuf To: Peter Zijlstra Cc: x86@kernel.org, linux-kernel@vger.kernel.org, David.Kaplan@amd.com, Andrew.Cooper3@citrix.com, gregkh@linuxfoundation.org Subject: Re: [RFC][PATCH 11/17] x86/cpu: Remove all SRSO interface nonsense Message-ID: <20230809145153.cl7gys2ddagecbuf@treble> References: <20230809071218.000335006@infradead.org> <20230809072201.192502969@infradead.org> <20230809140530.bijq3asl26d2pu7u@treble> <20230809144335.GR212435@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230809144335.GR212435@hirez.programming.kicks-ass.net> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Wed, Aug 09, 2023 at 04:43:35PM +0200, Peter Zijlstra wrote: > > > if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD && > > > boot_cpu_data.x86_vendor != X86_VENDOR_HYGON) > > > return sysfs_emit(buf, "Vulnerable: untrained return thunk / IBPB on non-AMD based uarch\n"); > > > > > > - return sysfs_emit(buf, "%s; SMT %s\n", retbleed_strings[retbleed_mitigation], > > > + return sysfs_emit(buf, "%s; SMT %s%s\n", retbleed_strings[retbleed_mitigation], > > > !sched_smt_active() ? "disabled" : > > > spectre_v2_user_stibp == SPECTRE_V2_USER_STRICT || > > > spectre_v2_user_stibp == SPECTRE_V2_USER_STRICT_PREFERRED ? > > > - "enabled with STIBP protection" : "vulnerable"); > > > - } > > > + "enabled with STIBP protection" : "vulnerable", > > > + cpu_has_ibpb_brtype_microcode() ? "" : ", no SRSO microcode"); > > > > Hm? What does missing microcode have to do with SMT? > > semi-colon then, instead of comma ? Nm, I was confused. Comma is fine. -- Josh