[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 08 Aug 2006 15:31:29 +0400
From: Kirill Korotaev <dev@...ru>
To: Andrew Morton <akpm@...l.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
xemul@...ru, hch@...radead.org, dada1@...mosbay.com
Subject: [PATCH] unserialized task->files changing (v2)
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.
v2 patch changes:
- introduced reset_files_struct() as Christoph Hellwig suggested
Found during OpenVZ stress testing.
Signed-Off-By: Pavel Emelianov <xemul@...nvz.org>
Signed-Off-By: Kirill Korotaev <dev@...nvz.org>
View attachment "diff-ms-files-race-fix-200600808" of type "text/plain" (2029 bytes)
Powered by blists - more mailing lists