Unnamed repository
Go to file
Pingfan Liu 57382b3d12 sadump: fix failure of reading memory when 5-level paging is enabled
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2184284
Resolves: rhbz#2184284
Upstream: makedumpfile

commit 58553ad03187f0cf208d6c4a0dc026c6338e5edd
Author: Daisuke Hatayama (Fujitsu) <d.hatayama@fujitsu.com>
Date:   Wed Mar 29 12:44:10 2023 +0000

    [PATCH] sadump: fix failure of reading memory when 5-level paging is enabled

    makedumpfile fails as follows for memory dumps collected by sadump
    when 5-level paging is enabled on the corresponding systems:

        # makedumpfile -l -d 31 -x ./vmlinux ./dump.sadump dump.sadump-ld31
        __vtop4_x86_64: Can't get a valid pgd.
        ...snip...
        __vtop4_x86_64: Can't get a valid pgd.
        calc_kaslr_offset: failed to calculate kaslr_offset and phys_base; default to 0
        __vtop4_x86_64: Can't get a valid pgd.
        readmem: Can't convert a virtual address(ffffffff82fce960) to physical address.
        readmem: type_addr: 0, addr:ffffffff82fce960, size:1024
        cpu_online_mask_init: Can't read cpu_online_mask memory.

        makedumpfile Failed.

    This is because 5-level paging support has not been done yet for
    sadump; the work of the 5-level paging support was done by the commit
    30a3214a7193e94c551c0cebda5918a72a35c589 (PATCH 4/4 arch/x86_64: Add
    5-level paging support) but that was focused on the core part only.

    Having said that, most of things has already been finished in the
    commit. What needs to be newly added for sadump is just how to check
    if 5-level paging is enabled for a given memory dump.

    For that purpose, let's refer to CR4.LA57, bit 12 of CR4, representing
    whether 5-level paging is enabled or not. We can do this because
    memory dumps collected by sadump have SMRAM as note information and
    they include CR4 together with the other control registers.

    Signed-off-by: HATAYAMA Daisuke <d.hatayama@fujitsu.com>

Signed-off-by: Pingfan Liu <piliu@redhat.com>
2023-04-12 11:25:10 +08:00
.gitignore Release 2.0.26-1 2023-04-11 10:22:55 +08:00
60-kdump.install Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
98-kexec.rules Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
98-kexec.rules.ppc64 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-early-kdump-module-setup.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-early-kdump.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-fadump-init-fadump.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-fadump-module-setup.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-capture.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-emergency.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-emergency.target Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-error-handler.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump-error-handler.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-kdump.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
dracut-module-setup.sh Auto sync2gitlab import of kexec-tools-2.0.25-5.el8.src.rpm 2023-01-20 10:15:07 +00:00
dracut-monitor_dd_progress Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
early-kdump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
fadump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
gating.yaml Bring gating.yaml over from Brew dist-git 2023-03-10 10:47:36 -08:00
gen-kdump-conf.sh Auto sync2gitlab import of kexec-tools-2.0.25-3.el8.src.rpm 2022-12-13 06:13:47 +00:00
kdump-dep-generator.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-in-cluster-environment.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-lib-initramfs.sh Auto sync2gitlab import of kexec-tools-2.0.25-5.el8.src.rpm 2023-01-20 10:15:07 +00:00
kdump-lib.sh Auto sync2gitlab import of kexec-tools-2.0.25-5.el8.src.rpm 2023-01-20 10:15:07 +00:00
kdump-logger.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-migrate-action.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-restart.sh Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump-udev-throttler Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump.conf.5 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump.service Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kdump.sysconfig Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.aarch64 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.i386 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.ppc64 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.ppc64le Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdump.sysconfig.s390x sysconfig: add zfcp.allow_lun_scan to KDUMP_COMMANDLINE_REMOVE on s390 2023-03-15 18:24:55 +08:00
kdump.sysconfig.x86_64 Auto sync2gitlab import of kexec-tools-2.0.24-3.el8.src.rpm 2022-06-16 04:49:01 +00:00
kdumpctl Auto sync2gitlab import of kexec-tools-2.0.25-5.el8.src.rpm 2023-01-20 10:15:07 +00:00
kdumpctl.8 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kexec-kdump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
kexec-tools-2.0.26-makedumpfile-sadump-fix-failure-of-reading-memory-when-5-le.patch sadump: fix failure of reading memory when 5-level paging is enabled 2023-04-12 11:25:10 +08:00
kexec-tools.spec sadump: fix failure of reading memory when 5-level paging is enabled 2023-04-12 11:25:10 +08:00
live-image-kdump-howto.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
mkdumprd Auto sync2gitlab import of kexec-tools-2.0.25-2.el8.src.rpm 2022-10-23 06:11:17 +00:00
mkdumprd.8 Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
mkfadumprd Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
rhelonly-kexec-tools-2.0.16-koji-build-fail-workaround.patch Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
rhelonly-kexec-tools-2.0.18-eppic-fix-issues-with-hardening-flags.patch Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00
rhelonly-kexec-tools-2.0.20-makedumpfile-arm64-Add-support-for-ARMv8.2-LVA-52-bi.patch Rebase makedumpfile to 1.7.2 2023-04-04 12:35:43 +08:00
sources Release 2.0.26-1 2023-04-11 10:22:55 +08:00
supported-kdump-targets.txt Auto sync2gitlab import of kexec-tools-2.0.20-68.el8.src.rpm 2022-05-26 10:04:08 -04:00