Page MenuHomeFreeBSD

Add NT_ARM_ADDR_MASK
ClosedPublic

Authored by andrew on Feb 16 2022, 3:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 20, 10:02 AM
Unknown Object (File)
Mar 7 2024, 8:00 PM
Unknown Object (File)
Feb 19 2024, 7:14 AM
Unknown Object (File)
Feb 13 2024, 12:13 AM
Unknown Object (File)
Dec 25 2023, 1:12 AM
Unknown Object (File)
Dec 24 2023, 12:20 PM
Unknown Object (File)
Dec 20 2023, 5:28 AM
Unknown Object (File)
Oct 5 2023, 2:57 PM

Details

Reviewers
jhb
kib
manu
Group Reviewers
arm64
Commits
rG6713be315900: Add NT_ARM_ADDR_MASK
Summary

This can be used by debuggers to find which bits in a virtual address
should be masked off to get a canonical address. This is currently used
by the Pointer Authentication Code support to get its mask. It could also
be used if we support Top Byte Ignore for the same purpose.

Diff Detail

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

Event Timeline

sys/sys/elf_common.h
828

fwiw I in Linux I see #define NT_ARM_PAC_MASK 0x406

sys/sys/elf_common.h
828

They both provide a mask, with the addition of possible a TBI mask on hardware without PAC in the future

This revision is now accepted and ready to land.Feb 16 2022, 4:12 PM

It could also be used if we support Top Byte Ignore for the same purpose

Nice. I have experimented with TBI a few years ago — D20835. HWASAN was pretty easy to get working.

This revision was automatically updated to reflect the committed changes.