7.0-CURRENT msdos+md0 related panic

From: Goran Gajic <ggajic_at_afrodita.rcub.bg.ac.yu>
Date: Sat, 11 Nov 2006 00:22:37 +0100 (CET)
Hi,

I somehow managed to trigger this panic when I have tried
simple write to md0 device which had msdosfs on it..
Sorry if it's already known/fixed..

regards,
gg.

FreeBSD magarac 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Nov  2 21:32:10 CET 2006     root_at_magarac:/usr/src/sys/amd64/compile/GENERIC  amd64


GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd".

Unread portion of the kernel message buffer:
g_vfs_done():md0s1[WRITE(offset=331860480, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=298609152, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=298617344, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=412903936, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125676032, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125684224, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125692416, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125700608, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125708800, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125716992, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125725184, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125733376, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125741568, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125749760, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125757952, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125766144, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125774336, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125782528, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125790720, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125798912, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125807104, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125815296, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125823488, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125831680, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125839872, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125848064, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125856256, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125864448, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125872640, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125880832, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125889024, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125897216, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125905408, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125913600, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125921792, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125929984, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125938176, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=125946368, length=8192)]error = 5
g_vfs_done():md0s1[WRITE(offset=331860480, length=8192)]error = 5
fsync: giving up on dirty
0xffffff0027174760: tag msdosfs, type VREG
     usecount 1, writecount 0, refcount 3 mountedhere 0
     flags ()
     v_object 0xffffff0028da8c80 ref 0 pages 2
      lock type msdosfs: EXCL (count 1) by thread 0xffffff00352ff810 (pid 1097)
 	startcluster 40479, dircluster 0, diroffset 256,

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0xa0
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xffffffff8040e524
stack pointer	        = 0x10:0xffffffffa42777a0
frame pointer	        = 0x10:0xffffffffa42777c0
code segment		= base 0x0, limit 0xfffff, type 0x1b
 			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 1097 (umount)
panic: from debugger
cpuid = 0
Uptime: 3h9m45s
Physical memory: 1012 MB
Dumping 198 MB: 183 167 151 135 119 103 87 71 55 39 23 7

#0  doadump () at pcpu.h:172
172		__asm __volatile("movq %%gs:0,%0" : "=r" (td));
(kgdb) where
#0  doadump () at pcpu.h:172
#1  0xffffffff8043b6f9 in boot (howto=260)
     at ../../../kern/kern_shutdown.c:410
#2  0xffffffff8043b18b in panic (fmt=0xffffffff806abec7 "from debugger")
     at ../../../kern/kern_shutdown.c:566
#3  0xffffffff801af527 in db_panic (addr=0, have_addr=0, count=0, modif=0x0)
     at ../../../ddb/db_command.c:433
#4  0xffffffff801af9c9 in db_command_loop () at ../../../ddb/db_command.c:401
#5  0xffffffff801b18d3 in db_trap (type=-1540918096, code=0)
     at ../../../ddb/db_main.c:221
#6  0xffffffff80460fd8 in kdb_trap (type=12, code=0, tf=0xffffffffa42776f0)
     at ../../../kern/subr_kdb.c:502
#7  0xffffffff806457a2 in trap_fatal (frame=0xffffffffa42776f0,
     eva=18446742975090259984) at ../../../amd64/amd64/trap.c:691
#8  0xffffffff80645b53 in trap_pfault (frame=0xffffffffa42776f0, usermode=0)
     at ../../../amd64/amd64/trap.c:615
#9  0xffffffff80645da4 in trap (frame=
       {tf_rdi = 0, tf_rsi = -1098619291632, tf_rdx = 0, tf_rcx = 683, tf_r8 = -2140079400, tf_r9 = -1098619291632, tf_rax = 50, tf_rbx = -1098741593344, tf_rbp = -1540917312, tf_r10 = 0, tf_r11 = 0, tf_r12 = 0, tf_r13 = -1098855790752, tf_r14 = 35, tf_r15 = -1098855790440, tf_trapno = 12, tf_addr = 160, tf_flags = 0, tf_err = 0, tf_rip = -2143230684, tf_cs = 8, tf_rflags = 66178, tf_rsp = -1540917328, tf_ss = 16}) at ../../../amd64/amd64/trap.c:383
#10 0xffffffff8063058b in calltrap () at ../../../amd64/amd64/exception.S:168
#11 0xffffffff8040e524 in devtoname (dev=0x0) at ../../../kern/kern_conf.c:727
#12 0xffffffff803ea4f4 in msdosfs_print (ap=0x0)
     at ../../../fs/msdosfs/msdosfs_vnops.c:1839
#13 0xffffffff80697a27 in VOP_PRINT_APV (vop=0x32, a=0xffffffffa4277810)
     at vnode_if.c:1873
#14 0xffffffff804ad336 in vn_printf (vp=0xffffff0027174760, fmt=0x0)
     at vnode_if.h:971
#15 0xffffffff804a4025 in vop_stdfsync (ap=0xffffffffa4277a40)
     at ../../../kern/vfs_default.c:468
#16 0xffffffff803e8b41 in msdosfs_fsync (ap=0xffffffffa4277a40)
     at ../../../fs/msdosfs/msdosfs_vnops.c:843
#17 0xffffffff80697ef7 in VOP_FSYNC_APV (vop=0x32, a=0xffffffffa4277a40)
     at vnode_if.c:1007
#18 0xffffffff803e7763 in msdosfs_sync (mp=0xffffff00279cb318, waitfor=1,
     td=0xffffff00352ff810) at vnode_if.h:537
#19 0xffffffff804a7ce1 in dounmount (mp=0xffffff00279cb318, flags=134217728,
     td=0xffffff00352ff810) at ../../../kern/vfs_mount.c:1237
#20 0xffffffff804a81dd in unmount (td=0xffffff00352ff810,
     uap=0xffffffffa4277c00) at ../../../kern/vfs_mount.c:1135
#21 0xffffffff80646364 in syscall (frame=
       {tf_rdi = 140737488348384, tf_rsi = 134217728, tf_rdx = 10, tf_rcx = 140737488347872, tf_r8 = 0, tf_r9 = 2, tf_rax = 22, tf_rbx = 140737488348384, tf_rbp = 140737488348320, tf_r10 = 0, tf_r11 = 518, tf_r12 = 34372328208, tf_r13 = 0, tf_r14 = 0, tf_r15 = 0, tf_trapno = 12, tf_addr = 34372354048, tf_flags = 0, tf_err = 2, tf_rip = 34366605564, tf_cs = 43, tf_rflags = 518, tf_rsp = 140737488348264, tf_ss = 35}) at ../../../amd64/amd64/trap.c:826
#22 0xffffffff80630728 in Xfast_syscall ()
     at ../../../amd64/amd64/exception.S:270
#23 0x000000080068c8fc in ?? ()
(kgdb)
Received on Fri Nov 10 2006 - 22:23:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:02 UTC