Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1516850rdg; Sat, 12 Aug 2023 04:51:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEzXJF9WmtAhgLeIFYoI4M1vqUTwBEBYDcCZfsj5VeHeprZRjHMKqZHxhxx7PJkHCSSM+x X-Received: by 2002:a17:902:c404:b0:1bd:cde4:8b3a with SMTP id k4-20020a170902c40400b001bdcde48b3amr1171446plk.23.1691841098842; Sat, 12 Aug 2023 04:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691841098; cv=none; d=google.com; s=arc-20160816; b=iE63H/pupYOuw9RFK/1qZn0LHJkvZhFgnPurzWV8JqYOeJwej+XftqCPVIjV/Fomtt RaXxBmxyUvJGLtD0lwWAZ1Bg588yFUikRMwlvH58Jt3ZqtKiLahGV3OB0dYLc+EYIzkG 71BVMwXcEIf8lFPiVQuXwWPw4/C6xFIVqjtQA1Ct9XP/H5UGWfV6MuKU3rBQrRJkwD8c gBBfUZnqJS+eE9gSPNjkKNWQUA+uWQfOG6ulwYcFe2rYwCrWgnDlDTV0ASyGsxTR4jhP 8zInoRKIYuz8TRCotuAZDT7p/DyXYWLc0i+tmcd5ONpdSsCWWTtu7MQm5mbdhm48WAuW A35A== 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=C3xuPJd5iuQ7ovj1aFr1TvDUg+phyDvi/hQsqH6lPYg=; fh=2g4/SIH0VJTyGcE67nGxUuYnGfb1EtSDdVL8+qddqpQ=; b=nu47dt5BH2y5JqKheA+dm0PZXr9VjGyPq5B/05zty1lIgY9J0C03/IclC3vUfGyzGf gq5an+NEHqwW/NtJ61FWVebC9Fc309/XsSRCuIl5W0HXXNodYGo0+m8OX47PSZYMjO9S po/U/IqNjdhynzBT08ZaWE44yq20WN7F2Uqg/4Rpd+OwhG0U09/Sm1XLKQU2RNqdnkb6 U+bJ3idMvgHVUNGj4ha6/pQWlh+1VR66T8CT9G4qdbj+s91MtRixRVDLv6w5zQSoQECl EPYkkF4VEYhHy8h8+o2ps+2R+oOHbSYzgFI51Cfq0a8IPUGoKcCQTdofJ3U3eeSOTijp 65mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=SZfx9WR2; 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-20020a170902d88d00b001aaea258805si4679316plz.134.2023.08.12.04.51.26; Sat, 12 Aug 2023 04:51:38 -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=SZfx9WR2; 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 S231639AbjHLLdM (ORCPT + 99 others); Sat, 12 Aug 2023 07:33:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229703AbjHLLdL (ORCPT ); Sat, 12 Aug 2023 07:33:11 -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 D9E9B9F for ; Sat, 12 Aug 2023 04:33:14 -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=C3xuPJd5iuQ7ovj1aFr1TvDUg+phyDvi/hQsqH6lPYg=; b=SZfx9WR20FGehK89oS0NGK+UP6 sHgoWYNMgIKZllhICsrsHRbk2PleuPaOUx4+aBx5SKQnzpqeqElGEgYqbvZvvUTOZobljYIq3Rmoc oEN973LFR0RaM+TWMIWT53xHQO07VfwSFHmrc+yEF/C77NwgjYYUZvCNy3rOTjE/8m0EdNmeWUj/y 2/U+uN53gD4bYFzQd7+7v1VcZhLyItE+jWRN+F/i70fRySRP7jM4getvIoTqKHlPVtq4NtonXDw2F 2UPCqQpD6QHjEE+M78NhoDSKBU+1n6WxFwCXcHuJCfgrtHqfhRTlY/4MktukgJ8Wv+0bShcK0FyKs joDTRZHg==; 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 1qUmrZ-008f5q-0D; Sat, 12 Aug 2023 11:32:57 +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 9E26130057E; Sat, 12 Aug 2023 13:32:56 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 843F420410DA2; Sat, 12 Aug 2023 13:32:56 +0200 (CEST) Date: Sat, 12 Aug 2023 13:32:56 +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: <20230812113256.GC749618@hirez.programming.kicks-ass.net> References: <20230809071218.000335006@infradead.org> <20230809072200.850338672@infradead.org> <20230810154404.GOZNUFxHxLIMth6j9s@fat_crate.local> <20230810161003.i65d37ozlt3d5xse@treble> <20230811102748.GEZNYNJEeDxTqcOLvj@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230811102748.GEZNYNJEeDxTqcOLvj@fat_crate.local> 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 Fri, Aug 11, 2023 at 12:27:48PM +0200, Borislav Petkov wrote: > On Thu, Aug 10, 2023 at 12:10:03PM -0400, Josh Poimboeuf wrote: > > 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). > > Yeah, there's a patch floating around adding a config option for every > mitigation. Apparently people want to build-time disable them all. So I really hate that .Kconfig explosion, that's the very last thing we need :-( More random options that can cause build time trouble. I might see value in one knob that kills all speculation nonsense at build time, but not one per mitigation, that's maddness.