Bug 37602 - kernel BUG at fs/inode.c
Summary: kernel BUG at fs/inode.c
Status: CLOSED CODE_FIX
Alias: None
Product: File System
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: fs_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 07:45 UTC by Ross Lagerwall
Modified: 2011-06-17 12:17 UTC (History)
2 users (show)

See Also:
Kernel Version: linux-3.0-rc3
Subsystem:
Regression: No
Bisected commit-id:


Attachments
The trace. (6.98 KB, text/plain)
2011-06-16 07:45 UTC, Ross Lagerwall
Details

Description Ross Lagerwall 2011-06-16 07:45:25 UTC
Created attachment 62192 [details]
The trace.

While running ./configure on some software, the following occurred:

"""
[10239.158793] WARNING: at fs/inode.c:334 ihold+0x31/0x40()
[10239.158795] Hardware name: 945GCT-M2
[10239.158797] Modules linked in: binfmt_misc nouveau ttm drm_kms_helper drm i2c_algo_bit mxm_wmi video snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq ppdev parport_pc snd_timer snd_seq_device usbhid snd hid soundcore lp snd_page_alloc parport
[10239.158823] Pid: 22264, comm: rm Not tainted 3.0.0-rc3 #1
[10239.158825] Call Trace:
[10239.158832]  [<ffffffff810604bf>] warn_slowpath_common+0x7f/0xc0
[10239.158836]  [<ffffffff8106051a>] warn_slowpath_null+0x1a/0x20
[10239.158839]  [<ffffffff811791f1>] ihold+0x31/0x40
[10239.158843]  [<ffffffff8116ea2d>] do_unlinkat+0x11d/0x1e0
[10239.158847]  [<ffffffff811658ea>] ? sys_newfstatat+0x2a/0x40
[10239.158850]  [<ffffffff81170602>] sys_unlinkat+0x22/0x40
[10239.158856]  [<ffffffff815dfb02>] system_call_fastpath+0x16/0x1b
[10239.158858] ---[ end trace 496b288b09c4834e ]---
[10239.158886] ------------[ cut here ]------------
[10239.158906] kernel BUG at fs/inode.c:1368!
[10239.158912] invalid opcode: 0000 [#1] SMP 
[10239.158921] CPU 0 
[10239.158925] Modules linked in: binfmt_misc nouveau ttm drm_kms_helper drm i2c_algo_bit mxm_wmi video snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq ppdev parport_pc snd_timer snd_seq_device usbhid snd hid soundcore lp snd_page_alloc parport
[10239.158998] 
[10239.159003] Pid: 22264, comm: rm Tainted: G        W   3.0.0-rc3 #1 ECS 945GCT-M2/945GCT-M2
[10239.159017] RIP: 0010:[<ffffffff8117a5d9>]  [<ffffffff8117a5d9>] iput+0x189/0x1c0
[10239.159029] RSP: 0018:ffff880078463e68  EFLAGS: 00010202
[10239.159035] RAX: ffff880049285cc0 RBX: ffff8800441624a0 RCX: 00000001000f2a7e
[10239.159043] RDX: 000000000000004c RSI: ffff8800258ec240 RDI: ffff8800441624a0
[10239.159051] RBP: ffff880078463e88 R08: 9018000000000000 R09: ffff8800441623f0
[10239.159060] R10: ff9de9ec3d7d3203 R11: ffffffff816236a0 R12: ffff8800441624a0
[10239.159067] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
[10239.159076] FS:  00007f92a1d5a720(0000) GS:ffff88007fc00000(0000) knlGS:0000000000000000
[10239.159085] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10239.159092] CR2: 00007f92a1838200 CR3: 000000007a3ef000 CR4: 00000000000006f0
[10239.159099] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[10239.159109] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[10239.159117] Process rm (pid: 22264, threadinfo ffff880078462000, task ffff8800697bc4d0)
[10239.159125] Stack:
[10239.159129]  ffff8800258ec240 ffff8800441624a0 0000000000000000 0000000000000000
[10239.159143]  ffff880078463f68 ffffffff8116ea14 ffff88007b51d000 ffff880049285cc0
[10239.159157]  0000000d24d7be1d ffff880069463000 0000000000000000 0000000000000000
[10239.159171] Call Trace:
[10239.159178]  [<ffffffff8116ea14>] do_unlinkat+0x104/0x1e0
[10239.159186]  [<ffffffff811658ea>] ? sys_newfstatat+0x2a/0x40
[10239.159194]  [<ffffffff81170602>] sys_unlinkat+0x22/0x40
[10239.159202]  [<ffffffff815dfb02>] system_call_fastpath+0x16/0x1b
[10239.159210] Code: 15 ad 47 8c 00 83 05 8a 64 b6 00 01 48 89 05 9f 47 8c 00 48 89 42 08 48 89 93 80 00 00 00 48 c7 83 88 00 00 00 60 ed a3 81 eb c3 <0f> 0b be 2d 05 00 00 48 c7 c7 15 e4 7e 81 e8 14 5f ee ff e9 d1 
[10239.159328] RIP  [<ffffffff8117a5d9>] iput+0x189/0x1c0
[10239.159338]  RSP <ffff880078463e68>
[10239.167190] ---[ end trace 496b288b09c4834f ]---
[10241.401672] ------------[ cut here ]------------
[10241.401686] WARNING: at fs/inode.c:334 ihold+0x31/0x40()
[10241.401688] Hardware name: 945GCT-M2
[10241.401690] Modules linked in: binfmt_misc nouveau ttm drm_kms_helper drm i2c_algo_bit mxm_wmi video snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq ppdev parport_pc snd_timer snd_seq_device usbhid snd hid soundcore lp snd_page_alloc parport
[10241.401725] Pid: 22874, comm: rm Tainted: G      D W   3.0.0-rc3 #1
[10241.401727] Call Trace:
[10241.401735]  [<ffffffff810604bf>] warn_slowpath_common+0x7f/0xc0
[10241.401738]  [<ffffffff8106051a>] warn_slowpath_null+0x1a/0x20
[10241.401742]  [<ffffffff811791f1>] ihold+0x31/0x40
[10241.401746]  [<ffffffff8116ea2d>] do_unlinkat+0x11d/0x1e0
[10241.401750]  [<ffffffff811658ea>] ? sys_newfstatat+0x2a/0x40
[10241.401754]  [<ffffffff81170602>] sys_unlinkat+0x22/0x40
[10241.401761]  [<ffffffff815dfb02>] system_call_fastpath+0x16/0x1b
[10241.401763] ---[ end trace 496b288b09c48350 ]---
[10241.401792] ------------[ cut here ]------------
[10241.401811] kernel BUG at fs/inode.c:1368!
[10241.401817] invalid opcode: 0000 [#2] SMP 
[10241.401828] CPU 0 
[10241.401832] Modules linked in: binfmt_misc nouveau ttm drm_kms_helper drm i2c_algo_bit mxm_wmi video snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq ppdev parport_pc snd_timer snd_seq_device usbhid snd hid soundcore lp snd_page_alloc parport
[10241.401915] 
[10241.401919] Pid: 22874, comm: rm Tainted: G      D W   3.0.0-rc3 #1 ECS 945GCT-M2/945GCT-M2
[10241.401934] RIP: 0010:[<ffffffff8117a5d9>]  [<ffffffff8117a5d9>] iput+0x189/0x1c0
[10241.401947] RSP: 0018:ffff88007ac93e68  EFLAGS: 00010202
[10241.401954] RAX: ffff880049285cc0 RBX: ffff88000f81abd0 RCX: 00000001000f2b5f
[10241.401964] RDX: 000000000000000e RSI: ffff88007b36f600 RDI: ffff88000f81abd0
[10241.401973] RBP: ffff88007ac93e88 R08: f018000000000000 R09: ffff88000f81ab20
[10241.401981] R10: ffd27e57e85efe03 R11: ffffffff816236a0 R12: ffff88000f81abd0
[10241.401989] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003
[10241.401998] FS:  00007f230bb20720(0000) GS:ffff88007fc00000(0000) knlGS:0000000000000000
[10241.402007] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[10241.402015] CR2: 00007f230b5fe200 CR3: 000000007b6f6000 CR4: 00000000000006f0
[10241.402023] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[10241.402031] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[10241.402558] Process rm (pid: 22874, threadinfo ffff88007ac92000, task ffff880078630000)
[10241.403068] Stack:
[10241.403572]  ffff88007b36f600 ffff88000f81abd0 0000000000000000 0000000000000000
[10241.404087]  ffff88007ac93f68 ffffffff8116ea14 ffff88007b51d000 ffff880049285cc0
[10241.404602]  0000000cd4cfdd61 ffff880069462000 0000000000000000 0000000000000000
[10241.405114] Call Trace:
[10241.405611]  [<ffffffff8116ea14>] do_unlinkat+0x104/0x1e0
[10241.406113]  [<ffffffff811658ea>] ? sys_newfstatat+0x2a/0x40
[10241.406620]  [<ffffffff81170602>] sys_unlinkat+0x22/0x40
[10241.407136]  [<ffffffff815dfb02>] system_call_fastpath+0x16/0x1b
[10241.407623] Code: 15 ad 47 8c 00 83 05 8a 64 b6 00 01 48 89 05 9f 47 8c 00 48 89 42 08 48 89 93 80 00 00 00 48 c7 83 88 00 00 00 60 ed a3 81 eb c3 <0f> 0b be 2d 05 00 00 48 c7 c7 15 e4 7e 81 e8 14 5f ee ff e9 d1 
[10241.408744] RIP  [<ffffffff8117a5d9>] iput+0x189/0x1c0
[10241.409260]  RSP <ffff88007ac93e68>
[10241.409775] ---[ end trace 496b288b09c48351 ]---
"""

It seems like a bug in fs/inode.c.

The filesystem is ext4.
Core 2 Duo 3.0Ghz running Ubuntu Linux 11.04 with custom linux-3.0-rc3 kernel.
Comment 1 Ross Lagerwall 2011-06-16 07:48:00 UTC
The software is Octave 3.4.1 and running ./configure again reproduces the same thing.
Comment 2 Ross Lagerwall 2011-06-16 08:00:28 UTC
There appears to be a discussion on this at https://lkml.org/lkml/2011/6/10/520 along with a patch.
Comment 3 Florian Mickler 2011-06-17 11:25:54 UTC
Patch: https://patchwork.kernel.org/patch/883572/

Is somebody picking that patch up for merging to Linus?
Comment 5 Florian Mickler 2011-06-17 12:17:04 UTC
Nice.

Note You need to log in before you can comment on or make changes to this bug.