xfs
[Top] [All Lists]

xfs kernel panic in 2.4.25 with mips

To: <linux-xfs@xxxxxxxxxxx>
Subject: xfs kernel panic in 2.4.25 with mips
From: "Josh Radel" <jradel@xxxxxxxxx>
Date: Thu, 10 Feb 2005 19:35:48 -0800
Sender: linux-xfs-bounce@xxxxxxxxxxx
Thread-index: AcUP6sa4ECQ7oaDeRG2tjfzHUD8ZGQ==
Thread-topic: xfs kernel panic in 2.4.25 with mips
I'm attempting to use XFS on an embedded mips32 system running the 2.4.25 
kernel, and am running into some kernel panics. Here are three different 
scenarios with different (though 100% reproducible) panics. In all situations, 
XFS is compiled into the kernel (but no other XFS options, except for case 
(3)). I've included the kernel oops message as well as the version run through 
ksymoops for each case at the end of this message.

  1) UDF Read Filesystem is also compiled into the kernel; kernel panics when 
kernel is loading (last printouts:
       Journalled Block Device driver loaded
       udf: registering filesystem
       SGI XFS with no debug enabled
          ...then the panic...

  2) UDF Filesystem NOT compiled into the kernel, kernel (and nfs-mounted root 
fs) load properly, I can successfully
     create an XFS filesystem on a partition using mkfs.xfs, I can successfully 
mount the XFS partition (various combinations
     of mount options work), I can successfully 'ls' the empty mount point. But 
when I try to create a file or directory in the XFS partition, the kernel
     panics.
     
  3) UDF Filesystem NOT compiled into the kernel, XFS Tracing support and 
Debugging support ARE enabled. Panics at kernel load time (final print 
statement is "SGI XFS with tracing, debug enabled"), with a different trace 
than in (1).
  
  
For reference, in (2), when the kernel successfully loads, the next message 
after "SGI XFS with no debug enabled" is "pty: 256 Unix98 ptys configured".

The XFS source is stock 2.4.25 kernel source, which works fine for me on an 
x86; and with no XFS enabled, I haven't seen any other problems on the embedded 
board. Any ideas on where I can start trying to debug this?

Thanks,
Josh



Here are the kernel panics and ksymoops traces for the above cases.

(1)
Journalled Block Device driver loaded
udf: registering filesystem
SGI XFS with no debug enabled
Break instruction in kernel code in traps.c::do_bp, line 591:
$0 : 00000000 10108400 802e0000 8027c650 8027c630 00000188 00000000 00000000
$8 : 000001f0 ffffffe0 00000000 00000000 80320254 fffffffe ffffffff 00000010
$16: 00000000 802bc4cc 00000000 00000188 8ffd7ec4 8ffd1850 8027c630 8febbc90
$24: 00000007 00000001                   882de000 882dfeb0 0feb5380 80031d8c
Hi : 00000010
Lo : 0000000c
epc   : 80031d98    Not tainted
Status: 10108403
Cause : 00800024
PrId  : 0001810b
Process swapper (pid: 1, stackpage=882de000)
Stack:    802f0000 80032c8c 00800020 8000574c 882c7a28 fffffffd 00000190
 80013b98 00000000 802bc4cc 00010f00 8ffbda28 8ffd7ec4 8ffd1850 8ffd7e88
 8febbc90 0feb5380 80162c18 00000000 802bc4cc 00000000 802b0ab4 00000000
 00000000 801490c8 8ffbda28 00000000 00000000 8015cab8 00000000 802b09b0
 802b0978 882c52a0 00000000 00000000 00000040 80268bbc 802ce390 802bc45c
 802bc4cc ...
Call Trace:   [<80032c8c>] [<8000574c>] [<80013b98>] [<80162c18>] [<801490c8>]
 [<8015cab8>] [<80268bbc>] [<800017b4>] [<800017b4>] [<800017c4>] [<800017b4>]
 [<8000575c>] [<80013b98>] [<8027bb4c>] [<801645c4>] [<8000574c>]
                                                                                
                                                                                
                                     
Code: 2c420013  144000df  3c02802e <0000800d> 3c02ffff  34420fff  02421024  
1440012d  00000000
Kernel panic: Attempted to kill init!

ksymoops:

Break instruction in kernel code in traps.c::do_bp, line 591:
$0 : 00000000 10108400 802e0000 8027c6a0 8027c680 00000188 00000000 00000000
$8 : 000001f0 ffffffe0 00000000 00000000 80320254 fffffffe ffffffff 00000010
$16: 00000000 802bc4cc 00000000 00000188 8ffd7ec4 8ffd1850 8027c680 8febbc90
$24: 00000007 00000001                   882de000 882dfeb0 0feb5380 80031d8c
Hi : 00000010
Lo : 0000000c
epc   : 80031d98    Not tainted
Status: 10108403
Cause : 00800024
Process swapper (pid: 1, stackpage=882de000)
Stack:    802f0000 80032c8c 00800020 8000574c 882c7a28 fffffffd 00000190
 80013b98 00000000 802bc4cc 00010f00 8ffbda28 8ffd7ec4 8ffd1850 8ffd7e88
 8febbc90 0feb5380 80162c18 00000000 802bc4cc 00000000 802b0ab4 00000000
 00000000 801490c8 8ffbda28 00000000 00000000 8015cab8 00000000 802b09b0
 802b0978 882c52a0 00000000 00000000 00000040 80268c0c 802ce390 802bc45c
 802bc4cc ...
Call Trace:   [<80032c8c>] [<8000574c>] [<80013b98>] [<80162c18>] [<801490c8>]
 [<8015cab8>] [<80268c0c>] [<800017b4>] [<800017b4>] [<800017c4>] [<800017b4>]
 [<8000575c>] [<80013b98>] [<8027bb9c>] [<801645c4>] [<8000574c>]
Code: 2c420013  144000df  3c02802e <0000800d> 3c02ffff  34420fff  02421024  
1440012d  00000000
Error (Oops_bfd_perror): /tmp/ksymoops.4lBoYp Invalid bfd target
 
 
>>$2; 802e0000 <r4k_blast_dcache_page_indexed+0/4>
>>$3; 8027c6a0 <__clz_tab+13d60/2e424>
>>$4; 8027c680 <__clz_tab+13d40/2e424>
>>$17; 802bc4cc <__initcall_end+0/b34>
>>$22; 8027c680 <__clz_tab+13d40/2e424>
>>$31; 80031d8c <kmem_cache_create+48/548>
 
>>PC;  80031d98 <kmem_cache_create+54/548>   <=====
 
Trace; 80032c8c <kmem_cache_alloc+1b4/1c4>
Trace; 8000574c <arch_kernel_thread+30/70>
Trace; 80013b98 <kernel_thread+30/68>
Trace; 80162c18 <kmem_zone_init+28/34>
Trace; 801490c8 <xfs_init+78/14c>
Trace; 8015cab8 <init_once+0/50>
Trace; 80268c0c <__clz_tab+2cc/2e424>
Trace; 800017b4 <init+0/11c>
Trace; 800017b4 <init+0/11c>
Trace; 800017c4 <init+10/11c>
Trace; 800017b4 <init+0/11c>
Trace; 8000575c <arch_kernel_thread+40/70>
Trace; 80013b98 <kernel_thread+30/68>
Trace; 8027bb9c <__clz_tab+1325c/2e424>
Trace; 801645c4 <ipc_alloc+34/40>
Trace; 8000574c <arch_kernel_thread+30/70>
 
Kernel panic: Attempted to kill init!
 
1 error issued.  Results may not be reliable.




(2)
do_cpu invoked from kernel context! in traps.c::do_cpu, line 676:
$0 : 00000000 10108400 0000001e 00000008 8fe2c000 8fe5c000 8ffe7000 882c3d68
$8 : 00108413 dfffffff 00100000 882bb464 802b5bf4 00003f92 88000004 802d0000
$16: 8ffe71a0 882c4200 8fe2c000 8ffe7120 8fe5c000 00000000 8ffe7120 802c87c0
$24: ba2e8ba3 fffffe00                   8fe2c000 8fe2deb0 8fe2deb0 800113cc
Hi : 00000000
Lo : 00000002
epc   : 8000b9a4    Not tainted
Status: 10108403
Cause : 1080002c
PrId  : 0001810b
Process mkdir (pid: 136, stackpage=8fe2c000)
Stack:    ffffffff 000001ed 8fe5c000 80018e14 10108401 00000000 80338200
 882c4200 8fe2c000 00000000 802d0000 00407a90 1000dca8 10010000 1000dc70
 800191d4 00000001 8ffe71a0 00000041 882c41ed 2ae0bed0 00000000 00000000
 00000004 00000002 80019380 00000000 00000004 00000002 00407a90 8000b0e0
 80010a34 1000dd00 1000dca8 1000dcb8 1001100f ffffffff 00000000 00000000
 2ac76580 ...
Call Trace:   [<80018e14>] [<800191d4>] [<80019380>] [<8000b0e0>] [<80010a34>]
 [<8014ec04>]

ksymoops:
Break instruction in kernel code in traps.c::do_bp, line 591:
$0 : 00000000 10108400 802e0000 8027c6a0 8027c680 00000188 00000000 00000000
$8 : 000001f0 ffffffe0 00000000 00000000 80320254 fffffffe ffffffff 00000010
$16: 00000000 802bc4cc 00000000 00000188 8ffd7ec4 8ffd1850 8027c680 8febbc90
$24: 00000007 00000001                   882de000 882dfeb0 0feb5380 80031d8c
Hi : 00000010
Lo : 0000000c
epc   : 80031d98    Not tainted
Status: 10108403
Cause : 00800024
Process swapper (pid: 1, stackpage=882de000)
Stack:    802f0000 80032c8c 00800020 8000574c 882c7a28 fffffffd 00000190
 80013b98 00000000 802bc4cc 00010f00 8ffbda28 8ffd7ec4 8ffd1850 8ffd7e88
 8febbc90 0feb5380 80162c18 00000000 802bc4cc 00000000 802b0ab4 00000000
 00000000 801490c8 8ffbda28 00000000 00000000 8015cab8 00000000 802b09b0
 802b0978 882c52a0 00000000 00000000 00000040 80268c0c 802ce390 802bc45c
 802bc4cc ...
Call Trace:   [<80032c8c>] [<8000574c>] [<80013b98>] [<80162c18>] [<801490c8>]
 [<8015cab8>] [<80268c0c>] [<800017b4>] [<800017b4>] [<800017c4>] [<800017b4>]
 [<8000575c>] [<80013b98>] [<8027bb9c>] [<801645c4>] [<8000574c>]
Code: 2c420013  144000df  3c02802e <0000800d> 3c02ffff  34420fff  02421024  
1440012d  00000000
Error (Oops_bfd_perror): /tmp/ksymoops.KNgLfz Invalid bfd target
 
 
>>$2; 802e0000 <raw_devices+18e0/2000>
>>$3; 8027c6a0 <__clz_tab+29a70/2d370>
>>$4; 8027c680 <__clz_tab+29a50/2d370>
>>$17; 802bc4cc <eth3_dev+14c/158>
>>$22; 8027c680 <__clz_tab+29a50/2d370>
>>$31; 80031d8c <kmem_cache_create+48/548>
 
>>PC;  80031d98 <kmem_cache_create+54/548>   <=====
 
Trace; 80032c8c <kmem_cache_alloc+1b4/1c4>
Trace; 8000574c <arch_kernel_thread+30/70>
Trace; 80013b98 <kernel_thread+30/68>
Trace; 80162c18 <disassociate_ctty+d4/120>
Trace; 801490c8 <_pagebuf_lookup_pages+4c/500>
Trace; 8015cab8 <ieee754dp_flong+228/28c>
Trace; 80268c0c <__clz_tab+15fdc/2d370>
Trace; 800017b4 <init+0/11c>
Trace; 800017b4 <init+0/11c>
Trace; 800017c4 <init+10/11c>
Trace; 800017b4 <init+0/11c>
Trace; 8000575c <arch_kernel_thread+40/70>
Trace; 80013b98 <kernel_thread+30/68>
Trace; 8027bb9c <__clz_tab+28f6c/2d370>
Trace; 801645c4 <tty_fasync+cc/138>
Trace; 8000574c <arch_kernel_thread+30/70>
 
Kernel panic: Attempted to kill init!
 
1 error issued.  Results may not be reliable.




(3)
Starting kswapd
Journalled Block Device driver loaded
SGI XFS with tracing, debug enabled
Break instruction in kernel code in traps.c::do_bp, line 591:
$0 : 00000000 10108400 80310000 802a570b 802a56f4 00000010 00000000 00000000
$8 : 00000d38 00000001 80310000 00000d39 80310000 80310000 80310000 80310000
$16: 80320000 80300000 00000000 00000010 8ffd7ec4 8ffd1850 802a56f4 8febbc90
$24: ba2e8ba3 00000001                   882ce000 882cfea8 0feb5380 80031d8c
Hi : 00000016
Lo : 00000002
epc   : 80031d98    Not tainted
Status: 10108403
Cause : 00800024
PrId  : 0001810b
Process swapper (pid: 1, stackpage=882ce000)
Stack:    fffff2c7 80310000 80310000 0000003c 802f28a8 00000027 10108401
 8001567c 80320000 80300000 00010f00 8ffbda28 8ffd7ec4 8ffd1850 8ffd7e88
 8febbc90 0feb5380 8017e540 80045cfc 80045c8c 00000000 00000000 00000000
 00000000 8017fdfc 802e44c8 00010f00 8ffbda28 8ffd7ec4 8ffd1850 802e4460
 802e44c8 802d8964 802d8950 882c52a0 00000000 00000000 00000040 8028497c
 802f6390 ...
Call Trace:   [<8001567c>] [<8017e540>] [<80045cfc>] [<80045c8c>] [<8017fdfc>]
 [<8028497c>] [<80270150>] [<8027011c>] [<800017b4>] [<800017b4>] [<800017c4>]
 [<800017b4>] [<8000575c>] [<80013b98>] [<802a4278>] [<80180694>] [<8000574c>]
                                                                                
                                                                                
                                     
Code: 2c420013  144000df  3c028031 <0000800d> 3c02ffff  34420fff  02421024  
1440012d  00000000
Kernel panic: Attempted to kill init!

ksymoops:
Break instruction in kernel code in traps.c::do_bp, line 591:
$0 : 00000000 10108400 802e0000 8027c6a0 8027c680 00000188 00000000 00000000
$8 : 000001f0 ffffffe0 00000000 00000000 80320254 fffffffe ffffffff 00000010
$16: 00000000 802bc4cc 00000000 00000188 8ffd7ec4 8ffd1850 8027c680 8febbc90
$24: 00000007 00000001                   882de000 882dfeb0 0feb5380 80031d8c
Hi : 00000010
Lo : 0000000c
epc   : 80031d98    Not tainted
Status: 10108403
Cause : 00800024
Process swapper (pid: 1, stackpage=882de000)
Stack:    802f0000 80032c8c 00800020 8000574c 882c7a28 fffffffd 00000190
 80013b98 00000000 802bc4cc 00010f00 8ffbda28 8ffd7ec4 8ffd1850 8ffd7e88
 8febbc90 0feb5380 80162c18 00000000 802bc4cc 00000000 802b0ab4 00000000
 00000000 801490c8 8ffbda28 00000000 00000000 8015cab8 00000000 802b09b0
 802b0978 882c52a0 00000000 00000000 00000040 80268c0c 802ce390 802bc45c
 802bc4cc ...
Call Trace:   [<80032c8c>] [<8000574c>] [<80013b98>] [<80162c18>] [<801490c8>]
 [<8015cab8>] [<80268c0c>] [<800017b4>] [<800017b4>] [<800017c4>] [<800017b4>]
 [<8000575c>] [<80013b98>] [<8027bb9c>] [<801645c4>] [<8000574c>]
Code: 2c420013  144000df  3c02802e <0000800d> 3c02ffff  34420fff  02421024  
1440012d  00000000
Error (Oops_bfd_perror): /tmp/ksymoops.YBrwSi Invalid bfd target
 
 
>>$2; 802e0000 <ic_do_bootp_ext+fc/180>
>>$3; 8027c6a0 <__udivmoddi4+140/63c>
>>$4; 8027c680 <__udivmoddi4+120/63c>
>>$12; 80320254 <pty_termios+290/400>
>>$17; 802bc4cc <__clz_tab+37dcc/3ad70>
>>$22; 8027c680 <__udivmoddi4+120/63c>
>>$31; 80031d8c <kmem_cache_create+48/548>
 
>>PC;  80031d98 <kmem_cache_create+54/548>   <=====
 
Trace; 80032c8c <kmem_cache_alloc+1b4/1c4>
Trace; 8000574c <arch_kernel_thread+30/70>
Trace; 80013b98 <kernel_thread+30/68>
Trace; 80162c18 <xfs_showargs+1d8/220>
Trace; 801490c8 <xfs_qm_dqcheck+12c/5d4>
Trace; 8015cab8 <xfs_trans_buf_item_match_all+a4/18c>
Trace; 80268c0c <rpciod_down+1d0/32c>
Trace; 800017b4 <init+0/11c>
Trace; 800017b4 <init+0/11c>
Trace; 800017c4 <init+10/11c>
Trace; 800017b4 <init+0/11c>
Trace; 8000575c <arch_kernel_thread+40/70>
Trace; 80013b98 <kernel_thread+30/68>
Trace; 8027bb9c <brcm_mips_int2_dispatch+70/1d0>
Trace; 801645c4 <xfs_readlink+180/3c4>
Trace; 8000574c <arch_kernel_thread+30/70>
 
Kernel panic: Attempted to kill init!
 
1 error issued.  Results may not be reliable.



<Prev in Thread] Current Thread [Next in Thread>