From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757076Ab3DZWBy (ORCPT ); Fri, 26 Apr 2013 18:01:54 -0400 Received: from terminus.zytor.com ([198.137.202.10]:43792 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755939Ab3DZWBt (ORCPT ); Fri, 26 Apr 2013 18:01:49 -0400 Message-ID: <517AF92F.3000403@zytor.com> Date: Fri, 26 Apr 2013 15:01:19 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 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 Subject: Re: [PATCH 5/6] x86: kaslr: select memory region from e820 maps References: <1367003005-5560-1-git-send-email-keescook@chromium.org> <1367003005-5560-6-git-send-email-keescook@chromium.org> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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