Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764805Ab3DDUWW (ORCPT ); Thu, 4 Apr 2013 16:22:22 -0400 Received: from terminus.zytor.com ([198.137.202.10]:57355 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764492Ab3DDUWV (ORCPT ); Thu, 4 Apr 2013 16:22:21 -0400 Message-ID: <515DE0C9.3030709@zytor.com> Date: Thu, 04 Apr 2013 13:21:29 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Kees Cook CC: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Thomas Gleixner , Ingo Molnar , x86@kernel.org, Jarkko Sakkinen , Matthew Garrett , Matt Fleming , Eric Northup , Dan Rosenberg , Julien Tinnes , Will Drewry Subject: Re: [PATCH 3/3] x86: kernel base offset ASLR References: <1365106055-22939-1-git-send-email-keescook@chromium.org> <1365106055-22939-4-git-send-email-keescook@chromium.org> In-Reply-To: <1365106055-22939-4-git-send-email-keescook@chromium.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 855 Lines: 21 I have to admit to being somewhat skeptical toward KASLR with only 8 bits of randomness. There are at least two potential ways of dramatically increasing the available randomness: 1. actually compose the kernel of multiple independently relocatable pieces (maybe chunk it on 2M boundaries or something.) 2. compile the kernel as one of the memory models which can be executed anywhere in the 64-bit address space. The cost of this would have to be quantified, of course. The latter is particularly something that should be considered for the LPF JIT, to defend against JIT spray attacks. -hpa -- 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/