diff --git a/0370-mm.c-do-not-update-mem-attrs-even-if-EFI-protocol-is.patch b/0370-mm.c-do-not-update-mem-attrs-even-if-EFI-protocol-is.patch new file mode 100644 index 0000000..addad9f --- /dev/null +++ b/0370-mm.c-do-not-update-mem-attrs-even-if-EFI-protocol-is.patch @@ -0,0 +1,28 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Leo Sandoval +Date: Tue, 15 Jul 2025 14:24:05 -0600 +Subject: [PATCH] mm.c: do not update mem attrs even if EFI protocol is present + +A temporal workaround while a real fix is being elaborated. + +Resolves: #RHEL-97086 + +Signed-off-by: Gerd Hoffman +Signed-off-by: Leo Sandoval +--- + grub-core/kern/efi/mm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c +index 464fe1c3c0..80af7b4dfc 100644 +--- a/grub-core/kern/efi/mm.c ++++ b/grub-core/kern/efi/mm.c +@@ -892,7 +892,7 @@ grub_update_mem_attrs (grub_addr_t addr, grub_size_t size, + grub_err_t err; + + proto = grub_efi_locate_protocol (&protocol_guid, 0); +- if (!proto) ++ if (1 /* !proto */) + return GRUB_ERR_NONE; + + err = grub_get_mem_attrs (addr, size, &before); diff --git a/grub.patches b/grub.patches index 74b59c1..79f6162 100644 --- a/grub.patches +++ b/grub.patches @@ -365,4 +365,5 @@ Patch0365: 0365-loader-efi-Fix-RISC-V-build.patch Patch0366: 0366-kern-riscv-efi-init-Use-time-register-in-grub_efi_ge.patch Patch0367: 0367-Use-medany-instead-of-large-model-for-RISCV.patch Patch0368: 0368-10_linux.in-escape-kernel-option-characters-properly.patch -Patch0369: 0369-blscfg-check-if-variable-is-escaped-before-consideri.patch \ No newline at end of file +Patch0369: 0369-blscfg-check-if-variable-is-escaped-before-consideri.patch +Patch0370: 0370-mm.c-do-not-update-mem-attrs-even-if-EFI-protocol-is.patch \ No newline at end of file diff --git a/grub2.spec b/grub2.spec index f7ba2cc..1fbce99 100644 --- a/grub2.spec +++ b/grub2.spec @@ -17,7 +17,7 @@ Name: grub2 Epoch: 1 Version: 2.12 -Release: 21%{?dist} +Release: 22%{?dist} Summary: Bootloader with support for Linux, Multiboot and more License: GPL-3.0-or-later URL: http://www.gnu.org/software/grub/ @@ -583,6 +583,10 @@ mv ${EFI_HOME}/grub.cfg.stb ${EFI_HOME}/grub.cfg %endif %changelog +* Tue Jul 15 2025 Leo Sandoval 2.12-22 +- workaround: do not update mem attrs even if EFI protocol is present +- Resolves: #RHEL-97086 + * Fri Jun 6 2025 Leo Sandoval 2.12-21 - Bump version (see CS-2896) - Resolves: #RHEL-94342