Skip to content

[AAPCS64] AAPCS64 should specify minimal requirements for setjmp and longjmp for memory tagging #383

Description

@yury-khrustalev

The MemTagABIELF64 extension provides recommendations for operating systems such as Linux. There are some implementation details related to DT_AARCH64_MEMTAG_STACK that should also be specified but are out of scope of the MemTagABIELF64 document.

The implementation of stack tagging is left to the compiler, however the implementation of setjmp and longjmp is out of scope of a compiler. There should be a description of minimal requirements that complying implementations of setjmp and longjmp as well as complying implementations of stack tagging in a compiler should abide by.

At least there should be a way for the implementation of setjmp and longjmp to determine if any extra operations related to stack memory tagging should be skipped so that the same binary implementation in a runtime that provides setjmp and longjmp (e.g. Glibc) could work for binaries with and without support for stack tagging.

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions