Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1331799rwl; Thu, 10 Aug 2023 09:34:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFXYAPLMZv4tOYVRbVmISCR6qTfpJxPYu7XixXUKsWdbwDq6wMTtbuKYYVUFCoLuV/gRXFW X-Received: by 2002:a05:6a00:1301:b0:687:1aa6:8821 with SMTP id j1-20020a056a00130100b006871aa68821mr3577561pfu.9.1691685259898; Thu, 10 Aug 2023 09:34:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691685259; cv=none; d=google.com; s=arc-20160816; b=XKIfNrpqKCFJmr3t4fHfLvBY6omzLEhLyaQhDuctVQlJmMMIRBBSaL6BCJ/bhRwFX/ tcLeAkoIpkbpK91pT7d3NJtzCpSjk2nbgnHItcwx4kPgIldbAo3F8Yr+jXWD4WZCep2A +YXR9yJYMePjFJoOgD0CQOj/10TfXqsQmH7WDfjuRx0VFqL7o6NOjxwJ/JfDhnVwpmwx tqzv83k0NSaO+cpayzuL3HXtltEsaaTUgmUqbRrrKwcsHgIAczwaz8SkDOBMlXeztYOU N6Alc0XsPwBonrGHw8n6R2oDsDWB/Vs4CqUx5kCSYnROyvWLZqQ8/IWbhaI/sW/8IEZC anBA== 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=+wW/OqFjcpj2hWUgHAkE0o3wDeFAKAeYWszueJEivBI=; fh=SaOFPRZIn500Mx8BcYse2gF8CeS6asxxoZdEhqDR87g=; b=I739jy6pw5znp7x8A5fB0vCl43hNFSes74migkcIU6lVYYK4bF7ahUk8zr2qHYpuFl JVkjoOlBkkzqX+SQ9w7k6asQR2ZIm8Hd9Vth84+gdBmq0kjkRVRiTr03KWk8VXnR4BkH XB+vAmDrbuFl+LmbcHyre0h4GQKY7v3oRFfaSqfDKoj+ziDJy1UcuVn2RrUTPNls2XkL g5GvVnj7JpWgkl71L2UJUw5KYQh2Z327VYk+Ecnqd7QhfUby71JGcLkVCy0a/qojqA+k lsRa5CDWI9km7UOngLGfwaNrtYQzOcL1ziymB3lRNqk1SeazRXL8QRRtTiZ32TkBGWoi t4zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CrnN1X9S; 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 t2-20020a056a0021c200b0068718434501si1832619pfj.301.2023.08.10.09.34.07; Thu, 10 Aug 2023 09:34:19 -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=CrnN1X9S; 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 S236483AbjHJQKn (ORCPT + 99 others); Thu, 10 Aug 2023 12:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236481AbjHJQK0 (ORCPT ); Thu, 10 Aug 2023 12:10:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E22F30DA for ; Thu, 10 Aug 2023 09:10:09 -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 A13C56629E for ; Thu, 10 Aug 2023 16:10:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16FBAC433C9; Thu, 10 Aug 2023 16:10:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691683808; bh=NzYbY6fgKqePhu5kbnmOHqphDUf1P3cZSTDiD6+oCWU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CrnN1X9SckoYQXfAWns1HxdtwNDdymCiYqpoxmKbzGa2sAxxTzjDyJIsjVMOd2hi8 qJ9n266NSjQBNARr4Sj0DQoRFWwdWP+dbKJjjInNGN6J4sXk5ylXwWtMzZAZf3E6ua m841ZeUjHZ2lPxPzIx/EmrZJhnBgrbfpgr4gD9KS3xut0L5NGnqmgfQql0Z99XnPmF xm50O91hOQWkjjRDl/GNZ4p0sWnhcDlWid8LV+Db8Uv16w9xn5CFQdvac2ksfqs9qo FzLGG+CBsARBN3YDK9140SmuvbCpDvh8FiAb4Lg7KK247Kjhqf8AZBtH1WQHMamgXt 38jr6K8xD+/fg== Date: Thu, 10 Aug 2023 12:10:03 -0400 From: Josh Poimboeuf To: Borislav Petkov Cc: Peter Zijlstra , x86@kernel.org, linux-kernel@vger.kernel.org, David.Kaplan@amd.com, Andrew.Cooper3@citrix.com, gregkh@linuxfoundation.org Subject: Re: [RFC][PATCH 06/17] x86/cpu: Add SRSO untrain to retbleed= Message-ID: <20230810161003.i65d37ozlt3d5xse@treble> References: <20230809071218.000335006@infradead.org> <20230809072200.850338672@infradead.org> <20230810154404.GOZNUFxHxLIMth6j9s@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230810154404.GOZNUFxHxLIMth6j9s@fat_crate.local> 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 Thu, Aug 10, 2023 at 05:44:04PM +0200, Borislav Petkov wrote: > On Wed, Aug 09, 2023 at 09:12:24AM +0200, Peter Zijlstra wrote: > > Since it is now readily apparent that the two SRSO > > untrain_ret+return_thunk variants are exactly the same mechanism as > > the existing (retbleed) zen untrain_ret+return_thunk, add them to the > > existing retbleed options. > > Except that Zen3/4 are not affected by retbleed, according to my current > state of information. > > I don't like this lumping together of the issues even if their > mitigations are more or less similar. I tend to agree that SRSO is a new issue and should have its own sysfs and cmdline options (though a separate CONFIG option is overkill IMO). The mitigations are unfortunately intertwined, but we've been in that situation several times before (e.g., spectre_v2 + intel retbleed). -- Josh