NetBSD Problem Report #30958
From juan@xtrarom.org Wed Aug 10 04:14:32 2005
Return-Path: <juan@xtrarom.org>
Received: from xtrarom.org (unknown [84.77.255.188])
by narn.netbsd.org (Postfix) with ESMTP id BAB0B63B104
for <gnats-bugs@gnats.NetBSD.org>; Wed, 10 Aug 2005 04:14:31 +0000 (UTC)
Message-Id: <20050810041429.866F7382@xtrarom.org>
Date: Wed, 10 Aug 2005 06:14:29 +0200 (CEST)
From: juan@xtrarom.org
Reply-To: juan@xtrarom.org
To: gnats-bugs@netbsd.org
Subject: panic when using vnconfig -z without VND_COMPRESSION
X-Send-Pr-Version: 3.95
>Number: 30958
>Category: kern
>Synopsis: panic when using vnconfig -z without VND_COMPRESSION
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 10 04:15:00 +0000 2005
>Closed-Date: Mon Sep 05 16:11:54 +0000 2005
>Last-Modified: Fri Oct 07 11:48:01 +0000 2005
>Originator: Juan RP
>Release: NetBSD 3.99.7
>Organization:
>Environment:
System: NetBSD Nocturno 3.99.7 NetBSD 3.99.7 (Nocturno) #37: Wed Aug 10 00:43:39 CEST 2005 juan@Nocturno:/home/juan/build/obj/sys/arch/i386/compile/Nocturno i386
Architecture: i386
Machine: i386
>Description:
I was trying to mount a cloop2 image with vnconfig(1),
but it crashed because my kernel was built without
VND_COMPRESSION (I thought it was called VND_COMPRESSED).
[juan@Nocturno][~]> cat /kern/msgbuf|grep panic
panic: lockmgr: locking against myself
panic(c053a700,cd807a48,c031c26e,5,cda2fbe0) at netbsd:panic+0x12e
[juan@Nocturno][~]>
>How-To-Repeat:
$ makefs -t ffs foo.fs /foo
$ vndcompress foo.zfs foo.fs
$ vnconfig -z vnd0 foo.zfs
[panic]
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: nathanw@netbsd.org
State-Changed-When: Thu, 18 Aug 2005 22:07:20 +0000
State-Changed-Why:
I believe I've fixed this with rev 1.119 of sys/dev/vnd.c.
Can you confirm that this works for you?
From: Nathan J Williams <nathanw@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30958 CVS commit: src/sys/dev
Date: Thu, 18 Aug 2005 22:06:25 +0000 (UTC)
Module Name: src
Committed By: nathanw
Date: Thu Aug 18 22:06:25 UTC 2005
Modified Files:
src/sys/dev: vnd.c
Log Message:
Call VOP_UNLOCK() in the case where VND_COMPRESSION isn't defined and
we're about to return EOPNOTSUPP. Prevents a "locking against myself"
panic in vn_close() in the error return path.
Addresses PR# kern/30958
To generate a diff of this commit:
cvs rdiff -r1.118 -r1.119 src/sys/dev/vnd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->closed
State-Changed-By: xtraeme@netbsd.org
State-Changed-When: Mon, 05 Sep 2005 16:11:54 +0000
State-Changed-Why:
Fixed by Nathan J. Williams, thanks.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30958 CVS commit: [netbsd-3] src/sys/dev
Date: Fri, 7 Oct 2005 11:47:40 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Fri Oct 7 11:47:40 UTC 2005
Modified Files:
src/sys/dev [netbsd-3]: vnd.c
Log Message:
Pull up following revision(s) (requested by xtraeme in ticket #867):
sys/dev/vnd.c: revision 1.119
Call VOP_UNLOCK() in the case where VND_COMPRESSION isn't defined and
we're about to return EOPNOTSUPP. Prevents a "locking against myself"
panic in vn_close() in the error return path.
Addresses PR# kern/30958
To generate a diff of this commit:
cvs rdiff -r1.111.10.4 -r1.111.10.5 src/sys/dev/vnd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.