]> git.baikalelectronics.ru Git - kernel.git/commit
efi: stub: use high allocation for converted command line
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 11 Jan 2016 10:47:49 +0000 (11:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 24 Feb 2016 14:57:28 +0000 (14:57 +0000)
commit188d9fb64d4442d110760c1e62ba624f21d58a5c
tree05ca61f680ebe569281598487964deba302b555a
parent0eb2ede1315240a86861eba735a16ff106a6bca7
efi: stub: use high allocation for converted command line

Before we can move the command line processing before the allocation
of the kernel, which is required for detecting the 'nokaslr' option
which controls that allocation, move the converted command line higher
up in memory, to prevent it from interfering with the kernel itself.

Since x86 needs the address to fit in 32 bits, use UINT_MAX as the upper
bound there. Otherwise, use ULONG_MAX (i.e., no limit)

Reviewed-by: Matt Fleming <matt@codeblueprint.co.uk>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/x86/include/asm/efi.h
drivers/firmware/efi/libstub/efi-stub-helper.c