Kirill Korotaev 3b9b8ab65d [PATCH] Fix unserialized task->files changing
Fixed race on put_files_struct on exec with proc.  Restoring files on
current on error path may lead to proc having a pointer to already kfree-d
files_struct.

->files changing at exit.c and khtread.c are safe as exit_files() makes all
things under lock.

Found during OpenVZ stress testing.

[akpm@osdl.org: add export]
Signed-off-by: Pavel Emelianov <xemul@openvz.org>
Signed-off-by: Kirill Korotaev <dev@openvz.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-09-29 09:18:12 -07:00
..
2006-09-26 17:40:24 -04:00
2006-09-28 17:53:58 -07:00
2006-09-26 08:48:54 -07:00
2006-09-27 08:26:10 -07:00
2006-09-29 09:18:11 -07:00
2006-09-26 17:40:24 -04:00
2006-09-26 15:38:52 -07:00
2006-09-28 18:02:18 -07:00
2006-09-28 18:02:13 -07:00
2006-09-28 18:02:02 -07:00
2006-09-28 18:02:31 -07:00
2006-09-28 18:02:29 -07:00
2006-09-28 17:54:01 -07:00
2006-09-28 18:02:30 -07:00
2006-09-26 08:48:47 -07:00
2006-09-28 18:02:22 -07:00
2006-09-29 09:18:12 -07:00
2006-09-28 18:02:58 -07:00
2006-09-27 08:26:20 -07:00
2006-09-26 08:48:48 -07:00
2006-09-28 18:01:40 -07:00
2006-09-26 17:43:54 -07:00
2006-09-26 08:49:04 -07:00
2006-09-26 08:48:44 -07:00
2006-09-29 09:18:11 -07:00
2006-09-26 08:48:58 -07:00
2006-09-28 17:53:59 -07:00
2006-09-29 09:18:09 -07:00
2006-09-27 08:26:20 -07:00
2006-09-28 18:02:16 -07:00
2006-09-29 09:18:12 -07:00
2006-09-26 08:48:44 -07:00