[Bug 2002226] [NEW] Support for kernels compiled with CONFIG_EFI_ZBOOT

Heinrich Schuchardt 2002226 at bugs.launchpad.net
Sat Jan 7 22:12:00 UTC 2023


Public bug reported:

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.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: foundations-todo

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

Title:
  Support for kernels compiled with CONFIG_EFI_ZBOOT

Status in grub2 package in Ubuntu:
  New

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2002226/+subscriptions




More information about the foundations-bugs mailing list