[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kernel/3758: panic: uvm_fault_unwire_locked: unwiring non-wired memory when ntpd (4.2.0) exits.



try this patch

Index: uvm_map.c
===================================================================
RCS file: /home/tedu/cvs/src/sys/uvm/uvm_map.c,v
retrieving revision 1.65
diff -u -r1.65 uvm_map.c
--- uvm_map.c	23 Feb 2004 06:19:32 -0000	1.65
+++ uvm_map.c	25 Apr 2004 23:53:37 -0000
@@ -2219,6 +2219,9 @@
 
 		if (current->protection != old_prot) {
 			/* update pmap! */
+			if ((current->protection & MASK(entry)) == PROT_NONE &&
+			    VM_MAPENT_ISWIRED(entry))
+				current->wired_count--;
 			pmap_protect(map->pmap, current->start, current->end,
 			    current->protection & MASK(entry));
 		}


-- 
desire is not an occupation