Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756287AbbKDTgO (ORCPT ); Wed, 4 Nov 2015 14:36:14 -0500 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36291 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756261AbbKDTgM (ORCPT ); Wed, 4 Nov 2015 14:36:12 -0500 Subject: Re: [PATCH v2 1/2] mm: mmap: Add new /proc tunable for mmap_base ASLR. To: "Eric W. Biederman" , Michal Hocko References: <1446574204-15567-1-git-send-email-dcashman@android.com> <20151104093957.GA31378@dhcp22.suse.cz> <877flxo9j5.fsf@x220.int.ebiederm.org> Cc: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, akpm@linux-foundation.org, keescook@chromium.org, mingo@kernel.org, linux-arm-kernel@lists.infradead.org, corbet@lwn.net, dzickus@redhat.com, xypron.glpk@gmx.de, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, mgorman@suse.de, tglx@linutronix.de, rientjes@google.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, salyzyn@android.com, jeffv@google.com, nnk@google.com, dcashman From: Daniel Cashman Message-ID: <563A5E27.2060607@android.com> Date: Wed, 4 Nov 2015 11:36:07 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <877flxo9j5.fsf@x220.int.ebiederm.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1037 Lines: 28 On 11/4/15 11:21 AM, Eric W. Biederman wrote: > Michal Hocko writes: > >> On Tue 03-11-15 10:10:03, Daniel Cashman wrote: >> [...] >>> +This value can be changed after boot using the >>> +/proc/sys/kernel/mmap_rnd_bits tunable >> >> Why is this not sitting in /proc/sys/vm/ where we already have >> mmap_min_addr. These two sound like they should sit together, no? > > Ugh. Yes. Moving that file before it becomes part of the ABI sounds > like a good idea. Daniel when you get around to v3 please move the > file. To answer the first question: it was put there because that's where randomize_va_space is located, which seemed to me to be the most-related/similar option. That being said, moving it under vm works too. Will change for patch-set 3. Thank You, Dan -- 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/