KVM: arm64: Fix hypervisor address symbolization
authorKalesh Singh <kaleshsingh@google.com>
Fri, 15 Jul 2022 23:58:24 +0000 (16:58 -0700)
committerMarc Zyngier <maz@kernel.org>
Sun, 17 Jul 2022 10:43:40 +0000 (11:43 +0100)
commited6313a93fd11d2015ad17046f3c418bf6a8dab1
tree31a349c6e46246a8a093109457e23c95d557f6d4
parent6a4f7fcd750497cb2fa870f799e8b23270bec6e3
KVM: arm64: Fix hypervisor address symbolization

With CONFIG_RANDOMIZE_BASE=y vmlinux addresses will resolve incorrectly
from kallsyms. Fix this by adding the KASLR offset before printing the
symbols.

Fixes: 6ccf9cb557bd ("KVM: arm64: Symbolize the nVHE HYP addresses")
Reported-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220715235824.2549012-1-kaleshsingh@google.com
arch/arm64/kvm/handle_exit.c