All of lore.kernel.org
 help / color / mirror / Atom feed
* HT Vulnerability CAN-2005-0109
@ 2005-05-18 14:43 Nils Toedtmann
  2005-05-18 14:48 ` Mark Williamson
  0 siblings, 1 reply; 15+ messages in thread
From: Nils Toedtmann @ 2005-05-18 14:43 UTC (permalink / raw)
  To: xen-devel

Sorry if this is a dupe. I quickly checked the lists and the bitkeeper
changesets but found no reference. If i missed it, ignore this mail.


Just stumbled on /. upon CAN-2005-0109 and wonder if xen is affected:

  <http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-0109>
  <http://www.daemonology.net/hyperthreading-considered-harmful/>

I have _no_clue_ about OS internals, processors or programming, but as i
understood the abstract this is a bug on some intel pentium/xeon cpus in
their hyperthreading implementation (i read it "ht threads share cpu
cache in a way that information leaks from one thread to another"). The
author states that the OS kernel (here: the xen kernel) could workaround
that bug.

Is it possible that two domain kernels running on the same physical core
but on different ht threads leak information to each other exploiting
this covert/side channels?

I apologize in advance if all this does not make sense ...

/nils.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: HT Vulnerability CAN-2005-0109
@ 2005-05-18 15:27 Jonathan S. Shapiro
  2005-05-18 16:44 ` Mark Williamson
  0 siblings, 1 reply; 15+ messages in thread
From: Jonathan S. Shapiro @ 2005-05-18 15:27 UTC (permalink / raw)
  To: xen-devel

> Is it possible that two domain kernels running on the same physical core
but on different ht threads leak information to each other exploiting
this covert/side channels?

It is possible. When exploited, this is a fairly high bandwiidth channel. It is possible for the nucleus to prevent this through page coloring. 

All that being said, future processors are moving from HT to multicore. The problem then migrates to the L2 cache, where coloring is much less effective. It is unlikely that there exists any satisfsactory solution short of flushing or disabling the cache, neither of which is pragmatically viable.

Current high assurance requirements don't require that you solve  the channel problem. They require that you characterize them and make a reasonable efffort to minimize them.

Shap

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: HT Vulnerability CAN-2005-0109
@ 2005-05-19 10:59 Ian Pratt
  2005-05-19 12:55 ` Nils Toedtmann
  0 siblings, 1 reply; 15+ messages in thread
From: Ian Pratt @ 2005-05-19 10:59 UTC (permalink / raw)
  To: Nils Toedtmann, Mark Williamson; +Cc: david.hopwood, xen-devel

 
> At the moment, they release quick workarounds like hardening 
> crypto libs against timing attacks
> 
>   <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=157631>

This is the correct soloution. I was rather shocked to find the crypto
libs weren't already hardened for such attacks. It's not as though this
is anything new, just a higher bandwidth version of something that has
been known about for years.

> or disabling HT

This is not necessary on Xen. Just allocate domains to CPUs such that
you don't put potentially non-cooperative domains on the same core. E.g.
if you're using dom0 just for running the control tool and device
drivers, just give it one hyperthread and don't allow any other domain
to use it. This is a pretty sensible way to use HT with Xen anyhow.

Ian

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-06-03 13:38 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-18 14:43 HT Vulnerability CAN-2005-0109 Nils Toedtmann
2005-05-18 14:48 ` Mark Williamson
2005-05-18 23:09   ` David Hopwood
2005-05-19  2:46     ` Mark Williamson
2005-05-19 10:33       ` Nils Toedtmann
2005-05-19 17:45       ` David Hopwood
2005-06-01 14:01         ` Mark Williamson
2005-06-02 16:41           ` David Hopwood
2005-06-03 13:38             ` Mark Williamson
  -- strict thread matches above, loose matches on Subject: below --
2005-05-18 15:27 Jonathan S. Shapiro
2005-05-18 16:44 ` Mark Williamson
2005-05-18 16:53   ` Jonathan S. Shapiro
2005-05-18 17:14     ` Mark Williamson
2005-05-19 10:59 Ian Pratt
2005-05-19 12:55 ` Nils Toedtmann

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.