From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by kanga.kvack.org (Postfix) with ESMTP id 635DC82F64 for ; Tue, 3 Nov 2015 13:21:39 -0500 (EST) Received: by padhx2 with SMTP id hx2so17414793pad.1 for ; Tue, 03 Nov 2015 10:21:39 -0800 (PST) Received: from mail-pa0-x236.google.com (mail-pa0-x236.google.com. [2607:f8b0:400e:c03::236]) by mx.google.com with ESMTPS id qk3si43898636pbb.256.2015.11.03.10.21.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Nov 2015 10:21:38 -0800 (PST) Received: by pasz6 with SMTP id z6so25453334pas.2 for ; Tue, 03 Nov 2015 10:21:38 -0800 (PST) Subject: Re: [PATCH 1/2] mm: mmap: Add new /proc tunable for mmap_base ASLR. References: <1446067520-31806-1-git-send-email-dcashman@android.com> <871tcewoso.fsf@x220.int.ebiederm.org> <87oafiuys0.fsf@x220.int.ebiederm.org> <56329880.4080103@android.com> <87k2q1tmna.fsf@x220.int.ebiederm.org> From: Daniel Cashman Message-ID: <5638FB2F.8040107@android.com> Date: Tue, 3 Nov 2015 10:21:35 -0800 MIME-Version: 1.0 In-Reply-To: <87k2q1tmna.fsf@x220.int.ebiederm.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: "Eric W. Biederman" Cc: Jeffrey Vander Stoep , linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, Andrew Morton , Kees Cook , mingo@kernel.org, linux-arm-kernel@lists.infradead.org, Jonathan Corbet , dzickus@redhat.com, xypron.glpk@gmx.de, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, Mel Gorman , tglx@linutronix.de, rientjes@google.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, Mark Salyzyn , Nick Kralevich , dcashman On 11/01/2015 01:50 PM, Eric W. Biederman wrote: > Daniel Cashman writes: > >> On 10/28/2015 08:41 PM, Eric W. Biederman wrote: >>> Dan Cashman writes: >>> >>>>>> This all would be much cleaner if the arm architecture code were just to >>>>>> register the sysctl itself. >>>>>> >>>>>> As it sits this looks like a patchset that does not meaninfully bisect, >>>>>> and would result in code that is hard to trace and understand. >>>>> >>>>> I believe the intent is to follow up with more architecture specific >>>>> patches to allow each architecture to define the number of bits to use >>>> >>>> Yes. I included these patches together because they provide mutual >>>> context, but each has a different outcome and they could be taken >>>> separately. >>> >>> They can not. The first patch is incomplete by itself. >> >> Could you be more specific in what makes the first patch incomplete? Is >> it because it is essentially a no-op without additional architecture >> changes (e.g. the second patch) or is it specifically because it >> introduces and uses the three "mmap_rnd_bits*" variables without >> defining them? If the former, I'd like to avoid combining the general >> procfs change with any architecture-specific one(s). If the latter, I >> hope the proposal below addresses that. > > A bit of both. The fact that the code can not compile in the first > patch because of missing variables is distressing. Having the arch > specific code as a separate patch is fine, but they need to remain in > the same patchset. > The first patch would compile as long as CONFIG_ARCH_MMAP_RND_BITS were not defined without also defining the missing variables. I actually viewed this as a safeguard against attempting to use those variables without architecture support, but am ok with changing it. I've gone ahead and submitted [PATCH v2] which aims to reduce duplication in the arch-specific config files and concerning those variables. The only caveat is that now the second patch depends on the first, whereas before it did not. Thank You, Dan -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org