The -e option excludes the page structures (vmemmap) which represent
excluded pages and greatly shortens the dump of a very large memory
system. This option is only for x86_64.
But currently it does not support KASLR-enabled vmcore, as a result,
it excludes incorrect pages and can create a broken dumpfile without
errors on KASLR-enabled system. Patch 1/3 fixes this issue.
Patch 2/3 fixes an issue that some boundary vmemmap pages that should
be excluded are not excluded correctly.
Patch 3/3 fixes an issue that the -e option does some unnecessary
processing with no effect and marks the dump DUMP_DH_EXCLUDED_VMEMMAP
unexpectedly on architectures other than x86_64.
Kazuhito Hagio (3):
makedumpfile: x86_64: Fix incorrect exclusion by -e option with KASLR
makedumpfile: Fix exclusion range in find_vmemmap_pages()
makedumpfile: Fix inconsistent return value from find_vmemmap()
...xclusion-range-in-find_vmemmap_pages.patch | 37 ++
...stent-return-value-from-find_vmemmap.patch | 327 ++++++++++++++++++
...-Fix-incorrect-exclusion-by-e-option.patch | 41 +++
kexec-tools.spec | 6 +
4 files changed, 411 insertions(+)
create mode 100644
kexec-tools-2.0.20-makedumpfile-Fix-exclusion-range-in-find_vmemmap_pages.patch
create mode 100644
kexec-tools-2.0.20-makedumpfile-Fix-inconsistent-return-value-from-find_vmemmap.patch
create mode 100644
kexec-tools-2.0.20-makedumpfile-x86_64-Fix-incorrect-exclusion-by-e-option.patch
--
2.23.0