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:
Dave Anderson 2019-02-13 10:34:25 -05:00
parent 03d2b3c234
commit 5aa3c1da3e

View File

@ -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",