Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756731Ab3DPQI6 (ORCPT ); Tue, 16 Apr 2013 12:08:58 -0400 Received: from mail-ob0-f177.google.com ([209.85.214.177]:62025 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753026Ab3DPQI5 (ORCPT ); Tue, 16 Apr 2013 12:08:57 -0400 MIME-Version: 1.0 In-Reply-To: <516CBA1D.8070306@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> <516CB7EE.8070702@zytor.com> <516CBA1D.8070306@zytor.com> Date: Tue, 16 Apr 2013 09:08:56 -0700 X-Google-Sender-Auth: DhT3Wi-oVbjbbgZ502_9E3yVUfc Message-ID: Subject: Re: [PATCH 6/6] x86: kaslr: relocate base offset at boot From: Kees Cook To: "H. Peter Anvin" Cc: Eric Northup , Yinghai Lu , 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: 902 Lines: 25 On Mon, Apr 15, 2013 at 7:40 PM, H. Peter Anvin wrote: > On 04/15/2013 07:31 PM, H. Peter Anvin wrote: >> >> I also am starting to think that this really would be done better being >> integrated with the decompressor code, since that code already ends up >> moving the code around... no reason to do this again. >> > > Another good reason to do this in the decompressor wrapper: it can be > written in C that way. This would make the code much more readable, for sure. And given that the 64-bit relocation work happens after decompression, this seems only right. Good idea! I'll start working on it. -Kees -- Kees Cook Chrome OS Security -- 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/