freebsd-skq/sys
alc 87de22f863 Remove a broken micro-optimization from pmap_enter(). The ill effect
of this micro-optimization occurs when we call pmap_enter() to wire an
already mapped page.  Because of the micro-optimization, we fail to
mark the PTE as wired.  Later, on teardown of the address space,
pmap_remove_pages() destroys the PTE before vm_fault_unwire() has
unwired the page.  (pmap_remove_pages() is not supposed to destroy
wired PTEs.  They are destroyed by a later call to pmap_remove().)
Thus, the page becomes lost.

Note: The page is not lost if the application called munlock(2), only
if it relies on teardown of the address space to unwire its pages.

For the historically inclined, this bug was introduced by a
megacommit, revision 1.182, roughly six years ago.

Leak observed by: green@ and dillon independently
Patch submitted by: dillon at backplane dot com
Reviewed by: tegge@
MFC after: 1 week
2004-05-28 19:42:02 +00:00
..
alpha Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00
amd64 Remove a broken micro-optimization from pmap_enter(). The ill effect 2004-05-28 19:42:02 +00:00
arm Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00
boot Use the correct location of the EBDA for searching for the RSDP. 2004-05-25 05:52:48 +00:00
cam
coda
compat
conf First release of ixgb driver for the Intel(R) PRO/10GbE Family of Adapters. This driver has 2004-05-28 00:23:00 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r129694, 2004-05-25 03:06:37 +00:00
crypto
ddb
dev Don't assume that the current setting (_CRS) of a PCI link device is 2004-05-28 17:31:32 +00:00
fs
geom Dump some more informations: 2004-05-26 11:36:27 +00:00
gnu
i4b
i386 Remove a broken micro-optimization from pmap_enter(). The ill effect 2004-05-28 19:42:02 +00:00
ia64 Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00
isa
isofs/cd9660
kern Sysctl hw.bus.devctl_disable shouldn't be writtable from inside a jail. 2004-05-26 16:36:32 +00:00
libkern
modules First release of ixgb driver for the Intel(R) PRO/10GbE Family of Adapters. This driver has 2004-05-28 00:23:00 +00:00
net if_printf() won't emit a newline unless told to. 2004-05-26 11:41:26 +00:00
net80211
netatalk
netatm
netgraph Move to generating pccarddevs.h on the fly, both for the kernel and 2004-05-26 00:53:10 +00:00
netinet Add a super-user check to ipfw_ctl() to make sure that the calling 2004-05-25 15:02:12 +00:00
netinet6
netipsec
netipx
netkey
netnatm
netncp
netsmb
nfs
nfs4client
nfsclient
nfsserver Call nfsm_clget_nolock() instead of nfsm_clget() when holding the NFS 2004-05-27 20:34:04 +00:00
opencrypto
pc98
pccard
pci Wrap the code to save/restore PCI config registers on suspend/resume in 2004-05-24 19:39:23 +00:00
posix4
powerpc Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00
rpc
security
sparc64 Retire cpu_sched_exit(); it is not used any more. 2004-05-26 12:09:39 +00:00
sys Style. 2004-05-28 14:20:06 +00:00
tools devlist2h.awk is too generic a name for what it does. It really 2004-05-26 00:19:39 +00:00
ufs
vm MFS: vm_map.c rev 1.187.2.27 through 1.187.2.29, fix MS_INVALIDATE 2004-05-25 18:40:53 +00:00
Makefile