[Bug 2002226] Re: Support for kernels compiled with CONFIG_EFI_ZBOOT
Julian Andres Klode
2002226 at bugs.launchpad.net
Fri Feb 3 12:33:40 UTC 2023
I'm not sure this is correct, fwiw, we do not use the upstream arm64
loader but the rhboot loader, which calls into the kernel using just:
hf = (handover_func)((char *)kernel_addr + handover_offset + offset);
hf (grub_efi_image_handle, grub_efi_system_table, kernel_params);
I see it got merged in https://github.com/rhboot/grub2/commit/71d05e4b19d62dc35e79c92732b5405e6bd24b71 but I'm not sure if we need any other patches too.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2-unsigned in Ubuntu.
https://bugs.launchpad.net/bugs/2002226
Title:
Support for kernels compiled with CONFIG_EFI_ZBOOT
Status in grub2-unsigned package in Ubuntu:
New
Bug description:
[Impact]
Arm64 kernels compiled with CONFIG_EFI_ZBOOT=y don't use the ARM64_IMAGE_MAGIC ('ARM\x64') but LINUX_PE_MAGIC (0x818223cd) in the PE Header. Our GRUB fails to boot such a kernel.
We should eliminate the following check:
grub-core/loader/efi/linux.c:75:
if (lh->magic != GRUB_LINUX_ARCH_MAGIC_SIGNATURE)
return grub_error(GRUB_ERR_BAD_OS, "invalid magic number");
This will allow any EFI binary to be run using the linux command.
[Test plan]
TBD
[Where problems could occur]
TBD
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/2002226/+subscriptions
More information about the foundations-bugs
mailing list