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.
Details
Details
- Reviewers
jhb kib manu - Group Reviewers
arm64 - Commits
- rG6713be315900: Add NT_ARM_ADDR_MASK
Diff Detail
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 |
Comment Actions
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.