summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-01-14 23:38:53 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-14 23:38:53 -0800
commit040e3e09c0905972d58c290240e1f626a8692565 (patch)
treedc3d0c342ead6fb96a75bcc9b5e44b8ba458262b /kernel
parenta6a3f14ce0d747c7dc7ba708cf9290f8c73909fb (diff)
[PATCH] fix race between core dumping and exec with shared mm
When threads are sharing mm via CLONE_VM (linuxthreads, vfork), there is a race condition where one thread doing a core dump and synchronizing all mm-sharing threads for it can deadlock waiting for another thread that just did an exec and will never synchronize. This patch makes the exec_mmap check for a pending core dump and punt the exec to synchronize with that, as if the core dump had struck before entering the execve system call at all. Signed-off-by: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions