Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp915306lqt; Fri, 19 Apr 2024 14:46:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW71DZ2wHtoZlGsb7QRbyFOh3Y/sah6bK7l6aXKfqmjJGTEw0vb+nKJqokufOBDNLI2QfJSKEirL5153uGf+U6Pu+GqnfLs52Wt7wvCpg== X-Google-Smtp-Source: AGHT+IHjLqTlj/2QYHgl8i8UHfneVlQBQPp6i8by0U44VXw3q8JRbcchis07bAzmB2XMatzXPK1G X-Received: by 2002:a17:903:2304:b0:1e4:2172:692e with SMTP id d4-20020a170903230400b001e42172692emr4663281plh.39.1713563203781; Fri, 19 Apr 2024 14:46:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713563203; cv=pass; d=google.com; s=arc-20160816; b=ljbDvHAbMSxWJFB4RBOmxJFAyU6Q2E1NeA0sr7fK728XUr1BBMWWJGl1kYrdzPRSLc DWz2IyKKz2OHU4q/xFAu4pFKsr4+Wx15uFS7AMJabkLhtZDwcCS5yeIpW+KpaRr6ESGQ 6ERH6fyd57l4eutSxbhhCZXlfCNiTultvgC0LdmpRBS3aDMIINa8sYya4tnIWfXwc7ns lu5ZoUBx9DQBv9ozoBwacH06OzvgmC9vF4x4J2MfERhSlnLzitbsisn/AP0bbAFHjWTQ 44f46x3Qmuzmsgej1ycRBG1sCJ4wDseTyIAM8DyzoCVoztKT1scsfKIzJAz2nm3Ucg5n JGig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=c2AXUx/bbR3wjUAKQG8byAAGTKmom8OAnHv4gQmLsr4=; fh=PVXqZf7leYzR1rlT2l8BErWPJHwJEVWxPdveWWy0efU=; b=NJl54ZEzh9QcNzTjhH5nsLCrMk0slCIonmoLpeLIqWeKL8iE8oilYjAcR2GoS4FMM0 ceutkwLxvcsGc46Y3f4CkVOq00EY+h5qaSV9O9ILh4IILbCG7SF6oTG/NYGJln4MpHci VsONKxEtNs18A/iJ0LyackuWR8TkbJyklUbFpdDPHK3Exbnz/oWw3l/aeBy64+Sw1b3m QyEmWSnIBOBPG9h6TAFuo3cgxzKvxY92BDWVEwfptT7iTkrZwT2lNB65pi5PU53RsiHa EY7Vvniw75eRfbukFIby/TMyTFUH/etDnTJMZwroV5LQfJ+2mO3ymh1zUDwdfHgpsGBm ApdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MsKSuY39; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151979-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h27-20020a63211b000000b005f3a8646013si3793453pgh.343.2024.04.19.14.46.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Apr 2024 14:46:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-151979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MsKSuY39; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-151979-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-151979-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 70EA3B22778 for ; Fri, 19 Apr 2024 21:46:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F33513CFB8; Fri, 19 Apr 2024 21:46:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MsKSuY39" 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 79B9211713 for ; Fri, 19 Apr 2024 21:46:33 +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=1713563193; cv=none; b=BEj1lJfG+Aro6IQc6FSnk/E/eMeg7I4g4FDgnu0GcbTfD4StLLXcQ0lDesF5PkvmGJg2LslLkMJkVBFoRTQD0GHnGS60FbbQBOMoM2GdtRWzc6PgIqMbkesjmnijFTVf1DaIpG8eqnArvC9MtAS1JZSSvdbesBzAkQhtHtugEJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713563193; c=relaxed/simple; bh=JqQId/KDevEZmUaHLf6u8GZsAyLmvNuf3utf6UEm3vE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cj8uos54GlFceVnJoKpvv8P8X0MQzxmYm/iO+VzC/nCm3uh/HTmQR+nSoNDUeuQHVJ80DiIyAQhVVd3UXBzLtLnAoheSsdS0I0+GIbqK4MsbNEv87DGTLkMcOw5nkvYapqoIOdsltLL2k/0T12DGu+LNG4tigeMq8yzfPR24e1I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MsKSuY39; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C530C072AA; Fri, 19 Apr 2024 21:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713563193; bh=JqQId/KDevEZmUaHLf6u8GZsAyLmvNuf3utf6UEm3vE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MsKSuY399KMnUoP/0LFX2AhIpDvFT2CjQWGREu3HqNmwnzRj+pd4ManuQrq8+Ly5m XZqg2YQVOCOdEqHqGv5LZDQuQjTB/vRzmhw5QJzoYhs/tjIiMawyaP7ybriWYafi+W TdlXeDlhjjlfxmhDsNcXzC4sKybBZzhP4VfXs0mD8o5Wg2Rc7UrWQtTOsDW62nMF3B G8qa3lBEoE5SDROuLMBF9uB/NZtBQueUbptKPMcz5ywwOsSJndUzxPqlVxXnV9UBjd N8TNwd0W9GBWDOX4V0yyfA2WgiNFYSuz62U8UJJwz+w3+Ae5Frvam1IgWxg74GJq+Y N2fYBF95DfJ5w== Date: Fri, 19 Apr 2024 14:46:30 -0700 From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Daniel Sneddon , Pawan Gupta , Thomas Gleixner , Alexandre Chartre , Konrad Rzeszutek Wilk , Peter Zijlstra , Greg Kroah-Hartman , Sean Christopherson , Andrew Cooper , Dave Hansen , Nikolay Borisov , KP Singh , Waiman Long , Borislav Petkov , Ingo Molnar , Maksim Davydov Subject: Re: [PATCH v4 5/5] x86/bugs: Add 'spectre_bhi=vmexit' cmdline option Message-ID: <20240419214630.owsieyiyj5p432cy@treble> References: <72d86c6da24138f39ca6fc9459b1d037301c1427.1713559768.git.jpoimboe@kernel.org> 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=utf-8 Content-Disposition: inline In-Reply-To: <72d86c6da24138f39ca6fc9459b1d037301c1427.1713559768.git.jpoimboe@kernel.org> On Fri, Apr 19, 2024 at 02:09:51PM -0700, Josh Poimboeuf wrote: > In cloud environments it can be useful to *only* enable the vmexit > mitigation and leave syscalls vulnerable. Add that as an option. > > This is similar to the old spectre_v2=auto option which was removed with As Daniel pointed out this should be /v2/bhi/ -- Josh