From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "dan.magenheimer@oracle.com" <dan.magenheimer@oracle.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>
Subject: Re: Is exposing shared_info to user-land secure?
Date: Fri, 01 Aug 2008 13:31:23 -0700 [thread overview]
Message-ID: <4893729B.7060905@goop.org> (raw)
In-Reply-To: <20080801101339906.00000008444@djm-pc>
Dan Magenheimer wrote:
> Is it "safe" in a paravirtualized guest to expose shared_info
> (at least read-only) to user-land? That is, is there data
> in shared_info that could be used by a malicious program to
> compromise a guest OS (ignoring very complex side-channel
> attacks anyway)?
>
> We have apps that constantly do various time syscalls (e.g.
> to gettimeofday()) and I'm thinking if vcpu_info(cpu)->time_info
> was directly readable by an enterprise app, it could do
> the time calculations itself and save the syscall overhead.
>
You can use the HYPERVISOR_vcpu_op(VCPUOP_register_vcpu_info, )
hypercall to move the vcpu structure out of the shared info structure;
that could be placed somewhere mappable. Though currently I use it to
put it into the percpu data area for quick kernel access; it definitely
wouldn't be mappable by userspace there (well, not without padding it
out to its own page, at least).
J
prev parent reply other threads:[~2008-08-01 20:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 16:13 Is exposing shared_info to user-land secure? Dan Magenheimer
2008-08-01 17:24 ` Keir Fraser
2008-08-01 20:35 ` Jeremy Fitzhardinge
2008-08-01 20:31 ` Jeremy Fitzhardinge [this message]
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=4893729B.7060905@goop.org \
--to=jeremy@goop.org \
--cc=dan.magenheimer@oracle.com \
--cc=xen-devel@lists.xensource.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.