Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8562127rwd; Tue, 20 Jun 2023 17:34:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5gf7gboVfsZNDNiyFw0cGkzjDsCIOulW10ZV3IjdWtCrEViXWp91zkDb3j1S9DjHgmR8cj X-Received: by 2002:a05:6808:14c2:b0:3a0:44e0:309c with SMTP id f2-20020a05680814c200b003a044e0309cmr1432648oiw.54.1687307682114; Tue, 20 Jun 2023 17:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687307682; cv=none; d=google.com; s=arc-20160816; b=o7yQUrfIqGvPV4cxvypyvyeajpe7vj2SHqPciMf0fl09sJ4xk2k4h1Y/XqDuzwrNwO 47A9a+LmSGs4xQsYSBzzkEVvBPRyc+uCo8BD7ui44VJgyCfvpvy/CjVtX76bJK6oJ3qX ayWsLV0zKMwYI2TJvCRWF1qdDzC9mk8/gN5FrJFVTpjFh3IvyqFuBctpZy+4TRSBYgpA Lm2O5xnu8FjckAeJhgbydXBMq43go57/DUfKnJngTjhbkT61+6Ap6khicco1OsiKMUD2 TAzYMTUvFxRounlPNmvy5XvMcMRKSaNkEEt/pKvOJ0KgS8KjAsvhqykKsnT0NctxS8zV OrpA== 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=9G9yi45wrCYmVi3Pu0zCSaLr41qqLfkhU11Te/jAEuI=; b=ez9Z8rrWNjJc2ARBo77SISz7n02JWAncc/q1+Z9UPgCuG0yofoM4/4MrI6XIVGsRVY +SDq0Ft/uRogYLwC1kugilCqZ/2GqUVPFvw8jHzl8H48wiSog/6Wa7LiU+SsR0Epbbrz lHgkB3fYY3OVCipHCtPta1HreyMnVcYpf1aw2Eqo7Lfa8XJdgRejr9LX0H+mYI4+kDe8 zOgb4748C4mKErVa6xb6026AQ3D7TKfZQIAWoZvXX7Vc6vO2o5CA+77Xip4sFw/e7/TW ndiNApargD0BPMdMd4XjqdPuXpRtqckgrBWl4O3tYXkjl4WLFZ8eINP+JD5NriqbcCF/ rrFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Xdi03RDq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v7-20020a17090a6b0700b0025b7628c24csi10865432pjj.106.2023.06.20.17.34.28; Tue, 20 Jun 2023 17:34:42 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=Xdi03RDq; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbjFUANh (ORCPT + 99 others); Tue, 20 Jun 2023 20:13:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229818AbjFUANg (ORCPT ); Tue, 20 Jun 2023 20:13:36 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F7011728 for ; Tue, 20 Jun 2023 17:13:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687306413; x=1718842413; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Py0WuD6QzcVfqClR14sSZEqYt9rmNf93zUffeC2+4+I=; b=Xdi03RDqeAmhSvIW5ZLzMQcGiglJKi6W5yzSuDOc/zdzZObaDzqHCuGc WOpP1/NypWlpOYN87mFtw/Y70aPI/c7/Z6+DRUYqPTy9CBrEHZl61oXGb +6/0HMN0E40i6WxsQRC0uBcWPU1rWwQlH5T1+UNCKkPtMlNx5B9E0myTX LL8OP2g/wKGHfWz49M58kfPYpMTxn2qYs8/+ErT0/4DeKCxa447Vdqx51 uprnWjoIXcqXh+Fxz3s0DY0mQGKw2tcEsBWg68VdtJ/u7nrQjNusvM0Kh Zi8Ew6s+uagrKpudS4Do3Go2HKQnv8p1Szs0yblI5+vKzqk/PK3IWeZTs g==; X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="389398238" X-IronPort-AV: E=Sophos;i="6.00,258,1681196400"; d="scan'208";a="389398238" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 17:13:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10747"; a="691643633" X-IronPort-AV: E=Sophos;i="6.00,258,1681196400"; d="scan'208";a="691643633" Received: from rrwillia-mobl.amr.corp.intel.com (HELO desk) ([10.209.24.176]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2023 17:13:32 -0700 Date: Tue, 20 Jun 2023 17:13:27 -0700 From: Pawan Gupta To: Breno Leitao Cc: 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: <20230621001327.qdyebewnx7r5aiy3@desk> References: <20230616164851.2559415-1-leitao@debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230616164851.2559415-1-leitao@debian.org> X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Fri, Jun 16, 2023 at 09:48:50AM -0700, Breno Leitao wrote: > There is no way to disable MDS, TAA, MMIO Stale data mitigation today at > compilation time. These mitigations are enabled even if > CONFIG_SPECULATION_MITIGATIONS is unset. > > Create a new KCONFIG option for each mitigation under > CONFIG_SPECULATION_MITIGATIONS that allows these > mitigations to be disabled by default at compilation time. I don't think all mitigations are still controllable at build-time e.g. spectre_v2 eIBRS mitigation will still be deployed irrespective of the config.