Reply-To: kernel-hardening@lists.openwall.com 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 From: "H. Peter Anvin" Date: Mon, 15 Apr 2013 20:02:00 -0700 Message-ID: <7f907e0b-c397-460f-a8ec-ce84b119ce84@email.android.com> Subject: [kernel-hardening] Re: [PATCH 6/6] x86: kaslr: relocate base offset at boot 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 List-ID: 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.