DragonFly kernel List (threaded) for 2004-03
Re: [peter@FreeBSD.org: cvs commit: src/sys/vm vm_map.c vm_map.h]
Good catch! It does indeed apply to DFly too, though I have to do
something slightly more sophisticated due to the upcall fields we store
in the vmspace structure.
Peter, the fork case is obvious, but what about the exec case in the
face of rfork()'d threads? I'm not entirely sure whether we should
dup exitingcnt or not.
:FYI, Here is a FreeBSD RELENG_4 MFC which also applies to
:DragonFlyBSD, please review it, thanks!
:----- Forwarded message from Peter Wemm <peter@xxxxxxxxxxx> -----
:peter 2004/03/11 16:24:56 PST
: FreeBSD src repository
: Modified files: (Branch: RELENG_4)
: sys/vm vm_map.c vm_map.h=20
: MFC: part of vm_map.h rev 1.68 and vm_map.c 1.212. This is actually
: a prequisite of the vm_map.c rev 1.280 that dillon prematurely MFC'ed
: on Jan 13th, 2003. Without this change, the kernel leaks vmspaces
: to varying degrees depending on the circumstances. Specifically,
: vm_exitingcnt was being copied from the parent to the child when it
: might have been non-zero. This caused the child's vm_exitingcnt to
: never hit zero. This was blowing up machines at work.
: Revision Changes Path
: 18.104.22.168 +1 -1 src/sys/vm/vm_map.c
: 22.214.171.124 +2 -1 src/sys/vm/vm_map.h
:----- End forwarded message -----
:Xin LI <delphij frontfree net> http://www.delphij.net/