Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 19:21:20 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246801 - head/sys/amd64/amd64
Message-ID:  <201302141921.r1EJLKfV030238@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Feb 14 19:21:20 2013
New Revision: 246801
URL: http://svnweb.freebsd.org/changeset/base/246801

Log:
  Assert that user address is never qremoved.
  
  No objections from:	alc
  MFC after:	1 week

Modified:
  head/sys/amd64/amd64/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Thu Feb 14 18:41:12 2013	(r246800)
+++ head/sys/amd64/amd64/pmap.c	Thu Feb 14 19:21:20 2013	(r246801)
@@ -1481,6 +1481,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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302141921.r1EJLKfV030238>