xfs
[Top] [All Lists]

Possible xfs log problem

To: linux-xfs@xxxxxxxxxxx
Subject: Possible xfs log problem
From: William L Jones <jones@xxxxxxxxxxxxxxxxxx>
Date: Wed, 2 Aug 2000 20:17:28 -0500 (CDT)
Sender: owner-linux-xfs-announce@xxxxxxxxxxx
1) Create a small xfs file system on /mnt.  I used 1g.
2) Create some file on the new xfs file system.
3) sync the file system.
4) Create some more files.  Delete an old file made in step 2. Create some more
   files.  (We are tring to get xfs to reuse the delete files inode)
5) umount /mnt
6) mount /mnt
7) If step 7 worked go back to step one and doit again.

This should produce the kernel error found at the end of this message.

The error was casued by xlog_get_bp returning a NULL when allocating a big_bp
in xlog_find_zeroed in xfs_log_recover.c.  It was requesting  256 blocks!

If you run xfs_repair between step 5 and 6 then step 6 will work.   xfs_repair
zeros the xfs_log file which I suppect is corrupted some how by the reuse
of a delete inode.  

William L. Jones
------------------------------------------------------------------------------------

Aug  2 18:46:10 localhost kernel: Unable to handle kernel NULL pointer 
dereference at virtual a
ddress 00000008
Aug  2 18:46:10 localhost kernel:  printing eip:
Aug  2 18:46:10 localhost kernel: c01b3b7a
Aug  2 18:46:10 localhost kernel: *pde = 00000000
Aug  2 18:46:10 localhost kernel: Oops: 0002
Aug  2 18:46:10 localhost kernel: CPU:    0
Aug  2 18:46:10 localhost kernel: EIP:    0010:[xlog_bread+18/128]
Aug  2 18:46:10 localhost kernel: EFLAGS: 00010202
Aug  2 18:46:10 localhost kernel: eax: 000fa0b9   ebx: 00000000   ecx: 00000099 
  edx: 00000000

Aug  2 18:46:10 localhost kernel: esi: 0000257f   edi: c1c80b80   ebp: c1c844e0 
  esp: c1999960

Aug  2 18:46:10 localhost kernel: ds: 0018   es: 0018   ss: 0018
Aug  2 18:46:10 localhost kernel: Process mount (pid: 584, stackpage=c1999000)
Aug  2 18:46:10 localhost kernel: Stack: c1c80b80 0000257f 00000000 c01b4a24 
c1c80b80 00000099
00000000 00000100
Aug  2 18:46:10 localhost kernel:        00000000 c1c80b80 c1c80b80 00000000 
00000000 00000100
00000000 00000001
Aug  2 18:46:10 localhost kernel:        c19999b4 00000099 00000000 00000000 
c1c80b80 00000199
00000000 c01b3e7d
Aug  2 18:46:10 localhost kernel: Call Trace: [xlog_find_zeroed+444/612] 
[xlog_find_head+33/136
0] [xlog_put_bp+10/16] [xlog_test_footer+321/336] [xlog_find_tail+53/876] 
[pagebuf_get_empty+27
/44] [xlog_alloc_log+569/608]
Aug  2 18:46:10 localhost kernel:        [xlog_recover+32/196] 
[xfs_log_mount+82/164] [xfs_log_
mount+117/164] [xfs_mountfs_int+3010/4524] [read_intr+0/316] 
[xfs_dir2_mount+0/292] [start_requ
est+440/560] [xfs_readsb+115/200]
Aug  2 18:46:10 localhost kernel:        [xfs_sb_relse+14/20] 
[pagebuf_rele+50/136] [xfs_mountf
s+25/32] [xfs_cmountfs+1374/1484] [merge_segments+27/408] [xfs_mount+241/428] 
[strtok+35/92] [x
fs_vfsmount+35/56]
Aug  2 18:46:10 localhost kernel:        [xfs_vfsmount+0/56] 
[linvfs_read_super+410/608] [do_in
t+109/256] [iput+370/376] [blkdev_get+263/292] [read_super+256/336] 
[get_sb_bdev+330/416] [do_m
ount+420/712]
Aug  2 18:46:10 localhost kernel:        [copy_mount_options+80/156] 
[sys_mount+175/288] [syste
m_call+56/64]
Aug  2 18:46:10 localhost kernel: Code: 81 4b 08 01 00 00 08 89 43 40 8b 4c 24 
1c c1 e1 09 89 4
b 20

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