From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753846Ab2DCTcN (ORCPT ); Tue, 3 Apr 2012 15:32:13 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:57844 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751656Ab2DCTcM (ORCPT ); Tue, 3 Apr 2012 15:32:12 -0400 Date: Tue, 3 Apr 2012 23:32:04 +0400 From: Cyrill Gorcunov To: Matt Helsley Cc: Konstantin Khlebnikov , 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" , Linus Torvalds , Al Viro Subject: Re: [PATCH 6/7] mm: kill vma flag VM_EXECUTABLE Message-ID: <20120403193204.GE3370@moon> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120403181631.GD32299@count0.beaverton.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 03, 2012 at 11:16:31AM -0700, Matt Helsley wrote: > On Tue, Apr 03, 2012 at 09:10:20AM +0400, Konstantin Khlebnikov wrote: > > Matt Helsley wrote: > > >On Sat, Mar 31, 2012 at 10:13:24PM +0200, Oleg Nesterov wrote: > > >>On 03/31, Konstantin Khlebnikov wrote: > > >>> > > >>>comment from v2.6.25-6245-g925d1c4 ("procfs task exe symlink"), > > >>>where all this stuff was introduced: > > >>> > > >>>>... > > >>>>This avoids pinning the mounted filesystem. > > >>> > > >>>So, this logic is hooked into every file mmap/unmmap and vma split/merge just to > > >>>fix some hypothetical pinning fs from umounting by mm which already unmapped all > > >>>its executable files, but still alive. Does anyone know any real world example? > > >> > > >>This is the question to Matt. > > > > > >This is where I got the scenario: > > > > > >https://lkml.org/lkml/2007/7/12/398 > > > > Cyrill Gogcunov's patch "c/r: prctl: add ability to set new mm_struct::exe_file" > > gives userspace ability to unpin vfsmount explicitly. > > Doesn't that break the semantics of the kernel ABI? Which one? exe_file can be changed iif there is no MAP_EXECUTABLE left. Still, once assigned (via this prctl) the mm_struct::exe_file can't be changed again, until program exit. Cyrill