diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-01-11 11:47:49 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2016-02-24 14:57:28 +0000 |
commit | 48fcb2d0216103d15306caa4814e2381104df6d8 (patch) | |
tree | 05ca61f680ebe569281598487964deba302b555a /drivers/firmware/efi/libstub/arm64-stub.c | |
parent | 2ddbfc81eac84a299cb4747a8764bc43f23e9008 (diff) | |
download | linux-stable-48fcb2d0216103d15306caa4814e2381104df6d8.tar.gz linux-stable-48fcb2d0216103d15306caa4814e2381104df6d8.tar.bz2 linux-stable-48fcb2d0216103d15306caa4814e2381104df6d8.zip |
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>
Diffstat (limited to 'drivers/firmware/efi/libstub/arm64-stub.c')
0 files changed, 0 insertions, 0 deletions