RHEL6.5 still panics in ext4_ext_put_in_cache() due to BUG_ON(len == 0).

Solution Unverified - Updated -

Issue

  • RHEL6.5 server with kernel 2.6.32-431*.el6 or above still panics in ext4_ext_put_in_cache() due to BUG_ON(len == 0) with the message "BUG at fs/ext4/extents.c:2046!"
kernel BUG at fs/ext4/extents.c:2046!
invalid opcode: 0000 [#1] SMP 
last sysfs file: /sys/devices/system/cpu/online
CPU 1 
Modules linked in: iptable_filter ip_tables vsock(U) vmci(U) netconsole configfs autofs4 nfs lockd fscache auth_rpcgss nfs_acl sunrpc ipv6 ppdev vmware_balloon parport_pc parport vmxnet3 i2c_piix4 i2c_core sg shpchp ext4 jbd2 mbcache dm_snapshot sd_mod crc_t10dif sr_mod cdrom vmw_pvscsi pata_acpi ata_generic ata_piix dm_mirror dm_region_hash dm_log dm_mod [last unloaded: scsi_wait_scan]

Pid: 38358, comm: cf-agent Tainted: G        W  ---------------    2.6.32-431.17.1.el6.x86_64 #1 VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform
RIP: 0010:[<ffffffffa00cb037>]  [<ffffffffa00cb037>] ext4_ext_put_in_cache+0x77/0x80 [ext4]
RSP: 0018:ffff8802390bb948  EFLAGS: 00010246
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000035954290
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff88010affb4b8
RBP: ffff8802390bb978 R08: ffff880238bdbc30 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000035954290 R14: ffff880152383618 R15: 0000000035954290
FS:  00007f414e653700(0000) GS:ffff880033620000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000e99490 CR3: 0000000239fa9000 CR4: 00000000000007e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process cf-agent (pid: 38358, threadinfo ffff8802390ba000, task ffff8802388ec040)
Stack:
 ffff880000079348 ffff88010affb4b8 ffff88019f6021b8 0000000035954290
<d> ffff880152383618 0000000000000479 ffff8802390bbaf8 ffffffffa00cd5b1
<d> 0000000000000282 0000000000000030 ffff880152383618 ffff8800000685c0
Call Trace:
 [<ffffffffa00cd5b1>] ext4_ext_get_blocks+0x351/0x14b0 [ext4]
 [<ffffffff8112f013>] ? __alloc_pages_nodemask+0x113/0x8d0
 [<ffffffff8117c595>] ? mem_cgroup_charge_common+0xa5/0xd0
 [<ffffffffa00aab9a>] ext4_get_blocks+0x7a/0x2a0 [ext4]
 [<ffffffffa00ab41d>] ext4_get_block+0xbd/0x120 [ext4]
 [<ffffffffa00ad537>] ext4_block_zero_page_range+0x247/0x480 [ext4]
 [<ffffffffa00ad797>] ext4_block_truncate_page+0x27/0x30 [ext4]
 [<ffffffffa00cfab3>] ext4_ext_truncate+0x1c3/0x1f0 [ext4]
 [<ffffffff81148e64>] ? unmap_mapping_range_vma+0x64/0xf0
 [<ffffffffa00adc68>] ext4_truncate+0x4c8/0x6a0 [ext4]
 [<ffffffff8114910b>] ? unmap_mapping_range+0x12b/0x140
 [<ffffffff81137926>] vmtruncate+0x56/0x70
 [<ffffffff811a6be0>] inode_setattr+0x30/0x60
 [<ffffffffa00adf4c>] ext4_setattr+0x10c/0x330 [ext4]
 [<ffffffff811a6fc8>] notify_change+0x168/0x340
 [<ffffffff812824f5>] ? _atomic_dec_and_lock+0x55/0x80
 [<ffffffff81186d24>] do_truncate+0x64/0xa0
 [<ffffffff811870d0>] sys_ftruncate+0x120/0x130
 [<ffffffff8100b072>] system_call_fastpath+0x16/0x1b
Code: a5 4c 03 00 00 4c 89 f0 4d 89 bd 40 03 00 00 c7 00 00 00 00 00 48 8b 5d d8 4c 8b 65 e0 4c 8b 6d e8 4c 8b 75 f0 4c 8b 7d f8 c9 c3 <0f> 0b eb fe 0f 1f 44 00 00 55 48 89 e5 48 83 ec 40 48 89 5d d8 
RIP  [<ffffffffa00cb037>] ext4_ext_put_in_cache+0x77/0x80 [ext4]
 RSP <ffff8802390bb948>

Environment

  • Red Hat Enterprise Linux 6.5
    • seen on kernel-2.6.32-431.17.1.el6.x86_64
    • NOTE: This solution only applies to kernels 2.6.32-431*.el6 or above.
  • ext4 filesystem

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content