[PATCH v2] aarch64: Add MTE mode tunable
Yury Khrustalev
yury.khrustalev@arm.com
Thu Sep 10 08:50:37 GMT 2026
On Wed, Sep 09, 2026 at 04:13:51PM +0000, Wilco Dijkstra wrote:
> 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?
This makes sense. After all, we do it for the GCS tunable. I'll fix
this. In case this is the only comment for v2, should I send v3?
Thanks,
Yury
More information about the Libc-alpha
mailing list