[Bug 1851190] Re: Ubuntu 18.04: kexec-tool shows "kexec: elfcorehdr doesn't fit cells-size" if crashkernel reserved beyond 4GB
Prabhakar Kushwaha
1851190 at bugs.launchpad.net
Mon Apr 13 07:51:55 UTC 2020
I verified using SLE-15-SP2-RC1. I can see it has updated grub version i.e. GNU GRUB version 2.04.
With this i am not seeing any error. Please see below, crash kernel has been allocated beyond 4G system memory and I am not seeing any error during kexec -p
localhost:~ # dmesg | grep crash
[ 0.000000] crashkernel reserved: 0x0000000b81200000 - 0x0000000c81200000 (4096 MB)
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/Image-5.3.18-10-default root=UUID=577239a9-5a1b-49a6-b3c1-67fc1ce83368 console=ttyAMA0 ip=dhcp isofrom_device=nfs:10.112.36.118:/opt/shared/isos/suse/SLE-15-SP2 isofrom_system=/SLE-15-SP2-Full-aarch64-RC1-Media1.iso mitigations=auto crashkernel=4G at 0xb81200000 nowatchdog
localhost:~ # kexec -v
kexec-tools 2.0.20
localhost:~ #
localhost:~ # kexec -p -i /boot/Image-`uname -r` --initrd=/boot/initrd-`uname -r`
localhost:~ #
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2-signed in Ubuntu.
https://bugs.launchpad.net/bugs/1851190
Title:
Ubuntu 18.04: kexec-tool shows "kexec: elfcorehdr doesn't fit cells-
size" if crashkernel reserved beyond 4GB
Status in grub2 package in Ubuntu:
Fix Released
Status in grub2-signed package in Ubuntu:
Fix Released
Status in grub2 source package in Bionic:
Fix Released
Status in grub2-signed source package in Bionic:
Fix Released
Status in grub2 source package in Disco:
Fix Released
Status in grub2-signed source package in Disco:
Fix Released
Status in grub2 source package in Eoan:
Fix Released
Status in grub2-signed source package in Eoan:
Fix Released
Status in grub2 source package in Focal:
Fix Released
Status in grub2-signed source package in Focal:
Fix Released
Bug description:
[Impact]
On arm64, kexec throws following errors if crashkernel is reserved beyond 4GB of system memory.
[Test Case]
Create an arm64 guest w/ say 6GiB of memory.
Add crashkernel=1G at 4G to kernel boot args
$ kexec -p /boot/vmlinuz-`uname -r` --initrd=/boot/initrd.img-`uname
-r` --reuse-cmdline
$ kexec: elfcorehdr doesn't fit cells-size.
$ kexec: setup_2nd_dtb failed.
$ kexec: load failed.
$ Cannot load /boot/vmlinuz-5.4.0-rc4+
[Fix]
Backport the following upstream commits:
347210a5d efi/fdt: Set address/size cells to 2 for empty tree
e93fd6b77 fdt: Move prop_entry_size to fdt.h
[Regression Risk]
Changes are restricted to efi/fdt code in GRUB, so regressions would be most likely on ARM platforms, specifically those that boot using ACPI (mostly servers).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1851190/+subscriptions
More information about the foundations-bugs
mailing list