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)
Thu, Oct 24, 4:23 AM
Unknown Object (File)
Thu, Oct 24, 4:23 AM
Unknown Object (File)
Thu, Oct 24, 4:22 AM
Unknown Object (File)
Thu, Oct 24, 4:05 AM
Unknown Object (File)
Wed, Oct 23, 7:23 PM
Unknown Object (File)
Sep 28 2024, 4:43 AM
Unknown Object (File)
Sep 21 2024, 4:59 PM
Unknown Object (File)
Sep 18 2024, 8:23 AM

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.