Commit f9b1f767 authored by Marc Zyngier's avatar Marc Zyngier Committed by Will Deacon
Browse files

FROMGIT: KVM: arm64: Fix detection of shared VMAs on guest fault



When merging the KVM MTE support, the blob that was interposed between
the chair and the keyboard experienced a neuronal accident (also known
as a brain fart), turning a check for VM_SHARED into VM_PFNMAP as it
was reshuffling some of the code.

The blob having now come back to its senses, let's restore the
initial check that the original author got right the first place.

Fixes: ea7fc1bb ("KVM: arm64: Introduce MTE VM feature")
Reviewed-by: default avatarSteven Price <steven.price@arm.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210713114804.594993-1-maz@kernel.org
(cherry picked from commit 80d9ac9b
 git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git

 fixes)
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Bug: 192636784
Change-Id: I78c4ba6ff258812a6bce6d782ed84856035ec61d
parent c7a30aa8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment