* Re: Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
[not found] ` <69mqY-1Ci-9@gated-at.bofh.it>
@ 2006-05-06 17:37 ` Robert Hancock
2006-05-08 17:47 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Robert Hancock @ 2006-05-06 17:37 UTC (permalink / raw)
To: linux-kernel
Christer Weinigel wrote:
> Andi Kleen <ak@suse.de> writes:
>
>> "H. Peter Anvin" <hpa@zytor.com> writes:
>>
>>> 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.
>> It's a non issue because it affects all AMD CPUs (except K5/K6).
>> You'll never find a system where only some CPUs have this problem.
>
> I have a dual CPU system (Tyan Tomcat 1564D) where only one CPU is
> reported to have the F00F bug (iirc). So yes, there can be
> SMP-systems where the CPU's have different bugs.
Point being, not this bug..
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
^ permalink raw reply [flat|nested] 8+ messages in thread
* 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
* Re: Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
2006-05-05 16:36 H. Peter Anvin
@ 2006-05-05 18:11 ` Andi Kleen
2006-05-05 18:18 ` H. Peter Anvin
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Andi Kleen @ 2006-05-05 18:11 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
"H. Peter Anvin" <hpa@zytor.com> writes:
> 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.
It's a non issue because it affects all AMD CPUs (except K5/K6).
You'll never find a system where only some CPUs have this problem.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
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
2 siblings, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2006-05-05 18:18 UTC (permalink / raw)
To: Andi Kleen; +Cc: linux-kernel
Andi Kleen wrote:
> "H. Peter Anvin" <hpa@zytor.com> writes:
>
>> 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.
>
> It's a non issue because it affects all AMD CPUs (except K5/K6).
> You'll never find a system where only some CPUs have this problem.
>
It's still wrong architecturally, and we should have a sane way to deal with this as well
as other bugs. This isn't the only bug -- we're getting a decent-size collection of them
already -- and not all of them is going to have that particular property.
-hpa
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
2006-05-05 18:18 ` H. Peter Anvin
@ 2006-05-05 18:27 ` Andi Kleen
0 siblings, 0 replies; 8+ messages in thread
From: Andi Kleen @ 2006-05-05 18:27 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: linux-kernel
On Friday 05 May 2006 20:18, H. Peter Anvin wrote:
> Andi Kleen wrote:
> > "H. Peter Anvin" <hpa@zytor.com> writes:
> >
> >> 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.
> >
> > It's a non issue because it affects all AMD CPUs (except K5/K6).
> > You'll never find a system where only some CPUs have this problem.
> >
>
> It's still wrong architecturally, and we should have a sane way to deal with this as well
> as other bugs. This isn't the only bug -- we're getting a decent-size collection of them
> already -- and not all of them is going to have that particular property.
I'm not very worried because mixing steppings is generally unsupported anyways
and in Linux also doesn't work well with it.
(e.g. my old rig with one CPU FXSAVE capable, one CPU not never worked without
kernel hacks)
It's probably not worth the effort anyways. The people who build such strange
systems can tweak their kernels for it too.
-Andi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
2006-05-05 18:11 ` Andi Kleen
2006-05-05 18:18 ` H. Peter Anvin
@ 2006-05-06 4:16 ` Christer Weinigel
2006-05-09 14:38 ` Bill Davidsen
2 siblings, 0 replies; 8+ messages in thread
From: Christer Weinigel @ 2006-05-06 4:16 UTC (permalink / raw)
To: Andi Kleen; +Cc: H. Peter Anvin, linux-kernel
Andi Kleen <ak@suse.de> writes:
> "H. Peter Anvin" <hpa@zytor.com> writes:
>
> > 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.
>
> It's a non issue because it affects all AMD CPUs (except K5/K6).
> You'll never find a system where only some CPUs have this problem.
I have a dual CPU system (Tyan Tomcat 1564D) where only one CPU is
reported to have the F00F bug (iirc). So yes, there can be
SMP-systems where the CPU's have different bugs.
/Christer
--
"Just how much can I get away with and still go to heaven?"
Freelance consultant specializing in device driver programming for Linux
Christer Weinigel <christer@weinigel.se> http://www.weinigel.se
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Bugs aren't features: X86_FEATURE_FXSAVE_LEAK
2006-05-05 18:11 ` Andi Kleen
2006-05-05 18:18 ` H. Peter Anvin
2006-05-06 4:16 ` Christer Weinigel
@ 2006-05-09 14:38 ` Bill Davidsen
2 siblings, 0 replies; 8+ messages in thread
From: Bill Davidsen @ 2006-05-09 14:38 UTC (permalink / raw)
To: Linux Kernel Mailing List
Andi Kleen wrote:
> "H. Peter Anvin" <hpa@zytor.com> writes:
>
>> 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.
>
> It's a non issue because it affects all AMD CPUs (except K5/K6).
> You'll never find a system where only some CPUs have this problem.
>
The initial argument is dead on, bugs should be either presented as a
"fixed" feature, or there could (should?) be a bugs vector which could
be or'd. It's at least possible that AMD might fix this some time.
--
-bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
last possible moment - but no longer" -me
^ 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