- To: Konstantin Khlebnikov <khlebnikov@xxxxxxxxxx>
- Subject: Re: [PATCH 6/7] mm: kill vma flag VM_EXECUTABLE
- From: Oleg Nesterov <oleg@xxxxxxxxxx>
- Date: Sat, 31 Mar 2012 22:13:24 +0200
- Cc: linux-mm@xxxxxxxxx, Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, Eric Paris <eparis@xxxxxxxxxx>, linux-security-module@xxxxxxxxxxxxxxx, oprofile-list@xxxxxxxxxxxx, Matt Helsley <matthltc@xxxxxxxxxx>, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Al Viro <viro@xxxxxxxxxxxxxxxxxx>, Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
- Delivered-to: linux-mm-outgoing@xxxxxxxxx
- Delivered-to: int-list-linux-mm@xxxxxxxxx
- Delivered-to: linux-mm@xxxxxxxxx
- In-reply-to: <20120331092929.19920.54540.stgit@zurg>
- User-agent: Mutt/1.5.18 (2008-05-17)
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.
> keep mm->exe_file alive till final mmput().
Please see the recent discussion, http://marc.info/?t=133096188900012
(just in case, the patch itself was deadly wrong, don't look at it ;)
> --- a/include/linux/mm_types.h
> +++ b/include/linux/mm_types.h
> @@ -378,7 +378,6 @@ struct mm_struct {
>
> /* store ref to file /proc/<pid>/exe symlink points to */
> struct file *exe_file;
> - unsigned long num_exe_file_vmas;
Add Cyrill. This conflicts with
c-r-prctl-add-ability-to-set-new-mm_struct-exe_file.patch in -mm.
Oleg.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>
[Site Home]
[Linux ARM Kernel]
[Linux ARM]
[Linux Omap]
[Fedora ARM]
[IETF Annouce]
[Security]
[Bugtraq]
[Linux]
[Linux OMAP]
[Linux MIPS]
[ECOS]
[Tools]
[DDR & Rambus]
[Asterisk Internet PBX]
[Linux API]
[Monitors]