Add support for kernels compiled with CONFIG_EFI_ZBOOT
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned | ||
grub2-unsigned (Ubuntu) |
Fix Released
|
Medium
|
Mate Kukri | ||
Focal |
Invalid
|
Undecided
|
Mate Kukri | ||
Jammy |
Invalid
|
Undecided
|
Mate Kukri | ||
Lunar |
Invalid
|
Undecided
|
Mate Kukri | ||
linux (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Jammy |
Invalid
|
Undecided
|
Unassigned | ||
Lunar |
Invalid
|
Undecided
|
Unassigned |
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/
if (lh->magic != GRUB_LINUX_
return grub_error(
This will allow any EFI binary to be run using the linux command.
[Test plan]
* check that grub and EFI based ARM64 machines boot
* check that MAAS deployment works
[Where problems could occur]
* Non-EFI bootloaders want to boot with regular vmlinuz.gz. If one is using piboot, u-boot, abootimg likely one still wants to build Image.gz and have CONFIG_EFI_ZBOOT disabled.
affects: | grub2 (Ubuntu) → grub2-unsigned (Ubuntu) |
description: | updated |
tags: | added: patch |
description: | updated |
description: | updated |
Changed in grub2-unsigned (Ubuntu): | |
assignee: | nobody → Mate Kukri (mkukri) |
Changed in grub2-unsigned (Ubuntu Focal): | |
assignee: | nobody → Mate Kukri (mkukri) |
Changed in grub2-unsigned (Ubuntu Jammy): | |
assignee: | nobody → Mate Kukri (mkukri) |
Changed in grub2-unsigned (Ubuntu Lunar): | |
assignee: | nobody → Mate Kukri (mkukri) |
tags: | removed: foundations-todo |
See upstream patch arm64/linux: Remove magic number header field check")
69edb3120560 ("loader/
by Ard Biesheuvel