lkml.org 
[lkml]   [2015]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [all better] Re: regression: massive trouble with fpu rework
On 06/29/2015 10:16 PM, Ingo Molnar wrote:
>
> * Borislav Petkov <bp@alien8.de> wrote:
>
>> On Mon, Jun 29, 2015 at 02:27:23PM +0200, Mike Galbraith wrote:
>>> With it commented out, and fpu__init_system() either back at previously
>>> booting position [5] or at original [0], doesn't matter, box is dead,
>>> but differently. It stalls after setting clocksource to tsc, and just
>>> sits there.
>>
>> ... which means that unmasking the CPUID features is absolutely needed
>> on Linux. Not unmasking probably triggers this original bug which
>>
>> 066941bd4eeb ("x86: unmask CPUID levels on Intel CPUs")
>>
>> fixed.
>
> Yes.
>
> And I'd consider us hanging a separate (but not high prio) bug: the kernel should
> be robust as long as the CPUID data is stable. In that sense the original fix is
> right (we really want to unmask all available CPUID leaves), but it also masked
> another (less severe) kernel bug.
>
> For example virtualization is known to tweak CPUID details creatively, and
> firmware (as this example shows it) can mess it up a well, so we generally want to
> treat it as untrusted input data that needs to be validated.
>

Well, that is not *entirely* possible, since if the data is just plain
wrong, we're screwed no matter what.

However, we could deal with CPUID level capping. The best way to do
that is probably to have a table of CPU features and the minimum
required CPUID level for each. If maximum CPUID level < that level,
disable that feature.

-hpa




\
 
 \ /
  Last update: 2015-06-30 22:41    [W:0.064 / U:1.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site