local-blacklist-for-Intel-TSX
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 17 Sep 2016 18:00:44 +0000 (18:00 +0000)
committerAurelien Jarno <aurel32@debian.org>
Sat, 17 Sep 2016 18:00:44 +0000 (18:00 +0000)
commitfb4e84688d34929fbfdbd47ba2591fde67b82a5b
tree0e4a421bfe857a4d72f5f336a5f20e78d230bc25
parentc85741dd05ffc3ce40c5dbf25bc14597759329c6
local-blacklist-for-Intel-TSX

Intel TSX is broken on Haswell based processors (erratum HSD136/HSW136)
and a microcode update is available to simply disable the corresponding
instructions.

A live microcode update will disable the TSX instructions causing
already started binaries to segfault. This patch simply disable Intel
TSX (HLE and RTM) on processors which might receive a microcode update,
so that it doesn't happen.  We might expect newer steppings to fix the
issue (e.g. as Haswell-EX did).

Intel TSX-NI is also broken on Broadwell systems, and documented as
being unavailable in their specification updates errata list.  However,
some end-user systems were shipped with old microcode that left Intel
TSX-NI still enabled in CPUID on these processors.  We must not allow
RTM to be used by glibc on these systems, due to runtime system
misbehavior and live-update of microcode hazards.

Author: Henrique de Moraes Holschuh <hmh@debian.org>

Gbp-Pq: Topic amd64
Gbp-Pq: Name local-blacklist-for-Intel-TSX.diff
sysdeps/x86/cpu-features.c
sysdeps/x86/cpu-features.h