Merge tag 'kvmarm-fixes-6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmar...
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Sep 2022 21:01:33 +0000 (17:01 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 22 Sep 2022 21:01:33 +0000 (17:01 -0400)
KVM/arm64 fixes for 6.0, take #2

- Fix kmemleak usage in Protected KVM (again)

arch/arm64/kvm/arm.c

index 2ff0ef6..917086b 100644 (file)
@@ -2114,7 +2114,7 @@ static int finalize_hyp_mode(void)
         * at, which would end badly once inaccessible.
         */
        kmemleak_free_part(__hyp_bss_start, __hyp_bss_end - __hyp_bss_start);
-       kmemleak_free_part(__va(hyp_mem_base), hyp_mem_size);
+       kmemleak_free_part_phys(hyp_mem_base, hyp_mem_size);
        return pkvm_drop_host_privileges();
 }