x86/mtrr: CFI hardening
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 28 Oct 2021 12:48:54 +0000 (13:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commit142923eaaf71f6cf38053da13c6dba598aff8839
treec80fc2a6b8c6b0e1282310e97ed4a2f9a7f37247
parentb1a7d40f30cde6e5b71ee23de25f9cae9837709e
x86/mtrr: 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/cpu/mtrr/generic.c
xen/arch/x86/cpu/mtrr/mtrr.h