Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5769785imm; Mon, 23 Jul 2018 05:54:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd3nOvbFqqs+V6lwiqjC1xSIfyBg8JHYAnS3y1OK2INc/woCRXYia11+NZCTxLZKtFTwca8 X-Received: by 2002:a17:902:622:: with SMTP id 31-v6mr12815869plg.153.1532350441306; Mon, 23 Jul 2018 05:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532350441; cv=none; d=google.com; s=arc-20160816; b=r/HQE13l0BaZUxlkWmhXSTjBDMhqsM71aFJha/fKwqtKwwuq1h/5QgYTYxhuH7dvX/ S7Ep7fdCZeOTrYKE8eD74ugdY66ctmmwKNDHPt9+vrAiqD6it/ZMXvb6PUhKJ+U6mHHe 03MXs7GTb9MauZCA53HDebpaaP+lUdMvXiESp9NFTUnPq1L51m77woWDUz6TbxWgzMlO 2+BJFDisPujVWw+Xjz1zXIsKj90tlU6uyDwvESHnu1cyJ8X2bxoxP0ItlWShoouHIuiX XOaM9cusIIPRPynQu9v30gTMj3/EN2mxn3o3319HcaQYOQAaXau341ejALeWcVpANWyo PK9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uxovrTQCPDdf5w6KQmSDKgPRY5wGjAwmRVaJGxu7tOA=; b=qYiW6QDWtTbSPJ9cWnY4CnjithZx6iJ6IT5xtCGi8Q/JnBRBU60B0Ga2LN29t7PY8N YxdRouoj5/ap+4IddvJgDgjfM3axfmMjS0Eorkg5pKa0KjvXJOJorfuMoV5HqoYVX2ab uLdju+kg14NJeyLL+459HVzeUjPGioJdv3paTMp2/EfpfWp9vgqzgOFPSp735ryTt/3A aaMclnA9z03W1jaaWGTNfgtmEvuYeqmSH2dkD1J5TAqOGi0ijEtH9Y0XtS2Rb/jpd2RP v9GD6OTeXJBiffQgW1Q8rXO7LO0vrFrorm5wlip9Jvq6fSHzjg04ytDEMgFc/iRh7CZg /UuA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1-v6si8180367plb.331.2018.07.23.05.53.32; Mon, 23 Jul 2018 05:54:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388865AbeGWNwZ (ORCPT + 99 others); Mon, 23 Jul 2018 09:52:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:51386 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389443AbeGWNrz (ORCPT ); Mon, 23 Jul 2018 09:47:55 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 64A42CBD; Mon, 23 Jul 2018 12:46:01 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Borislav Petkov , Thomas Gleixner , David Woodhouse , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: [PATCH 4.4 078/107] Documentation/spec_ctrl: Do some minor cleanups Date: Mon, 23 Jul 2018 14:42:12 +0200 Message-Id: <20180723122417.326278460@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Borislav Petkov commit dd0792699c4058e63c0715d9a7c2d40226fcdddc upstream Fix some typos, improve formulations, end sentences with a fullstop. Signed-off-by: Borislav Petkov Signed-off-by: Thomas Gleixner Signed-off-by: David Woodhouse Signed-off-by: Greg Kroah-Hartman Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan Signed-off-by: Greg Kroah-Hartman --- Documentation/spec_ctrl.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) --- a/Documentation/spec_ctrl.txt +++ b/Documentation/spec_ctrl.txt @@ -2,13 +2,13 @@ Speculation Control =================== -Quite some CPUs have speculation related misfeatures which are in fact -vulnerabilites causing data leaks in various forms even accross privilege -domains. +Quite some CPUs have speculation-related misfeatures which are in +fact vulnerabilities causing data leaks in various forms even across +privilege domains. The kernel provides mitigation for such vulnerabilities in various -forms. Some of these mitigations are compile time configurable and some on -the kernel command line. +forms. Some of these mitigations are compile-time configurable and some +can be supplied on the kernel command line. There is also a class of mitigations which are very expensive, but they can be restricted to a certain set of processes or tasks in controlled @@ -32,18 +32,18 @@ the following meaning: Bit Define Description ==== ===================== =================================================== 0 PR_SPEC_PRCTL Mitigation can be controlled per task by - PR_SET_SPECULATION_CTRL + PR_SET_SPECULATION_CTRL. 1 PR_SPEC_ENABLE The speculation feature is enabled, mitigation is - disabled + disabled. 2 PR_SPEC_DISABLE The speculation feature is disabled, mitigation is - enabled + enabled. 3 PR_SPEC_FORCE_DISABLE Same as PR_SPEC_DISABLE, but cannot be undone. A subsequent prctl(..., PR_SPEC_ENABLE) will fail. ==== ===================== =================================================== If all bits are 0 the CPU is not affected by the speculation misfeature. -If PR_SPEC_PRCTL is set, then the per task control of the mitigation is +If PR_SPEC_PRCTL is set, then the per-task control of the mitigation is available. If not set, prctl(PR_SET_SPECULATION_CTRL) for the speculation misfeature will fail. @@ -61,9 +61,9 @@ Common error codes Value Meaning ======= ================================================================= EINVAL The prctl is not implemented by the architecture or unused - prctl(2) arguments are not 0 + prctl(2) arguments are not 0. -ENODEV arg2 is selecting a not supported speculation misfeature +ENODEV arg2 is selecting a not supported speculation misfeature. ======= ================================================================= PR_SET_SPECULATION_CTRL error codes @@ -74,7 +74,7 @@ Value Meaning 0 Success ERANGE arg3 is incorrect, i.e. it's neither PR_SPEC_ENABLE nor - PR_SPEC_DISABLE nor PR_SPEC_FORCE_DISABLE + PR_SPEC_DISABLE nor PR_SPEC_FORCE_DISABLE. ENXIO Control of the selected speculation misfeature is not possible. See PR_GET_SPECULATION_CTRL.