Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 08 Jul 2018 15:40:51 -0000 Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fcBnu-0004Ga-Hl for speck@linutronix.de; Sun, 08 Jul 2018 17:40:51 +0200 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B8A7DFCB for ; Sun, 8 Jul 2018 15:40:44 +0000 (UTC) Received: from treble (ovpn-120-114.rdu2.redhat.com [10.10.120.114]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1FA947C28 for ; Sun, 8 Jul 2018 15:40:44 +0000 (UTC) Date: Sun, 8 Jul 2018 10:40:42 -0500 From: Josh Poimboeuf Subject: [MODERATED] Re: [patch 2/2] Command line and documentation 2 Message-ID: <20180708154042.ihm7khimkbaxxtnb@treble> References: <20180708125216.197406530@linutronix.de> <20180708125654.812951995@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180708125654.812951995@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Sun, Jul 08, 2018 at 02:52:18PM +0200, speck for Thomas Gleixner wrote: > From: Thomas Gleixner > Subject: [patch 2/2] Documentation: Add section about CPU vulnerabilities > > Signed-off-by: Thomas Gleixner > --- > Documentation/admin-guide/index.rst | 9 > Documentation/admin-guide/l1tf.rst | 356 ++++++++++++++++++++++++++++++++++++ > 2 files changed, 365 insertions(+) > > --- a/Documentation/admin-guide/index.rst > +++ b/Documentation/admin-guide/index.rst > @@ -17,6 +17,15 @@ etc. > kernel-parameters > devices > > +This section describes CPU vulnerabilities and provides an overview over s/over/of/ > +the possible mitigations along with guidance for selecting mitigations if > +they are configurable at compile, boot or run time. > + > +.. toctree:: > + :maxdepth: 1 > + > + l1tf > + > Here is a set of documents aimed at users who are trying to track down > problems and bugs in particular. > > --- /dev/null > +++ b/Documentation/admin-guide/l1tf.rst > @@ -0,0 +1,356 @@ > +L1TF - L1 Terminal Fault > +======================== > + > +L1 Terminal Fault is a hardware vulnerability which allows unconstrained > +speculative access to data which is available in the Level 1 Data Cache > +when the page table entry controlling the virtual access, which is used for > +the access, has the present bit cleared. s/present/Present/ > + > +Affected CPUs > +------------- > + > +This vulnerability affects a wide range of Intel processors. The > +vulnerability is not present on: > + > + - Older models, where the CPU family is < 6 > + > + - A range of ATOM processors (Cedarview, Cloverview, Lincroft, Penwell, > + Pineview, Slivermont, Airmont, Merrifield) > + > + - The Core Duo Yonah variants (2006 - 2008) > + > + - The XEON PHI family > + > + - Processors which have the ARCH_CAP_RDCL_NO bit set in the > + IA32_ARCH_CAPABILITIES MSR. If the bit is set the CPU is also not > + affected by the Meltdown vulnerabitly. These CPUs should become > + available end of 2018. > + > +Related CVEs > +------------ > + > +The following CVE entries are related to the L1TF vulnerability:: > + > + CVE-2018-3615: L1 Terminal Fault - SGX related aspects > + CVE-2018-3620: L1 Terminal Fault - OS, SMM related aspects > + CVE-2018-3646: L1 Terminal Fault - Virtualization related aspects > + > +Problem > +------- > + > +If an instruction accesses a virtual address for which the relevant page > +table entry (PTE) has the present bit cleared, then the speculative s/present/Present/ > +3. Virtualization with untrusted guests > + > + If SMT is not supported by the processor or disabled in the BIOS or by > + the kernel, it's only required to enforce L1D flushing on VMENTER. This > + can be achieved with the l1tf or the kvm-intel command line or module > + parameters. > + > + If SMT is supported and active then various degrees of mitigations can > + be employed. > + > + - Confinement of guests to a single or a group of physical cores which > + are not running any other processes, can reduce the attack surface > + significantly, but interrupts, soft interrupts and kernel threads can > + still expose valuable data to a potential attacker period -- Josh