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
Unknown Object (File)
Mon, Jul 22, 7:42 AM
Unknown Object (File)
Sun, Jul 14, 10:42 AM
Unknown Object (File)
Thu, Jul 4, 9:15 PM
Unknown Object (File)
Mon, Jun 24, 10:32 AM
Unknown Object (File)
Jun 23 2024, 8:07 PM
Unknown Object (File)
Jun 23 2024, 10:49 AM
Unknown Object (File)
Jun 5 2024, 9:30 AM
Unknown Object (File)
Jun 4 2024, 4:05 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 Not Applicable
Unit
Tests Not Applicable