Re: [PATCH 5/6] x86: kaslr: select memory region from e820 maps

From: H. Peter Anvin
Date: Fri Apr 26 2013 - 18:01:56 EST

On 04/26/2013 02:51 PM, Yinghai Lu wrote:
> On Fri, Apr 26, 2013 at 12:03 PM, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>> This chooses the largest contiguous RAM region for the KASLR offset
>> to live in.
>> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
>> ---
>> v2:
>> - make sure to exclude e820 regions outside the 32-bit memory range.
> Do you need to execlude range that is used for initrd and possible
> command_line and boot_param ?

Yes, those would have to be excluded. For correctness the mem= and
memmap= options should also be taken into account.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at