mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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: 6ccf9cb557
("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
This commit is contained in:
parent
6a4f7fcd75
commit
ed6313a93f
1 changed files with 2 additions and 2 deletions
|
@ -347,10 +347,10 @@ void __noreturn __cold nvhe_hyp_panic_handler(u64 esr, u64 spsr,
|
||||||
kvm_err("nVHE hyp BUG at: %s:%u!\n", file, line);
|
kvm_err("nVHE hyp BUG at: %s:%u!\n", file, line);
|
||||||
else
|
else
|
||||||
kvm_err("nVHE hyp BUG at: [<%016llx>] %pB!\n", panic_addr,
|
kvm_err("nVHE hyp BUG at: [<%016llx>] %pB!\n", panic_addr,
|
||||||
(void *)panic_addr);
|
(void *)(panic_addr + kaslr_offset()));
|
||||||
} else {
|
} else {
|
||||||
kvm_err("nVHE hyp panic at: [<%016llx>] %pB!\n", panic_addr,
|
kvm_err("nVHE hyp panic at: [<%016llx>] %pB!\n", panic_addr,
|
||||||
(void *)panic_addr);
|
(void *)(panic_addr + kaslr_offset()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue