android_kernel_xiaomi_sm8450/arch
Daniel Sneddon 7db4ddcb8d x86/speculation: Add Kconfig option for GDS
commit 53cf5797f114ba2bd86d23a862302119848eff19 upstream

Gather Data Sampling (GDS) is mitigated in microcode. However, on
systems that haven't received the updated microcode, disabling AVX
can act as a mitigation. Add a Kconfig option that uses the microcode
mitigation if available and disables AVX otherwise. Setting this
option has no effect on systems not affected by GDS. This is the
equivalent of setting gather_data_sampling=force.

Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-08 19:57:38 +02:00
..
alpha init: Remove check_bugs() leftovers 2023-08-08 19:57:37 +02:00
arc ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard 2023-07-27 08:44:00 +02:00
arm ARM: cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:36 +02:00
arm64 arm64: mm: fix VA-range sanity check 2023-07-27 08:44:37 +02:00
c6x c6x: add support for TIF_NOTIFY_SIGNAL 2023-01-04 11:39:21 +01:00
csky csky: Fix function name in csky_alignment() and die() 2023-02-01 08:23:20 +01:00
h8300 h8300: Fix build errors from do_exit() to make_task_dead() transition 2023-02-01 08:23:19 +01:00
hexagon hexagon: Fix function name in die() 2023-02-01 08:23:19 +01:00
ia64 ia64/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:36 +02:00
m68k m68k/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:36 +02:00
microblaze exit: Add and use make_task_dead. 2023-02-01 08:23:19 +01:00
mips mips/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:36 +02:00
nds32 exit: Add and use make_task_dead. 2023-02-01 08:23:19 +01:00
nios2 nios2: dts: Fix tse_mac "max-frame-size" property 2023-06-21 15:45:37 +02:00
openrisc openrisc: Properly store r31 to pt_regs on unhandled exceptions 2023-05-17 11:48:03 +02:00
parisc init: Remove check_bugs() leftovers 2023-08-08 19:57:37 +02:00
powerpc init: Remove check_bugs() leftovers 2023-08-08 19:57:37 +02:00
riscv riscv, bpf: Fix inconsistent JIT image generation 2023-07-27 08:44:23 +02:00
s390 s390/decompressor: fix misaligned symbol build error 2023-07-27 08:44:31 +02:00
sh sh/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:36 +02:00
sparc sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:37 +02:00
um um/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:37 +02:00
x86 x86/speculation: Add Kconfig option for GDS 2023-08-08 19:57:38 +02:00
xtensa init: Remove check_bugs() leftovers 2023-08-08 19:57:37 +02:00
.gitignore
Kconfig init: Provide arch_cpu_finalize_init() 2023-08-08 19:57:36 +02:00