lkml.org 
[lkml]   [1999]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: execve-question


On Sun, 10 Oct 1999, Manfred Spraul wrote:

> what happens / should happen if I call execve() in a multi-threaded
> application?
>
> I don't see that the mm structure is copied, and obviously noone
> acquires the mm->mmap_sem.

Check fs/exec.c::exec_mmap(). mmap_sem is _not_ needed here. We are not
copying the mm - we are creating new one (exec drops all mappings). For
$DEITY sake, stop applying band-aids.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.016 / U:2.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site