Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp776058rdg; Wed, 11 Oct 2023 05:24:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEb/plnrvcVI9rJ9FW3aPPt8/GevUQ4grckRmN/SZk0xmWGv2vsIXEMbFLWvG9dj6L3fqDx X-Received: by 2002:a17:90a:cd05:b0:274:9409:bbca with SMTP id d5-20020a17090acd0500b002749409bbcamr16809678pju.3.1697027073240; Wed, 11 Oct 2023 05:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697027073; cv=none; d=google.com; s=arc-20160816; b=OlB01sLotOgTh27gdHPXfxEZ9d+I4oSKsy+nuqxjAqd1yYsDl4ASRCbWW36dDA+F7i +C6ioTGALEL9g6Q23CGYZKOJFFckphKnY+7x31uuFEK2mIOBQKtabgfo6+SkEze5zLxR 8YMzci59CIVc35rL4Y2chDPknVF7hhPxNj+xFJCTcSpSHNxAarPHTjeNRIPFKCz0XvT9 2SfJ1bWYIdNcJ9Gwog3U0H6v+JM6P4DlO9VkePR4+6cBjX/RFYoHc2jT+Qa9bJ+eTsWd 7Y7aDejDdiDohUElkcikJ/V3h8F3e7GyOFrjWeGYsJkBE/UYhVY93uQeys8sxLKU9OBE fQVQ== 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=v3eACpkWj+oHdW3ZMUyYDc/U0YwV3YoweDDdlVwDHUY=; fh=V4C7fWWXrhVac4mT2nxcuEt8KHk+mqev2v6CcNbWd24=; b=GObpf6L5/ER+Zxf8Kwd7MPHHBOk7b3IdjeEfUaMvtZqeHOeupCCzlVnSTISU84f6QI SLH+aDoR2+WpBYy0ozotHAF16odzO9EOXJ1Q+ArNXVbpJim9hDs91Z8QkAmRcb2LJxdp As6Yu5zKTRSrdxU4i9ekzuS/0nndHL0d8dPiW7avX2qK/wKHu2/FdOAfDAjpYeaKnAzg unyzUgS2ZRO1/HUwTQds4pGBCzvxHIWgfCpyU29xkK18LeTX8BmYHJDOAOwwiPNdx1BQ 6tqZef3JAW854BuLPBkrA+X0dGN80wrzkiVEnJ+oFq69vES7cFLeRGqdi/cKDSijKq4Y 6LAQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id e6-20020a17090a4a0600b0027901ee93fbsi15356433pjh.156.2023.10.11.05.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:24:33 -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; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id A9FB7802A9F3; Wed, 11 Oct 2023 05:24:28 -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 S1346760AbjJKMYO (ORCPT + 99 others); Wed, 11 Oct 2023 08:24:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346802AbjJKMYF (ORCPT ); Wed, 11 Oct 2023 08:24:05 -0400 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EF271BFC for ; Wed, 11 Oct 2023 05:21:04 -0700 (PDT) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-53de8fc1ad8so714084a12.0 for ; Wed, 11 Oct 2023 05:21:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697026862; x=1697631662; 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=v3eACpkWj+oHdW3ZMUyYDc/U0YwV3YoweDDdlVwDHUY=; b=O5ggpfd6LqsppERZEwWBWWn16H5vK21oN6f21DBr2WHjlzWnmTGGCEdZwdpiaA58HE u0P/pB0KQ2aauy8KpdxqSLXaI/zXsyGIEM+Ja1ky0eR2yvE2tOGdd9/yzAa2Do4LAyiR VdjbenM6qbpDpobpsfffGbkwjVvZwvBJISheBGjQpOSOAZjW8OnPVzLH7Ea+uJNnwxKv RjOWhoSJ1caoqJFiTil/XV6SP8okoTBctNCJT1ddxqGv8j3Ny81+WioWO4u5EmcbEgIo y6UFdfq9+xaabdV+mA9Soco9h88b6mcbTcsKXfMp3klakMhEKy17+Y+5FVK1/rkWkgJu LefA== X-Gm-Message-State: AOJu0YyOt+HdxHQOofpL0mXqpkNLraMfXTp8rK3Rpv7j9pS1pjMmCzAY jfTh40eBhszT4p49KFN7mUU= X-Received: by 2002:aa7:c493:0:b0:533:c77b:2f3e with SMTP id m19-20020aa7c493000000b00533c77b2f3emr17501199edq.21.1697026861973; Wed, 11 Oct 2023 05:21:01 -0700 (PDT) Received: from gmail.com (fwdproxy-cln-020.fbsv.net. [2a03:2880:31ff:14::face:b00c]) by smtp.gmail.com with ESMTPSA id n14-20020aa7c44e000000b005361fadef32sm8697009edr.23.2023.10.11.05.21.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 05:21:01 -0700 (PDT) Date: Wed, 11 Oct 2023 05:20:59 -0700 From: Breno Leitao To: Josh Poimboeuf Cc: tglx@linutronix.de, bp@alien8.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: References: <20231010103028.4192223-1-leitao@debian.org> <20231011044252.42bplzjsam3qsasz@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231011044252.42bplzjsam3qsasz@treble> X-Spam-Status: No, score=2.8 required=5.0 tests=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]); Wed, 11 Oct 2023 05:24:28 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 09:42:52PM -0700, Josh Poimboeuf wrote: > On Tue, Oct 10, 2023 at 03:30:27AM -0700, Breno Leitao wrote: > > +config MITIGATE_MDS > > + bool "Mitigate Microarchitectural Data Sampling (MDS) hardware bug" > > + depends on CPU_SUP_INTEL > > + default y > > + help > > + Enable mitigation for Microarchitectural Data Sampling (MDS). MDS is > > + a hardware vulnerability which allows unprivileged speculative access > > + to data which is available in various CPU internal buffer. Deeper > > + technical information is available in the MDS specific x86 architecture > > + section: Documentation/arch/x86/mds.rst. > > MITIGATE_GDS seems to be missing? GDS is named `GDS_FORCE_MITIGATION` instead of MITIGATE_GDS. See 11cf22869ea ("x86/speculation: Add Kconfig option for GDS") > > For consistency I'm thinking it would be better to call them > MITIGATION_* rather than MITIGATE_* since they're under the > SPECULATION_MITIGATIONS menuentry, and the bugs code almost exclusively > uses the noun "mitigation" rather than the verb "mitigate". Sure. I can definitely rename them to MITIGATION_. Let's see if no one else disagree and I will update the patch. > While we're at it should we go ahead and rename the existing options? Sure! Thanks for the feedback!