Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1314334 > unrolled thread

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

Started byMatt Fleming <matt@codeblueprint.co.uk>
First post2016-01-21 17:30 +0100
Last post2016-01-21 17:30 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v3 20/21] efi: stub: use high allocation for converted  command line Matt Fleming <matt@codeblueprint.co.uk> - 2016-01-21 17:30 +0100

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

FromMatt Fleming <matt@codeblueprint.co.uk>
Date2016-01-21 17:30 +0100
SubjectRe: [PATCH v3 20/21] efi: stub: use high allocation for converted command line
Message-ID<qTqht-7Nb-21@gated-at.bofh.it>
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 <matt@codeblueprint.co.uk>
> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
> ---
>  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 <matt@codeblueprint.co.uk>

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web