Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2553090rdg; Mon, 14 Aug 2023 06:20:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFMi3JVUl235MPqERKR47W7ftC95O1wOgwE9L9K/GuVqLlkPbKrayaUdRdJG+lGVUH4T+ml X-Received: by 2002:a05:6a00:8d2:b0:687:8d09:43ad with SMTP id s18-20020a056a0008d200b006878d0943admr11228672pfu.28.1692019250703; Mon, 14 Aug 2023 06:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692019250; cv=none; d=google.com; s=arc-20160816; b=pWouTawZ9rFBHCxN/vY7lLqXDUsr4R0gx0W2gCnN2P9nhnBJK+2Ta8mUyfbMxirY9M lhk5geENL5vu3LcUQ0rgjd7R+Lh4w7IM4M2OzUzhFKl8pQanqnjY4HtEEliuiAYGvUh1 wTjmiYcDRl5A8w+7cfz8qW5aH9IktPqD6Zt0X7NgKp5FAkMnEZjZgHW7gmkP1Rpt878x QSsjZAh7GsYo8JPr9Sr54TrXi/g6YrbzHB9vMaawG0EG/ulNS5M3CVGtRUXUVpAinbSo Gmx8V10KUCcPayzOnU7LGjkkH55N6GKi6h9xpaCWOsPgHLIjvAG6CdPukBupNz0kuyLq DpOg== 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=hQX5RifFZ0HXPMgoLU2kmdpF1Nywn2pwg80ZuekRJEs=; fh=2g4/SIH0VJTyGcE67nGxUuYnGfb1EtSDdVL8+qddqpQ=; b=XIDfpOuAi7khsuHLTeXVE0Bcj4X4yt/bxPGnbKcLu2Ii+8qRMVScFLw6chBuXZeXPb K+NqKkKoQKxk+IoU+4rRd4GclDjbfk0rCQbBfUeTtKyavrhloXTHHEmiTF5dpuPu0+J9 2seNABR2ZD9B8xz3EdGYgmlaMPUMac/nLfHEMp4Bc258jXIs62Rq65D8NosksKU3Jlr4 nYoVfgQ1tBDM2Vc4vqlxXF1465PBwQuhxeTPnMMh8c9poh58JZkgR7uXKMQtRdS38J7M DfJcEzteSr7/jruIBDQGJBeI0rglb18xszOxweXlIBYDOLzX1bmxArgG4mAdla/yvZTO 8AkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=B4yYf7xy; 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 k28-20020a637b5c000000b00563e2a668b4si8129662pgn.160.2023.08.14.06.20.38; Mon, 14 Aug 2023 06:20: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=@infradead.org header.s=desiato.20200630 header.b=B4yYf7xy; 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 S231397AbjHNK5S (ORCPT + 99 others); Mon, 14 Aug 2023 06:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232327AbjHNK5A (ORCPT ); Mon, 14 Aug 2023 06:57:00 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4F23195 for ; Mon, 14 Aug 2023 03:56:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=hQX5RifFZ0HXPMgoLU2kmdpF1Nywn2pwg80ZuekRJEs=; b=B4yYf7xyDUdIVTPhZ+VtdS2h0t JA3ICpL1OhGiU0ruWTrWHY584Cq0dWNGcBkmP0Nv23MxNy8N7xZHASvp7zKNUx6IaO962udaAVjcp YP+OdfAXqKphlp4bjDjRbkdgrgIz6GAyuHeExnDu+T/2412dZrBKPVhbAcwBXU3Dk4SPgz2AC8Vbw wtc804WvmTlcPcTgVRERK0GgP9RaPdy7hf66BrVVXdnZAkwUWOlnrXwKyoY69hdlIW4GR+4kzNkPF htOIkYwYWkDG9LofuuZCTs67yh8h3k2X2oSXGMiVDzdHZ3KzcozEmgSQeVylxD8Naizs0Gl1AX56v qWxnaVkg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qVVFV-00AX2Y-1s; Mon, 14 Aug 2023 10:56:37 +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 35CBF30020B; Mon, 14 Aug 2023 12:56:37 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 115ED21C0E9DF; Mon, 14 Aug 2023 12:56:37 +0200 (CEST) Date: Mon, 14 Aug 2023 12:56:36 +0200 From: Peter Zijlstra To: Borislav Petkov Cc: Josh Poimboeuf , 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: <20230814105636.GE776869@hirez.programming.kicks-ass.net> References: <20230809071218.000335006@infradead.org> <20230809072200.850338672@infradead.org> <20230810154404.GOZNUFxHxLIMth6j9s@fat_crate.local> <20230810161003.i65d37ozlt3d5xse@treble> <20230812112404.GB749618@hirez.programming.kicks-ass.net> <20230812121034.GDZNd2umHEqcQNaFbJ@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230812121034.GDZNd2umHEqcQNaFbJ@fat_crate.local> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Sat, Aug 12, 2023 at 02:10:34PM +0200, Borislav Petkov wrote: > On Sat, Aug 12, 2023 at 01:24:04PM +0200, Peter Zijlstra wrote: > > 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? > > I'm all for short'n'sweet but last time I did that, Linus said we should > have option names which aren't abbreviations which don't mean anything. So: 1) do you guys really want to keep this extra argument? 2) if so, can we *PLEASE* rename it, because the current naming *SUCKS*. I really don't see the need for an extra feature, we can trivially fold the whole thing into retbleed, that's already 2 issues, might as well make it 3 :-) If we're going to rename, how about we simply call it 'inception' then we haz both 'retbleed=' and 'inception=' and we're consistent here. Then I'll make a compromise and do: 's/zen_\(untrain_ret\|return_thunk\)/btc_\1/g' so that the actual mitigations have the official amd name on them -- however much I disagree with calling this branch-type-confusion.