Page MenuHomeFreeBSD

arm64: Add PAC instruction macros
ClosedPublic

Authored by andrew on Oct 16 2023, 4:07 PM.
Tags
None
Referenced Files
F83422616: D42226.diff
Fri, May 10, 8:26 AM
Unknown Object (File)
Thu, May 9, 1:08 AM
Unknown Object (File)
Mon, May 6, 10:11 AM
Unknown Object (File)
Sat, May 4, 2:42 PM
Unknown Object (File)
Tue, Apr 30, 1:37 PM
Unknown Object (File)
Tue, Apr 30, 1:37 PM
Unknown Object (File)
Tue, Apr 30, 1:37 PM
Unknown Object (File)
Tue, Apr 30, 7:16 AM
Subscribers

Details

Summary

To support Pointer Authentication (PAC) in assembly files add a pair of
macros that sign the link register. When used before storing to the
stack it will allow hardware to detect if it has changed before using
it in the return instruction.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

emaste added inline comments.
sys/arm64/include/asm.h
160

Is the # required?

This revision is now accepted and ready to land.Oct 16 2023, 4:30 PM
sys/arm64/include/asm.h
160

It doesn't appear to be, but I added it to be consistent with other constants in arm64 assembly.

This revision was automatically updated to reflect the committed changes.