Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3821694imw; Mon, 18 Jul 2022 15:19:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vlm2c+3nX8NEFcOp/u1iIuXWiZIBYHH1XfxpmnfVWoPn7XGLSklfDDGsU6qe0Px8YqBKWC X-Received: by 2002:a05:6871:1cc:b0:10c:15:648e with SMTP id q12-20020a05687101cc00b0010c0015648emr15345253oad.276.1658182777320; Mon, 18 Jul 2022 15:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658182777; cv=none; d=google.com; s=arc-20160816; b=iN0mJaGEnGg5CYgZR/qRUQJxp8McXq28jsYxlMS+aCf3t0CDRhPkjgOiVYa7hFcM/O VP305AYpAEWgvE6CIZf4WSz8TbLvfkL1NV08/qkTTDDCwXzKtszoXKHKRKh29X7ceKKx 6kBqQLLTBIdzBiLa2H/vmdYkbFW736G60dgV/Rqt1n3EhC4dYitNVE9hvtnjjjn88wHM pvRr7GWlOfItLptS66U4Z0pX6qZs95TPejb1PvMiccIUYwv8Fl53r8E7OtbLpxrjcro3 67xTmGxKqr8uuYfYWGKpkrERVGEGPh8x66DEEq/oLOUrsK332/Vl5OO5yMi7NpfP5Jkn nQXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:to :from:date:dkim-signature; bh=hCnMqaD5w6X4h1smVOeulyXHGnrQ3edjw87XVqMWrx8=; b=0T5Rn8Twgf5Gh6ISHYh7NvIhcJukPN4nd1ZVTfF6JLDj24lcdM2VBgqO3B3J2JNSk3 idobYxsWe7munZCgaC5+P9zACbQYh2/kfGCOM/OKHkEt0mN7mR72N6ByKPzPUsMYZr0s c8pEo2DbT4fpHqHAxr4Y87FVXrdEMl0RldXcW6sAkLvu/zMZ9ZgUBiaIS1FhdVVvsJYm KZScN2jjJ8CGDDMdok0UvhevawfKkpmzxMEQSvob/1gpSxSo+cBqdgG0p7KgS+kY5+sX NdONnUXiu248dDLzrOa6RigvgRIdWR/4Opfk9dsiFp5bseMTrF8ebyuaMANT7NyyEPgE lv5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ntlworld.com header.s=meg.feb2017 header.b=3JlOvd4W; 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=QUARANTINE sp=REJECT dis=NONE) header.from=ntlworld.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a056870e30e00b001023fc37af2si11027084oad.173.2022.07.18.15.19.24; Mon, 18 Jul 2022 15:19:37 -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=@ntlworld.com header.s=meg.feb2017 header.b=3JlOvd4W; 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=QUARANTINE sp=REJECT dis=NONE) header.from=ntlworld.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234267AbiGRWRV (ORCPT + 99 others); Mon, 18 Jul 2022 18:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232115AbiGRWRU (ORCPT ); Mon, 18 Jul 2022 18:17:20 -0400 Received: from smtpq2.tb.ukmail.iss.as9143.net (smtpq2.tb.ukmail.iss.as9143.net [212.54.57.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F6B92CDE2 for ; Mon, 18 Jul 2022 15:17:19 -0700 (PDT) Received: from [212.54.57.107] (helo=csmtp3.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDZ3F-0004Sq-V8 for linux-kernel@vger.kernel.org; Tue, 19 Jul 2022 00:17:17 +0200 Received: from llamedos.mydomain ([81.97.236.130]) by cmsmtp with ESMTPA id DZ3FoPKOj45FHDZ3FoyRHC; Tue, 19 Jul 2022 00:17:17 +0200 X-SourceIP: 81.97.236.130 X-Authenticated-Sender: zarniwhoop@ntlworld.com X-Spam: 0 X-Authority: v=2.4 cv=e64V9Il/ c=1 sm=1 tr=0 ts=62d5dbed cx=a_exe a=OGiDJHazYrvzwCbh7ZIPzQ==:117 a=OGiDJHazYrvzwCbh7ZIPzQ==:17 a=IkcTkHD0fZMA:10 a=RgO8CyIxsXoA:10 a=zd2uoN0lAAAA:8 a=AqaP6XfnJfmMz2SymAQA:9 a=QEXdDO2ut3YA:10 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntlworld.com; s=meg.feb2017; t=1658182637; bh=hCnMqaD5w6X4h1smVOeulyXHGnrQ3edjw87XVqMWrx8=; h=Date:From:To:Subject:References:In-Reply-To; b=3JlOvd4We8l/HmB31t2Jm28fnrHB7sHrqRlH9wdmQVOvSDK2DS5IjsehjN4ok6QnZ Mx2BJx8MuvrNCI/3lgcFiS4fsJ+Z6LJ0eCBqyRg3u/RL1IVMGveB98XeZXmPeYz0pb RECeaFAfTHIfjM0xCReoKdiDXvIrFfVc8vVP1Od23qupCI1m9wLRb0gR/w1EeGGLmM Px1ESs2OKY+VMVYA2+hikr23W2+Do7hqrkTGb9vVYxvJ1qcj7n7bIAtRYYHbCYEWP8 r9iDLnkH4QgMqG27IZ90OUO4BS0M351y/9Dn3TGvEjOiRLDmEWj9lEK4F8ZgecrsJF cF+BVETIaqwdw== Received: by llamedos.mydomain (Postfix, from userid 1000) id 93E9A8DB5C; Mon, 18 Jul 2022 23:17:17 +0100 (BST) Date: Mon, 18 Jul 2022 23:17:17 +0100 From: Ken Moffat To: linux-kernel@vger.kernel.org Subject: Re: Retbleed, Zen2 and STIBP Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Clacks-Overhead: GNU Terry Pratchett Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.2.6 (2022-06-05) X-CMAE-Envelope: MS4xfHcZL6CKDZHFu/rOSnTEFhABp9eoNf+HOyH0N1xNAoWQHP7jjVOqcOUzpCpBdneUNur+3zFiu5kv7grf5HYCmzgUkVpE6hDhEHw2obZrE4U+Xu9MOGx8 Zi3+HdmiDWRCuQh2MN+lkA7ZdG2K+I4RQLu4kWrpH55tBKuvmlJKrY5FoweiQvA+PkBzr6X1MLkGigcybxbp7HVx8apr+yI3s10= X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Mon, Jul 18, 2022 at 09:19:01AM +0100, Ken Moffat wrote: Replying to myself to close this speculative misunderstanding. > > While ibpb might be available (and slow), on my Renoir with > microcode level (0860106h) there were no newer microcode versions > available when I last looked (a few weeks ago) but note 7 at the > bottom of > https://www.amd.com/system/files/documents/technical-guidance-for-mitigating-branch-type-confusion_v > 7_20220712.pdf > implies that the relevant bit is only set on Renoir in 0860109h and > later. > > Some of the text in that pdf implies that at least one of the > options could be set if not already set from the microcode, but the > amount of detail leaves me totally lost. > Now that I've tried the options, I can see that ibpb *is* available on this zen2 desktop machine (and no, I have no desire to use it, having seen how much things slow down). The default (auto) on this zen2 is the same as 'unret', i.e. Mitigation: untrained return thunk; SMT enabled with STIBP protection ĸen -- It is very easy to get ridiculously confused about the tenses of time travel, but most things can be resolved by a sufficiently large ego. -- The Last Continent