Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-06-06 Thread Serge E. Hallyn
Quoting Matt Helsley ([EMAIL PROTECTED]): > This patch avoids holding the mmap semaphore while walking VMAs in response to > programs which read or follow the /proc//exe symlink. This also > allows > us to merge mmu and nommu proc_exe_link() functions. The costs are holding the > task lock, a sepa

[RFC][PATCH] Replacing the /proc//exe symlink code

2007-06-01 Thread Matt Helsley
This patch avoids holding the mmap semaphore while walking VMAs in response to programs which read or follow the /proc//exe symlink. This also allows us to merge mmu and nommu proc_exe_link() functions. The costs are holding the task lock, a separate reference to the executable file stored in the t

Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-06-01 Thread Matt Helsley
On Fri, 2007-06-01 at 17:31 -0500, Serge E. Hallyn wrote: > Quoting Matt Helsley ([EMAIL PROTECTED]): > > On Wed, 2007-05-30 at 13:09 -0500, Serge E. Hallyn wrote: > > > Quoting Matt Helsley ([EMAIL PROTECTED]): > > > > This patch avoids holding the mmap semaphore while walking VMAs in > > > > res

Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-06-01 Thread Serge E. Hallyn
Quoting Matt Helsley ([EMAIL PROTECTED]): > On Wed, 2007-05-30 at 13:09 -0500, Serge E. Hallyn wrote: > > Quoting Matt Helsley ([EMAIL PROTECTED]): > > > This patch avoids holding the mmap semaphore while walking VMAs in > > > response to > > > programs which read or follow the /proc//exe symlink.

Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-05-31 Thread Matt Helsley
On Wed, 2007-05-30 at 23:01 -0700, Chris Wright wrote: > * Serge E. Hallyn ([EMAIL PROTECTED]) wrote: > > > === > > > --- linux-2.6.22-rc2-mm1.orig/kernel/exit.c > > > +++ linux-2.6.22-rc2-mm1/kernel/exit.c > > > @@ -924,10 +924,12 @@

Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-05-31 Thread Matt Helsley
On Wed, 2007-05-30 at 13:09 -0500, Serge E. Hallyn wrote: > Quoting Matt Helsley ([EMAIL PROTECTED]): > > This patch avoids holding the mmap semaphore while walking VMAs in response > > to > > programs which read or follow the /proc//exe symlink. This also > > allows us > > to merge mmu and nommu

Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-05-30 Thread Chris Wright
* Serge E. Hallyn ([EMAIL PROTECTED]) wrote: > > === > > --- linux-2.6.22-rc2-mm1.orig/kernel/exit.c > > +++ linux-2.6.22-rc2-mm1/kernel/exit.c > > @@ -924,10 +924,12 @@ fastcall void do_exit(long code) > > if (unlikely(tsk->audit_

Re: [RFC][PATCH] Replacing the /proc//exe symlink code

2007-05-30 Thread Serge E. Hallyn
Quoting Matt Helsley ([EMAIL PROTECTED]): > This patch avoids holding the mmap semaphore while walking VMAs in response to > programs which read or follow the /proc//exe symlink. This also > allows us > to merge mmu and nommu proc_exe_link() functions. The costs are holding a > separate > referen

[RFC][PATCH] Replacing the /proc//exe symlink code

2007-05-29 Thread Matt Helsley
This patch avoids holding the mmap semaphore while walking VMAs in response to programs which read or follow the /proc//exe symlink. This also allows us to merge mmu and nommu proc_exe_link() functions. The costs are holding a separate reference to the executable file stored in the task struct an