Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756308Ab3DPL7I (ORCPT ); Tue, 16 Apr 2013 07:59:08 -0400 Received: from terminus.zytor.com ([198.137.202.10]:40310 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753965Ab3DPL7E (ORCPT ); Tue, 16 Apr 2013 07:59:04 -0400 User-Agent: K-9 Mail for Android In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 6/6] x86: kaslr: relocate base offset at boot From: "H. Peter Anvin" Date: Mon, 15 Apr 2013 20:02:00 -0700 To: Yinghai Lu 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 Message-ID: <7f907e0b-c397-460f-a8ec-ce84b119ce84@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1037 Lines: 31 No. Fixing one bootloader is almost impossible. Fixing them all is a Sisiphyean task. Yinghai Lu wrote: >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 -- Sent from my mobile phone. Please excuse brevity and lack of formatting. -- 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/