]> git.baikalelectronics.ru Git - kernel.git/commit
x86/efi: Fix boot failure with EFI stub
authorMatt Fleming <matt.fleming@intel.com>
Thu, 10 Apr 2014 12:30:13 +0000 (13:30 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 10 Apr 2014 20:19:47 +0000 (21:19 +0100)
commite2c134c160b632ac67fd5b16dea6fcc5a99ca207
tree1ad9ac22879f74a40cd36b449bc286514456e320
parent5f2f7d6aba305188f1f14f89afc051d9bbff2fa0
x86/efi: Fix boot failure with EFI stub

commit 7d79fac265d6 ("x86/efi: Build our own EFI services pointer
table") introduced a regression because the 64-bit file_size()
implementation passed a pointer to a 32-bit data object, instead of a
pointer to a 64-bit object.

Because the firmware treats the object as 64-bits regardless it was
reading random values from the stack for the upper 32-bits.

This resulted in people being unable to boot their machines, after
seeing the following error messages,

    Failed to get file info size
    Failed to alloc highmem for files

Reported-by: Dzmitry Sledneu <dzmitry.sledneu@gmail.com>
Reported-by: Koen Kooi <koen@dominion.thruhere.net>
Tested-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/boot/compressed/eboot.c