svn commit: r205652 - head/sys/i386/i386
Alan Cox
alc at FreeBSD.org
Thu Mar 25 17:24:04 UTC 2010
Author: alc
Date: Thu Mar 25 17:24:03 2010
New Revision: 205652
URL: http://svn.freebsd.org/changeset/base/205652
Log:
A ptrace(2) by one processor may trigger a promotion in the address space
of another process. Modify pmap_promote_pde() to handle this. (This is
not a problem on amd64 due to implementation differences.)
Reported by: jh@
MFC after: 1 week
Modified:
head/sys/i386/i386/pmap.c
Modified: head/sys/i386/i386/pmap.c
==============================================================================
--- head/sys/i386/i386/pmap.c Thu Mar 25 17:17:35 2010 (r205651)
+++ head/sys/i386/i386/pmap.c Thu Mar 25 17:24:03 2010 (r205652)
@@ -3154,7 +3154,7 @@ pmap_promote_pde(pmap_t pmap, pd_entry_t
* either invalid, unused, or does not map the first 4KB physical page
* within a 2- or 4MB page.
*/
- firstpte = vtopte(trunc_4mpage(va));
+ firstpte = pmap_pte_quick(pmap, trunc_4mpage(va));
setpde:
newpde = *firstpte;
if ((newpde & ((PG_FRAME & PDRMASK) | PG_A | PG_V)) != (PG_A | PG_V)) {
More information about the svn-src-all
mailing list