#23 Kernel oops using rm on hfs volume

can_workaround
open
nobody
Kernel Opps (7)
5
2001-02-22
2001-02-22
Peter Handel
No

PowerCenter Pro 210mhz 604e, 224MB RAM, Linux 2.4-pre11 (rsync from Paul 12/8)

I was removing multiple files from my hfs drive, when I hit the BUG() at line 236 in /usr/src/linux/include/linux/dcache.h:

static __inline__ struct dentry * dget(struct dentry *dentry)
{
if (dentry) {
if (!atomic_read(&dentry->d_count))
BUG();
atomic_inc(&dentry->d_count);
}
return dentry;
}

Dec 9 18:09:21 like kernel: kernel BUG at /usr/src/linux/include/linux/dcache.h:236!
Dec 9 18:09:21 like kernel: Oops: Exception in kernel mode, sig: 7
Dec 9 18:09:21 like kernel: NIP: C00712FC XER: 00000000 LR: C00712FC SP: C1087DB0 REGS: c1087d00 TRAP: 0700
Dec 9 18:09:21 like kernel: MSR: 00089032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
Dec 9 18:09:21 like kernel: TASK = c1086000[12310] 'rm' Last syscall: 10
Dec 9 18:09:21 like kernel: last math c1086000 last altivec 00000000
Dec 9 18:09:21 like kernel: GPR00: C00712FC C1087DB0 C1086000 00000039 00001032 00000001 C0210000 00000000
Dec 9 18:09:21 like kernel: GPR08: 00000000 C01B0000 0000001F C1087CF0 22822842 1001ECE8 100302E8 10030000
Dec 9 18:09:21 like kernel: GPR16: 10030000 10030000 10030000 10030000 00000000 C96D7C20 00000000 C0210000
Dec 9 18:09:21 like kernel: GPR24: C291D62C C0180000 C0180000 C291D600 C4193C60 C291EE40 C291D628 C9947520
Dec 9 18:09:21 like kernel: Call backtrace:
Dec 9 18:09:21 like kernel: C00712FC C0047854 C00479A8 C00048D8 10001D8C 100031D0 10001358
Dec 9 18:09:21 like kernel: 0FF0B734 00000000

From the System.map:
c007122c T hfs_unlink
c00476d8 T vfs_unlink
c00478c0 T sys_unlink
c00048d8 T ret_from_syscall_1

http://lists.linuxppc.org/listarcs/linuxppc-dev/200012/msg00078.html
See

Discussion

  • Brian McCorkle
    Brian McCorkle
    2001-03-27

    Logged In: YES
    user_id=182309

    I am looking at 2.4.3-pre8 source and it looks like this is
    fixed there. Have you tried this on a later kernel?