SUJ panic on new directory rename

From: Mateusz Guzik <mjguzik_at_gmail.com>
Date: Sat, 3 Jul 2010 11:20:55 +0200
Hi,

I've got the following panic while running kernel as of r209343:

Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex Softdep Lock (Softdep Lock) r = 0 (0xc0a89ff8)
locked _at_ /srv/respos/freebsd/sys/ufs/ffs/ffs_softdep.c:7124

free_jremref (jremref=0x0) at /srv/repos/freebsd/sys/ufs/ffs/ffs_softdep.c:3553
3553		if (jremref->jr_ref.if_jsegdep)
(kgdb) bt
#0  free_jremref (jremref=0x0) at
/srv/repos/freebsd/sys/ufs/ffs/ffs_softdep.c:3553
#1  0xc078e536 in cancel_diradd (dap=0xc1bd9880, dirrem=0xc1cc6380,
jremref=0x0, dotremref=0xc1cc4480,
    dotdotremref=0x0) at /srv/repos/freebsd/sys/ufs/ffs/ffs_softdep.c:6765
#2  0xc078eb14 in newdirrem (bp=0xc3b560cc, dp=0xc1cb77b4,
ip=0xc1e617b4, isrmdir=0x1, prevdirremp=0xc838c914)
    at /srv/repos/freebsd/sys/ufs/ffs/ffs_softdep.c:7188
#3  0xc078ebb3 in softdep_setup_directory_change (bp=0xc3b560cc,
dp=0xc1cb77b4, ip=0xc1e617b4, newinum=0xb803,
    isrmdir=0x1) at /srv/repos/freebsd/sys/ufs/ffs/ffs_softdep.c:7254
#4  0xc07a6969 in ufs_dirrewrite (dp=0xc1cb77b4, oip=0xc1e617b4,
newinum=0xb803, newtype=0x4, isrmdir=0x1)
    at /srv/repos/freebsd/sys/ufs/ufs/ufs_lookup.c:1269
#5  0xc07afe10 in ufs_rename (ap=0xc838cbec) at
/srv/repos/freebsd/sys/ufs/ufs/ufs_vnops.c:1429
#6  0xc0839d05 in VOP_RENAME_APV (vop=0xc08e1320, a=0xc838cbec) at
vnode_if.c:1474
#7  0xc062f0a7 in kern_renameat (td=0xc1e8a280, oldfd=0xffffff9c,
old=0x8048507 "foo", newfd=0xffffff9c,
    new=0x8048503 "bar", pathseg=UIO_USERSPACE) at vnode_if.h:636
#8  0xc062f256 in kern_rename (td=0xc1e8a280, from=0x8048507 "foo",
to=0x8048503 "bar", pathseg=UIO_USERSPACE)
    at /srv/repos/freebsd/sys/kern/vfs_syscalls.c:3574
#9  0xc062f289 in rename (td=0xc1e8a280, uap=0xc838ccec) at
/srv/repos/freebsd/sys/kern/vfs_syscalls.c:3551
#10 0xc05cf6b6 in syscallenter (td=0xc1e8a280, sa=0xc838cce4) at
/srv/repos/freebsd/sys/kern/subr_trap.c:335
#11 0xc081829f in syscall (frame=0xc838cd28) at
/srv/repos/freebsd/sys/i386/i386/trap.c:1060
#12 0xc07ffd70 in Xint0x80_syscall () at
/srv/repos/freebsd/sys/i386/i386/exception.s:261
#13 0xbfbfed9c in ?? ()

This can be easly reproduced by running this program:
http://student.agh.edu.pl/~mjguzik/rename.c

Thanks,
--
Mateusz Guzik <mjguzik_at_gmail.com>
Received on Sat Jul 03 2010 - 07:49:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:05 UTC