[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.
- To: bugs@cvs.openbsd.org
- Subject: Re: kernel/3758: panic: uvm_fault_unwire_locked: unwiring non-wired memory when ntpd (4.2.0) exits.
- From: Ted Unangst <tedu@zeitbombe.org>
- Date: Tue, 27 Apr 2004 13:35:02 -0600 (MDT)
The following reply was made to PR kernel/3758; it has been noted by GNATS.
From: Ted Unangst <tedu@zeitbombe.org>
To: dtucker@zip.com.au
Cc: gnats@openbsd.org, GNATS Filer <gnats@cvs.openbsd.org>,
bugs@cvs.openbsd.org
Subject: Re: kernel/3758: panic: uvm_fault_unwire_locked: unwiring non-wired
memory when ntpd (4.2.0) exits.
Date: Tue, 27 Apr 2004 15:15:07 -0400 (EDT)
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