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
F81946127: D42441.id129776.diff
Tue, Apr 23, 2:25 PM
Unknown Object (File)
Tue, Apr 9, 2:02 AM
Unknown Object (File)
Wed, Mar 27, 11:07 AM
Unknown Object (File)
Feb 22 2024, 4:28 PM
Unknown Object (File)
Feb 19 2024, 11:21 PM
Unknown Object (File)
Jan 11 2024, 1:44 AM
Unknown Object (File)
Jan 5 2024, 10:34 PM
Unknown Object (File)
Dec 25 2023, 5:26 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 54248
Build 51138: arc lint + arc unit

Event Timeline

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

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.