Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 21:08:10 +1000
From:      Tim Robbins <tjr@FreeBSD.ORG>
To:        Donn Miller <dmmiller@cvzoom.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: panic: mdconfig on an iso file mounted on smbfs
Message-ID:  <20030610210810.A90413@dilbert.robbins.dropbear.id.au>
In-Reply-To: <3EE49AE2.6010701@cvzoom.net>; from dmmiller@cvzoom.net on Mon, Jun 09, 2003 at 10:34:10AM -0400
References:  <3EE43394.6090802@cvzoom.net> <20030609203355.A51153@dilbert.robbins.dropbear.id.au> <3EE49AE2.6010701@cvzoom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 09, 2003 at 10:34:10AM -0400, Donn Miller wrote:

> Thanks, that worked.  But I'm seeing the same thing as you. i.e., panic 
> if I reboot without running mdconfig -d first.  Here is the backtrace of 
> the ensuing panic:
> 
> http://users.zoominternet.net/~dmmiller/freebsd/panic-2

Here's a patch that should fix the panic. Let me know whether it does,
and also whether it causes any new problems (I'm not very confident in
the patch's correctness).

--- sys/fs/smbfs/smbfs_subr.c.orig	Tue Jun 10 21:09:50 2003
+++ sys/fs/smbfs/smbfs_subr.c	Tue Jun 10 21:06:23 2003
@@ -270,6 +270,8 @@
 			return ENAMETOOLONG;
 		}
 		*npp++ = np;
+		if ((np->n_flag & NREFPARENT) == 0)
+			break;
 		np = VTOSMB(np->n_parent);
 	}
 /*	if (i == 0)



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