]> xenbits.xensource.com Git - xen.git/commit
xen: CFI hardening for init_timer()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Oct 2021 09:42:25 +0000 (10:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commit17bafcdcc84f67307a28acc42f0e842a7f5c08a7
treed9dcf306f6d6b08b1056f8fd1515cb861fa9ad56
parent19804ed02902e78c82c6c97af8bd5ec348d5f071
xen: CFI hardening for init_timer()

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>
17 files changed:
xen/arch/x86/cpu/mcheck/amd_nonfatal.c
xen/arch/x86/cpu/mcheck/non-fatal.c
xen/arch/x86/hvm/pmtimer.c
xen/arch/x86/hvm/rtc.c
xen/arch/x86/hvm/viridian/time.c
xen/arch/x86/hvm/vpt.c
xen/arch/x86/irq.c
xen/arch/x86/nmi.c
xen/arch/x86/time.c
xen/common/rcupdate.c
xen/common/sched/core.c
xen/common/sched/credit.c
xen/common/sched/credit2.c
xen/common/sched/rt.c
xen/drivers/char/ehci-dbgp.c
xen/drivers/char/ns16550.c
xen/drivers/cpufreq/cpufreq_ondemand.c