From: Lars Kurth Subject: Re: Xen Project Spectre/Meltdown FAQ Date: Fri, 5 Jan 2018 17:34:29 +0000 Message-ID: References: <903ef3c9-f5c6-a7e8-f9c0-3961d627413a@knorrie.org> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: multipart/mixed; boundary="===============1903392864266931844==" Return-path: Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXVt4-0002G9-EX for xen-devel@lists.xenproject.org; Fri, 05 Jan 2018 17:34:34 +0000 In-Reply-To: <903ef3c9-f5c6-a7e8-f9c0-3961d627413a@knorrie.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" To: Hans van Kranenburg Cc: xen-devel , George Dunlap , xen-users@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org --===============1903392864266931844== Content-Type: multipart/alternative; boundary="Apple-Mail=_616619D5-E831-4A6B-BAED-A169E234DF1D" --Apple-Mail=_616619D5-E831-4A6B-BAED-A169E234DF1D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On 5 Jan 2018, at 15:55, Hans van Kranenburg wrote: >=20 > On 01/05/2018 12:35 PM, Lars Kurth wrote: >> Hi all, this is a repost of >> = https://blog.xenproject.org/2018/01/04/xen-project-spectremeltdown-faq/ = >> for xen-users/xen-devel. If you have questions, please reply to this >> thread and we will try and improve the FAQ based on questions.=20 >> Regards Lars >=20 > Thanks for the writeup. >=20 > The main reason for the reader to get confused is the amount of > different combinations of situations that are possible, which all = again > have their own set of vulnerabilities and also their own (maybe even > different) set of possibilities to be used as environment for = executing > an attack. >=20 > So let's help them by being more explicit. That sounds reasonable >> On Intel processors, only 64-bit PV mode guests can attack Xen. >=20 > "On Intel processors an attack at Xen using SP3 can only be done by > 64-bit PV mode guests." >=20 > Even if it looks super-redundant, I think keeping explicit information > in every sentence is preferable, so they cannot be misinterpreted or > accidentally be taken out of context. Alright: I think I prefer "On Intel processors, only 64-bit PV mode = guests can attack Xen using SP3." >=20 >> Guests running in 32-bit PV mode, HVM mode, and PVH >> mode cannot attack the hypervisor using SP3. However, in 32-bit PV >> mode, HVM mode, and PVH mode, guest userspaces can attack guest >> kernels using SP3; so updating guest kernels is advisable. >=20 >> Interestingly, guest kernels running in 64-bit PV mode are not >> vulnerable to attack using SP3, because 64-bit PV guests already run >> in a KPTI-like mode. >=20 > Like Juergen already mentioned, additionally: "However, keep in mind > that a succesful attack on the hypervisor can still be used to recover > information about the same guest from physical memory." Good suggestion. >>=20 >> =3D Does Xen have any equivalent to Linux=E2=80=99s KPTI series? =3D >>=20 >> Linux=E2=80=99s KPTI series is designed to address SP3 only. >=20 > This one... >=20 >> For Xen guests, only 64-bit PV guests are affected by SP3. >=20 > ...should be more explicit. The words "affected" and "impacted" do not > tell the reader if it's about being an attacker, or about being the > victim and what is attacked or attacking. >=20 > "For Xen guests, only 64-bit PV guests are able to execute a SP3 = attack > against the hypervisor." Sounds fine I will update the blog post sometimes tomorrow or Monday. There were a = few further comments, which may be worth rolling into a change Lars --Apple-Mail=_616619D5-E831-4A6B-BAED-A169E234DF1D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On 5 Jan 2018, at 15:55, Hans van Kranenburg <hans@knorrie.org> = wrote:

On 01/05/2018 12:35 = PM, Lars Kurth wrote:
Hi all, this is a repost = of
https://blog.xenproject.org/2018/01/04/xen-project-spectremeltd= own-faq/
for xen-users/xen-devel. If you have = questions, please reply to this
thread and we will try and = improve the FAQ based on questions. 
Regards = Lars

Thanks for the = writeup.

The main reason for = the reader to get confused is the amount of
different combinations of situations that are = possible, which all again
have their own set = of vulnerabilities and also their own (maybe even
different) set of possibilities to be used as = environment for executing
an = attack.

So let's help them = by being more explicit.

That sounds reasonable

On Intel processors, only = 64-bit PV mode guests can attack Xen.

"On Intel processors an attack at Xen using SP3 = can only be done by
64-bit PV mode = guests."

Even if it looks = super-redundant, I think keeping explicit information
in every sentence is preferable, so they cannot = be misinterpreted or
accidentally be = taken out of context.

Alright: I think = I prefer "On Intel processors, only 64-bit PV mode guests can attack Xen = using SP3."


Guests running in 32-bit PV = mode, HVM mode, and PVH
mode cannot attack the hypervisor = using SP3. However, in 32-bit PV
mode, HVM mode, and PVH = mode, guest userspaces can attack guest
kernels using SP3; = so updating guest kernels is advisable.

Interestingly, guest kernels = running in 64-bit PV mode are not
vulnerable to attack = using SP3, because 64-bit PV guests already run
in a = KPTI-like mode.

Like Juergen = already mentioned, additionally: "However, keep in mind
that a succesful attack on the hypervisor can = still be used to recover
information about = the same guest from physical memory."

Good = suggestion.


=3D Does Xen = have any equivalent to Linux=E2=80=99s KPTI series? =3D

Linux=E2=80=99s KPTI series is designed to address SP3 = only.

This = one...

For Xen guests, only 64-bit = PV guests are affected by SP3.

...should be more explicit. The words "affected" = and "impacted" do not
tell the reader if = it's about being an attacker, or about being the
victim and what is attacked or = attacking.

"For Xen guests, = only 64-bit PV guests are able to execute a SP3 attack
against the hypervisor."

Sounds = fine

I will update the blog post = sometimes tomorrow or Monday. There were a few further comments, which = may be worth rolling into a change

Lars

= --Apple-Mail=_616619D5-E831-4A6B-BAED-A169E234DF1D-- --===============1903392864266931844== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cHM6Ly9saXN0 cy54ZW5wcm9qZWN0Lm9yZy9tYWlsbWFuL2xpc3RpbmZvL3hlbi1kZXZlbA== --===============1903392864266931844==--