Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935498Ab3DPC4X (ORCPT ); Mon, 15 Apr 2013 22:56:23 -0400 Received: from mail-oa0-f49.google.com ([209.85.219.49]:64741 "EHLO mail-oa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935212Ab3DPC4W (ORCPT ); Mon, 15 Apr 2013 22:56:22 -0400 MIME-Version: 1.0 In-Reply-To: <516CB937.2000305@zytor.com> References: <1365797627-20874-1-git-send-email-keescook@chromium.org> <1365797627-20874-7-git-send-email-keescook@chromium.org> <516A1D49.1050100@zytor.com> <516C702C.2030209@zytor.com> <516C751B.4020505@zytor.com> <516CB937.2000305@zytor.com> Date: Mon, 15 Apr 2013 19:56:21 -0700 X-Google-Sender-Auth: 9hKztu9vpIBCK15VeaVYExzSke4 Message-ID: Subject: Re: [PATCH 6/6] x86: kaslr: relocate base offset at boot From: Yinghai Lu To: "H. Peter Anvin" Cc: Kees Cook , Eric Northup , Linux Kernel Mailing List , "kernel-hardening@lists.openwall.com" , Thomas Gleixner , Ingo Molnar , "the arch/x86 maintainers" , Jarkko Sakkinen , Matthew Garrett , Matt Fleming , 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: 811 Lines: 21 On Mon, Apr 15, 2013 at 7:36 PM, H. Peter Anvin wrote: > On 04/15/2013 03:00 PM, Yinghai Lu wrote: >> >> looks you are trying redo the work for bootloader to pick loaded phys addr. >> > > Well, that is exactly what they are doing. On top of that they also > need to randomize the 64-bit virtual mapping. > > I wonder if we need a bootloader bit to inhibit kaslr in addition to the > command line... so let the bootloader to parse kaslr and pick ramdom address, and kernel arch/x86/boot/compressed/head_64.S to pick random virtual address? 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/