All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>
Subject: Ping#2: Re: [PATCH 2/2] x86: don't allow clearing of TF_kernel_mode for other than 64-bit PV
Date: Mon, 04 Dec 2017 03:15:06 -0700	[thread overview]
Message-ID: <5A252E3A020000780019440C@prv-mh.provo.novell.com> (raw)
In-Reply-To: <3b460974-c07c-441b-c4ce-9d0b8385dd8c@citrix.com>

>>> On 03.07.17 at 16:56,  wrote:
>>>> On 31.05.17 at 13:54,  wrote:
> >>>> On 31.05.17 at 13:08, <andrew.cooper3@citrix.com> wrote:
> > > On 31/05/17 08:15, Jan Beulich wrote:
> > >> The flag is really only meant for those, both HVM and 32-bit PV tell
> > >> kernel from user mode based on CPL/RPL. Remove the all-question-marks
> > >> comment and let's be on the safe side here and also suppress clearing
> > >> for 32-bit PV (this isn't a fast path after all).
> > >>
> > >> Signed-off-by: Jan Beulich <jbeulich@suse.com>
> > > 
> > > Wouldn't it just be safer to disallow starting a 64bit PV guest in user
> > > mode?
> > > 
> > > No real kernel would do such a thing, and keeping the corner case around
> > > is bad from an attack-surface point of view.
> > 
> > If it really was "starting a guest", I would probably agree. But we're
> > talking about starting a vCPU, and I could see uses for this (not the
> > least in XTF). After all the operation allows for enough state to be
> > set up such that further initialization inside the guest may not be
> > necessary.
> 
> Any opinion here, or change of opinion on the original patch?

I'd really like to get this off my list.

Jan


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

  parent reply	other threads:[~2017-12-04 10:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-31  7:04 [PATCH 0/2] x86: XSA_214 follow-up Jan Beulich
2017-05-31  7:14 ` [PATCH 1/2] x86: limit page type width Jan Beulich
2017-05-31 10:01   ` Andrew Cooper
2017-05-31 10:09     ` Jan Beulich
2017-06-06  8:26   ` Jan Beulich
2017-05-31  7:15 ` [PATCH 2/2] x86: don't allow clearing of TF_kernel_mode for other than 64-bit PV Jan Beulich
2017-05-31 11:08   ` Andrew Cooper
2017-05-31 11:54     ` Jan Beulich
2017-07-03 14:56     ` Ping: " Jan Beulich
2017-12-04 10:15     ` Jan Beulich [this message]
2017-12-04 15:11       ` Ping#2: " Andrew Cooper
2017-12-04 17:05         ` Jan Beulich

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=5A252E3A020000780019440C@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.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.