Go to file
Kazuhito Hagio a0db00d575 makedumpfile: Fix inconsistent return value from find_vmemmap()
Backport from the makedumpfile devel branch in upstream.

commit 8425342a52b23d462f10bceeeb1c8a3a43d56bf0
Author: Kazuhito Hagio <k-hagio@ab.jp.nec.com>
Date:   Fri Sep 6 09:50:34 2019 -0400

    [PATCH] Fix inconsistent return value from find_vmemmap()

    When -e option is given, the find_vmemmap() returns FAILED(1) if
    it failed on x86_64, but on architectures other than that, it is
    stub_false() and returns FALSE(0).

              if (info->flag_excludevm) {
                      if (find_vmemmap() == FAILED) {
                              ERRMSG("Can't find vmemmap pages\n");

      #define find_vmemmap()          stub_false()

    As a result, on the architectures other than x86_64, the -e option
    does some unnecessary processing with no effect, and marks the dump
    DUMP_DH_EXCLUDED_VMEMMAP unexpectedly.

    Also, the functions for the -e option return COMPLETED or FAILED,
    which are for command return value, not for function return value.

    So let's fix the issue by following the common style that returns
    TRUE or FALSE, and avoid confusion.

    Signed-off-by: Kazuhito Hagio <k-hagio@ab.jp.nec.com>

Signed-off-by: Kazuhito Hagio <k-hagio@ab.jp.nec.com>
Acked-by: Kairui Song <kasong@redhat.com>
2019-09-20 16:37:44 +08:00
.gitignore
98-kexec.rules
98-kexec.rules.ppc64
dracut-early-kdump-module-setup.sh
dracut-early-kdump.sh
dracut-kdump-capture.service dracut-kdump-capture.service: Use OnFailureJobMode instead of deprecated OnFailureIsolate 2019-06-14 09:44:09 +08:00
dracut-kdump-emergency.service
dracut-kdump-emergency.target
dracut-kdump-error-handler.service
dracut-kdump-error-handler.sh
dracut-kdump.sh Get rid of duplicated strip_comments when reading config 2019-05-20 16:56:28 +08:00
dracut-module-setup.sh dracut-module-setup: fix bond ifcfg processing 2019-09-02 17:05:43 +08:00
dracut-monitor_dd_progress
early-kdump-howto.txt earlykdump: provide a prompt message after the rebuilding of kdump initramfs. 2019-05-20 16:56:19 +08:00
fadump-howto.txt
kdump-dep-generator.sh
kdump-in-cluster-environment.txt
kdump-lib-initramfs.sh Get rid of duplicated strip_comments when reading config 2019-05-20 16:56:28 +08:00
kdump-lib.sh Get rid of duplicated strip_comments when reading config 2019-05-20 16:56:28 +08:00
kdump-udev-throttler
kdump.conf
kdump.conf.5
kdump.service
kdump.sysconfig Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.aarch64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.i386 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.ppc64le Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.s390x Disable device dump by default 2019-09-02 17:06:09 +08:00
kdump.sysconfig.x86_64 Disable device dump by default 2019-09-02 17:06:09 +08:00
kdumpctl kdumpctl: distinguish the failed reason of ssh 2019-09-02 17:06:21 +08:00
kdumpctl.8
kexec-kdump-howto.txt kexec-kdump-howto.txt: Add notes about device dump 2019-09-02 17:06:16 +08:00
kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch x86: Fix broken multiboot2 buliding for i386 2019-08-02 11:24:03 +08:00
kexec-tools-2.0.20-makedumpfile-Do-not-proceed-when-get_num_dumpable_cyclic-fails.patch makedumpfile: Do not proceed when get_num_dumpable_cyclic() fails 2019-08-06 11:14:40 +08:00
kexec-tools-2.0.20-makedumpfile-Fix-exclusion-range-in-find_vmemmap_pages.patch makedumpfile: Fix exclusion range in find_vmemmap_pages() 2019-09-20 16:37:39 +08:00
kexec-tools-2.0.20-makedumpfile-Fix-inconsistent-return-value-from-find_vmemmap.patch makedumpfile: Fix inconsistent return value from find_vmemmap() 2019-09-20 16:37:44 +08:00
kexec-tools-2.0.20-makedumpfile-Increase-SECTION_MAP_LAST_BIT-to-4.patch makedumpfile: Increase SECTION_MAP_LAST_BIT to 4 2019-08-06 11:15:14 +08:00
kexec-tools-2.0.20-makedumpfile-x86_64-Fix-incorrect-exclusion-by-e-option.patch makedumpfile: x86_64: Fix incorrect exclusion by -e option with KASLR 2019-09-20 16:37:23 +08:00
kexec-tools.spec makedumpfile: Fix inconsistent return value from find_vmemmap() 2019-09-20 16:37:44 +08:00
live-image-kdump-howto.txt
mkdumprd Get rid of duplicated strip_comments when reading config 2019-05-20 16:56:28 +08:00
mkdumprd.8
README
sources Release 2.0.20-1 2019-07-31 15:54:46 +08:00
zanata-notes.txt

Adding a patch to kexec-tools
=============================
There is a mailing list kexec@lists.fedoraproject.org where all the dicussion
related to fedora kexec-tools happen. All the patches are posted there for
inclusion and committed to kexec-tools after review.

So if you want your patches to be included in fedora kexec-tools package,
post these to kexec@lists.fedoraproject.org.

One can subscribe to list and browse through archives here.

https://admin.fedoraproject.org/mailman/listinfo/kexec