]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86/speculation: Add Kconfig option for GDS
authorDaniel Sneddon <daniel.sneddon@linux.intel.com>
Thu, 13 Jul 2023 02:43:13 +0000 (19:43 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 9 Aug 2023 10:02:13 +0000 (12:02 +0200)
commit92bd969bbe475c5bca376d007ed6558085b237ba
tree01749a636fc93860edfc205d631c114c92f041c9
parentb73421edcd9b8f1b1db51168e4568667d74422db
x86/speculation: Add Kconfig option for GDS

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>
(cherry picked from commit 53cf5797f114ba2bd86d23a862302119848eff19)
CVE-2022-40982
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Acked-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/x86/Kconfig
arch/x86/kernel/cpu/bugs.c