Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10074065rwd; Wed, 21 Jun 2023 16:10:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7qgqndurLQncOyJmAqWvJYyGjE4/56E9762HetCSU60davht7WR8DI+8qY1Vtb+9QvLX/F X-Received: by 2002:a05:6a21:7891:b0:121:d246:4f7f with SMTP id bf17-20020a056a21789100b00121d2464f7fmr7920184pzc.39.1687389018895; Wed, 21 Jun 2023 16:10:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687389018; cv=none; d=google.com; s=arc-20160816; b=XWWmiazbf/7+klF/oCXJQH2sAxd3lO/Czr6s1uhSweOM/Ndj77CbQL7nmWaAFGpHud vuC0kOMbrlXwnuxAqCqKDNH8wH7S7HFrpvKxTj8i5Gv59rLt0J80ud46kwh5jVClY8WG 0JgbuAaxCpl4WQFs00WM2wuMoLWsYwGjt+ZmwHU7iFjzZhv6ZiubNQPIhPkindHxPgvj C+zUpCa//0rn9zCRa5JZ9OJAbAbN60ZU81STEs/AjAA1ohXDMoNf0HuMiKBErAdqoW56 dclRmYCgISNMTeAObGWdPGCZ+6NvWS5RzH8WhAB91AsmAUxfeKyggRQ4Q/PVaCJ5hi0S g0/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=uRC0RhxiflNKNGBcz6hj/Hq3AbIbZtEnvComSzrHhgo=; b=T8G0eHCAb6TrSPCi9IrugPZOSzfZKmarU+Xvar5LCB+fBtbkKq/dyhJXy2nrIW2IPR TKrXkqTu8NZ4mJ5x/oQCqHVKZ18RkoBHQ6UiZK7SqqGar+0zdj0txqmXuojqIFxhjM1U Q8Dd3euhEsSBsgLwrl8OdSdwffRNy8cZ6Y3/8kGX5JtItrWSma1EJRYnCaqAlwlXOnXC vJMrr2S/dm0X+9KAZ7CEQ/5+QmIzw8ZOS/xGT719OFSVhw9gUYr+7gqbKBIo+iyEuBhD EF787YLEpyMBH5a8h42ZQB8GPNphTYIa6f6MzHrTsGOMtE/jwfkQe1v7CVAd/9cd7Sn2 PRGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=do+s8xZL; 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 z5-20020aa78885000000b0063286f81d35si2411862pfe.262.2023.06.21.16.10.06; Wed, 21 Jun 2023 16:10:18 -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=do+s8xZL; 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 S229638AbjFUWf5 (ORCPT + 99 others); Wed, 21 Jun 2023 18:35:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjFUWfz (ORCPT ); Wed, 21 Jun 2023 18:35:55 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F053173F for ; Wed, 21 Jun 2023 15:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687386954; x=1718922954; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=arRQykyRvQ3HgEr5GE5iYhHj4FTPGnwjfQagWxDSJuM=; b=do+s8xZLN7CoP+XFv2KiEO/v83/70zqb2kZNT+XOrRqM2N1jVG+WRBWb D81ThS5+ttmiVFrntHTTP2iI0WUxiVxHXKz7JLpq/3cQKwSraST+rKqrN VR7YfM9ymxx8z9DtwfLvwkgaE9+JkX5SkV6cMe0lMc3LA4skzuiXliCNc 4jVvbv45b3pBBksv6eYHFzKFF1Z4WU7HAHOZK7s/aO5mePsSWObFpO7Rk 6aLzPsyNaQtdOuOjnG3iVZ/lNp6v9lGc96XFPjlSSboDhmHb31Ngvkk+F vI0bZmY1qLD8/9qv6a0XQ4/Au1Xbxka0CBPfbY1PDGF3HFqbjKuCxNqdx w==; X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="339936509" X-IronPort-AV: E=Sophos;i="6.00,261,1681196400"; d="scan'208";a="339936509" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2023 15:35:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10748"; a="744378906" X-IronPort-AV: E=Sophos;i="6.00,261,1681196400"; d="scan'208";a="744378906" Received: from rmathew-mobl2.amr.corp.intel.com (HELO [10.212.134.235]) ([10.212.134.235]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2023 15:35:46 -0700 Message-ID: Date: Wed, 21 Jun 2023 15:35:45 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2] x86/bugs: Break down mitigations configurations Content-Language: en-US To: Pawan Gupta , 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)" References: <20230616164851.2559415-1-leitao@debian.org> <20230621001327.qdyebewnx7r5aiy3@desk> <20230621173135.wiprtgzslhw5z5or@desk> <20230621194101.bmwesljror2yqjxx@desk> From: Dave Hansen In-Reply-To: <20230621194101.bmwesljror2yqjxx@desk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,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 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.