]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
x86: Move gds_ucode_mitigated() declaration to header
authorArnd Bergmann <arnd@arndb.de>
Wed, 9 Aug 2023 13:05:00 +0000 (15:05 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 4 Sep 2023 09:19:32 +0000 (11:19 +0200)
commit9d81293474dabe637b2d1db884a1ed5103f1c0c7
tree41657c7cdfafc8e56fc94b0ebf308e77aea4d86c
parent1ef8dd5dcb48b6e2e4c26d549b3ca453218f3f14
x86: Move gds_ucode_mitigated() declaration to header

The declaration got placed in the .c file of the caller, but that
causes a warning for the definition:

arch/x86/kernel/cpu/bugs.c:682:6: error: no previous prototype for 'gds_ucode_mitigated' [-Werror=missing-prototypes]

Move it to a header where both sides can observe it instead.

Fixes: 81ac7e5d74174 ("KVM: Add GDS_NO support to KVM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Tested-by: Daniel Sneddon <daniel.sneddon@linux.intel.com>
Cc: stable@kernel.org
Link: https://lore.kernel.org/all/20230809130530.1913368-2-arnd%40kernel.org
CVE-2023-20569
(cherry picked from commit eb3515dc99c7c85f4170b50838136b2a193f8012)
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/include/asm/processor.h
arch/x86/kvm/x86.c