svn commit: r189675 - head/sys/powerpc/aim
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Tue Mar 10 20:19:20 PDT 2009
Author: nwhitehorn
Date: Wed Mar 11 03:19:19 2009
New Revision: 189675
URL: http://svn.freebsd.org/changeset/base/189675
Log:
Change the PVO zone for fictitious pages to the unmanaged PVO zone, to match
the unmanaged flag set in the PVO attributes. Without doing this,
pmap_remove() could try to remove fictitious pages (like those created
by mmap of physical memory) from the wrong UMA zone, causing a panic.
Reported by: Justin Hibbits
MFC after: 1 week
Modified:
head/sys/powerpc/aim/mmu_oea.c
Modified: head/sys/powerpc/aim/mmu_oea.c
==============================================================================
--- head/sys/powerpc/aim/mmu_oea.c Wed Mar 11 03:00:40 2009 (r189674)
+++ head/sys/powerpc/aim/mmu_oea.c Wed Mar 11 03:19:19 2009 (r189675)
@@ -1081,8 +1081,11 @@ moea_enter_locked(pmap_t pmap, vm_offset
PMAP_LOCK_ASSERT(pmap, MA_OWNED);
/* XXX change the pvo head for fake pages */
- if ((m->flags & PG_FICTITIOUS) == PG_FICTITIOUS)
+ if ((m->flags & PG_FICTITIOUS) == PG_FICTITIOUS) {
+ pvo_flags &= ~PVO_MANAGED;
pvo_head = &moea_pvo_kunmanaged;
+ zone = moea_upvo_zone;
+ }
/*
* If this is a managed page, and it's the first reference to the page,
More information about the svn-src-all
mailing list