RHEL6: System panics with "kernel BUG at fs/nfs/inode.c:113!" inside nfs_clear_inode
Issue
- NFS client kernel panics while removing / unlinking a file due to BUG related to the NFS page counter in the
nfs_inodestructure - System crash with RIP nfs_clear_inode+77
- System crashed with following messages:
kernel BUG at fs/nfs/inode.c:113!
invalid opcode: 0000 [#1] SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:02.0/0000:04:00.1/device
CPU 0
Modules linked in: ipmi_watchdog ipmi_devintf bluetooth rfkill cpufreq_ondemand freq_table mptctl mptbase nfs lockd auth_rpcgss nfs_acl sunrpc bnx2fc cnic uio fcoe libfcoe libfc scsi_transport_fc scsi_tgt 8021q garp stp llc pcc_cpufreq cachefiles fscache(T) ipv6 uinput hpilo hpwdt power_meter sg be2iscsi iscsi_boot_sysfs libiscsi scsi_transport_iscsi be2net microcode serio_raw iTCO_wdt iTCO_vendor_support ioatdma dca shpchp ext4 mbcache jbd2 sd_mod crc_t10dif hpsa(U) video output dm_mirror dm_region_hash dm_log dm_mod [last unloaded: panfs]
Pid: 16344, comm: nwchem Tainted: P --------------- T 2.6.32-358.14.1.el6.x86_64 #1 HP ProLiant BL460c Gen8
RIP: 0010:[<ffffffffa031b86d>] [<ffffffffa031b86d>] nfs_clear_inode+0x4d/0x60 [nfs]
RSP: 0018:ffff8804f2c4ddf8 EFLAGS: 00010282
RAX: ffff88174419ba30 RBX: ffff88174419bbf8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88174419bbf8
RBP: ffff8804f2c4de08 R08: 000000000000000e R09: 0000000000000000
R10: ffff881040240d40 R11: 0000000000000006 R12: ffff88174419bd30
R13: 0000000000000000 R14: 0000000000000000 R15: 00007fff930b7470
FS: 00002b5ea1490a00(0000) GS:ffff880061800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8bfa138000 CR3: 000000039f789000 CR4: 00000000000407f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process nwchem (pid: 16344, threadinfo ffff8804f2c4c000, task ffff88102610e080)
Stack:
ffff88174419bd30 ffff88174419bbf8 ffff8804f2c4de28 ffffffff8119d04c
<d> ffff88174419bbf8 ffffffff81fcb700 ffff8804f2c4de58 ffffffff8119d806
<d> ffff880d4b328d38 ffff88174419bbf8 ffff8818995a1300 ffff88174419bbf8
Call Trace:
[<ffffffff8119d04c>] clear_inode+0xac/0x140
[<ffffffff8119d806>] generic_delete_inode+0x196/0x1d0
[<ffffffff8119d8a5>] generic_drop_inode+0x65/0x80
[<ffffffff8119c6f2>] iput+0x62/0x70
[<ffffffff81191f74>] do_unlinkat+0x124/0x1b0
[<ffffffff810180b9>] ? ftrace_raw_event_sys_enter+0xd9/0x130
[<ffffffff81017968>] ? syscall_trace_enter+0x1d8/0x1e0
[<ffffffff81192016>] sys_unlink+0x16/0x20
[<ffffffff8100b288>] tracesys+0xd9/0xde
Code: 48 05 38 01 00 00 48 39 87 70 ff ff ff 75 20 e8 5a d7 ff ff 48 89 df e8 d2 86 ff ff 48 89 df e8 aa 60 03 00 48 83 c4 08 5b c9 c3 <0f> 0b eb fe 0f 0b eb fe 66 66 2e 0f 1f 84 00 00 00 00 00 55 48
RIP [<ffffffffa031b86d>] nfs_clear_inode+0x4d/0x60 [nfs]
RSP <ffff8804f2c4ddf8>
Environment
- Red Hat Linux Enterprise 6
- Seen on kernels 2.6.32-279.19.1.el6, 2.6.32-358.14.1.el6, and 2.6.32-431.20.3.el6
- Kernels earlier than kernel-2.6.32-573.12.1.el6
- nfs
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
