[PATCH 0/2] RFC: Support for MTE stack tagging.

Yury Khrustalev yury.khrustalev@arm.com
Wed Feb 25 16:48:55 GMT 2026


On Fri, Mar 14, 2025 at 01:21:40PM +0000, Cupertino Miranda wrote:
> Hi everyone,
> 
> This is an initial work to enable glibc support for MTE stack tagging.
> In a nutshell glibc should set PROT_MTE to any stack pages which get
> allocated for any running application which requires MTE stack tagging.
> 
> The approach taken to flag the need for stack tagging is to check
> .dynamic entries specific to aarch64, as described in section 6 from:
> https://github.com/ARM-software/abi-aa/blob/main/memtagabielf64/memtagabielf64.rst
> 
> This is an initial propose patch. I would like to get some feedback
> for the approach used to check for the .dynamic flags, how the
> PROT_MTE property is set for the stacks or any other comments.
> 
> This feature is related to the work done by Indu Bhagat submitted as RFC
> in gcc-patches:
>   https://gcc.gnu.org/pipermail/gcc-patches/2024-November/668017.html
> And in binutils in:
>   https://sourceware.org/pipermail/binutils/2024-December/137989.html
> 
> I noticed my patches fail a lot of conform/linknamespace tests. I
> think I need some guidance for why this happens.
> 
> Looking forward to your comments.

Hi Cupertino,

Same as in the other related thread: since this patch touches
AArch64-specific code, would it be possible to add me to CC
for any future versions so that I could review them?

It would be nice to coordinate work on this :)

Thanks,
Yury



More information about the Libc-alpha mailing list