Andrew Cooper f028a7db98 x86/CPU/AMD: Disable XSAVES on AMD family 0x17
commit b0563468eeac88ebc70559d52a0b66efc37e4e9d upstream.

AMD Erratum 1386 is summarised as:

  XSAVES Instruction May Fail to Save XMM Registers to the Provided
  State Save Area

This piece of accidental chronomancy causes the %xmm registers to
occasionally reset back to an older value.

Ignore the XSAVES feature on all AMD Zen1/2 hardware.  The XSAVEC
instruction (which works fine) is equivalent on affected parts.

  [ bp: Typos, move it into the F17h-specific function. ]

Reported-by: Tavis Ormandy <taviso@gmail.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Cc: <stable@kernel.org>
Link: https://lore.kernel.org/r/20230307174643.1240184-1-andrew.cooper3@citrix.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-03-17 08:31:41 +01:00
..
2020-06-22 09:05:25 +02:00
2023-02-06 07:49:45 +01:00
2022-07-21 21:09:31 +02:00
2017-12-12 11:32:24 +01:00
2022-04-15 14:14:58 +02:00
2018-08-24 13:10:38 -07:00
2020-06-22 09:05:01 +02:00
2019-05-14 19:17:53 +02:00
2019-05-14 19:17:53 +02:00
2017-09-25 20:51:58 +02:00