Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755377Ab3DPN1k (ORCPT ); Tue, 16 Apr 2013 09:27:40 -0400 Received: from terminus.zytor.com ([198.137.202.10]:41465 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753749Ab3DPN1j (ORCPT ); Tue, 16 Apr 2013 09:27:39 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <20130416130854.GA20961@gmail.com> References: <516A1D49.1050100@zytor.com> <516C702C.2030209@zytor.com> <516C751B.4020505@zytor.com> <516CB937.2000305@zytor.com> <7f907e0b-c397-460f-a8ec-ce84b119ce84@email.android.com> <20130416130854.GA20961@gmail.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: Tue, 16 Apr 2013 06:27:06 -0700 To: Ingo Molnar CC: Yinghai Lu , 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: <13e14f5c-d221-4f2f-84e3-6c2dea48cdaa@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1239 Lines: 32 Well... G**** is it's own problem (doing actively broken thinks for political reasons), but the real issue mostly is that there are a lot of them simply because there are a lot of ways one may want to load the kernel. This is why things like decompression and the BIOS and EFI stubs are part of the kernel and not the bootloader. In this case moving the randomization into the decompressor send like the right thing to do - C code, and no additional copy. Ingo Molnar wrote: > >* H. Peter Anvin wrote: > >> No. Fixing one bootloader is almost impossible. Fixing them all is >a >> Sisiphyean task. > >It's a self inflicted wound really: if only we had a reference >bootloader in the >kernel tree, which we could fix. The effort that went into fixing >various >bootloader interactions would have been enough to write two new >bootloaders from >scratch. > >Thanks, > > Ingo -- 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/