xen: CFI hardening for notifier callbacks
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 Oct 2021 09:11:55 +0000 (10:11 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commit22939d3c83da3f94c612b1f49f6f91f11ee3490d
tree18962674fed856960fa734442675283cd5d8c6a6
parent7629460eeb8487de8a13fefe6b73716cc0cdeafe
xen: CFI hardening for notifier callbacks

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>
24 files changed:
xen/arch/x86/acpi/cpu_idle.c
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/cpu/mwait-idle.c
xen/arch/x86/cpu/vpmu.c
xen/arch/x86/genapic/x2apic.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/nmi.c
xen/arch/x86/percpu.c
xen/arch/x86/psr.c
xen/arch/x86/smpboot.c
xen/common/debugtrace.c
xen/common/kexec.c
xen/common/livepatch.c
xen/common/rcupdate.c
xen/common/sched/core.c
xen/common/sched/cpupool.c
xen/common/stop_machine.c
xen/common/tasklet.c
xen/common/timer.c
xen/common/trace.c
xen/drivers/cpufreq/cpufreq.c
xen/drivers/cpufreq/cpufreq_misc_governors.c
xen/drivers/passthrough/x86/hvm.c