Author: kib
Date: Thu Feb 21 05:53:42 2013
New Revision: 247078
URL: http://svnweb.freebsd.org/changeset/base/247078

Log:
  MFC r246801:
  Assert that user address is never qremoved.

Modified:
  stable/9/sys/amd64/amd64/pmap.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/amd64/amd64/pmap.c
==============================================================================
--- stable/9/sys/amd64/amd64/pmap.c     Thu Feb 21 05:47:52 2013        
(r247077)
+++ stable/9/sys/amd64/amd64/pmap.c     Thu Feb 21 05:53:42 2013        
(r247078)
@@ -1440,6 +1440,7 @@ pmap_qremove(vm_offset_t sva, int count)
 
        va = sva;
        while (count-- > 0) {
+               KASSERT(va >= VM_MIN_KERNEL_ADDRESS, ("usermode va %lx", va));
                pmap_kremove(va);
                va += PAGE_SIZE;
        }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"

Reply via email to