Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1531587rdg; Sat, 12 Aug 2023 05:23:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG6JN/0GCz2NYShgtV+07Uq71netNpSDE5Zl0QCNdmFwCYLMjE3l6CKxG06VaqPRr2ryZN1 X-Received: by 2002:a17:902:f814:b0:1bc:2437:e54 with SMTP id ix20-20020a170902f81400b001bc24370e54mr5057405plb.24.1691843002543; Sat, 12 Aug 2023 05:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691843002; cv=none; d=google.com; s=arc-20160816; b=vhNaPX2ayU4islqfpQOX77ibukysmapMtg/8H5XcAGPB6D/seRq2JnNqYpDQuFPmWl eOmc8PgV+nexY6i1i/gUUvqmNctFgKKrtg8O2k75e8moAc9kmf3fz58QDhBq2b+8UywC mGapCZDkswxocirvoAnd7VxNooa9oVftF9yiic6F57naOD+cmHtYJrEYPRflxhAnSF+M uZ4GBoWvaP7O78iC+gIJciV/fy6vTHJnt1quI/4R68AJC26pvKOHmTS2XKqy8/+GydRT YM6elLHFV7DWEUb1R1EV0KBQsyrMbIBtvGa1hF8U8jYpk7MRmzzQNG+gIriAXmqwBA4A pl6w== 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=uRy5b2NDQ5YKh+tB78UZj7bxdV6CalOnVkbxdfzY2JU=; fh=sQ5UOls/2bIFvj30+LlyY3F3fYWvIiaHMBV1xSt+x0c=; b=OfrhQigXuid5jjBU9hRi80FGVlXK1MMKarIFAS+Jd27zs1TQb1ezojJOxcohuWYXhn GGOATqmnOd0BYkT3aFI/1HU3OfKtOzUkbjbEHz6w6Xi0yJN7ZoDK3WA/hi4J0zorylAM kS0M/1i7zbeQhyw4msHF+19a7gabITXGVY/MMJVBZOIqhbOFZD2Jhirfk+52ZnwskozK hhppI8ckq8/a29wY4GZIy73y2fGR04NjIXriQEp2fZuGxIx8NCWU1Bge+mMcC7sxn3Pe HGV9b6CxeOn6B6bD+X0M2yskbvp2y36tZoG0jtQoJcuYR140yiWuMFXkySTr1XF2DSWX bL4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=AiCIrL48; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b13-20020a170902650d00b001b80434583bsi2537816plk.227.2023.08.12.05.23.10; Sat, 12 Aug 2023 05:23:22 -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=@infradead.org header.s=casper.20170209 header.b=AiCIrL48; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232050AbjHLLYW (ORCPT + 99 others); Sat, 12 Aug 2023 07:24:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231307AbjHLLYV (ORCPT ); Sat, 12 Aug 2023 07:24:21 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01A2D110 for ; Sat, 12 Aug 2023 04:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uRy5b2NDQ5YKh+tB78UZj7bxdV6CalOnVkbxdfzY2JU=; b=AiCIrL48rafub7NnMeQYmStmqP 7aZf4f3ww+/XVQX6zSmeA+ujCLf+RlMHkLwJcW+LqOOT05naYe5oTxl6V4zpTj0hRcHWnTXAgNheN ECyug4DUXb8pWV4cQ3WNKQFryBjLXuSKCXx5DM9cEOwOF/WEOiRrDGpZ7f883bCVWKEBnrJ4neINO dvDqHkCMWXRP5Sv7tdpYKHqkvdzAyB0c083j3gyfLsnz5TlEpQMR8pg6aIsEH0mlHqYPz/iwqvdrj tg/U7C+Homybpsj5Ou4hVnrBdf2gLNgbDmiYH4FZHdifDha8fDDFs0/fSNIQ07jOcYWBcTPQeoIgh HVxlv6UA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1qUmiz-0078qN-MU; Sat, 12 Aug 2023 11:24:05 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D4BA730057E; Sat, 12 Aug 2023 13:24:04 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B791820410DA2; Sat, 12 Aug 2023 13:24:04 +0200 (CEST) Date: Sat, 12 Aug 2023 13:24:04 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: Borislav Petkov , 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: <20230812112404.GB749618@hirez.programming.kicks-ass.net> References: <20230809071218.000335006@infradead.org> <20230809072200.850338672@infradead.org> <20230810154404.GOZNUFxHxLIMth6j9s@fat_crate.local> <20230810161003.i65d37ozlt3d5xse@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810161003.i65d37ozlt3d5xse@treble> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 12:10:03PM -0400, Josh Poimboeuf wrote: > 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). That very experience wants me to avoid doing it again :-/ But you all really want to keep the parameter, can we at least rename it something you can remember how to type, like 'srso=' instead of this horrific 'spec_rstack_overflow=' thing?