[PATCH v3 20/21] efi: stub: use high allocation for converted command line

From
Matt Fleming <hidden>
Date
2016-01-21 16:21:05
Also in
lkml
Reply to
Ard Biesheuvel, 2016-01-11
On Mon, 11 Jan, at 02:19:14PM, Ard Biesheuvel wrote:
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)

Cc: Matt Fleming <redacted>
Signed-off-by: Ard Biesheuvel <redacted>
---
 arch/x86/include/asm/efi.h                     |  2 ++
 drivers/firmware/efi/libstub/efi-stub-helper.c | 14 +++++++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)
Reviewed-by: Matt Fleming <redacted>
Thread (69 messages) 69 messages, 4 authors, last reply 2016-01-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help