Bug in ext4? (got kernel trace data in messages...)

Hi,

Sorry if I am in the wrong forum but I am not really sure where my problem is. Maybe it is file system related. My server crashed and I got a really strange message in the log:


Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293012] ------------ cut here ]------------
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293024] kernel BUG at /usr/src/packages/BUILD/kernel-desktop-2.6.31.12/linux-2.6.31/fs/ext4/inode.c:1853!
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293029] invalid opcode: 0000 #1] PREEMPT SMP
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293037] last sysfs file: /sys/devices/system/cpu/cpu7/cache/index2/shared_cpu_map
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293045] CPU 2
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293050] Modules linked in: edd bonding fuse loop dm_mod joydev pcspkr iTCO_wdt sr_mod bnx2 button sg ses serio_raw dcdbas iTCO_vendor_support cdrom enclosure ext4 jbd2 crc16 fan processor pata_acpi thermal thermal_sys megaraid_sas
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293080] Pid: 13120, comm: pure-ftpd Not tainted 2.6.31.12-0.1-desktop #1 PowerEdge R710
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293084] RIP: 0010:<ffffffffa0076055>]  <ffffffffa0076055>] T.965+0x1e5/0x1f0 [ext4]
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293104] RSP: 0018:ffff88001670d828  EFLAGS: 00010297
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293108] RAX: 000000000000022d RBX: ffff88011f041160 RCX: 0000000000000154
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293111] RDX: 000000000000022e RSI: 000000000000022d RDI: 0000000000000153
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293115] RBP: ffff88001670d878 R08: 0000000000000001 R09: ffff88022f2504b0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293122] R10: ffff88022f250070 R11: ffff88017948c0c8 R12: ffff88011f0410c0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293125] R13: 000000000000022d R14: 0000000000109912 R15: ffff88011f041428
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293129] FS:  00007f4795ab8710(0000) GS:ffff880009082000(0000) knlGS:0000000000000000
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293133] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293136] CR2: 00000000f7714000 CR3: 00000000b34ad000 CR4: 00000000000006e0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293140] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293143] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293147] Process pure-ftpd (pid: 13120, threadinfo ffff88001670c000, task ffff880023380300)
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293151] Stack:
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293153]  0000000000109912 ffff88022b83bc00 000000001670d898 00000000b4bac030
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293157] <0> 0000000000000000 ffff88017948c0c8 ffffffffffff0000 ffff88011f041160
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293162] <0> 0000000000109912 0000000000000000 ffff88001670d8b8 ffffffffa0079080
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293167] Call Trace:
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293185]  <ffffffffa0079080>] ext4_da_get_block_prep+0xe0/0x120 [ext4]
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293197]  <ffffffff8117da69>] __block_prepare_write+0x1d9/0x5f0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293203]  <ffffffff8117e072>] block_write_begin+0x72/0x120
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293214]  <ffffffffa007bc3d>] ext4_da_write_begin+0x14d/0x2d0 [ext4]
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293226]  <ffffffff81100e75>] generic_perform_write+0xc5/0x220
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293232]  <ffffffff81101060>] generic_file_buffered_write+0x90/0x160
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293237]  <ffffffff8110181f>] __generic_file_aio_write_nolock+0x28f/0x4d0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293242]  <ffffffff81101bbf>] generic_file_aio_write+0x7f/0x110
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293252]  <ffffffffa0070598>] ext4_file_write+0x58/0x190 [ext4]
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293259]  <ffffffff8114bd22>] do_sync_write+0x102/0x160
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293264]  <ffffffff8114c0a8>] vfs_write+0xd8/0x1c0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293268]  <ffffffff8114ca3b>] sys_write+0x5b/0xa0
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293275]  <ffffffff8100c682>] system_call_fastpath+0x16/0x1b
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293280]  <00007f4794437b10>] 0x7f4794437b10
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293283] Code: 84 00 00 00 00 00 4c 89 ff e8 f8 06 4e e1 41 83 84 24 58 03 00 00 01 45 01 ac 24 5c 03 00 00 4c 89 ff e8 0f 0b 4e e1 31 c0 eb b0 <0f> 0b eb fe 0f 1f 80 00 00 00 00 55 48 89 e5 41 57 41 56 41 55
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293311] RIP  <ffffffffa0076055>] T.965+0x1e5/0x1f0 [ext4]
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.293321]  RSP <ffff88001670d828>
Jul 26 22:56:45 movie2me-viasat-london kernel: [57226.411507] --- end trace 4720fd9ac1ead602 ]---

Can somebody please help me with this? The server crashes from time to time (randomly). I can’t reproduce the issue. Thank you very much for any hint!

Tobias

So I am not sure what can be done with your present setup, but the kernel in openSUSE 11.2 is beyond 2.6.31-12. I have 2.6.31.13-21 loaded on my openSUSE 11.2. The best that you can do is to backup any important data and do a kernel update to see if this will fix the bug you are seeing.

Thank You,

jdmcdaniel3 wrote:

>
> So I am not sure what can be done with your present setup, but the
> kernel in openSUSE 11.2 is beyond 2.6.31-12. I have 2.6.31.13-21 loaded
I can not help just saw the kernel you have and this is not a kernel from
the standard repos, my kernel with all updates in opensuse 11.2 is

2.6.31.12-0.2

so if tobimat80 wants to update you need to tell where your kernel comes
from.


openSUSE 11.2 64 bit | Intel(R) Core™2 Quad CPU Q8300@2.50GHz | Gnome
2.28 | GeForce 9600 GT | 4GB Ram

So if you are using openSUSE 11.2, the latest Kernel I found was Kernel 2.6.31.14-5.1 which can be obtained from: “http://download.opensuse.org/repositories/Kernel:/openSUSE-11.2/openSUSE_11.2/”. You can go into YaST / Software Repositories and add this URL. Then go into Software Management and search on kernel. For each kernel type loaded, go to the versions button and select the bullet for the newer version that matches the name and type you have loaded now. Any custom graphic driver that is being loaded outside of YaST must be reloaded after any kernel update.

Thank You,