Re: + fix-procfs-task-exe-symlink.patch added to -mm tree

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Oleg Nesterov <oleg@...>
Cc: <akpm@...>, <linux-kernel@...>, <dhowells@...>, <ebiederm@...>, <hch@...>, <viro@...>
Date: Wednesday, January 30, 2008 - 7:32 pm

On Wed, 2008-01-30 at 14:06 +0300, Oleg Nesterov wrote:

<snip>


I've got the patch written and will be testing this shortly.


There are portions in there to deal with the presence or lack of proc
fs. In include/linux/mm_types.h for example. Also, I placed some of the
functions in fs/proc/base.c and avoided the need for #ifdefs in the .c
files.


Good catch. Also I noticed that I was still setting the exe_file field
in fork.c regardles of CONFIG_PROC_FS.

So based on your feedback I'm working on 3 patches:
1 - fix the two CONFIG_PROC_FS issues
	a) breaks compilation when CONFIG_PROC_FS is not defined
	b) struct file leak when CONFIG_PROC_FS is not defined
2 - reuse mmap semaphore
3 - move the mm initialization bits in the exec path to close the window
where userspace could see a "NULL" exe_file.

I will post each after it passes testing.

Thanks again!

Cheers,
	-Matt Helsley

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: + fix-procfs-task-exe-symlink.patch added to -mm tree, Oleg Nesterov, (Tue Jan 29, 7:36 am)
Re: + fix-procfs-task-exe-symlink.patch added to -mm tree, Oleg Nesterov, (Wed Jan 30, 7:06 am)
Re: + fix-procfs-task-exe-symlink.patch added to -mm tree, Matt Helsley, (Wed Jan 30, 7:32 pm)