Alexey Dobriyan 7695650a92 Fix race between proc_get_inode() and remove_proc_entry()
proc_lookup				remove_proc_entry
===========				=================

lock_kernel();
spin_lock(&proc_subdir_lock);
[find PDE with refcount 0]
spin_unlock(&proc_subdir_lock);
					spin_lock(&proc_subdir_lock);
					[find PDE with refcount 0]
					[check refcount and free PDE]
					spin_unlock(&proc_subdir_lock);
proc_get_inode:
	de_get(de); /* boom */

Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-05-08 11:15:01 -07:00
..
2007-05-07 12:12:58 -07:00
2007-05-07 12:12:58 -07:00
2007-05-07 12:12:58 -07:00
2007-05-07 12:12:51 -07:00
2007-05-07 02:11:57 +00:00
2007-05-07 12:13:04 -07:00
2007-04-27 14:23:33 +03:00
2007-05-07 12:12:50 -07:00
2007-04-17 18:15:04 -04:00
2007-03-14 08:25:52 +01:00