Skip to content

KVM: arm64: Reenable MTE on VHE guest exit

Marc Zyngier kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: Add return value to mte_disable_tco_entry()arch/arm64/include/asm/mte.h+7 -30 replies
2/2KVM: arm64: Reenable MTE tag checking on exit from guest when running VHEarch/arm64/kvm/hyp/vhe/switch.c+7 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFuad TabbaCatalin Marinas
SeriesR-b T-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: Reenable MTE on VHE guest exit

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.

This series aims at fixing this. This is not a stable candidate, as KASAN is only a debug option.

Marc Zyngier (2):
arm64: Add return value to mte_disable_tco_entry()
KVM: arm64: Reenable MTE tag checking on exit from guest when running
VHE

 arch/arm64/include/asm/mte.h    | 10 +++++++---
 arch/arm64/kvm/hyp/vhe/switch.c |  7 +++++++
 2 files changed, 14 insertions(+), 3 deletions(-)
Signature · 1 line
2.47.3