** Description changed:

+ [ Impact ]
+ 
+  * kexec-tools is broken on riscv64 because of RISC-V kernels being built 
with EFI_ZBOOT, which the tool does not support currently
+  * Other RISC-V specific-bugs have been identified upstream on kexec-tools
+  * Upstream recently patched those bugs and introduced ZBOOT support, which 
would fix the tool in Ubuntu
+ 
+ 
+ [ Test Plan ]
+ 
+  * kexec-tools is consumed by kdump-tools, which provides a nice way to
+ test it. Installing both, rebooting and running `systemctl status kdump-
+ tools` should show working status. Instead, it currently shows:
+ 
+ Aug 18 16:54:50 xrv64 systemd[1]: Starting kdump-tools.service - Kernel crash 
dump capture service...
+ Aug 18 16:54:52 xrv64 kdump-tools[735]: Starting kdump-tools:
+ Aug 18 16:54:52 xrv64 kdump-tools[796]:  * Creating symlink 
/var/lib/kdump/vmlinuz
+ Aug 18 16:54:54 xrv64 kdump-tools[886]: kdump-tools: Generating 
/var/lib/kdump/initrd.img-7.0.0-14-generic
+ Aug 18 16:56:13 xrv64 kdump-tools[796]:  * Creating symlink 
/var/lib/kdump/initrd.img
+ Aug 18 16:56:14 xrv64 kdump-tools[4440]: Warning: No dtb provided, using 
/sys/firmware/fdt
+ Aug 18 16:56:14 xrv64 kdump-tools[4440]: Cannot determine the file type of 
/var/lib/kdump/vmlinuz
+ Aug 18 16:56:14 xrv64 kdump-tools[796]:  * failed to load kdump kernel
+ Aug 18 16:56:14 xrv64 systemd[1]: Finished kdump-tools.service - Kernel crash 
dump capture service.
+ 
+ * Re-testing with the current patches shows:
+ 
+ Aug 20 14:44:31 ubuntu systemd[1]: Starting kdump-tools.service - Kernel 
crash dump capture service...
+ Aug 20 14:44:34 ubuntu kdump-tools[867]: Starting kdump-tools:
+ Aug 20 14:44:34 ubuntu kdump-tools[880]: * Creating symlink 
/var/lib/kdump/vmlinuz
+ Aug 20 14:44:34 ubuntu kdump-tools[880]: * Creating symlink 
/var/lib/kdump/initrd.img
+ Aug 20 14:44:35 ubuntu kdump-tools[970]: Warning: No dtb provided, using 
/sys/firmware/fdt
+ Aug 20 14:44:40 ubuntu kdump-tools[880]: * loaded kdump kernel
+ Aug 20 14:44:41 ubuntu kdump-tools[1148]: loaded kdump kernel
+ Aug 20 14:44:41 ubuntu systemd[1]: Finished kdump-tools.service - Kernel 
crash dump capture service.
+ 
+ 
+ [ Where problems could occur ]
+ 
+  * kexec-tools is not risc-v specific, so the change could be affecting
+ another architecture badly, this needs to be retested on other
+ architectures
+ 
+  * the tool was broken before on risc-v, so if something goes wrong it
+ could still be broken on risc-v after the update
+ 
+ [ Other Info ]
+ 
+ Original bug report:
+ 
  Our RISC-V kernels are built with CONFIG_EFI_ZBOOT=y but our version of
  kexec-tools lacks support for this file format.
  
  Please, add upstream patch
  771e89dc104e ("RISC-V: add kexec_load support for vmlinuz")
  
- 
  Best regards
  
  Heinrich

** Description changed:

  [ Impact ]
  
-  * kexec-tools is broken on riscv64 because of RISC-V kernels being built 
with EFI_ZBOOT, which the tool does not support currently
-  * Other RISC-V specific-bugs have been identified upstream on kexec-tools
-  * Upstream recently patched those bugs and introduced ZBOOT support, which 
would fix the tool in Ubuntu
+  * kexec-tools is broken on riscv64 because of RISC-V kernels being
+ built with EFI_ZBOOT, which the tool does not support currently
  
+  * Other RISC-V specific-bugs have been identified upstream on kexec-
+ tools
+ 
+  * Upstream recently patched those bugs and introduced ZBOOT support,
+ which would fix the tool in Ubuntu
  
  [ Test Plan ]
  
-  * kexec-tools is consumed by kdump-tools, which provides a nice way to
+  * kexec-tools is consumed by kdump-tools, which provides a nice way to
  test it. Installing both, rebooting and running `systemctl status kdump-
  tools` should show working status. Instead, it currently shows:
  
  Aug 18 16:54:50 xrv64 systemd[1]: Starting kdump-tools.service - Kernel crash 
dump capture service...
  Aug 18 16:54:52 xrv64 kdump-tools[735]: Starting kdump-tools:
  Aug 18 16:54:52 xrv64 kdump-tools[796]:  * Creating symlink 
/var/lib/kdump/vmlinuz
  Aug 18 16:54:54 xrv64 kdump-tools[886]: kdump-tools: Generating 
/var/lib/kdump/initrd.img-7.0.0-14-generic
  Aug 18 16:56:13 xrv64 kdump-tools[796]:  * Creating symlink 
/var/lib/kdump/initrd.img
  Aug 18 16:56:14 xrv64 kdump-tools[4440]: Warning: No dtb provided, using 
/sys/firmware/fdt
  Aug 18 16:56:14 xrv64 kdump-tools[4440]: Cannot determine the file type of 
/var/lib/kdump/vmlinuz
  Aug 18 16:56:14 xrv64 kdump-tools[796]:  * failed to load kdump kernel
  Aug 18 16:56:14 xrv64 systemd[1]: Finished kdump-tools.service - Kernel crash 
dump capture service.
  
  * Re-testing with the current patches shows:
  
  Aug 20 14:44:31 ubuntu systemd[1]: Starting kdump-tools.service - Kernel 
crash dump capture service...
  Aug 20 14:44:34 ubuntu kdump-tools[867]: Starting kdump-tools:
  Aug 20 14:44:34 ubuntu kdump-tools[880]: * Creating symlink 
/var/lib/kdump/vmlinuz
  Aug 20 14:44:34 ubuntu kdump-tools[880]: * Creating symlink 
/var/lib/kdump/initrd.img
  Aug 20 14:44:35 ubuntu kdump-tools[970]: Warning: No dtb provided, using 
/sys/firmware/fdt
  Aug 20 14:44:40 ubuntu kdump-tools[880]: * loaded kdump kernel
  Aug 20 14:44:41 ubuntu kdump-tools[1148]: loaded kdump kernel
  Aug 20 14:44:41 ubuntu systemd[1]: Finished kdump-tools.service - Kernel 
crash dump capture service.
  
- 
  [ Where problems could occur ]
  
-  * kexec-tools is not risc-v specific, so the change could be affecting
+  * kexec-tools is not RISC-V specific, so the change could be affecting
  another architecture badly, this needs to be retested on other
  architectures
  
-  * the tool was broken before on risc-v, so if something goes wrong it
- could still be broken on risc-v after the update
+  * The tool was broken before on RISC-V, so if something goes wrong it
+ could still be broken on RISC-V after the update
  
  [ Other Info ]
  
  Original bug report:
  
  Our RISC-V kernels are built with CONFIG_EFI_ZBOOT=y but our version of
  kexec-tools lacks support for this file format.
  
  Please, add upstream patch
  771e89dc104e ("RISC-V: add kexec_load support for vmlinuz")
  
  Best regards
  
  Heinrich

** Changed in: kexec-tools (Ubuntu Resolute)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2163858

Title:
  Missing RISC-V kexec support for EFI_ZBOOT kernel

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kexec-tools/+bug/2163858/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to