NetBSD Problem Report #776

From gnats  Thu Feb  2 19:01:17 1995
Received: from Collatz.McRCIM.McGill.EDU (Collatz.McRCIM.McGill.EDU [132.206.78.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id TAA06730 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 2 Feb 1995 19:01:13 -0800
Message-Id: <199502030301.WAA20160@Collatz.McRCIM.McGill.EDU>
Date: Thu, 2 Feb 1995 22:01:18 -0500
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
Reply-To: mouse@Collatz.McRCIM.McGill.EDU
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: panic: vnode_pager_uncache: vnode not locked
X-Send-Pr-Version: 3.2

>Number:         776
>Category:       kern
>Synopsis:       panic: vnode_pager_uncache: vnode not locked
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 02 19:05:03 +0000 1995
>Closed-Date:    Thu Mar 27 12:03:34 +0000 1997
>Last-Modified:  Thu Mar 27 12:04:30 +0000 1997
>Originator:     der Mouse
>Release:        NetBSD/sparc 1.0 (probably present in -current too)
>Organization:
	As little as I can get away with
>Environment:
	SPARC IPC, but it doesn't look as though it matters
>Description:
	Layering nullfs over nfs can provoke this panic, it seems.  The
	check in vnode_pager_uncache in -current looks identical,
	though, so I assume the bug is still there.  If something else
	interacts to prevent it, please feel free to ignore this.
>How-To-Repeat:
	Build a kernel with DEBUG (and NFS support).  Make an NFS mount
	which provides an executable.  Make a nullfs mount (-t null)
	that mounts this NFS mount point somewhere else.  Run the
	executable via the latter mount.  Try to unmount the nullfs
	mount and watch the fireworks.

	This seems to work for me:

	# mkdir /tmp/foo /tmp/bar /tmp/baz
	# cp /bin/date /tmp/foo
	# echo /tmp 127.0.0.1 >> /etc/exports
	# mountd
	# nfsd -tun 4
	# mount -t nfs -o ro,-c,-i localhost:/tmp /tmp/bar
	# mount -t null /tmp/bar/foo /tmp/baz
	# /tmp/baz/date
	(normal date output)
	# umount /tmp/baz
	(boom!)
>Fix:
	Turn DEBUG off and rebuild the kernel, since the relevant check
	is compiled in only when DEBUG is enabled.

	(Yes I'm kidding!)

	Seriously, either vnode locking or the check in
	vnode_pager_uncache needs to be redone.  I don't know which,
	and I don't feel competent to perform the fix in either case.

	Unless, of course, -current doesn't suffer from this, in which
	case please ignore this.

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mouse 
State-Changed-When: Thu Mar 27 04:03:34 PST 1997 
State-Changed-Why:  
This problem appears to have gone away in 1.2. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.