freebsd-skq/sys
Alan Cox e1de0706a0 In a few places, like the implementation of ptrace(), a thread may call
upon pmap_enter() to create a mapping within a different address space,
i.e., not the thread's own address space.  On i386, this entails the
creation of a temporary mapping to the affected page table page (PTP).  In
general, pmap_enter() will read from this PTP, allocate a PV entry, and
write to this PTP.  The trouble comes when the system is short of memory.
In order to allocate a new PV entry, an older PV entry has to be
reclaimed.  Reclaiming a PV entry involves destroying a mapping, which
requires access to the affected PTP.  Thus, the PTP mapped at the
beginning of pmap_enter() is no longer mapped at the end of pmap_enter(),
which leads to pmap_enter() modifying the wrong PTP.  To address this
problem, pmap_pv_reclaim() is changed to use an alternate method of
mapping PTPs.

Update a related comment.

Reported by:	pho
Diagnosed by:	kib
MFC after:	5 days
2012-10-08 16:57:05 +00:00
..
amd64 - Re-shuffle the <machine/pc/bios.h> headers to move all kernel-specific 2012-09-28 11:59:32 +00:00
arm Loop reading the RTC registers until the same values are obtained 2012-10-07 20:36:46 +00:00
boot Comment and Copyright fixes/updates. 2012-10-07 15:37:30 +00:00
bsm
cam ata_da: set disk::d_ident from serial number 2012-10-06 21:42:07 +00:00
cddl zvol: set mediasize in geom provider right upon its creation 2012-10-06 19:57:27 +00:00
compat Fix the mis-handling of the VV_TEXT on the nullfs vnodes. 2012-09-28 11:25:02 +00:00
conf Improve the check for p4 opened files. 2012-09-22 07:44:36 +00:00
contrib A step in resolving mess with byte ordering for AF_INET. After this change: 2012-10-06 10:02:11 +00:00
crypto
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev Rework device detach. While here, move driver lock/callout 2012-10-08 07:33:43 +00:00
fs Fix the mis-handling of the VV_TEXT on the nullfs vnodes. 2012-09-28 11:25:02 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Make graid command line a bit more friendly by allowing volume name or 2012-10-07 19:30:16 +00:00
gnu/fs Add VFCF_READONLY flag that indicates ntfs and xfs file systems are 2012-09-12 03:42:52 +00:00
i386 In a few places, like the implementation of ptrace(), a thread may call 2012-10-08 16:57:05 +00:00
ia64 Eliminate a stale comment. It describes another use case for the pmap in 2012-09-28 05:30:59 +00:00
isa
kern cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit 2012-10-06 19:50:23 +00:00
kgssapi
libkern s/ is is / is /g 2012-09-14 22:00:03 +00:00
mips Optimize the TLB invalidations performed by pmap_protect(). Use the new 2012-10-07 18:07:45 +00:00
modules Restrict the module to varied environments. 2012-10-08 14:08:13 +00:00
net A step in resolving mess with byte ordering for AF_INET. After this change: 2012-10-06 10:02:11 +00:00
net80211 Migrate the power-save functions to be overridable VAP methods. 2012-10-02 17:45:19 +00:00
netatalk
netgraph After r241245 it appeared that in_delayed_cksum(), which still expects 2012-10-08 08:03:58 +00:00
netinet After r241245 it appeared that in_delayed_cksum(), which still expects 2012-10-08 08:03:58 +00:00
netinet6 ip6_ipsec_output: fix a typo in r241344 2012-10-08 13:45:40 +00:00
netipsec Add missing break 2012-09-18 08:00:43 +00:00
netipx
netnatm
netncp Add characters mapping for codepages used in Germany. 2012-06-01 03:59:08 +00:00
netpfil After r241245 it appeared that in_delayed_cksum(), which still expects 2012-10-08 08:03:58 +00:00
netsmb Change a duplicated check to clarify that we really want to set a 2012-07-10 21:02:59 +00:00
nfs - Typo fix 2012-08-16 19:22:34 +00:00
nfsclient Do not leave invalid pages in the object after the short read for a 2012-08-14 11:45:47 +00:00
nfsserver Fix the mis-handling of the VV_TEXT on the nullfs vnodes. 2012-09-28 11:25:02 +00:00
nlm Fix grammar. 2012-08-16 13:01:56 +00:00
ofed The drbr(9) API appeared to be so unclear, that most drivers in 2012-09-28 18:28:27 +00:00
opencrypto
pc98 MFi386: revision 237445 2012-09-23 09:13:57 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc Eliminate a stale comment. It describes another use case for the pmap in 2012-09-28 05:30:59 +00:00
rpc rpc: convert all uid and gid variables to u_int. 2012-10-04 04:15:18 +00:00
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 Eliminate a stale comment. It describes another use case for the pmap in 2012-09-28 05:30:59 +00:00
sys A step in resolving mess with byte ordering for AF_INET. After this change: 2012-10-06 10:02:11 +00:00
teken
tools
ufs Fix up kernel sources to be ready for a 64-bit ino_t. 2012-09-27 23:30:49 +00:00
vm Tidy up a bit: 2012-10-03 05:06:45 +00:00
x86 Add missing header needed by free(9). 2012-09-30 15:42:20 +00:00
xdr
xen
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00