DragonFly BSD
DragonFly kernel List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Kernel Panic


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Dec 2004 15:44:05 -0800 (PST)

:I have a repeatable kernel panic from a msdos rename. I have the
:kernel core file and the kernel if You'd like me to post them
:somewhere.
:
:I have a usb hard drive based mp3 player that shows up as a umass, and
:I was renaming the folder ebooks to TEXT when this happened. That's
:all I have to do to repeat it.
:
:Here is the back trace from gdb:
:
:#0  dumpsys () at /usr/src/sys/kern/kern_shutdown.c:508
:#1  0xc02613bf in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:341
:#2  0xc0261829 in panic (fmt=0xc0476d80 "assertion: cnp->cn_flags &
:CNP_PDIRUNLOCK in %s") at /usr/src/sys/kern/kern_shutdown.c:620
:#3  0xc0297a55 in relookup (dvp=0xd75901f8, vpp=0xd75a8a44,
:cnp=0xd75a8aec) at /usr/src/sys/kern/vfs_lookup.c:90
:#4  0xc02ad3b5 in msdosfs_rename (ap=0xd75a8a78) at
:/usr/src/sys/vfs/msdosfs/msdosfs_vnops.c:1101
:...
:
:
:Thanks, Kyle

    This should fix it, Kyle.  Please try it out and report back.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>


Index: msdosfs_vnops.c
===================================================================
RCS file: /cvs/src/sys/vfs/msdosfs/msdosfs_vnops.c,v
retrieving revision 1.21
diff -u -r1.21 msdosfs_vnops.c
--- msdosfs_vnops.c	12 Nov 2004 00:09:36 -0000	1.21
+++ msdosfs_vnops.c	21 Dec 2004 23:42:58 -0000
@@ -1089,6 +1089,7 @@
 		 */
 		vref(tdvp);
 		error = doscheckpath(ip, dp);
+		tcnp->cn_flags |= CNP_PDIRUNLOCK;
 		if (error) {
 			vrele(tdvp);
 			goto out;



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]