* execve-question
@ 1999-10-10 15:31 Manfred Spraul
1999-10-10 16:12 ` execve-question Alexander Viro
0 siblings, 1 reply; 2+ messages in thread
From: Manfred Spraul @ 1999-10-10 15:31 UTC (permalink / raw)
To: linux-kernel, linux-mm
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.
--
Manfred
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: execve-question
1999-10-10 15:31 execve-question Manfred Spraul
@ 1999-10-10 16:12 ` Alexander Viro
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Viro @ 1999-10-10 16:12 UTC (permalink / raw)
To: Manfred Spraul; +Cc: linux-kernel, linux-mm
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-10-10 16:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-10 15:31 execve-question Manfred Spraul
1999-10-10 16:12 ` execve-question Alexander Viro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox