You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AArch64 Pointer Authentication using aarch64-unknown-linux-pauthtest target on Linux ELF platforms #618
This goal aims to add Pointer Authentication Code (later on referred to as PAC,
pauth) support to Rust compiler. PAC is a hardware security feature introduced
by ARM in ARMv8.3. It works by adding a cryptographic signature to pointers and
verifying that signature before the pointers are used. This mechanism helps
prevent attacks that attempt to modify or substitute writable pointers, such as
return addresses or function pointers.
The signature is stored directly within the pointer value. On AArch64 systems
the usable virtual address space occupies fewer than 64 bits, leaving upper bits
of the pointer available to store PAC data.
This issue is intended for status updates only.
For general questions or comments, please contact a goal owner or post in the Zulip topic.
Where can one find a (Rust-centric) description of what PAC is, why Rust should have it, what kinds of bugs it can find, and which design choices have been made / have yet to be made? The project goal seems to be written for people that have already worked on PAC before, making it very hard for other compiler maintainers to judge how to best integrate it with the existing infrastructure.
Apparently something is being signed, but by whom, with which key, and how that's useful? Unclear. Why does this somehow have to do something with function signatures (rust-lang/rust#159074)? Unclear.
Activity
tomassedovic commentedon May 5, 2026
This issue is intended for status updates only.
For general questions or comments, please contact the owner(s) directly.
jchlanda commentedon May 14, 2026
Key developments
aarch64-unknown-linux-pauthtest, which brings pointer authentication toextern "C"calls opened: Introduce aarch64-unknown-linux-pauthtest target rust#155722aarch64-unknown-linux-pauthtesttarget libc#5065aarch64-unknown-linux-pauthtesttarget cc-rs#1713aarch64-unknown-linux-pauthtestbacktrace-rs#755jchlanda commentedon Jul 28, 2026
Key developments
A sequence of eight PRs that together implement support for function pointer type discrimination has been submitted for review:
Rollup merge of rust-lang#159071 - jchlanda:jakub/pac_ty_disc_PR_1, r…
Rollup merge of rust-lang#159071 - jchlanda:jakub/pac_ty_disc_PR_1, r…
Rollup merge of rust-lang#159071 - jchlanda:jakub/pac_ty_disc_PR_1, r…
Auto merge of #159071 - jchlanda:jakub/pac_ty_disc_PR_1, r=davidtwco
Rollup merge of rust-lang#159071 - jchlanda:jakub/pac_ty_disc_PR_1, r…
Rollup merge of rust-lang#159071 - jchlanda:jakub/pac_ty_disc_PR_1, r…
Rollup merge of rust-lang#159071 - jchlanda:jakub/pac_ty_disc_PR_1, r…
Unrolled build for #159071 in rollup #161396
Rollup merge of #159071 - jchlanda:jakub/pac_ty_disc_PR_1, r=davidtwco
jchlanda commentedon Aug 28, 2026
No updates, still waiting on the Patches (comment above) to land.
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
Rollup merge of rust-lang#159074 - jchlanda:jakub/pac_ty_disc_PR_2, r…
RalfJung commentedon Sep 7, 2026
Where can one find a (Rust-centric) description of what PAC is, why Rust should have it, what kinds of bugs it can find, and which design choices have been made / have yet to be made? The project goal seems to be written for people that have already worked on PAC before, making it very hard for other compiler maintainers to judge how to best integrate it with the existing infrastructure.
Apparently something is being signed, but by whom, with which key, and how that's useful? Unclear. Why does this somehow have to do something with function signatures (rust-lang/rust#159074)? Unclear.
jchlanda commentedon Sep 7, 2026
The issue that started off this work can be found here.
I'm not aware of Rust-centric description of PAC, however the target description is available here and should make for a good starting point.
Furthermore: pointer authentication ABI extension to ELF for AARch64. Both Clang and LLVM have dedicated section describing pointer authentication.
RalfJung commentedon Sep 7, 2026
Thanks for the links!
I'm afraid not. It's mostly jargon that means nothing to me.
The LLVM docs are useful, thanks.
Yes, part of the work of getting such a feature into Rust is to write such a description. :)
RalfJung commentedon Sep 11, 2026
(Continuing discussion on Zulip)