[PATCH v3 0/2] Enable MTE support for stack
Yury Khrustalev
yury.khrustalev@arm.com
Wed Mar 18 09:49:45 GMT 2026
Hi Claudiu,
On Tue, Mar 10, 2026 at 04:11:05PM +0200, claudiu.zissulescu-ianculescu@oracle.com wrote:
> From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com>
>
> Hello,
>
> This is a follow up of v2 with the next changes:
>
> - use mprotect flags PROT_GROWSDOWN/PROT_GROWSUP.
> - corrects macros in cpu-feature.h, and fixes code styles in dl-mte.c
> - adds MTE-aware setjmp/longjmp support for stack tag cleanup.
> - adds a configure check for -fsanitize=memtag-stack compiler flag.
> - adds two new tests.
>
> Changes history:
> - dropped changes related to stack creation for threads. No longer
> needed.
> - Adaped code to changes introduced with:
> "elf: early conversion of elf p_flags to mprotect flags"
>
> Best wishes,
> Claudiu
I've sent an email [1] to explain plans for the work that will need to
be done before this patch can move forward.
I am working on this separate patch for this preparation right now, you
will need to wait for it to come through and then rebase your patch.
I've also raised issues in Arm ABI GitHub repo [2] to discuss what
should be written down in the spec: [3, 4, 5]. Please engage in this
discussion. Thank you!
Kind regards,
Yury
---
[1]: https://inbox.sourceware.org/libc-alpha/abpzpwY6C2ycSnv7@arm.com/
[2]: https://github.com/ARM-software/abi-aa/
[3]: https://github.com/ARM-software/abi-aa/issues/381 (for MemtagABI)
[4]: https://github.com/ARM-software/abi-aa/issues/382 (for SYSVABI)
[5]: https://github.com/ARM-software/abi-aa/issues/383 (for AAPCS64,
as longjmp and setjmp are described in AAPCS64)
More information about the Libc-alpha
mailing list