public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
@ 2006-05-05 16:36 H. Peter Anvin
  2006-05-05 18:11 ` Andi Kleen
  0 siblings, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2006-05-05 16:36 UTC (permalink / raw)
  To: Linux Kernel Mailing List

The recent fix for the AMD FXSAVE information leak had a problematic side effect.  It 
introduced an entry in the x86 features vector which is a bug, not a feature.

The problem with this is that the features vector is designed so that it can be ANDed 
between CPUs to find out the common feature set.  However, bugs aren't features, and bugs 
should be ORd, not ANDed.  In that sense, the *absence* of a bug is a feature.

There are two possible ways of dealing with this:

a) put bugs in the features vector, but sense-inversed, i.e. 1 = bug absent; 0 = bug present.

b) add a separate bugs vector.

When I originally wrote the code I always meant to do (b), but never got around to it. 
It's clear, though, that whatever way we go about this, it should also incorporate the 
fdiv, hlt, f00f, and coma bugs.

	-hpa

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

end of thread, other threads:[~2006-05-09 14:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <69bvw-2zO-5@gated-at.bofh.it>
     [not found] ` <69d4M-4Yx-19@gated-at.bofh.it>
     [not found]   ` <69mqY-1Ci-9@gated-at.bofh.it>
2006-05-06 17:37     ` Bugs aren't features: X86_FEATURE_FXSAVE_LEAK Robert Hancock
2006-05-08 17:47       ` H. Peter Anvin
2006-05-05 16:36 H. Peter Anvin
2006-05-05 18:11 ` Andi Kleen
2006-05-05 18:18   ` H. Peter Anvin
2006-05-05 18:27     ` Andi Kleen
2006-05-06  4:16   ` Christer Weinigel
2006-05-09 14:38   ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox