Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp668366lqt; Fri, 19 Apr 2024 07:10:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPM2H62qunaPMe0m6QNJ0KpJ+Oet19UkL5ibZzgDA3uQn+1F376rheGHDKLCTO8+KgCct8FXPgW+LusZAbYX3mM6lm00Aqq8Wom5SaVA== X-Google-Smtp-Source: AGHT+IFHdrPtObzbkCuXs5hKQ2Q7nftLtUCkyTxoYZZ3n4yedHAlQTp6+UYk5vYJinVGCfgLqUUa X-Received: by 2002:a17:903:948:b0:1e9:519:d464 with SMTP id ma8-20020a170903094800b001e90519d464mr527498plb.65.1713535834566; Fri, 19 Apr 2024 07:10:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713535834; cv=pass; d=google.com; s=arc-20160816; b=ijJNzWeZAUlx8fHzSGoK5ye6EX0HpP8t38QFqyjaukgt8oFVBXIvW8txx8phzwaHDu zEfDX7G7H6EqCFKzyDw5SEl6K9cDziOj2kkuqCb+I0tY3s8Wq0ZZlLUmheCq4Eec8Bdr xxa/T5FgXi1rzn2Q1ii1/NA2Q3veENY0ZgFDCc232oigvKd/y1sqncAKAERlhOw4TOVC kM2mLGAdPwm1zdzKlNT/P0Rlh0wzG1z9k5YY6BA+8HO7bhnzwzOjxrOpp/nRclBRRISV X1BdjwMhgnrxwYJv1SK0MLOIkgWTqRglmCUUO5o4dX53LWj5qTpL+Tm8527FxE7nIlxG NvHg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=7m+OFN3f7RK1NWDGOjcIbMxbJWaEeT5t2cMPNC651Yw=; fh=bIU9VpTS0FI/UoIpW7pVLx7DeZCbUsnxYUdnZMBYdwE=; b=adfh+30NCpMg2WOMDLAd15nT6rXURCAbJ1zEmQ0OmC1D/0EyzyBY34rtr3LIfmwfY4 WNL5BKPBdeMy9KEyoFtgzQfS7h/VklP73R0DKEG/7CiT1kWF7kSq+c11P7jxOtJRit3/ +o0/pO5IdnhtdMp5i3wJYDunDQ5NFTtrVpN1dm5KzYBgwX2XeZnBe5QBnWXXOyrsAjrh UnwmI1K0ErfuwHDfpus8qZ02ewxPDCinbVjn52vE7Ure2WfLUkt0ejAjIyW4ANai89eP 9VGWdWlX7SXtZs2+VYvud1hu+IGZpUE1xQ7TkmQs25q9akfBJclSDkiOAr7gCmbC94t5 VBaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=zmV0+CyB; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-151545-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l12-20020a170903244c00b001defe4aec44si3366571pls.483.2024.04.19.07.10.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 07:10:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151545-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=@google.com header.s=20230601 header.b=zmV0+CyB; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-151545-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 36468282640 for ; Fri, 19 Apr 2024 14:09:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 866158594E; Fri, 19 Apr 2024 14:06:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="zmV0+CyB" Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B42585C62 for ; Fri, 19 Apr 2024 14:06:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535564; cv=none; b=TNNRL8HjSSH+ppt++VO7Bu+kDJWEgcM6ONWSZsqJHSHRH3zzifHqLl9RlPE81jYzsHknByTLBtCrpxQsSEZqdivoxen/BFgQPwQYesKRwzI5N5i2kgReF72e4n/eqCz9pkbBtbOzyJwL9xHutJWmqJkfh+ogfniYVGH8tAjuY4s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713535564; c=relaxed/simple; bh=nFGu38xiqRmTsAmgiVPoArTv2FW3yfqKeN+PsXjaSvU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=n14ETLa+4Tq5xXMu0E8PEgMNrT8PNKO/aoWU9AOaJJcqrhlQUEajdt0uRSj5fmY2kj23oTL33KCt9w8sU19kw1JNC/ai1y+QqqBc7tcQTAXpmxCll7LfAu2fGEekV8nDHgMGWQzWBm9yui097pZmBWxNDt1tRKUxxQvq/08QWP8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=zmV0+CyB; arc=none smtp.client-ip=209.85.214.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1e2a1619cfcso21347075ad.0 for ; Fri, 19 Apr 2024 07:06:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1713535562; x=1714140362; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=7m+OFN3f7RK1NWDGOjcIbMxbJWaEeT5t2cMPNC651Yw=; b=zmV0+CyBsrXn1cD5SV3geIH/GBP+MnqXtEjx6Jw+Qles5D5l6AuoZeFDOj2luTuJxj Jpf2nlN1t7Lm9TcEzCBWQ6bQgJvXyH63Xj/kmwYtbbtZA+wFFEmHuZE2UziSspRmiyoa 4Yv+X5RcPpKQUQK1AtfhudkkYnT2Jdx2eDQwGZwuIpHSaPNQ6OREwEJFocL0pIu9ZrNB 82YgEYAnvdrJq3t89Ij4rNO0RfIhaCMjUDd47LPPF8W9/3sGFMJxLpKfkbsUHREK3Ibu hgks8V3XOju3ErunjqC0AjCyi9sAY+9p8pmw249UA9iKWjQesuLjUos9fhKJE8FGJWxA ciHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713535562; x=1714140362; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7m+OFN3f7RK1NWDGOjcIbMxbJWaEeT5t2cMPNC651Yw=; b=lhjDkYTo3gnalOKPIL08CYgEqaXfKpsGHdSkadOowtytpTcGKqJE3OY+4pk35bd76Z GdDt2esa3T8OgYsApBPrBK8C8tHHHf/wUtlNTi72bGRStilQicVQlxMW+XGGpcm11VEP PMQ0YWQNXIEuX0odZjWlOttou7HAtSkeOXZEEkQtigKnsZEokoNXVSOyh5axh6Cl01wc /aS/O6qVuuLDXeqr2TT/gXbV4N7pgthWkfb0NIMu1Jr5fVi8jMuXLW16DIUmWj7mNf2b 16hXw1ZFrHJsoxnnqwV36NdmFCwUiJ/7TAYUMv6lHcpRyfLGGlFJZ9VtfoHvLDpwo/Oh A2dw== X-Forwarded-Encrypted: i=1; AJvYcCWPQMZwJegvxKUWp8lRjFqBOMplL/RRUi2g09YCawtsHQUGHfYhCW+/1QrITdgLemDmRjnr0QizIzf/5s7CRFUaKo4CZZ2sTI1YE1yo X-Gm-Message-State: AOJu0Yx+KRWL/Q6XELnMUWgyD8z4vIr1aEfX2e2dhIKQHQnVLd1YPS64 hXkKqiNNah1qUh8bjcfXd8lEOlHB6eyDM5vIF9KAHmY0G1wBTgqJJDURlxunChjGSt9DLjbfoBp 9mA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:903:2352:b0:1e5:e61c:35af with SMTP id c18-20020a170903235200b001e5e61c35afmr243172plh.1.1713535561835; Fri, 19 Apr 2024 07:06:01 -0700 (PDT) Date: Fri, 19 Apr 2024 07:06:00 -0700 In-Reply-To: <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 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> Message-ID: Subject: Re: [PATCH 1/3] x86/cpu: Actually turn off mitigations by default for SPECULATION_MITIGATIONS=n From: Sean Christopherson To: Will Deacon 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 Content-Type: text/plain; charset="us-ascii" 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