]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly remove MAP_FUTUREWIRE when a vm_map_entry gets torn down.
authorgreen <green@FreeBSD.org>
Fri, 7 May 2004 00:17:07 +0000 (00:17 +0000)
committergreen <green@FreeBSD.org>
Fri, 7 May 2004 00:17:07 +0000 (00:17 +0000)
commit41ba6d4a4366807c759f8a29eb018183bd812b58
tree6e37540cc0c1c2bd875e7ef9a29900a870792d4b
parent832d1bd18183abf0012f495103d308a9f95ba2c0
Properly remove MAP_FUTUREWIRE when a vm_map_entry gets torn down.
Previously, mlockall(2) usage would leak MAP_FUTUREWIRE of the process's
vmspace::vm_map and subsequent processes would wire all of their memory.
Coupled with a wired-page leak in vm_fault_unwire(), this would run the
system out of free pages and cause programs to randomly SIGBUS when
faulting in new pages.

(Note that this is not the fix for the latter part; pages are still
 leaked when a wired area is unmapped in some cases.)

Reviewed by: alc
PR kern/62930
sys/vm/vm_map.c