Skip to content

AArch64 Pointer Authentication using aarch64-unknown-linux-pauthtest target on Linux ELF platforms #618

Open

Description

@tomassedovic
Metadata
Contact @jchlanda
Team(s) compiler (@davidtwco)
Goal document 2026/aarch64_pointer_authentication_pauthtest

Summary

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.

Activity

  1. added this to the 2026 milestone on May 5, 2026
  2. tomassedovic commented on May 5, 2026

    @tomassedovic
    ContributorAuthor

    This issue is intended for status updates only.

    For general questions or comments, please contact the owner(s) directly.

  3. jchlanda commented on May 14, 2026

    @jchlanda
    Contributor

    Key developments

  4. jchlanda commented on Jul 28, 2026

    @jchlanda
    Contributor
  5. added 3 commits that reference this issue on Aug 19, 2026
  6. added a commit that references this issue on Aug 19, 2026
  7. added 3 commits that reference this issue on Aug 19, 2026
  8. added a commit that references this issue on Aug 20, 2026
  9. jchlanda commented on Aug 28, 2026

    @jchlanda
    Contributor

    No updates, still waiting on the Patches (comment above) to land.

  10. added 6 commits that reference this issue on Sep 4, 2026
  11. added a commit that references this issue on Sep 5, 2026
  12. added a commit that references this issue on Sep 5, 2026
  13. RalfJung commented on Sep 7, 2026

    @RalfJung
    Member

    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.

  14. jchlanda commented on Sep 7, 2026

    @jchlanda
    Contributor

    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.

  15. RalfJung commented on Sep 7, 2026

    @RalfJung
    Member

    Thanks for the links!

    however the target description is available here and should make for a good starting point.

    I'm afraid not. It's mostly jargon that means nothing to me.

    The LLVM docs are useful, thanks.

    I'm not aware of Rust-centric description of PAC,

    Yes, part of the work of getting such a feature into Rust is to write such a description. :)

  16. RalfJung commented on Sep 11, 2026

    @RalfJung
    Member

    (Continuing discussion on Zulip)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions