From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753532AbbCDX4Y (ORCPT ); Wed, 4 Mar 2015 18:56:24 -0500 Received: from ozlabs.org ([103.22.144.67]:34643 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751455AbbCDX4W (ORCPT ); Wed, 4 Mar 2015 18:56:22 -0500 Message-ID: <1425513380.32154.13.camel@ellerman.id.au> Subject: Re: [PATCH 4/5] mm: split ET_DYN ASLR from mmap ASLR From: Michael Ellerman To: Kees Cook Cc: Andrew Morton , LKML , Russell King , Catalin Marinas , Will Deacon , Ralf Baechle , Benjamin Herrenschmidt , Paul Mackerras , Martin Schwidefsky , Heiko Carstens , linux390@de.ibm.com, "x86@kernel.org" , Alexander Viro , Oleg Nesterov , Andy Lutomirski , "David A. Long" , Andrey Ryabinin , Arun Chandran , Yann Droneaud , Min-Hua Chen , Paul Burton , Alex Smith , Markos Chandras , Jeff Bailey , Vineeth Vijayan , Michael Holzheu , Ben Hutchings , Hector Marco-Gisbert , Borislav Petkov , Jan-Simon =?ISO-8859-1?Q?M=F6ller?= , "linux-arm-kernel@lists.infradead.org" , Linux MIPS Mailing List , linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, "linux-fsdevel@vger.kernel.org" Date: Thu, 05 Mar 2015 10:56:20 +1100 In-Reply-To: References: <1425341988-1599-1-git-send-email-keescook@chromium.org> <1425341988-1599-5-git-send-email-keescook@chromium.org> <1425442601.9084.9.camel@ellerman.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2015-03-04 at 13:13 -0800, Kees Cook wrote: > > I had a question in the powerpc-specific change that may have gone unnoticed: > > Can mmap ASLR be safely enabled in the legacy mmap case here? Other archs > use "mm->mmap_base = TASK_UNMAPPED_BASE + random_factor". > > Separate from this series, do you happen to know if this improvement > can be made, or if the legacy mmap on powerpc can't handle this? Yeah I saw that. The short answer is I'm not sure. I assume we have that distinction for some good reason, but whether we still need it I don't know. I'll dig a bit and see if anyone can remember the details. cheers