From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755303AbaLVUDc (ORCPT ); Mon, 22 Dec 2014 15:03:32 -0500 Received: from cantor2.suse.de ([195.135.220.15]:60247 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754869AbaLVUDb (ORCPT ); Mon, 22 Dec 2014 15:03:31 -0500 Date: Mon, 22 Dec 2014 21:03:26 +0100 (CET) From: Jiri Kosina To: Andy Lutomirski cc: Hector Marco Gisbert , Cyrill Gorcunov , Pavel Emelyanov , Catalin Marinas , Heiko Carstens , Oleg Nesterov , Ingo Molnar , Anton Blanchard , Russell King - ARM Linux , "H. Peter Anvin" , David Daney , Andrew Morton , Arun Chandran , "linux-kernel@vger.kernel.org" , Martin Schwidefsky , Ismael Ripoll , Christian Borntraeger , Thomas Gleixner , =?ISO-8859-15?Q?Hanno_B=F6ck?= , Will Deacon , Benjamin Herrenschmidt , Kees Cook , Reno Robert Subject: Re: [PATCH] ASLRv3: randomize_va_space=3 preventing offset2lib attack In-Reply-To: Message-ID: References: <5489E6D2.2060200@upv.es> <5489FAAD.7000606@upv.es> <20141211221158.GS18807@outflux.net> <548B18AC.9@upv.es> <5494A0DF.10905@upv.es> <20141222183615.4193722q3opf4uj3@webmail.upv.es> User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Dec 2014, Andy Lutomirski wrote: > It could be worth having a mode that goes all out: randomize every > single allocation independently in, say, a 45 or 46-byte range. That > would be about as strong ASLR as we could possibly have, it would > result in guard intervals around mmap data allocations (which has real > value), and it would still leave plenty of space for big address space > hogs like the Chromium sandbox. > > The main downside would be lots of memory used for page tables. Plus get_random_int() during every mmap() call. Plus the resulting VA space fragmentation. -- Jiri Kosina SUSE Labs