From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752282Ab2DFEg3 (ORCPT ); Fri, 6 Apr 2012 00:36:29 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:59803 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750938Ab2DFEgL (ORCPT ); Fri, 6 Apr 2012 00:36:11 -0400 Message-ID: <4F7E72B3.8000604@openvz.org> Date: Fri, 06 Apr 2012 08:36:03 +0400 From: Konstantin Khlebnikov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Firefox/10.0.2 Iceape/2.7.2 MIME-Version: 1.0 To: Linus Torvalds CC: Matt Helsley , Cyrill Gorcunov , Oleg Nesterov , "linux-mm@kvack.org" , Andrew Morton , "linux-kernel@vger.kernel.org" , Eric Paris , "linux-security-module@vger.kernel.org" , "oprofile-list@lists.sf.net" , Al Viro Subject: Re: [PATCH 6/7] mm: kill vma flag VM_EXECUTABLE References: <20120331091049.19373.28994.stgit@zurg> <20120331092929.19920.54540.stgit@zurg> <20120331201324.GA17565@redhat.com> <20120402230423.GB32299@count0.beaverton.ibm.com> <4F7A863C.5020407@openvz.org> <20120403181631.GD32299@count0.beaverton.ibm.com> <20120403193204.GE3370@moon> <20120405202904.GB7761@count0.beaverton.ibm.com> <4F7E08EB.5070600@openvz.org> <20120405214447.GC7761@count0.beaverton.ibm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > On Thu, Apr 5, 2012 at 2:44 PM, Matt Helsley wrote: >> >> I don't think the definition of an ABI is whether there's documentation >> for it. It's whether the interface is used or not. At least that's the >> impression I've gotten from reading Linus' rants over the years. > > Yes. > > That said, I *do* have some very dim memory of us having had real > issues with the /proc//exe thing and having regressions due to > holding refcounts to executables that were a.out binaries and not > demand-loaded. And people wanting to unmount filesystems despite the > binaries being live. > > That said, I suspect that whatever issues we used to have with that > are pretty long gone. I don't think people use non-mmap'ed binaries > any more. So I think we can try it and see. And revert if somebody > actually notices and has problems. Instead of tracking count of vma with VM_EXECUTABLE bit we can track count of vma with vma->vm_file == mm->exe_file, this will be nearly the same behaviour. This was in early version of my patch, but I prefer to go deeper. So, we can revert it without introducing VM_EXECUTABLE again. > > Linus