Page MenuHomeFreeBSD

arm64: Support BTI checking in most of the kernel
ClosedPublic

Authored by andrew on Jun 3 2024, 4:21 PM.
Tags
None
Referenced Files
F115460906: D45466.id139362.diff
Thu, Apr 24, 2:23 AM
F115448214: D45466.diff
Wed, Apr 23, 11:01 PM
Unknown Object (File)
Sun, Mar 30, 2:29 PM
Unknown Object (File)
Thu, Mar 27, 1:04 PM
Unknown Object (File)
Feb 27 2025, 8:44 AM
Unknown Object (File)
Feb 26 2025, 6:33 PM
Unknown Object (File)
Feb 26 2025, 9:16 AM
Unknown Object (File)
Feb 25 2025, 7:22 PM

Details

Summary

LLD has the -zbti-report=error argument to check if the BTI note is
present when linking. To allow for this to be used when linking the
kernel and modules:

  • Add the BTI note to the remaining assembly files
  • Mark ptrauth.c as protected by BTI
  • Disable -zbti-report for vmm hypervisor switching code as it's not used there.

The linux64 module doesn't build with the flag as it includes vdso code
that doesn't include the note.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58022
Build 54910: arc lint + arc unit