All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Lars Kurth <lars.kurth.xen@gmail.com>,
	xen-devel <xen-devel@lists.xenproject.org>,
	Rich Persaud <persaur@gmail.com>,
	George Dunlap <george.dunlap@citrix.com>
Subject: Re: Xen Project Spectre/Meltdown FAQ
Date: Sun, 7 Jan 2018 16:00:29 +0100	[thread overview]
Message-ID: <20180107150029.GA2935@mail-itl> (raw)
In-Reply-To: <edec8de6-c678-2aa1-5c50-97533c14f8f6@citrix.com>


[-- Attachment #1.1: Type: text/plain, Size: 2589 bytes --]

On Fri, Jan 05, 2018 at 07:05:56PM +0000, Andrew Cooper wrote:
> On 05/01/18 18:16, Rich Persaud wrote:
> >> On Jan 5, 2018, at 06:35, Lars Kurth <lars.kurth.xen@gmail.com
> >> <mailto:lars.kurth.xen@gmail.com>> wrote:
> >> Linux’s KPTI series is designed to address SP3 only.  For Xen guests,
> >> only 64-bit PV guests are affected by SP3. A KPTI-like approach was
> >> explored initially, but required significant ABI changes.  

Is some partial KPTI-like approach feasible? Like unmapping memory owned
by other guests, but keeping Xen areas mapped? This will still allow
leaking Xen memory, but there are very few secrets there (vCPUs state,
anything else?), so overall impact will be much lower.

> >> Instead
> >> we’ve decided to go with an alternate approach, which is less
> >> disruptive and less complex to implement. The chosen approach runs PV
> >> guests in a PVH container, which ensures that PV guests continue to
> >> behave as before, while providing the isolation that protects the
> >> hypervisor from SP3. This works well for Xen 4.8 to Xen 4.10, which
> >> is currently our priority.

There is one drawback of such approach: running PV will now require a
CPU with VT-x (or equivalent). I think this is a huge problem, ruining
the most important (or maybe the only, nowadays) advantage of PV versus
PVH or HVM.

> > Since PVH does not yet support PCI passthrough, are there other
> > recommended SP3 mitigations for 64-bit PV driver domains?
> 
> Lock them down?  Device driver domains, even if not fully trusted, are
> going to be part of the system and therefore at least semi-TCB.
> 
> If an attacker can't run code in your driver domain (and be aware of
> things like server side processing, JIT of SQL, etc as "running code"
> methods), they aren't in a position to mount an SP3 attack.

Well, the main reason why driver domains are used in Qubes OS is
assumption that it is not possible to really "lock them down", given
full OS (Linux) running inside and being exposed to the outside world
(having network adapters, USB controllers etc). There are so many
components running them, that for sure some of them are buggy. Just some
examples exploitable in the near past: DHCP client, Bluetooth stack.

If we'd believe that handling those devices exposed to the outside world
is "safe", we wouldn't use driver domains at all...

-- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

[-- Attachment #2: Type: text/plain, Size: 157 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  reply	other threads:[~2018-01-07 15:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-05 11:35 Xen Project Spectre/Meltdown FAQ Lars Kurth
2018-01-05 11:52 ` Juergen Gross
2018-01-05 12:11 ` George Dunlap
2018-01-05 14:40 ` Julien Grall
2018-01-05 14:54   ` Lars Kurth
2018-01-05 15:55 ` Hans van Kranenburg
2018-01-05 17:34   ` Lars Kurth
2018-01-08 10:11   ` Lars Kurth
2018-01-05 18:16 ` Rich Persaud
2018-01-05 19:05   ` Andrew Cooper
2018-01-07 15:00     ` Marek Marczykowski-Górecki [this message]
2018-01-07 17:11       ` Andrew Cooper
2018-01-08  9:02         ` Lars Kurth
2018-01-08 10:15           ` Roger Pau Monné
2018-01-08 11:42         ` George Dunlap
2018-01-09  2:04       ` Stefano Stabellini
2018-01-10  3:58         ` Peter
2018-01-10  6:03           ` Juergen Gross
2018-01-11  9:15             ` Lars Kurth
2018-01-11  9:16               ` Lars Kurth
2018-01-11 19:22                 ` Peter
2018-01-11 19:30                   ` Hans van Kranenburg
2018-01-12 17:17                     ` Nathan March
2018-01-12 17:25                       ` Andrew Cooper
2018-01-12  1:57                 ` Doug Goldstein
2018-01-11 14:10               ` Hans van Kranenburg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180107150029.GA2935@mail-itl \
    --to=marmarek@invisiblethingslab.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=lars.kurth.xen@gmail.com \
    --cc=persaur@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.