Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp687044lqt; Fri, 19 Apr 2024 07:39:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlvpZ5c+lbCMYy9xpOErJctfnTeuWd1yKbmKM6m9xOlXLHvRpXXvYDP/0fx9ksEe8wxvfBfdXL+Jm5BBlfwPJJe/0sFSUFzjThRmgMOQ== X-Google-Smtp-Source: AGHT+IH3yJE/6PIN7CE7NOV60ywWfuyTSCDZsoBM8KmxLqdo0h0HwY/y/bc2V2Huli7MCLp3goh0 X-Received: by 2002:a05:6a21:1798:b0:1ac:4dac:5a07 with SMTP id nx24-20020a056a21179800b001ac4dac5a07mr1312345pzb.16.1713537542958; Fri, 19 Apr 2024 07:39:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713537542; cv=pass; d=google.com; s=arc-20160816; b=awv2ASYrwHRr4Q8w5m6b+/K31g5affFOygw6i24NL2nhg7aZBBlaOk0nx1zif00ruF o0fqROFxG9zvwF6AXOyZsMQ2bIsJmia8KaMaYzGBFDiD6NSyzPxeu1H5yxgMR3PT8eni fOqMsyW/AM9gvxF4EZagjyciAEs7OJ+k83x59SohLmESFz1/GXn0ympnqGvi1+2qeyeN Pcj/tj/Vv6AbXU6TBOYLbzwvhS9kz+19P9NGnGNCuX6tLs1VAyjHCOQizxWLREPjM/Nb iWjvd2dfdL1s6zs9AA2GlfeW4rWoGbuy6yQHHYZGJUdC32Zv1mB+/kJ1ESOMrKMc7ZYA /hZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=WzLpcz+o/BwSapeepOILkFQFALQrY9fTviHECspdxEs=; fh=eRYOnaqFK3u/Oh1Xzw3uPV7toVc/jbZZMGNeWcRyRR0=; b=mi2gNr1BPIP0rbiLep9O5DUVJYT3SuWQ/RxLPNuIGhOjF/brCUmxSDeX2yEhWNHr0v v4kcpzxhq89IysrZl1p504DDCcgqNcKHy3BjOYT8bpjdbbksF7L1RfOijtUlRdZJKbL8 o42f9x8UwFkMLYS215ust+RO2CcCzWJv0nB7+UmjtVtshQ8iwYgqz0Ub/mZ16oGczmAJ HUSFXPWNuGgVRHUYM32ZSncFoMbnatobU/dZQCjRK8uyJVj9g/JanmspBn+oMFk8XDmR AGld3uHCOvcGheR8SwbzfGuWpYGToLcEGTIMLKg1MoNHN6TCtnAOGQ/ycwNpvQLz+zwP gyEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SuC/adN8"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151593-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x8-20020a17090a8a8800b002aac8527ed0si5603831pjn.1.2024.04.19.07.39.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:39:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151593-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="SuC/adN8"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151593-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151593-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 722D2283B7B for ; Fri, 19 Apr 2024 14:39:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DBAE312EBDF; Fri, 19 Apr 2024 14:38:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SuC/adN8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 044512B2D7; Fri, 19 Apr 2024 14:38:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713537534; cv=none; b=phc0w5Rq6WyTvxAVDYsSuErlji0gGQrKTyPAnr8VG9QA+ijXIRsEbO/0I/0XKfvYCfcOjoafeR3Do2lV3wItsyK0CnXZxKqy0MCCQWCQIqUeapBzvf61o30lQxATRo56rc8sGOxJmGMNTeNRp4Ov04ct8Sc+nlPo5EABxMExG6k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713537534; c=relaxed/simple; bh=HaHW8LOM7CzKYKcJLEDAbtk0kNe6pNRRkCefhatJTL0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=vBNUouwzbXw5f5+cYvnoSZBP+da+jLT5YG9Kz0ANBp+P/ZbroalnsdYbusUQknvsQTSbEZSCwJcbKyEyqtr6IqXzmHycMB6cIXluZouAYxHkXZP0HZrGE4A14DMIFRGT51rNqr+JCg74k926xN5qRRJYt9hJnGRCq51O2G34yww= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SuC/adN8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9EAF7C072AA; Fri, 19 Apr 2024 14:38:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713537533; bh=HaHW8LOM7CzKYKcJLEDAbtk0kNe6pNRRkCefhatJTL0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SuC/adN8zf/JDG9shHoubRIOiGr8+e3T+cmz3cSQBxc1sRisROcD1PalPMEM1+H3W Vd6BevhpgR7mhl7DO2NMfRRSe6BXR/wVujj42nN/4G+fL+JONDvCzJMP3wP579Fpsw cgyJUtLLAQDxAvH3Ly3pt4v2Y2PgZvmwLa2RzXTuTudFsnoa2zaRHtz2XXKih66UlP AzYaOEH6gkaaF7QE2I6XX8jPYiaeKRMWv0vdVDNTa9H4OgS/1y5ZwOXm7ndFEtt+2V KCwi7ssV9O6ndE5yCOD0aFxRcFd2qz0vTgt5OnIE1YtwbPrH2KAMfKevsHFhvkTpH3 dHBYKIhHWK5ZA== Date: Fri, 19 Apr 2024 15:38:46 +0100 From: Will Deacon To: Sean Christopherson Cc: Geert Uytterhoeven , Michael Ellerman , Stephen Rothwell , Jonathan Corbet , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Peter Zijlstra , Josh Poimboeuf , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Pawan Gupta , Daniel Sneddon , linuxppc-dev@lists.ozlabs.org, linux-arch@vger.kernel.org, Catalin Marinas , Heiko Carstens , Linux-Renesas Subject: Re: [PATCH 1/3] x86/cpu: Actually turn off mitigations by default for SPECULATION_MITIGATIONS=n Message-ID: <20240419143846.GA3508@willie-the-truck> References: <20240409175108.1512861-1-seanjc@google.com> <20240409175108.1512861-2-seanjc@google.com> <20240413115324.53303a68@canb.auug.org.au> <87edb9d33r.fsf@mail.lhotse> <87bk6dd2l4.fsf@mail.lhotse> <20240419140321.GF3148@willie-the-truck> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) On Fri, Apr 19, 2024 at 07:06:00AM -0700, Sean Christopherson wrote: > On Fri, Apr 19, 2024, Will Deacon wrote: > > On Mon, Apr 15, 2024 at 07:31:23AM -0700, Sean Christopherson wrote: > > > On Mon, Apr 15, 2024, Geert Uytterhoeven wrote: > > > Oof. I completely missed that "cpu_mitigations" wasn't x86-only. I can't think > > > of better solution than an on-by-default generic Kconfig, though can't that it > > > more simply be: > > > > > > diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig > > > index 2b8fd6bb7da0..5930cb56ee29 100644 > > > --- a/drivers/base/Kconfig > > > +++ b/drivers/base/Kconfig > > > @@ -191,6 +191,9 @@ config GENERIC_CPU_AUTOPROBE > > > config GENERIC_CPU_VULNERABILITIES > > > bool > > > > > > +config SPECULATION_MITIGATIONS > > > + def_bool !X86 > > > + > > > config SOC_BUS > > > bool > > > select GLOB > > > > I can't see this in -next yet. Do you plan to post it as a proper patch > > to collect acks etc? > > Sorry, I neglected to Cc everyone. > > https://lore.kernel.org/all/20240417001507.2264512-2-seanjc@google.com Ah, thanks. I'll go Ack that... Will