From: Ian Campbell <Ian.Campbell@citrix.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: "keir@xen.org" <keir@xen.org>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Tim Deegan <tim@xen.org>,
"Xen-devel@lists.xen.org" <Xen-devel@lists.xen.org>,
"Paul.Durrant@citrix.com" <Paul.Durrant@citrix.com>,
"Yu, Zhang" <yu.c.zhang@linux.intel.com>,
"JBeulich@suse.com" <JBeulich@suse.com>
Subject: Re: One question about the hypercall to translate gfn to mfn.
Date: Tue, 6 Jan 2015 10:35:10 +0000 [thread overview]
Message-ID: <1420540510.28863.112.camel@citrix.com> (raw)
In-Reply-To: <AADFC41AFE54684AB9EE6CBC0274A5D12612BD3E@SHSMSX101.ccr.corp.intel.com>
On Tue, 2015-01-06 at 08:42 +0000, Tian, Kevin wrote:
> > From: George Dunlap
> > Sent: Monday, January 05, 2015 11:50 PM
> >
> > On Fri, Dec 12, 2014 at 6:29 AM, Tian, Kevin <kevin.tian@intel.com> wrote:
> > >> We're not there in the current design, purely because XenGT has to be
> > >> in dom0 (so it can trivially DoS Xen by rebooting the host).
> > >
> > > Can we really decouple dom0 from DoS Xen? I know there's on-going effort
> > > like PVH Dom0, however there are lots of trickiness in Dom0 which can
> > > put the platform into a bad state. One example is ACPI. All the platform
> > > details are encapsulated in AML language, and only dom0 knows how to
> > > handle ACPI events. Unless Xen has another parser to guard all possible
> > > resources which might be touched thru ACPI, a tampered dom0 has many
> > > way to break out. But that'd be very challenging and complex.
> > >
> > > If we can't containerize Dom0's behavior completely, I would think dom0
> > > and Xen actually in the same trust zone, so putting XenGT in Dom0 shouldn't
> > > make things worse.
> >
> > The question here is, "If a malicious guest can manage to break into
> > XenGT, what can they do?"
> >
> > If XenGT is running in dom0, then the answer is, "At very least, they
> > can DoS the host because dom0 is allowed to reboot; they can probably
> > do lots of other nasty things as well."
> >
> > If XenGT is running in its own domain, and can only add IOMMU entries
> > for MFNs belonging to XenGT-only VMs, then the answer is, "They can
> > access other XenGT-enabled VMs, but they cannot shut down the host or
> > access non-XenGT VMs."
> >
> > Slides 8-11 of a presentation I gave
> > (http://www.slideshare.net/xen_com_mgr/a-brief-tutorial-on-xens-advanced-s
> > ecurity-features)
> > can give you a graphical idea of what we're' talking about.
> >
>
> I agree we need to make XenGT more isolated following on-going trend from
> previous discussion, but regarding to whether Dom0/Xen are in the same security
> domain, I don't see my statement is changed w/ above attempts which just try to
> move privileged Xen stuff away from dom0, but all existing Linux vulnerabilities
> allow a tampered Dom0 do many evil things with root permission or even tampered
> kernel to DoS Xen (e.g. w/ ACPI). PVH dom0 can help performance... but itself alone
> doesn't change the fact that Dom0/Xen are actually in the same security domain. :-)
Which is a good reason why one would want to remove as much potentially
vulnerable code from dom0 as possible, and then deny it the
corresponding permissions via XSM too.
I also find the argument "dom0 can do some bad things so we should let
it be able to do all bad things" rather specious.
Ian.
next prev parent reply other threads:[~2015-01-06 10:35 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-09 10:10 One question about the hypercall to translate gfn to mfn Yu, Zhang
2014-12-09 10:19 ` Paul Durrant
2014-12-09 10:37 ` Yu, Zhang
2014-12-09 10:50 ` Jan Beulich
2014-12-10 1:07 ` Tian, Kevin
2014-12-10 8:39 ` Jan Beulich
2014-12-10 8:47 ` Tian, Kevin
2014-12-10 9:16 ` Jan Beulich
2014-12-10 9:51 ` Tian, Kevin
2014-12-10 10:07 ` Jan Beulich
2014-12-10 11:04 ` Malcolm Crossley
2014-12-10 8:50 ` Tian, Kevin
2014-12-09 10:51 ` Malcolm Crossley
2014-12-10 1:22 ` Tian, Kevin
2014-12-09 10:38 ` Jan Beulich
2014-12-09 10:46 ` Tim Deegan
2014-12-09 11:05 ` Paul Durrant
2014-12-09 11:11 ` Ian Campbell
2014-12-09 11:17 ` Paul Durrant
2014-12-09 11:23 ` Jan Beulich
2014-12-09 11:28 ` Malcolm Crossley
2014-12-09 11:29 ` Ian Campbell
2014-12-09 11:43 ` Paul Durrant
2014-12-10 1:48 ` Tian, Kevin
2014-12-10 10:11 ` Ian Campbell
2014-12-11 1:50 ` Tian, Kevin
2014-12-10 1:14 ` Tian, Kevin
2014-12-10 10:36 ` Jan Beulich
2014-12-11 1:45 ` Tian, Kevin
2014-12-10 10:55 ` Tim Deegan
2014-12-11 1:41 ` Tian, Kevin
2014-12-11 16:46 ` Tim Deegan
2014-12-12 7:24 ` Tian, Kevin
2014-12-12 10:54 ` Jan Beulich
2014-12-15 6:25 ` Tian, Kevin
2014-12-15 8:44 ` Jan Beulich
2014-12-15 9:05 ` Tian, Kevin
2014-12-15 9:22 ` Jan Beulich
2014-12-15 11:16 ` Tian, Kevin
2014-12-15 11:27 ` Jan Beulich
2014-12-15 15:22 ` Stefano Stabellini
2014-12-15 16:01 ` Jan Beulich
2014-12-15 16:15 ` Stefano Stabellini
2014-12-15 16:28 ` David Vrabel
2014-12-15 16:28 ` Jan Beulich
2014-12-18 15:46 ` Tim Deegan
2015-01-06 8:56 ` Tian, Kevin
2015-01-08 12:43 ` Tim Deegan
2015-01-09 8:02 ` Tian, Kevin
2015-01-09 20:08 ` Konrad Rzeszutek Wilk
2015-01-12 11:14 ` David Vrabel
2014-12-11 21:29 ` Tim Deegan
2014-12-12 6:29 ` Tian, Kevin
2014-12-18 16:08 ` Tim Deegan
2014-12-18 17:01 ` Andrew Cooper
2015-01-05 15:49 ` George Dunlap
2015-01-06 8:42 ` Tian, Kevin
2015-01-06 10:35 ` Ian Campbell [this message]
2014-12-12 7:30 ` Tian, Kevin
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=1420540510.28863.112.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=Paul.Durrant@citrix.com \
--cc=Xen-devel@lists.xen.org \
--cc=keir@xen.org \
--cc=kevin.tian@intel.com \
--cc=tim@xen.org \
--cc=yu.c.zhang@linux.intel.com \
/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.