diff --git a/bugfix-Clear-buffer-for-screen-info.patch b/bugfix-Clear-buffer-for-screen-info.patch new file mode 100644 index 0000000000000000000000000000000000000000..5dffae26eacf5c6c0f93b631857171a5b99abe0f --- /dev/null +++ b/bugfix-Clear-buffer-for-screen-info.patch @@ -0,0 +1,25 @@ +From f1f173b06c7e5f3ae034a4c64d525434a20ed4bd Mon Sep 17 00:00:00 2001 +From: openEuler Buildteam +Date: Fri, 8 Nov 2024 17:31:48 +0800 +Subject: [PATCH] bugfix: Clear buffer for screen info + +--- + grub-core/loader/loongarch64/linux-elf.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/grub-core/loader/loongarch64/linux-elf.c b/grub-core/loader/loongarch64/linux-elf.c +index c5d9434..b495a2b 100644 +--- a/grub-core/loader/loongarch64/linux-elf.c ++++ b/grub-core/loader/loongarch64/linux-elf.c +@@ -167,6 +167,8 @@ alloc_screen_info (void) + if (status != GRUB_EFI_SUCCESS) + return NULL; + ++ grub_memset((void *)si, 0, sizeof(struct screen_info)); ++ + status = b->install_configuration_table (&compat_screen_info_guid, si); + if (status != GRUB_EFI_SUCCESS) + goto free_mem; +-- +2.43.0 + diff --git a/grub.patches b/grub.patches index aa7e828c5df8c45849a1e7be8547829e2a77bdf0..c0bb713e0781facc0528902d62fdca7b0f02622b 100644 --- a/grub.patches +++ b/grub.patches @@ -241,3 +241,4 @@ Patch240: 0061-Add-BLS-support-to-grub-mkconfig.patch Patch241: 0064-Add-grub2-switch-to-blscfg.patch Patch242: 0001-newfeature-tpcm-add-hygon-tpcm-support.patch Patch243: 10_linux-fix-missing-ro-in-kernel-boot-parameters.patch +Patch244: bugfix-Clear-buffer-for-screen-info.patch diff --git a/grub2.spec b/grub2.spec index d8305156ba19d65e382a0f1923551646ad9cf5ba..6528e70a8fc2710a16842b95ec8be4f25dad54de 100644 --- a/grub2.spec +++ b/grub2.spec @@ -19,7 +19,7 @@ Name: grub2 Epoch: 1 Version: 2.12 -Release: 25 +Release: 26 Summary: Bootloader with support for Linux, Multiboot and more License: GPLv3+ URL: http://www.gnu.org/software/grub/ @@ -461,6 +461,12 @@ fi %{_datadir}/man/man* %changelog +* Fri Nov 8 2024 liuxue - 1:2.12-26 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Clear buffer for screen info + * Thu Oct 10 2024 zhangqiumiao - 1:2.12-25 - Type:bugfix - CVE:NA