Intel Skylake/Kaby Lake processors: Broken Hyper-Threading?

richierich1212

Platinum Member
Jul 5, 2002
2,741
360
126
Just saw this warning posted across other Tech sites. It says the issue isn't just limited to Linux:

[WARNING] Intel Skylake/Kaby Lake processors: broken hyper-threading
https://lists.debian.org/debian-devel/2017/06/msg00308.html


"This warning advisory is relevant for users of systems with the Intel
processors code-named "Skylake" and "Kaby Lake". These are: the 6th and
7th generation Intel Core processors (desktop, embedded, mobile and
HEDT), their related server processors (such as Xeon v5 and Xeon v6), as
well as select Intel Pentium processor models.

TL;DR: unfixed Skylake and Kaby Lake processors could, in some
situations, dangerously misbehave when hyper-threading is enabled.
Disable hyper-threading immediately in BIOS/UEFI to work around the
problem. Read this advisory for instructions about an Intel-provided
fix.

SO, WHAT IS THIS ALL ABOUT?
---------------------------

This advisory is about a processor/microcode defect recently identified
on Intel Skylake and Intel Kaby Lake processors with hyper-threading
enabled. This defect can, when triggered, cause unpredictable system
behavior: it could cause spurious errors, such as application and system
misbehavior, data corruption, and data loss.


It was brought to the attention of the Debian project that this defect
is known to directly affect some Debian stable users (refer to the end
of this advisory for details), thus this advisory.

Please note that the defect can potentially affect any operating system
(it is not restricted to Debian, and it is not restricted to Linux-based
systems). It can be either avoided (by disabling hyper-threading), or
fixed (by updating the processor microcode).

Due to the difficult detection of potentially affected software, and the
unpredictable nature of the defect, all users of the affected Intel
processors are strongly urged to take action as recommended by this advisory."



So is this something that people with Skylake/Kabylake CPUs should really worry about? Seems like it isn't that huge of a deal if it took this long to discover.
 

Ajay

Lifer
Jan 8, 2001
15,332
7,792
136
There is already a microcode fix. Hopefully mobo vendors will get this out quickly before ppl panic.
 

JoeRambo

Golden Member
Jun 13, 2013
1,814
2,105
136
There is already a microcode fix. Hopefully mobo vendors will get this out quickly before ppl panic.

Is there a need to panic at all tho? The conditions described are pretty much "antipattern" of programming - mixing usage of low 8 bit part of register access with full register access ( that is for example AH + EAH or RAX ). Those carry hefty performance penalties and are avoided in compiler generated and hand written asm code. So that relegates this bug to once in a blue moon category.

And these days Intel/AMD microcode on Windows is distributed by Windows Update, there is very high chance we all have required microcode fix already.
 
  • Like
Reactions: Ken g6

JoeRambo

Golden Member
Jun 13, 2013
1,814
2,105
136
There has been similar and even more nasty errata in the past. Heck Intel even disabled TSX on Haswell stuff. This is as rare as hen teeth as it takes effort to generate such instructions, guys in original report "massaged" gcc to do so.

But yeah, "social" click-bait media is a factor, just ask Mrs Clinton.
 

ZGR

Platinum Member
Oct 26, 2012
2,052
656
136
This appears to be a patchable fix at least. So no big deal right? :D
 

3DVagabond

Lifer
Aug 10, 2009
11,951
204
106
It just shows you that Intel after over a decade of using HT still can have some issues,so people jumping on AMD having some issues in games scaling at launch with their SMT implementation were being a bit unfair!! :p
Well, this is an Intel thread. So I'll bite my tongue. Hopefully you aren't too surprised by the IDF (Intel defense force) though. :)
 

NTMBK

Lifer
Nov 14, 2011
10,208
4,940
136
It's taken this long since the release of Skylake for the bug to be discovered, so it's pretty obviously not a massive deal. Hopefully we'll get fixed microcode soon.
 
  • Like
Reactions: beginner99

Nothingness

Platinum Member
Jul 3, 2013
2,371
713
136
No, nobody with a technical background needs to panic, but how long before this shows up on Semiaccurate and then a million clickbait sites?
I have a technical background, and I consider this kind of bug as a big deal. I know Intel does a very good job at validation so this likely shows they went quite far in optimizing some cases and they failed at validating it. Chips have become incredibly complex and that is an issue in general :)
 
  • Like
Reactions: Space Tyrant

Torn Mind

Lifer
Nov 25, 2012
11,567
2,626
136
More like Debian is once again 5 years behind the times and is not a worthy desktop OS for brand new hardware.
 

WhoBeDaPlaya

Diamond Member
Sep 15, 2000
7,414
401
126
Quoting from a comment on /. (no idea as to the veracity - don't have time to check up on it @ work)
>>>
Apparently, the fix works only for some models of Skylake (models 78 and 94, stepping 3).
On any other Skylakes and all Kaby Lakes there's no way other than disabling hyperthreading entirely.
A fix might or might not be released in the future, Intel doesn't say a word about the issue.
<<<
 

R0H1T

Platinum Member
Jan 12, 2013
2,582
162
106
Quoting from a comment on /. (no idea as to the veracity - don't have time to check up on it @ work)
>>>
Apparently, the fix works only for some models of Skylake (models 78 and 94, stepping 3).
On any other Skylakes and all Kaby Lakes there's no way other than disabling hyperthreading entirely.
A fix might or might not be released in the future, Intel doesn't say a word about the issue.
<<<
Who's to say that this bug wasn't baked in at the behest of you know who :eek: