Reply-To: kernel-hardening@lists.openwall.com Message-ID: <517AF92F.3000403@zytor.com> Date: Fri, 26 Apr 2013 15:01:19 -0700 From: "H. Peter Anvin" MIME-Version: 1.0 References: <1367003005-5560-1-git-send-email-keescook@chromium.org> <1367003005-5560-6-git-send-email-keescook@chromium.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [kernel-hardening] Re: [PATCH 5/6] x86: kaslr: select memory region from e820 maps To: Yinghai Lu Cc: Kees Cook , Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" , Thomas Gleixner , Ingo Molnar , the arch/x86 maintainers , Jarkko Sakkinen , Matthew Garrett , Matt Fleming , Eric Northup , Dan Rosenberg , Julien Tinnes , Will Drewry List-ID: On 04/26/2013 02:51 PM, Yinghai Lu wrote: > On Fri, Apr 26, 2013 at 12:03 PM, Kees Cook wrote: >> This chooses the largest contiguous RAM region for the KASLR offset >> to live in. >> >> Signed-off-by: Kees Cook >> --- >> 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. -hpa