Page MenuHomeFreeBSD

arm64: Add PAC instruction macros
ClosedPublic

Authored by andrew on Oct 16 2023, 4:07 PM.
Tags
None
Referenced Files
F168220549: D42226.diff
Thu, Aug 27, 12:05 AM
Unknown Object (File)
Sun, Aug 23, 2:44 AM
Unknown Object (File)
Fri, Aug 14, 6:42 AM
Unknown Object (File)
Wed, Aug 12, 3:39 PM
Unknown Object (File)
Wed, Aug 12, 4:02 AM
Unknown Object (File)
Tue, Aug 11, 10:16 PM
Unknown Object (File)
Tue, Aug 11, 9:32 PM
Unknown Object (File)
Tue, Aug 11, 11:00 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 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.