Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp265637rdb; Fri, 6 Oct 2023 02:54:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF05oBfIgHkn0FYS/JF/XEz0UAW6Rg67pdgy+SgZbayR43EqI5Drme80QlIRHM43bLpq9w0 X-Received: by 2002:a17:90a:2a42:b0:268:b64b:f684 with SMTP id d2-20020a17090a2a4200b00268b64bf684mr7247241pjg.33.1696586088210; Fri, 06 Oct 2023 02:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696586088; cv=none; d=google.com; s=arc-20160816; b=P3aQCKZ+1MG08CvTqMfRm+3PRVrQEW0eFN4VVDR059R69IOw3gdKTfkB4M7oz2C6EU Npfm4KszOleyn8oqdt5hFW8yQJ0nfE7TXGIVLNHsdKdgztsN8I0qIg9AlPBAIvtSsNYs ZOBcIzFWn1IkFnJZCPGfEi8FjMavYWCEBYxpV1yFE9t72GZSverc6azMRled5lafjHxE RTu+jzoYcwP3XoTTAGn7UOFqObsZsdGLMw7edBcEvRMUyfQuGRGie99Ni/C16XqEc1I/ Xbe5U+6JMDGUmJxlXJimUjZa67Rbe4Ftci19F3ccbrOF4q1bviKUmmfQWOpXgmEv9IR5 hvMQ== 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=74yryaFy6GR9gkSgri8u4M2YlxggvHNVlh6lXHNM4Tg=; fh=GT/jCXxF6/YVVrGehP4NrxKoY9Noeg/juWriFhYIWR0=; b=HTKAk68zVK04g0RzEBy5gaXXtx40SG6pCihjkZq+NJiyw+elhBZ/WayfvS1L3RGaLO AQNlTYYQAEOIeYUExhGavubJ1xqZpCKJpnjzG+XhfdnjU89SZ6gJqoXsb2ZTdfmwWn+P osIbksaXm9XxNEeaepCSZQD9K78A/6y9HzH5eHEW/VDZl2xf9GHoTFc5kmZmTidDrana tuO4lRU/syNvZz+70e3lf4hX+TNHFKpt3uhLsfkDtG8wyIaub4E7FUgIdZ/aWYuZIONw vBOGZO1jhpe+AWacfuB5pp3dXdJ4IeltmRzKLdf/+zZ0+EuP2vfbshZebDfR1MUGNV/Q nxAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=NfuoKUli; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id h13-20020a170902f7cd00b001bf20e8f66asi3232096plw.26.2023.10.06.02.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 02:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=NfuoKUli; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 5FEEE8181BBA; Fri, 6 Oct 2023 02:54:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbjJFJyd (ORCPT + 99 others); Fri, 6 Oct 2023 05:54:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231508AbjJFJyb (ORCPT ); Fri, 6 Oct 2023 05:54:31 -0400 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49B42D6 for ; Fri, 6 Oct 2023 02:54:30 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 5582B40E01AA; Fri, 6 Oct 2023 09:54:28 +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 VJ2XSBfofAFa; Fri, 6 Oct 2023 09:54:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1696586066; bh=74yryaFy6GR9gkSgri8u4M2YlxggvHNVlh6lXHNM4Tg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NfuoKUli0MibO8wb5xJd98B43AlKMiQDmFfLI11QRJ+YUBKs5dIZVdmV6xLhjxABW TvVkN5WLmH4+5EIzzDg2p7heXzx4oVLGWOsTA3GE/YPpkcH1KDtFfL63ni9hCoLZTz zQqJkyzatyEoiGECFmJzuzpkCXvnw1nWthzMZmUgl0VgIqJAbMjH38sP/ee0gQf2ET jqsefM/+PGcQ0cP6bVOLK+h6vdCvO7/jbQN1Ts97hvO1LTyKUBWmJ+ZdS94JgUBHIn K+GrKKZWHM5YUqaS1bvZa0LiGYpiw+WKIoyTy76AzcXwPaXeNVmoj2RoIEiuQuJaPu n7Pv4qYPcgMDGh0zhQhcv0/8lx/5+79OVjzVlVhi9Ilfel2PS3McmZPzpuFwJ3BJCg SC+c5p6lEN30PMfnlUQdtcDv2kQiJDbPalB1AIDTIfUzOcXWSTYTrqSRK4oJXDxyZr V3N2y3YaevJb25/WClny9yp/4ezSmb24p4/ebxd4bzd4n2WAxxwQGByzZ9mIMXUSA9 7KLyKQk2BDteDtl+YDejX4ZDTOmC4xg809ZHmXe6DHJo18JgOzP6onYBRNBBmXoxgV 5AYsJd1oxCNV8wid4yZAojPkXbwLAL88aUbaqJM/X/ErowIoCDGyiRr0C0AKJ7tUhy ciJ75TD88Tpj6bw4NHas5kW4= 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 7445B40E0177; Fri, 6 Oct 2023 09:54:14 +0000 (UTC) Date: Fri, 6 Oct 2023 11:54:10 +0200 From: Borislav Petkov To: Linus Torvalds Cc: Breno Leitao , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , Pawan Gupta , leit@meta.com, "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v3] x86/bugs: Add a separate config for each mitigation Message-ID: <20231006095410.GBZR/ZQmaako5yMhVs@fat_crate.local> References: <20230628142129.2468174-1-leitao@debian.org> <20231005162545.GFZR7jiUNyNkscijUl@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 06 Oct 2023 02:54:45 -0700 (PDT) X-Spam-Level: ** On Thu, Oct 05, 2023 at 11:29:02AM -0700, Linus Torvalds wrote: > ... > "complex" conditionals may also be annoying, but dammit, they are > important documentation about why we do those things, and unlike just > comments that will inevitably bit-rot, they have semantics and get > tested. Thanks for explaining - it does make sense to me. So, from the looks of it, we're halfway there: - SPECULATION_MITIGATIONS is there for people who want to whack off the whole crap - the separate Kconfig switches are for people who want to do a finer-grained control. And yeah, they might be annoying the first time but you do them once and then you use the .config forever, like with anything else. So yeah, sounds like a plan. Breno, please add Linus' explanation to the commit message why we're doing it this way, when sending your new version. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette