Fix for the handling of Xen DomU ELF dumpfiles to prevent the

pre-gathering of p2m frames during session initialization, which
is unnecessary since ELF files contain the mapping information in
their ".xen_p2m" section.  Without the patch, it is possible that the
crash session may be unnecessarily aborted if the p2m frame-gathering
fails, for example, if the CR3 value in the header is invalid.
(ptesarik@suse.com)
This commit is contained in:
Dave Anderson 2015-12-18 15:02:28 -05:00
parent fd6c2a8c5a
commit c0af94a29d

View File

@ -1260,7 +1260,7 @@ xc_core_create_pfn_tables(void)
"cannot create xen pfn-to-mfn mapping\n");
}
if (xd->flags & XC_CORE_ELF)
if (xd->flags & XC_CORE_PFN_CREATE)
xc_core_elf_pfn_init();
xd->flags &= ~(XC_CORE_P2M_CREATE|XC_CORE_PFN_CREATE);
@ -2557,7 +2557,7 @@ xc_core_dump_Elf32_Shdr(Elf32_Off offset, int store)
if (STREQ(name, ".xen_p2m")) {
xd->xc_core.header.xch_index_offset =
(off_t)shdr.sh_offset;
xd->flags |= XC_CORE_P2M_CREATE;
xd->flags |= XC_CORE_PFN_CREATE;
}
if (STREQ(name, ".xen_pages"))
@ -2659,7 +2659,7 @@ xc_core_dump_Elf64_Shdr(Elf64_Off offset, int store)
if (STREQ(name, ".xen_p2m")) {
xd->xc_core.header.xch_index_offset =
(off_t)shdr.sh_offset;
xd->flags |= XC_CORE_P2M_CREATE;
xd->flags |= XC_CORE_PFN_CREATE;
}
if (STREQ(name, ".xen_pages"))