Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162738Ab3DEUTl (ORCPT ); Fri, 5 Apr 2013 16:19:41 -0400 Received: from mail-ie0-f182.google.com ([209.85.223.182]:61386 "EHLO mail-ie0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162716Ab3DEUTk (ORCPT ); Fri, 5 Apr 2013 16:19:40 -0400 MIME-Version: 1.0 In-Reply-To: <515F2E81.9000900@zytor.com> References: <1365106055-22939-1-git-send-email-keescook@chromium.org> <1365106055-22939-4-git-send-email-keescook@chromium.org> <515DE0C9.3030709@zytor.com> <515F2E81.9000900@zytor.com> Date: Fri, 5 Apr 2013 13:19:39 -0700 X-Google-Sender-Auth: IwWVven-CkN9yctEgaTLjaNPnfg Message-ID: Subject: Re: [PATCH 3/3] x86: kernel base offset ASLR From: Yinghai Lu To: "H. Peter Anvin" 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 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: 1327 Lines: 34 On Fri, Apr 5, 2013 at 1:05 PM, H. Peter Anvin wrote: > That makes zero difference, since the issue at hand is the *virtual* > addresses the kernel are running at. Currently, the 64-bit kernel > always runs at 0xffffffff81000000 virtual. We can't run out of > arbitrary bits of the 64-bit address space because of the memory model. Not sure if I understand this. when bzImage64 is loaded high, the kernel high address 0xffffffff81000000 is pointed to phys address above 4G without problem. Also during arch/x86/boot/compressed/head_64.S, kernel does not parse e820 yet, so it can not find right place for kernel yet. bootloader already parse the e820, and it already know kernel run time size. So it should be easy for them for crazy random range for kernel. > > Furthermore, dealing with the boot loaders means dealing with the boot > loader maintainers, which can be insanely painful. Consider that Grub2, > 10 years after this was implemented, still can't load more than one > initramfs component. syslinux and pxelinux could do that? Thanks 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/