Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756545Ab3DZVv4 (ORCPT ); Fri, 26 Apr 2013 17:51:56 -0400 Received: from mail-ie0-f172.google.com ([209.85.223.172]:60502 "EHLO mail-ie0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751213Ab3DZVvy (ORCPT ); Fri, 26 Apr 2013 17:51:54 -0400 MIME-Version: 1.0 In-Reply-To: <1367003005-5560-6-git-send-email-keescook@chromium.org> References: <1367003005-5560-1-git-send-email-keescook@chromium.org> <1367003005-5560-6-git-send-email-keescook@chromium.org> Date: Fri, 26 Apr 2013 14:51:54 -0700 X-Google-Sender-Auth: Ds2HQdwEVmNcoZkU4L1pRwGnc10 Message-ID: Subject: Re: [PATCH 5/6] x86: kaslr: select memory region from e820 maps From: Yinghai Lu To: Kees Cook Cc: Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "the arch/x86 maintainers" , Jarkko Sakkinen , Matthew Garrett , Matt Fleming , Eric Northup , Dan Rosenberg , Julien Tinnes , Will Drewry Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 648 Lines: 18 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 ? Yinghai -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/