xen-devel
[Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device dri
To: |
Andi Kleen <ak@xxxxxxx> |
Subject: |
[Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver. |
From: |
Stephen Hemminger <shemminger@xxxxxxxx> |
Date: |
Thu, 11 May 2006 09:18:38 -0700 |
Cc: |
xen-devel@xxxxxxxxxxxxxxxxxxx, tytso@xxxxxxx, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, virtualization@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, rdreier@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, chrisw@xxxxxxxxxxxx, ian.pratt@xxxxxxxxxxxxx |
Delivery-date: |
Thu, 11 May 2006 09:22:27 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxx |
In-reply-to: |
<200605111147.53011.ak@xxxxxxx> |
List-help: |
<mailto:xen-devel-request@lists.xensource.com?subject=help> |
List-id: |
Xen developer discussion <xen-devel.lists.xensource.com> |
List-post: |
<mailto:xen-devel@lists.xensource.com> |
List-subscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe> |
List-unsubscribe: |
<http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe> |
Organization: |
OSDL |
References: |
<E1Fdz7v-0007zc-00@xxxxxxxxxxxxxxxxxxxxxxxx> <fb99d7085b85310ef7d423a8f135db32@xxxxxxxxxxxx> <200605111147.53011.ak@xxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
On Thu, 11 May 2006 11:47:52 +0200
Andi Kleen <ak@xxxxxxx> wrote:
> On Thursday 11 May 2006 09:49, Keir Fraser wrote:
> > On 11 May 2006, at 01:33, Herbert Xu wrote:
> > >> But if sampling virtual events for randomness is really unsafe (is it
> > >> really?) then native guests in Xen would also get bad random numbers
> > >> and this would need to be somehow addressed.
> > >
> > > Good point. I wonder what VMWare does in this situation.
> >
> > Well, there's not much they can do except maybe jitter interrupt
> > delivery. I doubt they do that though.
> >
> > The original complaint in our case was that we take entropy from
> > interrupts caused by other local VMs, as well as external sources.
> > There was a feeling that the former was more predictable and could form
> > the basis of an attack. I have to say I'm unconvinced: I don't really
> > see that it's significantly easier to inject precisely-timed interrupts
> > into a local VM. Certainly not to better than +/- a few microseconds.
> > As long as you add cycle-counter info to the entropy pool, the least
> > significant bits of that will always be noise.
>
> I think I agree - e.g. i would expect the virtual interrupts to have
> enough jitter too. Maybe it would be good if someone could
> run a few statistics on the resulting numbers?
>
> Ok the randomness added doesn't consist only of the least significant
> bits. Currently it adds jiffies+full 32bit cycle count. I guess if it was
> a real problem the code could be changed to leave out the jiffies and
> only add maybe a 8 bit word from the low bits. But that would only
> help for the para case because the algorithm for native guests
> cannot be changed.
>
> > 2. An entropy front/back is tricky -- how do we decide how much
> > entropy to pull from domain0? How much should domain0 be prepared to
> > give other domains? How easy is it to DoS domain0 by draining its
> > entropy pool? Yuk.
>
> I claim (without having read any code) that in theory you need to have solved
> that problem already in the vTPM @)
>
The base question under all this is "how good does an entropy source have
to be?" and then "what guarantees do we make about the entropy inputs used
by /dev/random?". If we can resolve those, then the virtual environment
answer should fall out.
This is a area where the security tin-foil hat types take over, and it
gets real hard to make "good enough" argument. People have built an expectation
that /dev/random has really strong entropy, good enough to generate long term
keys etc.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., (continued)
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Stephen Hemminger
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Chris Wright
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Keir Fraser
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Roland Dreier
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Andi Kleen
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Herbert Xu
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Keir Fraser
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Herbert Xu
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Andi Kleen
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver.,
Stephen Hemminger <=
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Rick Jones
- [Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Andi Kleen
Re: [Xen-devel] [RFC PATCH 34/35] Add the Xen virtual network device driver., Herbert Xu
[Xen-devel] Re: [RFC PATCH 34/35] Add the Xen virtual network device driver., Christoph Hellwig
[Xen-devel] [RFC PATCH 33/35] Add the Xenbus sysfs and virtual device hotplug driver., Chris Wright
|
|
|