Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10103433rwd; Wed, 21 Jun 2023 16:41:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Yr70EJ33rSHOt+g/Tnx6usLHKAvkpK2qL6Kk+QnQBc/kLaCFjmoUtwBEOOVkCpVBlGT18 X-Received: by 2002:a05:622a:1181:b0:3ff:3cb9:b3ac with SMTP id m1-20020a05622a118100b003ff3cb9b3acmr3346530qtk.23.1687390905078; Wed, 21 Jun 2023 16:41:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687390905; cv=none; d=google.com; s=arc-20160816; b=LhIiDGgVrW9ro1RNvSNp4xSog65ftpcRwszCYpV4Rjf0LpVVV8jNn1UEZ23boFSy/0 /UyDxPPNp1DzpZhH5uD/G8QIWk9biruAcGpwbBP+yn0p4OuWGM5C4WCntOyo9uhh9K5I 1aBFr78auWsgx2dtixiiTj8ndmbBJD9Rj5exIoB1pwLtbJE1OKoJFy1JNjQISXDe8KVj d+dwOwm3F1OZlGEBKx7sFXpvi6OkGFeIhg3ySzZ9s80KsTvuOtT5gQyNz9f7VGb7OE/P GR2Ycu5381CrTCvN4Dzn7iwDZUCQeWuTpB1eKxL9fE3BiVoLKs6/opuLR0KIiDCEm/xq p33w== 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; bh=uvR4SCXMnMvvYTlmOiv87jstI8F7pVUARWzRPGoDViU=; b=q+uFIXlpbiUAJutQDlNubaYScP20FM6tSGCE+Y+XJM11aOEXtwQlVl8pNkuDjXqyeV Gnn6e/OalZUo8TEdhDPusocB5oD6/+zljLTNvHSRDLE/xgS3EQcoAz2yUylmhNWrzdCU G9T7E3YFdrJwkXVgGcHDkuj5zdOSZEA6E1etGLdEoP0KeRPPJqpcHL2OursaEDPxm0Ei 79FLg8anXJPX1yc6M4Loh8bdfSlIxavWHlSjpr0n/6Bmtsu/TQ50mTe5S9futxE0k7MO b21osQdXRJV1EqjeSKxd7geBAeM0ihY94mED7R2IIkgyJ3mUeeDfTlhL0pdIq5ktIox1 AwKQ== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a17090abc8500b0025546028cbesi5238466pjr.31.2023.06.21.16.41.32; Wed, 21 Jun 2023 16:41:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjFUWxD (ORCPT + 99 others); Wed, 21 Jun 2023 18:53:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjFUWxD (ORCPT ); Wed, 21 Jun 2023 18:53:03 -0400 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B5919AD for ; Wed, 21 Jun 2023 15:53:01 -0700 (PDT) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-3f90a7325f6so53901485e9.3 for ; Wed, 21 Jun 2023 15:53:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687387979; x=1689979979; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=uvR4SCXMnMvvYTlmOiv87jstI8F7pVUARWzRPGoDViU=; b=B3XnY+SyYiAHiq+PUtvgg0JmbNCxSSRdM8MRmKUexED7FJwHHg7ZgfOb0b+xM6tpux uWQLAb6UYuN3PYRdurZSVCNukPTfrU390qZ5qPfsWDP+9dG/7Ghe1SMC0sZFXDkz2QrC tKUOb+BhSQq9rHdslIAq/R+zatITPKkmu0yH4GwLlDjrgbihvwkd86akMAz4sjGSYtLp V1NMMerTMa/LMhN4jFNFhdzCGjRxgu9yHYdYPTqK7zdamRbHpg5iZ6oVmZktZX2ZPvSQ wik/ugOeO2MbSiDPtjMWAGC2mT3vGdiPWXCcWTcCGAnbsbc9aQrlP3jVHrzOsgPdOlEy d6CQ== X-Gm-Message-State: AC+VfDx5kq0uj7E0Pfd58pt+OEqn4cOeRUrl2kUMFOMc+xbT8yQNajww 42I13ClGXRLtFR10fNRC9AU= X-Received: by 2002:a7b:cd08:0:b0:3f7:e8e2:f377 with SMTP id f8-20020a7bcd08000000b003f7e8e2f377mr13753995wmj.12.1687387979295; Wed, 21 Jun 2023 15:52:59 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-117.fbsv.net. [2a03:2880:31ff:75::face:b00c]) by smtp.gmail.com with ESMTPSA id x16-20020a05600c21d000b003f90b58df65sm11369755wmj.29.2023.06.21.15.52.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 15:52:58 -0700 (PDT) Date: Wed, 21 Jun 2023 15:52:56 -0700 From: Breno Leitao To: Dave Hansen Cc: Pawan Gupta , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Josh Poimboeuf , leit@fb.com, "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v2] x86/bugs: Break down mitigations configurations Message-ID: References: <20230616164851.2559415-1-leitao@debian.org> <20230621001327.qdyebewnx7r5aiy3@desk> <20230621173135.wiprtgzslhw5z5or@desk> <20230621194101.bmwesljror2yqjxx@desk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,FSL_HELO_FAKE, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Wed, Jun 21, 2023 at 03:35:45PM -0700, Dave Hansen wrote: > On 6/21/23 12:41, Pawan Gupta wrote: > > Yes, a single series (or a patch) that adds config for each mitigation > > would be good. > > Do people _really_ want per-mitigation compile-time controls? That > seems like kinda a pain. > > I Boris suggested it, but it seems like a _bit_ of overkill to me. > > Would a compile-time option that just defaulted _everything_ to > mitigations=off behavior work instead? That way we don't end up with a > billion new config options. This is exactly what my original patch proposed. It solves the problem with a few lines of changes. https://lore.kernel.org/lkml/20230203120615.1121272-1-leitao@debian.org/