Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1109924rdg; Wed, 11 Oct 2023 15:03:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEP3sSXo04WGZAaJu9fA5JWeGxzihxTXBFwemBQzO97i+hLtlWGXFIjnjyuX9l7Kbg0Bq8 X-Received: by 2002:a17:903:2346:b0:1c6:25b2:b71a with SMTP id c6-20020a170903234600b001c625b2b71amr24581159plh.2.1697061823099; Wed, 11 Oct 2023 15:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697061823; cv=none; d=google.com; s=arc-20160816; b=qCpfsuv+zcN3XL8QytrRvHICNeegfe/viY9kKyfy23DWvH1V1uZ/oQwNvd6PYtZz+e JsnTAiZPkYrSqmT3asEUZ5d4zf2+aKlIRXWPpB6J/gHNcQJjtnTNTsHctyxF0LwoY+nh hP3Mbpy8imbdgr1vojhO3p64IPYO7NMQ/CKit1nXdJAtIJSYkJbnLK/tk91AXmGDRVaU lltiIr1+2sEuNyNZppLMiJmy2TgqSU1ejmrEOrajBMlz3oY6H4WKx2mcLjB/x8ltMFPn 4fzItglmCr/w2Mu4rFIJcfMfSYco+POBboHp4c9PUf/OmVrDChKKIz+CDPLvNc564Inq RdrQ== 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=LuyWFpWwKSLCile/SWt7Nu5TpkZ2e1+yxjuGbyjYIk8=; fh=sFuGEEet6qqmFB6wimFNMEPr5KRENRB8TAGg7dYSyOo=; b=atTlnPEqpsDOGbcr0qHG02SeYSHMX0kIOmemvtqgf5qr8N5h+htPCqLwjGf12mEhVF PAfU4vnIt0h+Fi9itKJ9GiB9+pEwyk4oVY7hUtqdeccSmMo7UrcwZAWCX30Buv/ouNAU R9w8Bl/K0FGLqStl7XmroJbilL9SLfhwBDiom2KX9fWgUiGQ7Ny8agoenGWO+NnSx39a eSWeGlC6a9h9xlmeosPS1okTXoB7Xf+tmgl8Ajvuz+rp+ugoy847oY7Oviv0U44m5uPJ chCa9ho5aQe12HmmGdBF4eXfRm4u5pB/FTTDmf89ecjuKQ7PKyYDapK+Xmya978D3kuK XGvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqampMHb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i18-20020a17090332d200b001bba7713547si713924plr.151.2023.10.11.15.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 15:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FqampMHb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 037BE80EE0D1; Wed, 11 Oct 2023 15:03:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376394AbjJKWDa (ORCPT + 99 others); Wed, 11 Oct 2023 18:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233339AbjJKWD3 (ORCPT ); Wed, 11 Oct 2023 18:03:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2FFC9E for ; Wed, 11 Oct 2023 15:03:27 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FEF4C433C8; Wed, 11 Oct 2023 22:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697061807; bh=/hznBHvaUailZGyU5wtIgOtLweBQ29rbC2f5ZoiDKTY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FqampMHbpQ33BAMOzYpBW51gp/PIUf5Gcc7ngYMkIs52rwn5Rc0PKpDzoMqa8QOlt dfkJ8HdBB34eItFhMC49ZoRmOSQg4OzNNyFjFpes1AF6VqDS9Nr0KsQ21Ub47YRjIA Uvtd/j+DybifZp8YnJ/eLO2lHX0PhqPtjJnz3R5Zj5zBCUrWQi2stzz5og+yBXPrkx AZfkUElJyt59z4NTj6+ZRTsLwCZdWefiBhOtJJK7JdpljTMj0PrAwiuQr4R9RytKQX xW06ok/tg3uJcCsTziucB1/cPwAOzvKG2IBkPuHWVcp+wFCJo/i4S8NBVjwQV+779a 11mmgCOmEfHDQ== Date: Wed, 11 Oct 2023 15:03:25 -0700 From: Josh Poimboeuf To: Borislav Petkov Cc: Breno Leitao , tglx@linutronix.de, Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Pawan Gupta , leit@meta.com, "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v4] x86/bugs: Add a separate config for each mitigation Message-ID: <20231011220325.5uje4xnfxuccumm7@treble> References: <20231010103028.4192223-1-leitao@debian.org> <20231011044252.42bplzjsam3qsasz@treble> <20231011190317.GDZSbxdd5TuCIp5+JN@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231011190317.GDZSbxdd5TuCIp5+JN@fat_crate.local> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 11 Oct 2023 15:03:42 -0700 (PDT) On Wed, Oct 11, 2023 at 09:03:17PM +0200, Borislav Petkov wrote: > On Tue, Oct 10, 2023 at 09:42:52PM -0700, Josh Poimboeuf wrote: > > MITIGATION_PAGE_TABLE_ISOLATION > > MITIGATION_RETPOLINE > > MITIGATION_UNRET_ENTRY > > MITIGATION_CALL_DEPTH_TRACKING > > MITIGATION_IBPB_ENTRY > > MITIGATION_IBRS_ENTRY > > MITIGATION_SRSO > > MITIGATION_SLS > > The train has already left the station on those. The other mitigations > don't have "MITIGAT*" at all in front of the name. I.e.: > > config RETHUNK > config CALL_DEPTH_TRACKING > ... > > and prepending them all with MITIGATION_ is going to cause too much > senseless churn for a reason which I don't think is worth the effort. I wouldn't call it senseless churn. There are concrete benefits -- for both users and developers -- of having all the mitigation config options living in the same config namespace. Sure, the change might cause pain for users who disable these options, but do those users actually exist? -- Josh