Repository navigation
grub update - #640
Draft
piyush-jena wants to merge 2 commits into
Draft
grub update#640piyush-jena wants to merge 2 commits into
piyush-jena wants to merge 2 commits into
Conversation
Release .23 was never published separately. Its patches (1092-1095) ship in .24. Signed-off-by: Piyush Jena <jepiyush@amazon.com>
"grub,6" denotes a build that includes fixes for the following CVEs: - CVE-2025-54770 - CVE-2025-54771 - CVE-2025-61661 - CVE-2025-61662 - CVE-2025-61663 - CVE-2025-61664 Signed-off-by: Piyush Jena <jepiyush@amazon.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
This PR moves grub from AL2023's grub2-2.06-61.amzn2023.0.18 source to .0.24, the latest published. AL added 19 patches (1077-1095) and dropped none.
SBAT moves from
grub,5togrub,6. Shim is unchanged: shim 16.1 enforces at mostgrub,5, so neither the old nor the new grub is revoked, and rollback and downgrade keep working.Testing done:
AMIs were registered
uefi-preferredwith local Secure Boot keys, in us-west-2.Built kernel-kit for x86_64 and aarch64, and built the aws-k8s-1.31, aws-k8s-1.33 and aws-k8s-1.36 AMIs (both arches), vmware-dev (OVA) and metal-dev (raw).
For every image (aws-k8s-1.31/1.33/1.36, vmware-dev, metal-dev): every section of the image's
grubx64.efi/grubaa64.efiexcept.pubkeyequals the RPM's. For each AMI, the host's EFI-SYSTEM sha256 equals its AMI snapshot's. BIOS-BOOT differs from the RPM'score.imgonly in the bytesgrub-bios-setupwrites:7 differing bytes, all in [1,512] or [529,532].UEFI Secure Boot, baseline + host checks,
Functional: PASS / Clean logs: PASSon all 6 (m5.large x86_64, m6g.large aarch64; aws-k8s-1.31 kernel 6.1, 1.33 kernel 6.12, 1.36 kernel 6.18). Example, aws-k8s-1.36 x86_64:SbatLevelRT is unchanged from the .18 AMI on both arches (
sbat,1,2024040900 shim,4 grub,4 grub.peimage,2). Loader time, old .18 vs new .24 on aws-k8s-1.36: x86_64 691ms vs 678ms, aarch64 434ms vs 394ms.Legacy BIOS with
uefi-preferred, m4.large (Xen), aws-k8s-1.31/1.33/1.36 x86_64, allPASS / PASS:CurrentInstanceBootModelegacy-bios,/sys/firmware/efiabsent, BIOS-BOOT equal to the AMI snapshot, SBATgrub,6. The console shows grub booting:Booting `Bottlerocket OS 1.69.1'.In-place update from the .18 AMI (aws-k8s-1.36, m5 / m6g / m4 BIOS, all PASS). The 1.69.0 host (old grub) updated to 1.69.1 (this change) and came back healthy. EFI-SYSTEM and BIOS-BOOT were unchanged, so the old grub booted the new release.
A/B under the new grub (aws-k8s-1.36 AMI with .24, m5 / m6g / m4 BIOS, all PASS). Each step booted the expected version, healthy:
updog updateto 1.69.2;signpost rollback-to-inactiveback to 1.69.1;From step 4 (x86_64):
EFI-SYSTEM and BIOS-BOOT stayed constant across all five steps.
metal-dev under QEMU (m8i.large nested virt, QEMU 11.1.3, edk2-ovmf with the local keys enrolled), x86_64:
BdsDxe: starting Boot0002 …,Linux version 6.1.190 …,Command line: BOOT_IMAGE=/vmlinuz …,Secure boot enabled,Welcome to Bottlerocket OS 1.69.1 (metal-dev)!and the login prompt. Boot did not reach multi-user, because the test image had nonet.toml.BdsDxe: failed to load Boot0002 … Access Denied -- rejected probably by Secure Boot.pesign: "No signatures found."), grub refuses it and never printsLinux version:EFI_MEMORY_ATTRIBUTE_PROTOCOL, and every kit kernel setsNX_COMPAT, so patch 1092's NX path is likely exercised. This is inferred; grub doesn't log it.Pending tests:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.