]> git.ipfire.org Git - thirdparty/grub.git/commit
multiboot2: Set min address for mbi allocation to 0x1000
authorLukasz Hawrylko <lukasz.hawrylko@linux.intel.com>
Mon, 16 Dec 2019 10:15:55 +0000 (11:15 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 20 Dec 2019 19:35:21 +0000 (20:35 +0100)
commit0f3f5b7c13fa9b677a64cf11f20eca0f850a2b20
tree7d7ce49cfb0e91a507ebe9a5d640dde92926e98a
parent7e28ca82bbc85a89ab7c976cd7580a8daa259846
multiboot2: Set min address for mbi allocation to 0x1000

In some cases GRUB2 allocates multiboot2 structure at 0 address, that is
a confusing behavior. Consumers of that structure can have internal NULL-checks
that will throw an error when get a pointer to data allocated at address 0.
To prevent that, define min address for mbi allocation on x86 and x86_64
platforms.

Signed-off-by: Lukasz Hawrylko <lukasz.hawrylko@linux.intel.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/loader/multiboot_mbi2.c