android_kernel_asus_sm8350/arch
Andrew Cooper e40c1e9da1 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:32:47 +01:00
..
alpha alpha: fix FEN fault handling 2023-03-11 16:44:04 +01:00
arc arc: iounmap() arg is volatile 2022-11-03 23:56:54 +09:00
arm ARM: dts: spear320-hmi: correct STMPE GPIO compatible 2023-03-11 16:44:12 +01:00
arm64 arm64: dts: mediatek: mt7622: Add missing pwm-cells to pwm node 2023-03-11 16:43:34 +01:00
c6x
csky csky: Fix function name in csky_alignment() and die() 2023-02-06 07:52:49 +01:00
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-06 07:52:49 +01:00
hexagon hexagon: Fix function name in die() 2023-02-06 07:52:49 +01:00
ia64 ia64: make IA64_MCA_RECOVERY bool instead of tristate 2023-02-06 07:52:49 +01:00
m68k m68k: Check syscall_trace_enter() return code 2023-03-11 16:43:55 +01:00
microblaze exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
mips mips: fix syscall_get_nr 2023-03-11 16:44:04 +01:00
nds32 exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
nios2 exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
openrisc exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
parisc parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case 2023-02-22 12:50:28 +01:00
powerpc powerpc: Remove linker flag from KBUILD_AFLAGS 2023-03-11 16:43:53 +01:00
riscv RISC-V: time: initialize hrtimer based broadcast clock event device 2023-03-11 16:43:42 +01:00
s390 KVM: s390: disable migration mode when dirty tracking is disabled 2023-03-11 16:44:01 +01:00
sh exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
sparc sparc: allow PM configs for sparc32 COMPILE_TEST 2023-03-11 16:43:50 +01:00
um um: vector: Fix memory leak in vector_config 2023-03-11 16:44:08 +01:00
unicore32
x86 x86/CPU/AMD: Disable XSAVES on AMD family 0x17 2023-03-17 08:32:47 +01:00
xtensa exit: Add and use make_task_dead. 2023-02-06 07:52:49 +01:00
.gitignore
Kconfig locking/refcount: Consolidate implementations of refcount_t 2022-07-29 17:14:17 +02:00