]> Git Repo - linux.git/commit
[PATCH] Fix unserialized task->files changing
authorKirill Korotaev <[email protected]>
Fri, 29 Sep 2006 09:00:05 +0000 (02:00 -0700)
committerLinus Torvalds <[email protected]>
Fri, 29 Sep 2006 16:18:12 +0000 (09:18 -0700)
commit3b9b8ab65d8eed784b9164d03807cb2bda7b5cd6
tree104c7b01768acd7e152cbf66e4868a73804e8af9
parentfc09561d6392771a392dea55c287de7e849b6b63
[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.

[[email protected]: add export]
Signed-off-by: Pavel Emelianov <[email protected]>
Signed-off-by: Kirill Korotaev <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/binfmt_elf.c
fs/binfmt_misc.c
fs/exec.c
include/linux/file.h
kernel/exit.c
This page took 0.057211 seconds and 4 git commands to generate.