Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp132226rdg; Thu, 12 Oct 2023 00:30:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGfcQmClokLkeyJCqSxkRakvbOrijN7a+OaeJjODrBVoKMMvtZVleay4VK4ov883ZXOkkhF X-Received: by 2002:a05:6a20:96c8:b0:161:2508:b0fd with SMTP id hq8-20020a056a2096c800b001612508b0fdmr18440872pzc.19.1697095807497; Thu, 12 Oct 2023 00:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697095807; cv=none; d=google.com; s=arc-20160816; b=GJVcFZpLUXEV8hZ0eueuDCIF8FmPPkhgXyTDfFGkJhpxGj4siwsCJYPiA2iaS0dwv5 qLIBLpQ1oOGZzETSddfPq4K80YsQZbLKH1rZVdj0n4IVOTreuBG31dsfngrACuRPI81Q kUAZR1eEN+gcCK8ve/zCeMgdigf5sxGG6JGC59O9Q00jT7I7N1IMSGoC5DlR4EU+5RZY ZSuYOLKawXz4RfpjKWJ3eS1BeFOSes2vTVnLeRqNguHw6j8lmGQdsfjbO1hoj3T0xzJ5 SQpK7JETa89ogmwUFVyrwhnVXjGIXSP+aRI9QPP+2BI0hUCPzxhuvu34HPUEJtBlG/Za UkFQ== 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=2NqQontp5OGh2GXQzQHUNLMzIshcTNJxH9fIiMGZaBQ=; fh=Q2zRwUF1XM6cifuiJj6BJf2/nLtI7vGV9acu/W2xsto=; b=b571pyc2Y56DzFOaiubs+1S94RJikafhGg9H3j0/rJrpmUaKnaaR9MA9yTDHBAOiHs kdrNUgJURdEGpZ46kuiy7JqY4ebwQkUbFH0eVbeO56xW8ahxAEGuK9MfF+Vj5cAOatvT C8662DK8FbExdEGH/ZfuAfVwihdKJE6hCvIUjo050FqhdPhGVKdcPkBDTSaN2p+KQvu7 atGKdDsWZPlUDLO/xN4b82SCQvVz3usPcLMX8TCnVSpWcUo0wBTOtyNwTIBKzHBHOf2A YHb8LLg3YSzWPvYnygZylPxygACldl4twqp4eBIMQfWvZkgxgzphfS9b74IV/0hM9KLA ghKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="FyvR1/dv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i8-20020a17090a4b8800b002791bfc67bdsi1690229pjh.41.2023.10.12.00.30.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b="FyvR1/dv"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E5C9F821578A; Thu, 12 Oct 2023 00:30:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377847AbjJLH3q (ORCPT + 99 others); Thu, 12 Oct 2023 03:29:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377849AbjJLH3o (ORCPT ); Thu, 12 Oct 2023 03:29:44 -0400 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC767D3 for ; Thu, 12 Oct 2023 00:29:42 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id D052440E01AE; Thu, 12 Oct 2023 07:29:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Oyqu-lllMva7; Thu, 12 Oct 2023 07:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1697095778; bh=2NqQontp5OGh2GXQzQHUNLMzIshcTNJxH9fIiMGZaBQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FyvR1/dvebLsCCu7oXShN9kHyemFXdzEtiWjiygj4KRXz5Gv3mc06PicVmaN2y+07 w558y7aToaJ5g7lVsHhfmbPnl8pe0A8NVhHz/eS69sbHRLcyRodyUdez6+XxqqBpBi kyRrADFWK4a9gykS5T9hLAqQzgpv16h7ILwEECMPyoglwl87c4HtFIWLTL3jXNWDov vsJ/H+l1Zgo3AEmZWHZTWHepHGaXcSDkRyasoo/dLxepx/XkW2ojdj6I2JhYP5o0Jb V92D0bJboenJW19hdPXpfBSfcYY2q02n5pJCczPSWdQnRThM03g6uTX9NojvMo5ZvF E1dFXl8PUUJw+A1WL4Il6scT4jYaZ2JR4aL5w/dR8GjVWeYteYAEmgPNIr4nlROIv5 jmhVzSB6uMENVLvf0BUnKELk0p0BBMlrA8Vi6wsvUFImWVWdR778ChDko2q6NtBYs3 dya9pZIQp1SzHWRDHfAsFEj/y8EiuWA4uzdDnyRmHIa92ZRk7jnOPXtChXv0MeKSPc j6N2Q1TlEckVI5VDJk4syUN6y4xiV9QLDpp9e5LDmEsg5hHE55TFkQI232YbaOTiL1 05NgKL3cCiNO9up5A4NcN1886r1gYmv2j0StffhDwZxzAjk8KNsNKrgCSxAwIh5I3S mMo5o4EYkeG84BCSS0/oXLxM= Received: from zn.tnic (pd953036a.dip0.t-ipconnect.de [217.83.3.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E786340E0196; Thu, 12 Oct 2023 07:29:26 +0000 (UTC) Date: Thu, 12 Oct 2023 09:29:20 +0200 From: Borislav Petkov To: Josh Poimboeuf 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: <20231012072920.GAZSegUJkwHbcernQo@fat_crate.local> References: <20231010103028.4192223-1-leitao@debian.org> <20231011044252.42bplzjsam3qsasz@treble> <20231011190317.GDZSbxdd5TuCIp5+JN@fat_crate.local> <20231011220325.5uje4xnfxuccumm7@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231011220325.5uje4xnfxuccumm7@treble> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Thu, 12 Oct 2023 00:30:04 -0700 (PDT) On Wed, Oct 11, 2023 at 03:03:25PM -0700, Josh Poimboeuf wrote: > 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. I don't see it. What does the same namespace give you? So you see in the code a bunch of ifdeffery and some or all of them have CONFIG_MITIGATION_ prepended. To me it doesn't matter whether they're mitigations or not - it is just the next Kconfig symbol. > Sure, the change might cause pain for users who disable these options, > but do those users actually exist? Apparently there are use cases where people simply want to disable all that mitigation crap because they want their performance back. This thread being one. And I know of another one with a similar sentiment. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette