From: Kirill Korotaev Date: Fri, 29 Sep 2006 09:00:05 +0000 (-0700) Subject: [PATCH] Fix unserialized task->files changing X-Git-Tag: v2.6.19-rc1~767 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b9b8ab65d8eed784b9164d03807cb2bda7b5cd6;p=pandora-kernel.git [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 Signed-off-by: Kirill Korotaev Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed