[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)
Kees Cook via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 21 23:10:41 PDT 2025
================
@@ -616,6 +616,35 @@ unsigned ARMBaseInstrInfo::getInstSizeInBytes(const MachineInstr &MI) const {
// contrast to AArch64 instructions which have a default size of 4 bytes for
// example.
return MCID.getSize();
+ case ARM::KCFI_CHECK: {
----------------
kees wrote:
Oh wow, I totally missed it. Yeah, it's _above_ KCFI_CHECK in both aarch64 and riscv. I see it now! :P
https://github.com/llvm/llvm-project/pull/163698
More information about the cfe-commits
mailing list