[PATCH 0/2] KVM: arm64: Reenable MTE on VHE guest exit
Marc Zyngier
maz at kernel.org
Tue Nov 3 05:45:19 PST 2026
On Mon, 26 Oct 2026 08:23:03 +0000, Marc Zyngier wrote:
> Upton taking an exception, the CPU sets PSTATE.TCO to ensure that no
> tag fault can be taken while handling the exception. It is SW's job to
> eventually clear it when it is safe to do so.
>
> It appears that when MTE is enabled and that the kernel is running
> VHE, nothing eventually clears TCO when we come back from the guest,
> so things such as KASAN_HW_TAGS will not work until the next exit to
> userspace.
>
> [...]
Applied to fixes, thanks!
[1/2] arm64: Add return value to mte_disable_tco_entry()
commit: 09436ffe8f1b396c6446eda12798e46f82fed48c
[2/2] KVM: arm64: Reenable MTE tag checking on exit from guest when running VHE
commit: 491fe17530d662a7e6c6b4d139d950dfa0e3a210
Cheers,
M.
--
Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list