Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
grub2.24426
grub2-linuxefi-fix-boot-params.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grub2-linuxefi-fix-boot-params.patch of Package grub2.24426
Index: grub-2.02~rc1/grub-core/loader/i386/efi/linux.c =================================================================== --- grub-2.02~rc1.orig/grub-core/loader/i386/efi/linux.c +++ grub-2.02~rc1/grub-core/loader/i386/efi/linux.c @@ -324,7 +324,14 @@ grub_cmd_linux (grub_command_t cmd __att lh.code32_start = (grub_uint32_t)(grub_addr_t) kernel_mem; } - grub_memcpy(params, &lh, 2 * 512); + /* Grub linuxefi erroneously initialize linux's boot_params with non-zero values. (bsc#1025563) + + From https://www.kernel.org/doc/Documentation/x86/boot.txt: + The memory for struct boot_params could be allocated anywhere (even above 4G) + and initialized to all zero. + Then, the setup header at offset 0x01f1 of kernel image on should be + loaded into struct boot_params and examined. */ + grub_memcpy (¶ms->setup_sects, &lh.setup_sects, sizeof (lh) - 0x01f1); params->type_of_loader = 0x21;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor