x86/idle: CFI hardening
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Oct 2021 12:32:34 +0000 (13:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commitafaa75410ec1010b9ae7c3ae9ce0f3d1c26b6312
treefa0f4c5e28a3bd75b37c04a8d4540aa6ca4a187f
parent142923eaaf71f6cf38053da13c6dba598aff8839
x86/idle: CFI hardening

Control Flow Integrity schemes use toolchain and optionally hardware support
to help protect against call/jump/return oriented programming attacks.

Use cf_check to annotate function pointer targets for the toolchain.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/acpi/cpuidle_menu.c
xen/arch/x86/cpu/mwait-idle.c
xen/arch/x86/domain.c
xen/arch/x86/hpet.c
xen/arch/x86/include/asm/cpuidle.h
xen/arch/x86/include/asm/hpet.h
xen/arch/x86/include/asm/time.h
xen/arch/x86/time.c
xen/drivers/cpufreq/cpufreq_misc_governors.c