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
F107585883: D45466.diff
Thu, Jan 16, 6:28 AM
Unknown Object (File)
Dec 16 2024, 1:00 PM
Unknown Object (File)
Nov 29 2024, 7:59 AM
Unknown Object (File)
Nov 24 2024, 9:50 PM
Unknown Object (File)
Nov 24 2024, 8:27 PM
Unknown Object (File)
Nov 24 2024, 2:22 AM
Unknown Object (File)
Nov 23 2024, 11:46 PM
Unknown Object (File)
Nov 23 2024, 7:14 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