NetBSD Problem Report #7681
Received: (qmail 27995 invoked from network); 31 May 1999 20:55:40 -0000
Message-Id: <199905312056.UAA00344@meow.soren.dk>
Date: Mon, 31 May 1999 20:56:16 GMT
From: soren@t.dk
Reply-To: soren@t.dk
To: gnats-bugs@gnats.netbsd.org
Cc: soren@t.dk
Subject: uvm_map_advice leaves map locked for some types of advice
X-Send-Pr-Version: 3.95
>Number: 7681
>Category: kern
>Synopsis: uvm_map_advice leaves map locked for some types of advice
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon May 31 14:05:00 +0000 1999
>Closed-Date: Mon May 31 23:33:20 +0000 1999
>Last-Modified: Mon May 31 23:33:59 +0000 1999
>Originator: Soren S. Jorvang
>Release: NetBSD-current
>Organization:
Soren
>Environment:
System: NetBSD 1.4C i386
>Description:
In uvm_map_advice, for those of MADV_* which are not currently
implemented (#if 0), 'invalid argument' is returned, but the map
is not unlocked, causing the calling process to be stuck in the 'D'
state.
>How-To-Repeat:
Run e.g. the FreeBSD cvsup binary.
>Fix:
--- src/sys/uvm/uvm_map.c.orig Mon May 31 20:34:07 1999
+++ src/sys/uvm/uvm_map.c Mon May 31 20:34:51 1999
@@ -1975,6 +1975,7 @@
#endif
default:
+ vm_map_unlock(map);
UVMHIST_LOG(maphist,"<- done (INVALID ARG)",0,0,0,0);
return (KERN_INVALID_ARGUMENT);
}
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mrg
State-Changed-When: Mon May 31 16:33:20 PDT 1999
State-Changed-Why:
fixed, thanks.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.