mirror of
https://github.com/crash-utility/crash
synced 2025-02-23 00:46:48 +00:00
Fix for determining the x86_64 "phys_base" value in dumpfiles created
by the KVM "virsh dump" facility if the kernel is KASLR-enabled and does not have the phys_base value stored in vmcoreinfo data. Without the patch, the message "WARNING: cannot determine physical base address: defaulting to 0" is displayed, and the crash session fails to initialize. (zhiche.yy@alibaba-inc.com)
This commit is contained in:
parent
03d2b3c234
commit
5aa3c1da3e
2
x86_64.c
2
x86_64.c
@ -6971,7 +6971,7 @@ x86_64_virt_phys_base(void)
|
||||
QUIET|RETURN_ON_ERROR) && STRNEQ(buf, "Linux version"))
|
||||
return TRUE;
|
||||
|
||||
for (phys = (ulong)(-MEGABYTES(16)); phys != MEGABYTES(16+1);
|
||||
for (phys = (ulong)(-MEGABYTES(32)); phys != 0xfffff00000;
|
||||
phys += MEGABYTES(1)) {
|
||||
if (readmem(linux_banner_phys + phys, PHYSADDR, buf,
|
||||
strlen("Linux version"), "linux_banner search",
|
||||
|
Loading…
Reference in New Issue
Block a user