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
F89362172: D42441.diff
Sat, Jul 27, 1:23 AM
Unknown Object (File)
Sat, Jul 20, 5:16 AM
Unknown Object (File)
Tue, Jul 9, 5:20 AM
Unknown Object (File)
Sat, Jun 29, 10:24 AM
Unknown Object (File)
Jun 6 2024, 8:36 PM
Unknown Object (File)
May 27 2024, 11:36 PM
Unknown Object (File)
May 18 2024, 1:39 AM
Unknown Object (File)
May 10 2024, 8:21 AM
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.