On Thu, Nov 03 2022, Peter Collingbourne <pcc@xxxxxxxxxx> wrote: > From: Catalin Marinas <catalin.marinas@xxxxxxx> > > Currently sanitise_mte_tags() checks if it's an online page before > attempting to sanitise the tags. Such detection should be done in the > caller via the VM_MTE_ALLOWED vma flag. Since kvm_set_spte_gfn() does > not have the vma, leave the page unmapped if not already tagged. Tag > initialisation will be done on a subsequent access fault in > user_mem_abort(). > > Signed-off-by: Catalin Marinas <catalin.marinas@xxxxxxx> > [pcc@xxxxxxxxxx: fix the page initializer] > Signed-off-by: Peter Collingbourne <pcc@xxxxxxxxxx> > Reviewed-by: Steven Price <steven.price@xxxxxxx> > Cc: Will Deacon <will@xxxxxxxxxx> > Cc: Marc Zyngier <maz@xxxxxxxxxx> > Cc: Peter Collingbourne <pcc@xxxxxxxxxx> > --- > arch/arm64/kvm/mmu.c | 40 +++++++++++++++------------------------- > 1 file changed, 15 insertions(+), 25 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx> _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm