Page MenuHomeFreeBSD

arm64: Enable BTI in the kernel ELF loader
ClosedPublic

Authored by andrew on Nov 2 2023, 10:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 22, 10:59 AM
Unknown Object (File)
Sat, Mar 21, 1:07 PM
Unknown Object (File)
Thu, Mar 19, 11:52 AM
Unknown Object (File)
Wed, Mar 18, 5:54 PM
Unknown Object (File)
Thu, Mar 5, 5:53 PM
Unknown Object (File)
Sat, Feb 28, 9:43 PM
Unknown Object (File)
Feb 28 2026, 9:23 AM
Unknown Object (File)
Feb 20 2026, 2:32 PM
Subscribers

Details

Summary

Enable BTI in binaries loaded by the kernel. When the ELF file contains
the needed note indicating BTI is supported set the guarded page flag
for all segments.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

andrew added a parent revision: D42440: sysent: Add sv_protect.
sys/arm64/arm64/elf_machdep.c
338

What does the 4 mean?

  • Catch up with nnew sv_protect KBI
  • Clean up length handling and add a comment
This revision is now accepted and ready to land.Nov 9 2023, 3:38 PM
This revision was automatically updated to reflect the committed changes.