Bug 1933970 - kdump: kexec: failed to load kdump kernel
Summary: kdump: kexec: failed to load kdump kernel
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kexec-tools
Version: 34
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kairui Song
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-02 06:56 UTC by Martin Pitt
Modified: 2021-05-17 12:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-17 12:24:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Martin Pitt 2021-03-02 06:56:06 UTC
Description of problem: kdump is broken in Fedora 34. It works fine in 33 and RHEL 8.3/8.4.

This was spotted by cockpit's integration tests in https://github.com/cockpit-project/cockpit/pull/15350


Version-Release number of selected component (if applicable):

kexec-tools-2.0.21-5.fc34.x86_64
dracut-051-1.fc34.1.x86_64
kernel-core-5.11.1-300.fc34.x86_64


How reproducible: Always


Steps to Reproduce:
1. Enable crashkernel=: In /etc/default/grub, append crashkernel=256M to GRUB_CMDLINE_LINUX
2. grub2-mkconfig -o /boot/grub2/grub.cfg
3. mkdir /var/crash
4. reboot
5. systemctl start kdump

Actual results:

× kdump.service - Crash recovery kernel arming
     Loaded: loaded (/usr/lib/systemd/system/kdump.service; disabled; vendor preset: disabled)
     Active: failed (Result: exit-code) since Tue 2021-03-02 06:52:33 UTC; 2min 54s ago
    Process: 1807 ExecStart=/usr/bin/kdumpctl start (code=exited, status=1/FAILURE)
   Main PID: 1807 (code=exited, status=1/FAILURE)
        CPU: 7.720s

Mar 02 06:52:27 m1.cockpit.lan dracut[2071]: *** Stripping files ***
Mar 02 06:52:27 m1.cockpit.lan dracut[2071]: *** Stripping files done ***
Mar 02 06:52:27 m1.cockpit.lan dracut[2071]: *** Creating image file '/boot/initramfs-5.11.1-300.fc34.x86_64kdump.img' ***
Mar 02 06:52:33 m1.cockpit.lan dracut[2071]: *** Creating initramfs image file '/boot/initramfs-5.11.1-300.fc34.x86_64kdump.img' done ***
Mar 02 06:52:33 m1.cockpit.lan kdumpctl[1809]: kdump: kexec: failed to load kdump kernel
Mar 02 06:52:33 m1.cockpit.lan kdumpctl[1809]: kdump: Starting kdump: [FAILED]
Mar 02 06:52:33 m1.cockpit.lan systemd[1]: kdump.service: Main process exited, code=exited, status=1/FAILURE
Mar 02 06:52:33 m1.cockpit.lan systemd[1]: kdump.service: Failed with result 'exit-code'.
Mar 02 06:52:33 m1.cockpit.lan systemd[1]: Failed to start Crash recovery kernel arming.
Mar 02 06:52:33 m1.cockpit.lan systemd[1]: kdump.service: Consumed 7.720s CPU time.


Expected results: kdump.service starts


Additional info:

Comment 1 Martin Pitt 2021-03-02 15:17:11 UTC
Possibly related to this SELinux violation?


audit: type=1400 audit(1614690905.796:392): avc:  denied  { confidentiality } for  pid=4323 comm="kexec" lockdown_reason="/proc/kcore access" scontext=system_u:system_r:kdump_t:s0 tcontext=system_u:system_r:kdump_t:s0 tclass=lockdown permissive=0

Comment 2 Matej Marušák 2021-04-05 09:08:29 UTC
When this issue was opened, `/sys/kernel/kexec_crash_size` would contain `256`. Right now it is `0` and still `systemctl start kdump` fails.
I am not sure if this is different issue or the same one hitting the system just slightly differently so I am just adding it here.

Here I provide difference in packages between the image on which this issue was originally reported and this new one:
Removed:
  grub2-tools-efi (1:2.04-39.fc34)
  grub2-tools-extra (1:2.04-39.fc34)
  linux-firmware (20210208-118.fc34)
  nmap-ncat (3:7.80-11.fc34)
  python3-syspurpose (1.29.7-1.fc34)

Added:
  iptables-legacy-libs (1.8.7-6.fc34)
  julietaula-montserrat-base-web-fonts (1:7.210-4.fc34)
  julietaula-montserrat-fonts-common (1:7.210-4.fc34)
  libpmemobj (1.10-3.fc34)
  libretls (3.3.1p1-1.fc34)
  netcat (1.217-3.fc34)

Changed:
  PackageKit (1.2.2-4.fc34 -> 1.2.3-1.fc34)
  PackageKit-glib (1.2.2-4.fc34 -> 1.2.3-1.fc34)
  acl (2.3.0-1.fc34 -> 2.3.1-1.fc34)
  adcli (0.9.1-2.fc34 -> 0.9.1-3.fc34)
  adwaita-cursor-theme (3.38.0-2.fc34 -> 40.0~rc-1.fc34)
  adwaita-icon-theme (3.38.0-2.fc34 -> 40.0~rc-1.fc34)
  at-spi2-core (2.39.90.1-1.fc34 -> 2.40.0-1.fc34)
  attr (2.5.0-1.fc34 -> 2.5.1-1.fc34)
  autofs (1:5.1.7-2.fc34 -> 1:5.1.7-10.fc34)
  binutils (2.35.1-40.fc34 -> 2.35.1-41.fc34)
  binutils-gold (2.35.1-40.fc34 -> 2.35.1-41.fc34)
  bluez-libs (5.56-1.fc34 -> 5.56-4.fc34)
  btrfs-progs (5.11-1.fc34 -> 5.11.1-1.fc34)
  cairo (1.17.4-2.fc34 -> 1.17.4-3.fc34)
  cairo-gobject (1.17.4-2.fc34 -> 1.17.4-3.fc34)
  clevis (16-1.fc34 -> 16-2.fc34)
  clevis-luks (16-1.fc34 -> 16-2.fc34)
  cockpit (239-1.fc34 -> 240-1.fc34)
  cockpit-bridge (239-1.fc34 -> 240-1.fc34)
  cockpit-system (239-1.fc34 -> 240-1.fc34)
  cockpit-ws (239-1.fc34 -> 240-1.fc34)
  containers-common (1:1.2.1-28.dev.git1b813f8.fc34 -> 4:1-13.fc34)
  coreutils (8.32-19.fc34 -> 8.32-21.fc34)
  coreutils-common (8.32-19.fc34 -> 8.32-21.fc34)
  cpio (2.13-9.fc34 -> 2.13-10.fc34)
  crun (0.18-1.fc34 -> 0.18-4.fc34)
  cups-libs (1:2.3.3op2-1.fc34 -> 1:2.3.3op2-3.fc34)
  curl (7.75.0-2.fc34 -> 7.75.0-3.fc34)
  dbus-broker (27-2.fc34 -> 28-3.fc34)
  dconf (0.39.1-1.fc34 -> 0.40.0-1.fc34)
  dracut (051-1.fc34.1 -> 053-1.fc34)
  dracut-config-generic (051-1.fc34.1 -> 053-1.fc34)
  dracut-network (051-1.fc34.1 -> 053-1.fc34)
  dracut-squash (051-1.fc34.1 -> 053-1.fc34)
  fedora-logos (33.0.0-2.fc34 -> 34.0.1-1.fc34)
  fedora-logos-httpd (33.0.0-2.fc34 -> 34.0.1-1.fc34)
  fedora-release-cloud (34-0.13 -> 34-0.14)
  fedora-release-common (34-0.13 -> 34-0.14)
  fedora-release-identity-cloud (34-0.13 -> 34-0.14)
  fontconfig (2.13.93-5.fc34 -> 2.13.93-6.fc34)
  gdk-pixbuf2 (2.42.2-2.fc34 -> 2.42.4-2.fc34)
  gdk-pixbuf2-modules (2.42.2-2.fc34 -> 2.42.4-2.fc34)
  glib-networking (2.68~alpha-1.fc34 -> 2.68.0-1.fc34)
  glib2 (2.67.5-1.fc34 -> 2.68.0-2.fc34)
  glibc (2.33-4.fc34 -> 2.33-5.fc34)
  glibc-all-langpacks (2.33-4.fc34 -> 2.33-5.fc34)
  glibc-common (2.33-4.fc34 -> 2.33-5.fc34)
  glibc-doc (2.33-4.fc34 -> 2.33-5.fc34)
  glibc-langpack-en (2.33-4.fc34 -> 2.33-5.fc34)
  gnutls (3.7.0-4.fc34 -> 3.7.1-2.fc34)
  gnutls-dane (3.7.0-4.fc34 -> 3.7.1-2.fc34)
  gnutls-utils (3.7.0-4.fc34 -> 3.7.1-2.fc34)
  gobject-introspection (1.66.1-3.fc34 -> 1.68.0-1.fc34)
  groff-base (1.22.4-6.fc34 -> 1.22.4-7.fc34)
  grub2-common (1:2.04-39.fc34 -> 1:2.06~rc1-3.fc34)
  grub2-pc (1:2.04-39.fc34 -> 1:2.06~rc1-3.fc34)
  grub2-pc-modules (1:2.04-39.fc34 -> 1:2.06~rc1-3.fc34)
  grub2-tools (1:2.04-39.fc34 -> 1:2.06~rc1-3.fc34)
  grub2-tools-minimal (1:2.04-39.fc34 -> 1:2.06~rc1-3.fc34)
  gsettings-desktop-schemas (40~beta-1.fc34 -> 40.0-1.fc34)
  gstreamer1 (1.18.2-2.fc34 -> 1.18.4-1.fc34)
  gstreamer1-plugins-base (1.18.2-2.fc34 -> 1.18.4-1.fc34)
  gtk-update-icon-cache (3.24.27-1.fc34 -> 3.24.28-1.fc34)
  gtk3 (3.24.27-1.fc34 -> 3.24.28-1.fc34)
  iptables-libs (1.8.7-3.fc34 -> 1.8.7-6.fc34)
  iptables-nft (1.8.7-3.fc34 -> 1.8.7-6.fc34)
  iputils (20210202-1.fc34 -> 20210202-2.fc34)
  kernel-core (5.11.6-300.fc34 -> 5.11.10-300.fc34)
  kernel-tools (5.11.0-1.fc34 -> 5.11.7-300.fc34)
  kernel-tools-libs (5.11.0-1.fc34 -> 5.11.7-300.fc34)
  libacl (2.3.0-1.fc34 -> 2.3.1-1.fc34)
  libassuan (2.5.4-2.fc34 -> 2.5.5-1.fc34)
  libattr (2.5.0-1.fc34 -> 2.5.1-1.fc34)
  libcurl (7.75.0-2.fc34 -> 7.75.0-3.fc34)
  libdnf-plugin-subscription-manager (1.29.7-1.fc34 -> 1.29.9-1.fc34)
  libgcc (11.0.0-0.20.fc34 -> 11.0.1-0.3.fc34)
  libgcrypt (1.9.2-1.fc34 -> 1.9.2-2.fc34)
  libgomp (11.0.0-0.20.fc34 -> 11.0.1-0.3.fc34)
  libgpg-error (1.41-2.fc34 -> 1.42-1.fc34)
  libgudev (234-2.fc34 -> 236-1.fc34)
  libjpeg-turbo (2.0.90-1.fc34 -> 2.0.90-2.fc34)
  libkcapi (1.2.0-3.fc34 -> 1.2.1-1.fc34)
  libkcapi-hmaccalc (1.2.0-3.fc34 -> 1.2.1-1.fc34)
  libldb (2.2.0-8.fc34 -> 2.3.0-1.fc34)
  libmaxminddb (1.5.0-1.fc34 -> 1.5.2-1.fc34)
  libnfsidmap (1:2.5.3-0.fc34 -> 1:2.5.3-2.rc1.fc34)
  libpng (2:1.6.37-8.fc34 -> 2:1.6.37-10.fc34)
  librados2 (2:16.1.0-0.5.snapshot.fc34 -> 2:16.1.0-1.fc34)
  librbd1 (2:16.1.0-0.5.snapshot.fc34 -> 2:16.1.0-1.fc34)
  libsmbclient (2:4.14.0-1.fc34 -> 2:4.14.2-0.fc34)
  libsoup (2.72.0-5.fc34 -> 2.72.0-6.fc34)
  libstdc++ (11.0.0-0.20.fc34 -> 11.0.1-0.3.fc34)
  libudisks2 (2.9.2-1.fc34 -> 2.9.2-2.fc34)
  libverto (0.3.1-3.fc34 -> 0.3.2-1.fc34)
  libverto-libev (0.3.1-3.fc34 -> 0.3.2-1.fc34)
  libvirt-glib (3.0.0-4.fc34 -> 4.0.0-1.fc34)
  libwbclient (2:4.14.0-1.fc34 -> 2:4.14.2-0.fc34)
  linux-firmware-whence (20210208-118.fc34 -> 20210315-119.fc34)
  lmdb-libs (0.9.28-1.fc34 -> 0.9.29-1.fc34)
  mesa-libEGL (21.0.0-1.fc34 -> 21.0.1-3.fc34)
  mesa-libGL (21.0.0-1.fc34 -> 21.0.1-3.fc34)
  mesa-libgbm (21.0.0-1.fc34 -> 21.0.1-3.fc34)
  mesa-libglapi (21.0.0-1.fc34 -> 21.0.1-3.fc34)
  mkpasswd (5.5.8-1.fc34 -> 5.5.9-1.fc34)
  mozjs78 (78.8.0-2.fc34 -> 78.9.0-1.fc34)
  nettle (3.7-3.fc34 -> 3.7.2-1.fc34)
  nfs-utils (1:2.5.3-0.fc34 -> 1:2.5.3-2.rc1.fc34)
  nspr (4.29.0-13.fc34 -> 4.30.0-1.fc34)
  nss (3.62.0-1.fc34 -> 3.63.0-1.fc34)
  nss-softokn (3.62.0-1.fc34 -> 3.63.0-1.fc34)
  nss-softokn-freebl (3.62.0-1.fc34 -> 3.63.0-1.fc34)
  nss-sysinit (3.62.0-1.fc34 -> 3.63.0-1.fc34)
  nss-tools (3.62.0-1.fc34 -> 3.63.0-1.fc34)
  nss-util (3.62.0-1.fc34 -> 3.63.0-1.fc34)
  openssl (1:1.1.1j-1.fc34 -> 1:1.1.1k-1.fc34)
  openssl-libs (1:1.1.1j-1.fc34 -> 1:1.1.1k-1.fc34)
  pango (1.48.3-1.fc34 -> 1.48.4-1.fc34)
  pcp (5.2.3-2.fc34 -> 5.2.5-2.fc34)
  pcp-conf (5.2.3-2.fc34 -> 5.2.5-2.fc34)
  pcp-libs (5.2.3-2.fc34 -> 5.2.5-2.fc34)
  pcp-selinux (5.2.3-2.fc34 -> 5.2.5-2.fc34)
  perl-IO-Socket-SSL (2.070-1.fc34 -> 2.070-2.fc34)
  python-pip-wheel (21.0.1-1.fc34 -> 21.0.1-2.fc34)
  python3-dns (2.1.0-2.fc34 -> 2.1.0-3.fc34)
  python3-gobject-base (3.38.0-3.fc34 -> 3.40.0-1.fc34)
  python3-perf (5.11.0-1.fc34 -> 5.11.7-300.fc34)
  python3-pip (21.0.1-1.fc34 -> 21.0.1-2.fc34)
  python3-pytz (2021.1-1.fc34 -> 2021.1-2.fc34)
  python3-rpm (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  python3-six (1.15.0-4.fc34 -> 1.15.0-5.fc34)
  python3-subscription-manager-rhsm (1.29.7-1.fc34 -> 1.29.9-1.fc34)
  quota (1:4.06-3.fc34 -> 1:4.06-4.fc34)
  quota-nls (1:4.06-3.fc34 -> 1:4.06-4.fc34)
  redhat-rpm-config (181-1.fc34 -> 182-1.fc34)
  rpm (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  rpm-build (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  rpm-build-libs (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  rpm-libs (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  rpm-plugin-selinux (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  rpm-plugin-systemd-inhibit (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  rpm-sign-libs (4.16.1.2-6.fc34 -> 4.16.1.3-1.fc34)
  samba-client-libs (2:4.14.0-1.fc34 -> 2:4.14.2-0.fc34)
  samba-common (2:4.14.0-1.fc34 -> 2:4.14.2-0.fc34)
  samba-common-libs (2:4.14.0-1.fc34 -> 2:4.14.2-0.fc34)
  selinux-policy (3.14.7-25.fc34 -> 3.14.7-28.fc34)
  selinux-policy-targeted (3.14.7-25.fc34 -> 3.14.7-28.fc34)
  sscg (2.6.2-3.fc34 -> 2.6.2-5.fc34)
  subscription-manager (1.29.7-1.fc34 -> 1.29.9-1.fc34)
  subscription-manager-rhsm-certificates (1.29.7-1.fc34 -> 1.29.9-1.fc34)
  systemd (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-container (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-libs (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-networkd (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-oomd-defaults (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-pam (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-rpm-macros (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  systemd-udev (248~rc2-6.fc34 -> 248~rc4-3.fc34)
  udisks2 (2.9.2-1.fc34 -> 2.9.2-2.fc34)
  udisks2-iscsi (2.9.2-1.fc34 -> 2.9.2-2.fc34)
  udisks2-lvm2 (2.9.2-1.fc34 -> 2.9.2-2.fc34)
  vim-minimal (2:8.2.2576-1.fc34 -> 2:8.2.2637-1.fc34)
  which (2.21-21.fc34 -> 2.21-24.fc34)
  whois-nls (5.5.8-1.fc34 -> 5.5.9-1.fc34)
  xen-libs (4.14.1-5.fc34 -> 4.14.1-7.fc34)
  xen-licenses (4.14.1-5.fc34 -> 4.14.1-7.fc34)
  zlib (1.2.11-24.fc34 -> 1.2.11-25.fc34)

Comment 3 Matej Marušák 2021-05-17 12:24:00 UTC
Cockpit CI cannot reproduce this anymore, so seems fixed.


Note You need to log in before you can comment on or make changes to this bug.