Page MenuHomeFreeBSD

arm64: Add PAC instruction macros
ClosedPublic

Authored by andrew on Oct 16 2023, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 2:03 AM
Unknown Object (File)
Sun, Apr 21, 2:45 AM
Unknown Object (File)
Thu, Apr 4, 9:33 PM
Unknown Object (File)
Mar 25 2024, 12:46 PM
Unknown Object (File)
Feb 28 2024, 8:31 AM
Unknown Object (File)
Feb 23 2024, 4:22 PM
Unknown Object (File)
Feb 18 2024, 8:44 AM
Unknown Object (File)
Feb 7 2024, 2:41 PM
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 Not Applicable
Unit
Tests Not Applicable

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.