Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Oct 2000 05:59:25 +0100
From:      Tor.Egge@fast.no
To:        johan@FreeBSD.org
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/2840: mlock+minherit+fork+munlock causes panics or freezes
Message-ID:  <200010310459.FAA21495@midten.fast.no>
In-Reply-To: Your message of "Tue, 31 Oct 2000 04:07:46 %2B0100"

next in thread | raw e-mail | index | archive | help

> > Hi Tor
> > 
> > Is this still a problem in more recent version of FreeBSD
> > (for example 4.x or current).
> 
> This is still a problem:

Here is a suggested fix.  vmspace_fork() didn't clear the MAP_ENTRY_USER_WIRED
flag on the new map entries.

Index: vm_map.c
===================================================================
RCS file: /home/ncvs/src/sys/vm/vm_map.c,v
retrieving revision 1.191
diff -u -r1.191 vm_map.c
--- vm_map.c	2000/10/04 01:29:17	1.191
+++ vm_map.c	2000/10/31 04:52:44
@@ -2149,6 +2149,7 @@
 			 */
 			new_entry = vm_map_entry_create(new_map);
 			*new_entry = *old_entry;
+			new_entry->eflags &= ~MAP_ENTRY_USER_WIRED;
 			new_entry->wired_count = 0;
 
 			/*
@@ -2175,6 +2176,7 @@
 			 */
 			new_entry = vm_map_entry_create(new_map);
 			*new_entry = *old_entry;
+			new_entry->eflags &= ~MAP_ENTRY_USER_WIRED;
 			new_entry->wired_count = 0;
 			new_entry->object.vm_object = NULL;
 			vm_map_entry_link(new_map, new_map->header.prev,


- Tor Egge


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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