diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-22 23:01:33 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-09-22 23:01:33 +0200 |
commit | b4ac28a32f589d389e5391f5b546c17a484915dc (patch) | |
tree | 29ae206f111d893dbb86204a3f566555d0ca71e4 | |
parent | Merge tag 'kvm-s390-master-6.0-1' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
parent | KVM: arm64: Use kmemleak_free_part_phys() to unregister hyp_mem_base (diff) | |
download | linux-b4ac28a32f589d389e5391f5b546c17a484915dc.tar.xz linux-b4ac28a32f589d389e5391f5b546c17a484915dc.zip |
Merge tag 'kvmarm-fixes-6.0-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
KVM/arm64 fixes for 6.0, take #2
- Fix kmemleak usage in Protected KVM (again)
-rw-r--r-- | arch/arm64/kvm/arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/arm.c b/arch/arm64/kvm/arm.c index 2ff0ef62abad..917086be5c6b 100644 --- a/arch/arm64/kvm/arm.c +++ b/arch/arm64/kvm/arm.c @@ -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(); } |