From: Lars Kurth Subject: Re: Xen Project Spectre/Meltdown FAQ Date: Mon, 8 Jan 2018 09:02:37 +0000 Message-ID: <53951DED-1AEF-49B3-955B-9080E7D889F0@gmail.com> References: <888C1DAE-2B56-4D59-8529-D9DEA410BB9E@gmail.com> <20180107150029.GA2935@mail-itl> <4b0965ae-6746-febb-3c17-072e6f7aefd7@citrix.com> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="===============7496485230345879185==" Return-path: Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eYTLL-0006l2-Dv for xen-devel@lists.xenproject.org; Mon, 08 Jan 2018 09:03:43 +0000 Received: by mail-wm0-f42.google.com with SMTP id 9so12619076wme.4 for ; Mon, 08 Jan 2018 01:03:36 -0800 (PST) In-Reply-To: <4b0965ae-6746-febb-3c17-072e6f7aefd7@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To: Andrew Cooper Cc: xen-devel , Rich Persaud , =?utf-8?Q?Marek_Marczykowski-G=C3=B3recki?= , George Dunlap List-Id: xen-devel@lists.xenproject.org --===============7496485230345879185== Content-Type: multipart/alternative; boundary="Apple-Mail=_22035434-01D8-4662-8F3D-1C43307ACAE7" --Apple-Mail=_22035434-01D8-4662-8F3D-1C43307ACAE7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 7 Jan 2018, at 17:11, Andrew Cooper = wrote: >=20 >=20 >>>> 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. >>>=20 >>> 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. >>=20 >> If we'd believe that handling those devices exposed to the outside = world >> is "safe", we wouldn't use driver domains at all... >=20 > Indeed, but they are in a better position than arbitrary VMs, because > users can't just log into them and start running code. (I really = hope...) I wanted to point out = https://lists.xenproject.org/archives/html/xen-devel/2018-01/msg00497.html= = which according to the cover letter is based on HVM and not PVH. I am = not really sure whether this would solve some of the problems around PCI = passthrough.=20 Regards Lars= --Apple-Mail=_22035434-01D8-4662-8F3D-1C43307ACAE7 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On 7 Jan 2018, at 17:11, Andrew Cooper <andrew.cooper3@citrix.com> wrote:


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...

Indeed, but they = are in a better position than arbitrary VMs, because
users can't just log into them and start running = code.  (I really hope...)


I wanted to point out https://lists.xenproject.org/archives/html/xen-devel/2018-01/ms= g00497.html which according to the cover letter is based on HVM = and not PVH. I am not really sure whether this would solve some of the = problems around PCI passthrough. 

Regards
Lars
= --Apple-Mail=_22035434-01D8-4662-8F3D-1C43307ACAE7-- --===============7496485230345879185== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============7496485230345879185==--