efi/zboot: Set forward edge CFI compat header flag if supported
authorArd Biesheuvel <ardb@kernel.org>
Tue, 18 Apr 2023 13:49:51 +0000 (15:49 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Thu, 20 Apr 2023 13:45:12 +0000 (15:45 +0200)
commit538bc0f40b364f2c7b81f11aa163f723b138b40f
treebf1902edf9c52086c6b67f3e1d6f441a09300b98
parentbca2f3a9406b89961fbc6c92c52c6fc1fd91d35f
efi/zboot: Set forward edge CFI compat header flag if supported

Add some plumbing to the zboot EFI header generation to set the newly
introduced DllCharacteristicsEx flag associated with forward edge CFI
enforcement instructions (BTI on arm64, IBT on x86)

x86 does not currently uses the zboot infrastructure, so let's wire it
up only for arm64.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm64/boot/Makefile
drivers/firmware/efi/libstub/Makefile.zboot
drivers/firmware/efi/libstub/zboot-header.S