[PATCH] aarch64: Use future HWCAP2_MTE in ifunc resolver
Florian Weimer
fweimer@redhat.com
Mon Jul 27 09:54:59 GMT 2020
* 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?
Thanks,
Florian
More information about the Libc-alpha
mailing list