grub/grub-core/loader
Andrew Jeddeloh f9b054242e loader/i386/linux: Calculate the setup_header length
Previously the setup_header length was just assumed to be the size of the
linux_kernel_params struct. The linux x86 32-bit boot protocol says that the
end of the linux_i386_kernel_header is at 0x202 + the byte value at 0x201 in
the linux_i386_kernel_header. So, calculate the size of the header using the
end of the linux_i386_kernel_header, rather than assume it is the size of the
linux_kernel_params struct.

Additionally, add some required members to the linux_kernel_params
struct and align the content of linux_i386_kernel_header struct with
it. New members naming was taken directly from Linux kernel source.

linux_kernel_params and linux_i386_kernel_header structs require more
cleanup. However, this is not urgent, so, let's do this after release.
Just in case...

Signed-off-by: Andrew Jeddeloh <andrew.jeddeloh@coreos.com>
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Vladimir Serbinenko <phcoder@google.com>
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
2020-09-21 20:00:17 -04:00
..
arm arm: Move initrd upper to leave more space for kernel 2020-09-21 16:43:54 -04:00
arm64 efi: Rename armxx to arch 2020-09-21 16:43:54 -04:00
efi grub-core/loader/efi/fdt.c: Do not copy random memory 2020-09-21 16:43:54 -04:00
i386 loader/i386/linux: Calculate the setup_header length 2020-09-21 20:00:17 -04:00
ia64/efi verifiers: IA-64 fallout cleanup 2020-09-21 19:37:19 -04:00
mips verifiers: MIPS fallout cleanup 2020-09-21 19:37:19 -04:00
powerpc/ieee1275 verifiers: PowerPC fallout cleanup 2020-09-21 19:37:19 -04:00
riscv RISC-V: Add Linux load logic 2020-09-21 16:43:54 -04:00
sparc64/ieee1275 arm-uboot, ia64, sparc64: Fix up grub_file_open() calls 2020-09-21 13:46:34 -04:00
aout.c Implement automatic module license checking according to new GNU 2011-04-11 23:01:51 +02:00
linux.c verifiers: Core TPM support 2020-09-21 16:43:54 -04:00
lzss.c Add LZSS Mach-O support (needed for new xnu kernelcache). 2012-02-29 13:26:13 +01:00
macho.c verifiers: File type for fine-grained signature-verification controlling 2020-09-21 13:29:05 -04:00
macho32.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
macho64.c * grub-core/loader/machoXX.c: Fix compilation on non-i386. 2013-12-17 22:44:46 +01:00
machoXX.c Simplify few strings. 2013-05-07 11:44:15 +02:00
multiboot.c verifiers: Core TPM support 2020-09-21 16:43:54 -04:00
multiboot_elfxx.c multiboot_elfxx.c: Fix compilation by fixing undeclared variable 2020-09-21 13:19:10 -04:00
multiboot_mbi2.c verifiers: Core TPM support 2020-09-21 16:43:54 -04:00
xnu.c verifiers: Add possibility to verify kernel and modules command lines 2020-09-21 13:46:34 -04:00
xnu_resume.c verifiers: File type for fine-grained signature-verification controlling 2020-09-21 13:29:05 -04:00