[PATCH] aarch64: Use future HWCAP2_MTE in ifunc resolver

Szabolcs Nagy szabolcs.nagy@arm.com
Mon Jul 27 11:42:12 GMT 2020


The 07/27/2020 11:54, Florian Weimer wrote:
> * Szabolcs Nagy:
> 
> > Make glibc MTE-safe on systems where MTE is available. This allows
> > using heap tagging with an LD_PRELOADed malloc implementation that
> > enables MTE. We don't document this as guaranteed contract yet, so
> > glibc may not be MTE safe when HWCAP2_MTE is set (older glibcs
> > certainly aren't). This is mainly for testing and debugging.
> >
> > The HWCAP flag is not exposed in public headers until Linux adds it
> > to its uapi. The HWCAP value reservation will be in Linux 5.9.
> 
> It's not yet in Linus' tree, though?
> 
> I think this is safe because the MTE code will run just fine on non-MTE
> systems (if the bit is repurposed after all), right?

yes.


More information about the Libc-alpha mailing list