[PATCH v2] aarch64: Add MTE mode tunable
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Wed Sep 9 16:13:51 GMT 2026
Hi Yury,
+ /* Check if MTE is supported. */
+ if (GLRO (dl_hwcap2) & HWCAP2_MTE)
+ TUNABLE_GET (glibc, cpu, mtemode, tunable_val_t *,
+ TUNABLE_CALLBACK (set_aarch64_mte_mode));
+ else
+ GL (dl_aarch64_mte_mode) = MTE_MODE_DISABLED;
+
Do we need the else if we skip initialization if the HWCAP is set
but the tunable is not? If we can rely on default initialization to
MTE_MODE_DISABLED in that case, why not here too?
Cheers,
Wilco
More information about the Libc-alpha
mailing list