summaryrefslogtreecommitdiffstats
path: root/usr.bin/calendar/day.c
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2006-05-29 21:28:56 +0000
committertegge <tegge@FreeBSD.org>2006-05-29 21:28:56 +0000
commit0d5f19116220da1e7a0df73c804bebeb5efdf862 (patch)
tree2227714d6a33f215f9677debe94c947b9e3fc437 /usr.bin/calendar/day.c
parentff05f5f32b9783ffa4f05a2b79b7e54056d2f947 (diff)
downloadFreeBSD-src-0d5f19116220da1e7a0df73c804bebeb5efdf862.zip
FreeBSD-src-0d5f19116220da1e7a0df73c804bebeb5efdf862.tar.gz
Close race between vmspace_exitfree() and exit1() and races between
vmspace_exitfree() and vmspace_free() which could result in the same vmspace being freed twice. Factor out part of exit1() into new function vmspace_exit(). Attach to vmspace0 to allow old vmspace to be freed earlier. Add new function, vmspace_acquire_ref(), for obtaining a vmspace reference for a vmspace belonging to another process. Avoid changing vmspace refcount from 0 to 1 since that could also lead to the same vmspace being freed twice. Change vmtotal() and swapout_procs() to use vmspace_acquire_ref(). Reviewed by: alc
Diffstat (limited to 'usr.bin/calendar/day.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud