Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1965508yba; Sat, 27 Apr 2019 10:58:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9jcdNnOfxUIuw8GR+YIRbvP+GZ/fBmvUzIGbSS+DbZOVb3tA8eMBddeibKcsMD8JAuvBo X-Received: by 2002:a17:902:3c5:: with SMTP id d63mr3045893pld.328.1556387938908; Sat, 27 Apr 2019 10:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556387938; cv=none; d=google.com; s=arc-20160816; b=vsL91MuLdTDOazp9LWzJtl8pfoY/5V3Ey9hsylrF4ZXQ0VKpy89c1uOM+P9UhP3jFA 3hm3hMpLQmRDEpapEpPEcLOIkdHH7dTVVB6YEVCzZ/Acqzh9FkGOtEEGyxXdqSp/QHW0 bAChcEVOBXG8TgAHvsCaJNpOGfvFyGVO2xYBZ5YktgxWktkD9yz4obQXzUOf8lT7aYmN ispVRnpzbKMUQTaQC1yI6JhV/GcOeqHAmnSgJcR/8ymkjrkKqPCmPl3P5WfyL1ewaRzI RFbW5d59nmK6hM7r6sbdZXhw81xeWjeyj9jHjrUlrvdoFJIDw8jLvbovDb9K/fcPDYMx 21iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=oBiHv0THBfUXjJClic9ROjQf6mlSKVP8ZVkAva9ccFo=; b=Ppt5uFd9OVlMhptA6vViJ3KCSJG/RG3cZPDGFpEV7IjRRsT/jh7QlmaGSxi9ZHP1Qs zRHHLxSJUA8Gy7QI3LkRo12XvvWa72NC6v7L66tqqBVqZPjNRBQUIuadDIpKJ+cKoDYm /fmC45RwAWA5IzdkA1SWRCuicjH0uWOdyqKrADRhOj4aIDq15s9gtTCmCrpaQfxfvAUL LgNRwd/VTPbnj++9wrw2jWxWVOF1U8OJ2wmkTNLuvMfEQHhuWNK1J30uep0yXTJRWGYp 5J8EBqcV1WD/ATCkyvBQeY5sXpetqwy3Fvw76hV0wqS7pjUc3MfPCf1qp7h39IR4lzIM wH6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=gCqVKJ3X; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m12si27242599pgc.157.2019.04.27.10.58.43; Sat, 27 Apr 2019 10:58:58 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=gCqVKJ3X; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726362AbfD0R5T (ORCPT + 99 others); Sat, 27 Apr 2019 13:57:19 -0400 Received: from casper.infradead.org ([85.118.1.10]:50298 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726209AbfD0R5S (ORCPT ); Sat, 27 Apr 2019 13:57:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oBiHv0THBfUXjJClic9ROjQf6mlSKVP8ZVkAva9ccFo=; b=gCqVKJ3X+pSII5lauUiHz1aInL eYDZNm9inAh/dB6r8iueSZnD6app/9uYMrB8CWzJeW+s0sevnc5D+cDRYhpmSqRY3rFG7eQmW7dIJ wFdi71Zdv7k22oE6uLPJHMFgFjqV357SIbhVH+cc7ggyj0U4uEM15LFcGODHqgjeHNN1/WOSaOa9H 4Dl+mse+FXIplEqBf/jXQ5qmOVDSmcbZ+49jOoNViHrg/hxj5FNoTjVYuAufItM1YAsS/X9tWYR0i PgMnaSNcaCEW9tAmIEQC50FCR6nsCeGfVOE8m8eL5V+G3xgHz/6GOdWD+q/9l9NJskmVgQfnqHofZ ZBrO0YlQ==; Received: from 177.17.250.151.dynamic.adsl.gvt.net.br ([177.17.250.151] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKRZZ-0003DN-3B; Sat, 27 Apr 2019 17:57:13 +0000 Date: Sat, 27 Apr 2019 14:57:08 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 15/27] Documentation: x86: convert pti.txt to reST Message-ID: <20190427145708.281493e4@coco.lan> In-Reply-To: <20190426153150.21228-16-changbin.du@gmail.com> References: <20190426153150.21228-1-changbin.du@gmail.com> <20190426153150.21228-16-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 26 Apr 2019 23:31:38 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab > --- > Documentation/x86/index.rst | 1 + > Documentation/x86/{pti.txt => pti.rst} | 17 +++++++++++++---- > 2 files changed, 14 insertions(+), 4 deletions(-) > rename Documentation/x86/{pti.txt => pti.rst} (96%) > > diff --git a/Documentation/x86/index.rst b/Documentation/x86/index.rst > index a0426ab156bd..1c675cef14d7 100644 > --- a/Documentation/x86/index.rst > +++ b/Documentation/x86/index.rst > @@ -21,3 +21,4 @@ Linux x86 Support > protection-keys > intel_mpx > amd-memory-encryption > + pti > diff --git a/Documentation/x86/pti.txt b/Documentation/x86/pti.rst > similarity index 96% > rename from Documentation/x86/pti.txt > rename to Documentation/x86/pti.rst > index 5cd58439ad2d..4b858a9bad8d 100644 > --- a/Documentation/x86/pti.txt > +++ b/Documentation/x86/pti.rst > @@ -1,9 +1,15 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +========================== > +Page Table Isolation (PTI) > +========================== > + > Overview > ======== > > -Page Table Isolation (pti, previously known as KAISER[1]) is a > +Page Table Isolation (pti, previously known as KAISER [1]_) is a > countermeasure against attacks on the shared user/kernel address > -space such as the "Meltdown" approach[2]. > +space such as the "Meltdown" approach [2]_. > > To mitigate this class of attacks, we create an independent set of > page tables for use only when running userspace applications. When > @@ -60,6 +66,7 @@ Protection against side-channel attacks is important. But, > this protection comes at a cost: > > 1. Increased Memory Use > + > a. Each process now needs an order-1 PGD instead of order-0. > (Consumes an additional 4k per process). > b. The 'cpu_entry_area' structure must be 2MB in size and 2MB > @@ -68,6 +75,7 @@ this protection comes at a cost: > is decompressed, but no space in the kernel image itself. > > 2. Runtime Cost > + > a. CR3 manipulation to switch between the page table copies > must be done at interrupt, syscall, and exception entry > and exit (it can be skipped when the kernel is interrupted, > @@ -142,6 +150,7 @@ ideally doing all of these in parallel: > interrupted, including nested NMIs. Using "-c" boosts the rate of > NMIs, and using two -c with separate counters encourages nested NMIs > and less deterministic behavior. > + :: > > while true; do perf record -c 10000 -e instructions,cycles -a sleep 10; done > > @@ -182,5 +191,5 @@ that are worth noting here. > tended to be TLB invalidation issues. Usually invalidating > the wrong PCID, or otherwise missing an invalidation. > > -1. https://gruss.cc/files/kaiser.pdf > -2. https://meltdownattack.com/meltdown.pdf > +.. [1] https://gruss.cc/files/kaiser.pdf > +.. [2] https://meltdownattack.com/meltdown.pdf Thanks, Mauro