svn commit: r247078 - stable/9/sys/amd64/amd64

Konstantin Belousov kib at FreeBSD.org
Thu Feb 21 05:53:43 UTC 2013


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;
 	}


More information about the svn-src-stable-9 mailing list