Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp56095rdb; Mon, 14 Aug 2023 09:19:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGuawt/HYFJXGTgYuoDBIVBqG4BZF9ZARGYd4Q1v14g280bfMBGIYe+rdcPdQllMSKv1Zjg X-Received: by 2002:a05:6300:8082:b0:138:dbff:f029 with SMTP id ap2-20020a056300808200b00138dbfff029mr7585425pzc.18.1692029961924; Mon, 14 Aug 2023 09:19:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692029961; cv=none; d=google.com; s=arc-20160816; b=zwvB/OngYZfUDO6NxZtTd0rt1DtEbJwAVFBzCNAYGukvbXOKFoC2mBDtUFDqzEQkJf A+H14wH7K4hoYb+qHECLg8Sv5xcADww2QOupXvI7FKonN8vfYa7Np5kpLKvfFTnwszp7 wS6dcWOa7ohDutY44KD4hQJDazwX/DhpUaXAk231iFbZDZCMobl8D8Dtrabew8XYQMVd J8vz91lRH9nniz/rKoD2/h6zc/KjZq5P8zeJl9Z18AVxUNQDcc98J0VfCsDKluIiMj8C lqNgJeYZLAKLbHlGJPDSxQETm3kGlBv1Oh8MTsbNmQO6YypXttuMjph+vvwDOW3AsdOC 7YWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=OuYXmnuGyZ0kbdocd4wPxsDn22DjwpUbHKN8FxkvmPQ=; fh=k6ACd0u2C3h9ztLbSKbGo6etErqMdSR/AePoVHgILKY=; b=mQE7jRDH/qyhM21ZA1nVds0bOplfF2VaBZXAiPifFGRK3VZJpnzhroVkcyvz2RjkC9 9c1/uw/E87qAfwUAmUbxQCUrAUdBJH6CIqwJ+X/eaf3SW3UGK6of1etwYuNW+TJS71M3 stmXUwUAucJBBFgWSEw1lU11FSGgnw5bph0r+ikObn0i3/4A0UfwFt/0UCKh+LaVyUzr FKD/jkDlI+uahMcr80W7nTxxv0Etg04CLEZTcZpHGWyyKqDzUDJnzUWAPeHF2ctzE9pT qAkeXJ50x6oi+xEZ5Hb7QR9bKdIlaFwDfWRPG+q3OwH39PQSpzdAAjav8LJKowfqNKE7 /JgA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a656415000000b0056554d5dc32si8457250pgv.844.2023.08.14.09.19.08; Mon, 14 Aug 2023 09:19:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229834AbjHNPqK convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Aug 2023 11:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229744AbjHNPpi (ORCPT ); Mon, 14 Aug 2023 11:45:38 -0400 Received: from eu-smtp-delivery-151.mimecast.com (eu-smtp-delivery-151.mimecast.com [185.58.85.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B41EF10E4 for ; Mon, 14 Aug 2023 08:45:37 -0700 (PDT) Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with both STARTTLS and AUTH (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-264-4VDMbRvdM6CccUdMezF-iA-1; Mon, 14 Aug 2023 16:45:35 +0100 X-MC-Unique: 4VDMbRvdM6CccUdMezF-iA-1 Received: from AcuMS.Aculab.com (10.202.163.4) by AcuMS.aculab.com (10.202.163.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Mon, 14 Aug 2023 16:45:22 +0100 Received: from AcuMS.Aculab.com ([::1]) by AcuMS.aculab.com ([::1]) with mapi id 15.00.1497.048; Mon, 14 Aug 2023 16:45:22 +0100 From: David Laight To: 'Peter Zijlstra' , 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= Thread-Topic: [RFC][PATCH 06/17] x86/cpu: Add SRSO untrain to retbleed= Thread-Index: AQHZzRDK8HwTTXk3aUC67vPYTNvPsK/p8R2g Date: Mon, 14 Aug 2023 15:45:22 +0000 Message-ID: References: <20230809071218.000335006@infradead.org> <20230809072200.850338672@infradead.org> <20230810154404.GOZNUFxHxLIMth6j9s@fat_crate.local> <20230810161003.i65d37ozlt3d5xse@treble> <20230811102748.GEZNYNJEeDxTqcOLvj@fat_crate.local> <20230812113256.GC749618@hirez.programming.kicks-ass.net> In-Reply-To: <20230812113256.GC749618@hirez.programming.kicks-ass.net> Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,PDS_BAD_THREAD_QP_64, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 From: Peter Zijlstra > Sent: 12 August 2023 12:33 > > 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. Or a very limited number of options for things that are pretty separate. Maybe the call/indirect jump are separate enough from the return ones? An one big KNOB to disable them all (DEPEND_ON !NO_MIGIGATIONS ?). David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)