Subject: kern/14193: panic: kernel diagnostic assertion in msdosfs/msdosfs_vnops.c
To: None <gnats-bugs@gnats.netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-bugs
Date: 10/09/2001 00:24:06
>Number:         14193
>Category:       kern
>Synopsis:       kernel diagnostic assertion failure in msdosfs/msdosfs_vnops.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 08 21:25:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     TheMan
>Release:        -current as of 20010921
>Organization:
none
>Environment:
	
System: NetBSD this 1.5Y NetBSD 1.5Y (THAT) #73: Sat Sep 22 00:48:10 EDT 2001     andrew@this:/usr/src/sys/arch/i386/compile/THAT i386


>Description:

	i was about to use my DiskOnKey to give my friend a copy of a
large file when my laptop crashed.  i rebooted single user to see if
it would do it again and it did.  the kernel core contains the
following text at the end of the dmesg

umass0 at uhub0 port 1 configuration 1 interface 0
umass0: M-Systems DiskOnKey, rev 1.00/2.00, addr 2
umass0: using SCSI over BBB-P
scsibus0 at umass0: 2 targets, 1 luns per target
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <M-Sys, DiskOnKey, 2.01> SCSI0 0/direct removable
sd0: 31824 KB, 31 cyl, 64 head, 32 sec, 512 bytes/sect x 63648 sectors
sd0: no disk label
panic: kernel diagnostic assertion "vp->v_size == dep->de_FileSize" failed: file "../../../../msdosfs/msdosfs_vnops.c", line 671

and i retrieved the following traceback from gdb afterwards

(gdb) bt
#0  0x104 in ?? ()
#1  0xc0282583 in cpu_reboot ()
#2  0xc01655a5 in panic ()
#3  0xc015762a in lockmgr ()
#4  0xc0185fee in genfs_lock ()
#5  0xc0183d6b in VOP_LOCK ()
#6  0xc018356e in vn_lock ()
#7  0xc017d4ce in vget ()
#8  0xc0196d3e in msdosfs_sync ()
#9  0xc017f84a in sys_sync ()
#10 0xc017e854 in vfs_shutdown ()
#11 0xc028255b in cpu_reboot ()
#12 0xc01655a5 in panic ()
#13 0xc03207a5 in __assert ()
#14 0xc0197c5b in msdosfs_write ()
#15 0xc01838ac in VOP_WRITE ()
#16 0xc018323a in vn_write ()
#17 0xc01673d4 in dofilewrite ()
#18 0xc0167337 in sys_write ()
#19 0xc0288708 in syscall_plain ()
#20 0xc0100cd6 in syscall1 ()

what else can i do?

>How-To-Repeat:

	boot single user
	insert DiskOnKey (it has a msdos file system)
	mount it rw
	copy a large file onto it

>Fix:
i dunno.  :-/
>Release-Note:
>Audit-Trail:
>Unformatted: