Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755543Ab3DVIE0 (ORCPT ); Mon, 22 Apr 2013 04:04:26 -0400 Received: from mail-wg0-f51.google.com ([74.125.82.51]:65214 "EHLO mail-wg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754774Ab3DVIEY (ORCPT ); Mon, 22 Apr 2013 04:04:24 -0400 Date: Mon, 22 Apr 2013 10:04:19 +0200 From: Ingo Molnar To: Kees Cook Cc: "H. Peter Anvin" , LKML , "x86@kernel.org" , "kernel-hardening@lists.openwall.com" , Thomas Gleixner , Ingo Molnar , David Woodhouse , Jiri Kosina , Olaf Hering , Yinghai Lu , Matt Fleming , Gokul Caushik , Josh Triplett , Joe Millenbach , Alexander Duyck , Jacob Shin , Pekka Enberg , Eric Northup , Dan Rosenberg , Julien Tinnes , Will Drewry Subject: Re: [PATCH] x86: kaslr: move ELF relocation handling to C Message-ID: <20130422080419.GB7080@gmail.com> References: <20130419231638.GA20133@www.outflux.net> <20130421091342.GD31470@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 33 * Kees Cook wrote: > On Sun, Apr 21, 2013 at 2:13 AM, Ingo Molnar wrote: > > > > * Kees Cook wrote: > > > >> Moves the relocation handling into C, after decompression. Only > >> kernels that need relocation support will use the code. The new > >> CONFIG_RANDOMIZE_BASE does not yet do anything except turn on this logic > >> for 64-bit kernels. > > > > So why not keep the inactive CONFIG_RANDOMIZE_BASE hunks in a separate > > patch, and just have this one clean, orthogonal patch that moves > > relocation handling into C? > > I had wanted there to be a way to test building with 64-bit > relocations. With this patch and CONFIG_RANDOMIZE_BASE=y, I could do > that. Would you rather I remove those pieces? But AFAICS CONFIG_RANDOMIZE_BASE is not an interactive config option, so how did you turn it on? But no strong objections in any case. Thanks, Ingo -- 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/