Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422656Ab3DEUTm (ORCPT ); Fri, 5 Apr 2013 16:19:42 -0400 Received: from mail-ia0-f174.google.com ([209.85.210.174]:50904 "EHLO mail-ia0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162719Ab3DEUTk (ORCPT ); Fri, 5 Apr 2013 16:19:40 -0400 MIME-Version: 1.0 In-Reply-To: <20130405144954.GC29290@pd.tnic> References: <1365106055-22939-1-git-send-email-keescook@chromium.org> <1365106055-22939-4-git-send-email-keescook@chromium.org> <20130405144954.GC29290@pd.tnic> Date: Fri, 5 Apr 2013 13:19:39 -0700 Message-ID: Subject: Re: [PATCH 3/3] x86: kernel base offset ASLR From: Julien Tinnes To: Borislav Petkov , Kees Cook , LKML , "kernel-hardening@lists.openwall.com" , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , "x86@kernel.org" , Jarkko Sakkinen , Matthew Garrett , Matt Fleming , Eric Northup , 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: 1152 Lines: 26 On Fri, Apr 5, 2013 at 7:49 AM, Borislav Petkov wrote: > On Thu, Apr 04, 2013 at 01:07:35PM -0700, Kees Cook wrote: >> This creates CONFIG_RANDOMIZE_BASE, so that the base offset of the kernel >> can be randomized at boot. > > Right, > > if I'm reading this whole deal correctly, I have an issue with this > in the sense that if this thing is enabled by default and people are > running stripped kernels, an oops which is being reported is worth sh*t > since all the addresses there are random and one simply can't map them > back to which functions the callstack frames are pointing to. Which will > majorly hinder debuggability, IMHO... I think it'd be perfectly ok for OOPS to print out the kernel base. Restricting access to these oopses becomes a different problem (privilege separation). Some existing sandboxes (Chromium, vsftpd, openssh..) are already defending against it. Julien -- 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/