[PATCH v2] rtld: Enable MTE for stack when specified in .dynamic
Yury Khrustalev
yury.khrustalev@arm.com
Thu Feb 26 09:59:07 GMT 2026
On Thu, Feb 26, 2026 at 10:56:44AM +0200, Claudiu Zissulescu wrote:
> Hi Yuri,
>
> On 2/25/26 8:05 PM, Yury Khrustalev wrote:
> > On Wed, Feb 25, 2026 at 05:29:42PM +0000, Cupertino Miranda wrote:
> > > Hi Yury,
> > >
> > > Can you please detail some more what are you working on.
> >
> > We look at heap allocations so it will touch the part that implements
> > memory tagging in malloc. Ideally, we'd like to have some uniformity in
> > configuration of Glibc's use of memory tags. E.g. there is a tunable
> > that is supposed to control malloc use of memory tags (glibc.mem.tagging)
> > and you use dynamic array tags in binaries which seem like a good option
> > but we probably need to use only one mechanism. I'll take a closer look
> > at your patches tomorrow.
> >
>
> There is some work related to MTE done by Richard Earnshaw (in 2020). He
> introduced a new configuration option --enable-memory-tagging which allows
> memory tagging to be enabled. Do you plan to keep it?
This is the part I am currently looking at. You are a kind of forcing my
hand here as I'm at very early stages on this :) but I've replied in
this thread about the configure flag (in a nutshell I think we should
not have any):
https://inbox.sourceware.org/libc-alpha/20250901211007.128592-1-cupertino.miranda@oracle.com/
Thanks,
Yury
More information about the Libc-alpha
mailing list