Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm/arm64: KVM: Take mmap_sem in kvm_arch_prepare_memory_region
We don't hold the mmap_sem while searching for VMAs (via find_vma), in kvm_arch_prepare_memory_region, which can end up in expected failures. Fixes: commit 8eef912 ("arm/arm64: KVM: map MMIO regions at creation time") Cc: Ard Biesheuvel <[email protected]> Cc: Eric Auger <[email protected]> Cc: [email protected] # v3.18+ Reviewed-by: Christoffer Dall <[email protected]> [ Handle dirty page logging failure case ] Signed-off-by: Suzuki K Poulose <[email protected]> Signed-off-by: Marc Zyngier <[email protected]>
- Loading branch information