Re: [PATCH] grub-core/loader/i386: Fix initrd maximum address overflow

2022-12-06 Thread Daniel Kiper
On Sun, Dec 04, 2022 at 08:25:09PM +0800, Jeremy Szu wrote: > The current i386 initrd be limited under 1G memory and it works in most > compressed initrd. (also initrd_addr_max case reported by kernel) > > addr = (addr_max - aligned_size) & ~0xFFF; > > Above line to calculate the reasonable address

[PATCH] grub-core/loader/i386: Fix initrd maximum address overflow

2022-12-04 Thread Jeremy Szu
The current i386 initrd be limited under 1G memory and it works in most compressed initrd. (also initrd_addr_max case reported by kernel) addr = (addr_max - aligned_size) & ~0xFFF; Above line to calculate the reasonable address to store the initrd. However, if initrd size is greater than 1G (or

[PATCH] grub-core/loader/i386: Fix initrd maximum address overflow

2022-12-04 Thread Jeremy Szu
The current i386 initrd be limited under 1G memory and it works in most compressed initrd. (also initrd_addr_max case reported by kernel) addr = (addr_max - aligned_size) & ~0xFFF; Above line to calculate the reasonable address to store the initrd. However, if initrd size is greater than 1G (or