Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp261467lqg; Thu, 11 Apr 2024 01:49:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaYYol9aDEcUWyMSyYz9X6AIjyqfTapO4PD3JQa7PzCHt4EI/HuCu8WA1GNrWoqv1G/0dnb5RBvUbCco/xFrt6ryEEMcjeoZJ/P9bvMw== X-Google-Smtp-Source: AGHT+IEOUHlowMiqtu5AjwhN5VJstfk24AUL9khD7K4yeD/HQ0C/CX9sWaTJS1WnVbcQvzem+v45 X-Received: by 2002:a17:90b:1b08:b0:2a2:1900:493 with SMTP id nu8-20020a17090b1b0800b002a219000493mr4382928pjb.40.1712825371151; Thu, 11 Apr 2024 01:49:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712825371; cv=pass; d=google.com; s=arc-20160816; b=q5/bQKwjvYT+kwBUGRyvIcqOaGxLnbvh54HbHLO8+te+1XYayIzBZFYquzMCSsABeM P72sZ1RxpFYUrU2Ap3YaLDmd+5I6laqk2/9d0RdODBG9DaGrnlwcDgK0q+Y8HVJoNm6r 1O2f/y3LEljIJIcKyHsQAZmo9o8AfUO6krIvEiSGEaHGP23/GNDOuhdu85IbcG9XXfyr GtdXhbAW9yJprCj3xwXdaZwycc22ZGVOo103kRjAiwFgB11ArzQr9b1Gu2GoJ4D67JWU C+lbMbMgy01agwFTbTITDGQlbRbG2uZBNcSy64xkQqbFJnuUfsXqVoyK9hpviJm2fQWp 02Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=gcN7tXMnMywbBqjQJHCC0LtqV5AS39Utc3hiYI/TTyY=; fh=g1nFyk4WsKLIIkMMJrotPVaKMp/RG5gwZkYpsgs1a94=; b=SKb8RK2l1HSgp5tqTag9Fars7zevxjwg88vvNjb/ZCPHicUtf7p4ItcNnRb5HuVVc4 6rgi/qGO/30jVEuGusw3CilSGycKmOrDOchDfeikIc4C+uhScTGX165WI3QxjZDzvS5F a5LZ6MfFRh7Y20RvqBqiF0AMZZKG1p5bJp0AkR/1kBWHSn5Hcl/MLBdyXpZlRHqTIlwF 22yerck3boY+7W+rRjYzfVFh9wqxs6PFLH+bqz3mx9y5NhbJZiW8fRerl2bP0i5gxRAY xO1jM79GwWFYSKz97WSZIoJNFnaTt3kHKPexTnc/z9JvPBXwQpgpP6XLTBuJstC8UcPD v25A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gzQYj3H8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-140109-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id cv8-20020a17090afd0800b002a528a1bfb0si1010563pjb.20.2024.04.11.01.49.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 01:49:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140109-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=@linutronix.de header.s=2020 header.b=gzQYj3H8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-140109-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 726A228A842 for ; Thu, 11 Apr 2024 08:41:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EFC2C145358; Thu, 11 Apr 2024 08:40:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gzQYj3H8"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="i+/KU2VP" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2E3F3144319; Thu, 11 Apr 2024 08:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712824834; cv=none; b=hx4zEqq5gXfUe/q+7ZhSzaGkG158irx807rIXS2THMyh0LYIJzNe0zTISCqvIYp3UB9jUMNfPTf+YO/JHfxo2LwbMivHcQ/RDgTt+6HFEK/X5c+lF82BUEGstnLY4jOP5Qmud/G31yIPv5wYelHjZXsr1WFyZm0dQvLGQ9YfFzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712824834; c=relaxed/simple; bh=6IKb9HZopR97AJ288H4GpXDXmBr140+wx1S92ZXT6as=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=j8AdnCLtKeRDMiM4qUs4KfXcwmXViMMN7wjJ6BpSrWy94UpZ0pS5+de3OPWk01J9JtWfM0kfmh8dMILmb0AX+OmmTea4Xp/tnpoz72DF3ALD8AZhX8Gy53H2R5ysR9AYBQVGXvFPIH7etS3HhUwvitoiEvTp1zxnODVpqlq7hNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gzQYj3H8; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=i+/KU2VP; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Thu, 11 Apr 2024 08:40:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712824824; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gcN7tXMnMywbBqjQJHCC0LtqV5AS39Utc3hiYI/TTyY=; b=gzQYj3H8P6zaLgGYIyysyU8PGJ6pc/EZebPbli3ZxFKEoeAD2TpiG9VzcBN6wZVyHKAkxW iE7bnbaq06I1k9vzOC7ycLYKYCsiJWUTPZ8fQtw+OGUIDNAujLRk4uOIVie4yg1or+uYE+ vfAdPJjl2cYroG+6KWsmnHip0vWmx3ogT1a9oMZt6ZQ3Y2HXcBTmgZMQ/pZnJdGNcc7s7K FYTQfbAnd80+SgGdXtMYQVrNWtjnQV3nG12/AriJm8CDdxIZ3ZK06mgRWGi1dRM4o2S0sb PQGQVFxkqxapmC6lM5V9E+d9OvstDpY4xzTl5nwrRGN+bkxw8OxqL685jHHoiw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712824824; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=gcN7tXMnMywbBqjQJHCC0LtqV5AS39Utc3hiYI/TTyY=; b=i+/KU2VPvdhGCeA+gvq5An+lNmZTqWivkB8/p+hvsYjJmkKcAgqvyW1f0nUxLjoRxMmSrz 3mNlpGExa/U4nDBQ== From: "tip-bot2 for Josh Poimboeuf" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/bugs: Fix BHI documentation Cc: Josh Poimboeuf , Ingo Molnar , Nikolay Borisov , Linus Torvalds , Sean Christopherson , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <8c84f7451bfe0dd08543c6082a383f390d4aa7e2.1712813475.git.jpoimboe@kernel.org> References: <8c84f7451bfe0dd08543c6082a383f390d4aa7e2.1712813475.git.jpoimboe@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171282482362.10875.17185203405613428370.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the x86/urgent branch of tip: Commit-ID: dfe648903f42296866d79f10d03f8c85c9dfba30 Gitweb: https://git.kernel.org/tip/dfe648903f42296866d79f10d03f8c85c9dfba30 Author: Josh Poimboeuf AuthorDate: Wed, 10 Apr 2024 22:40:45 -07:00 Committer: Ingo Molnar CommitterDate: Thu, 11 Apr 2024 10:30:25 +02:00 x86/bugs: Fix BHI documentation Fix up some inaccuracies in the BHI documentation. Fixes: ec9404e40e8f ("x86/bhi: Add BHI mitigation knob") Signed-off-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Reviewed-by: Nikolay Borisov Cc: Linus Torvalds Cc: Sean Christopherson Link: https://lore.kernel.org/r/8c84f7451bfe0dd08543c6082a383f390d4aa7e2.1712813475.git.jpoimboe@kernel.org --- Documentation/admin-guide/hw-vuln/spectre.rst | 15 ++++++++------- Documentation/admin-guide/kernel-parameters.txt | 12 +++++++----- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/Documentation/admin-guide/hw-vuln/spectre.rst b/Documentation/admin-guide/hw-vuln/spectre.rst index b70b1d8..3cf18e4 100644 --- a/Documentation/admin-guide/hw-vuln/spectre.rst +++ b/Documentation/admin-guide/hw-vuln/spectre.rst @@ -439,11 +439,11 @@ The possible values in this file are: - System is protected by retpoline * - BHI: BHI_DIS_S - System is protected by BHI_DIS_S - * - BHI: SW loop; KVM SW loop + * - BHI: SW loop, KVM SW loop - System is protected by software clearing sequence * - BHI: Syscall hardening - Syscalls are hardened against BHI - * - BHI: Syscall hardening; KVM: SW loop + * - BHI: Syscall hardening, KVM: SW loop - System is protected from userspace attacks by syscall hardening; KVM is protected by software clearing sequence Full mitigation might require a microcode update from the CPU @@ -666,13 +666,14 @@ kernel command line. of the HW BHI control and the SW BHB clearing sequence. on - unconditionally enable. + (default) Enable the HW or SW mitigation as + needed. off - unconditionally disable. + Disable the mitigation. auto - enable if hardware mitigation - control(BHI_DIS_S) is available, otherwise - enable alternate mitigation in KVM. + Enable the HW mitigation if needed, but + *don't* enable the SW mitigation except for KVM. + The system may be vulnerable. For spectre_v2_user see Documentation/admin-guide/kernel-parameters.txt diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 70046a0..a029ad6 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3444,6 +3444,7 @@ retbleed=off [X86] spec_rstack_overflow=off [X86] spec_store_bypass_disable=off [X86,PPC] + spectre_bhi=off [X86] spectre_v2_user=off [X86] srbds=off [X86,INTEL] ssbd=force-off [ARM64] @@ -6069,11 +6070,12 @@ deployment of the HW BHI control and the SW BHB clearing sequence. - on - unconditionally enable. - off - unconditionally disable. - auto - (default) enable hardware mitigation - (BHI_DIS_S) if available, otherwise enable - alternate mitigation in KVM. + on - (default) Enable the HW or SW mitigation + as needed. + off - Disable the mitigation. + auto - Enable the HW mitigation if needed, but + *don't* enable the SW mitigation except + for KVM. The system may be vulnerable. spectre_v2= [X86,EARLY] Control mitigation of Spectre variant 2 (indirect branch speculation) vulnerability.