Commit 45b74b89530d611b3fa95a1041e158fbb865fa84 added support for calculating phys_base and kernel offset for KASLR-enabled kernels on SADUMPs by using a technique developed by Takao Indoh. Originally, the patchset included support for KDUMPs, but this was dropped in v2, as it was deemed unnecessary due to the implementation of the vmcoreinfo device in QEMU. Sadly, there are many reasons for which the vmcoreinfo device may not be present in the moment of taking the memory dump from a VM, ranging from a Host running older QEMU/libvirt versions, to misconfigured VMs or environments running Hypervisors that doesn't support this device. This patchset generalizes the kaslr related functions from sadump.c moving them to kaslr_helper.c, and makes KDUMP analysis fallback to KASLR offset calculation if vmcoreinfo data is missing. These changes have been successfully tested with a 3.10.0-830.el7.x86_64 under the following conditions: - kdump with KASLR and vmcoreinfo - kdump with KASLR but no vmcoreinfo - kdump without KASLR ("nokaslr" kernel command line option) It was also tested that a "crash" patched with these changes still builds and runs (live and kdump debugging) on an aarch64 machine. changelog: v2: - Limit application to QEMU ELF and QEMU COMPRESSED dumps (thanks Dave) - Add support for QEMU COMPRESSED dumps (diskdump) Sergio Lopez (4): Move kaslr related functions from sadump.c to kaslr_helper.c Move QEMUCPU* structs from netdump.h to defs.h netdump: infer kaslr offset for QEMU ELF dumps without vmcoreinfo diskdump: infer kaslr offset for QEMU COMPRESSED dumps without vmcoreinfo Makefile | 7 +- defs.h | 43 +++++ diskdump.c | 96 ++++++++++++ kaslr_helper.c | 473 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ netdump.c | 79 ++++++++++ netdump.h | 24 +-- sadump.c | 487 +++++---------------------------------------------------- symbols.c | 26 ++- x86_64.c | 29 +++- 9 files changed, 782 insertions(+), 482 deletions(-) create mode 100644 kaslr_helper.c -- 2.14.3 -- Crash-utility mailing list Crash-utility@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/crash-utility