Page MenuHomeFreeBSD

arm64: Add a BTI landing pad to .mcount
ClosedPublic

Authored by andrew on Oct 16 2023, 4:08 PM.
Tags
None
Referenced Files
F135693545: D42230.id129531.diff
Tue, Nov 11, 11:03 PM
F135597988: D42230.id129531.diff
Tue, Nov 11, 4:26 AM
Unknown Object (File)
Tue, Nov 11, 12:43 AM
Unknown Object (File)
Fri, Nov 7, 11:23 PM
Unknown Object (File)
Mon, Nov 3, 8:35 AM
Unknown Object (File)
Mon, Nov 3, 8:34 AM
Unknown Object (File)
Mon, Nov 3, 8:33 AM
Unknown Object (File)
Wed, Oct 29, 7:48 PM
Subscribers

Details

Summary

The .mcount function needs a BTI branch target. As we can't rely on
asm.h being included use the hint version of a "bti c" instruction.
This is a nop when BTI is not supported or not used.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
sys/arm64/include/profile.h
71
This revision is now accepted and ready to land.Oct 17 2023, 2:03 PM
This revision now requires review to proceed.Oct 20 2023, 3:54 PM
This revision is now accepted and ready to land.Oct 23 2023, 2:05 PM
This revision was automatically updated to reflect the committed changes.