]> git.ipfire.org Git - people/arne_f/kernel.git/commit
x86/efi: Use all 64 bit of efi_memmap in setup_e820()
authorDmitry Skorodumov <sdmitry@parallels.com>
Tue, 28 Jul 2015 14:38:32 +0000 (18:38 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Aug 2015 19:21:06 +0000 (12:21 -0700)
commit199db4c3e92be998d490d7c59cc684ba0d88f3e3
treefb32ab504bc6c079808add1a3cee5490e554d43e
parente10c27c9f0f42268259543d011f36f1ea03d3946
x86/efi: Use all 64 bit of efi_memmap in setup_e820()

commit 7cc03e48965453b5df1cce5062c826189b04b960 upstream.

The efi_info structure stores low 32 bits of memory map
in efi_memmap and high 32 bits in efi_memmap_hi.

While constructing pointer in the setup_e820(), need
to take into account all 64 bit of the pointer.

It is because on 64bit machine the function
efi_get_memory_map() may return full 64bit pointer and before
the patch that pointer was truncated.

The issue is triggered on Parallles virtual machine and
fixed with this patch.

Signed-off-by: Dmitry Skorodumov <sdmitry@parallels.com>
Cc: Denis V. Lunev <den@openvz.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/boot/compressed/eboot.c