[PATCH v3 0/2] Enable MTE support for stack
Yury Khrustalev
yury.khrustalev@arm.com
Tue Mar 10 14:35:11 GMT 2026
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
Thanks for this, I will look into these changes shortly.
As I've said earlier, please don't merge these patches until we have
discussed the required ABI changes (via a new issue in [1]) and also
documented it in the relevant ABI spec (SYSVABI).
Please note that the MemTagABIELF64 [2] is **not stable** is likely to
change significantly, and implementing it in Glibc would create serious
issue with backward compatibility.
[1]: https://github.com/ARM-software/abi-aa
[2]: https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst
Thanks,
Yury
More information about the Libc-alpha
mailing list