GFS2 flock panic issue

Solution Verified - Updated -

Issue

A kernel panic occurs on a gfs2 filesystem:

[1114188.435357] kernel BUG at fs/locks.c:1885!
[1114188.435824] invalid opcode: 0000 [#1] SMP
[1114188.436281] Modules linked in: nfsv3 rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache xt_REDIRECT nf_nat_redirect gfs2 dlm ip_vs_rr xt_ipvs ip_vs xt_nat veth vxlan ip6_udp_tunnel udp_tunnel iptable_mangle xt_mark ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter xt_conntrack nf_nat nf_conntrack br_netfilter bridge stp llc binfmt_misc vmw_vsock_vmci_transport vsock dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio sb_edac edac_core iosf_mbi crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd ppdev vmw_balloon pcspkr vmw_vmci joydev i2c_piix4 sg shpchp parport_pc parport nfsd auth_rpcgss nfs_acl lockd grace sunrpc ip_tables xfs libcrc32c ata_generic pata_acpi
[1114188.439148]  vmwgfx drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm ata_piix drm sd_mod crc_t10dif libata crct10dif_generic crct10dif_pclmul crct10dif_common i2c_core crc32c_intel serio_raw vmxnet3 vmw_pvscsi dm_mirror dm_region_hash dm_log dm_mod
[1114188.440492] CPU: 7 PID: 46432 Comm: httpd Not tainted 3.10.0-693.5.2.el7.x86_64 #1
[1114188.441167] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 09/21/2015
[1114188.441875] task: ffff88017a252f70 ti: ffff88021f330000 task.ti: ffff88021f330000
[1114188.442588] RIP: 0010:[<ffffffff812587a8>]  [<ffffffff812587a8>] locks_lock_inode_wait+0x28/0x40
[1114188.443380] RSP: 0018:ffff88021f333de0  EFLAGS: 00010293
[1114188.444110] RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
[1114188.444834] RDX: 0000000000000000 RSI: ffff88021f333e08 RDI: ffff880270b19740
[1114188.445668] RBP: ffff88021f333de0 R08: 0000000000019c20 R09: 0000000000000000
[1114188.446421] R10: ffff8800a76518c0 R11: 0000000000000297 R12: 0000000000000080
[1114188.447173] R13: ffff88037abea9c0 R14: ffff88037abea9e8 R15: ffff8800b9daa100
[1114188.447925] FS:  00007f33cb161880(0000) GS:ffff88042d7c0000(0000) knlGS:0000000000000000
[1114188.448712] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[1114188.449481] CR2: 00007ffc6c0b4240 CR3: 00000003f4ff3000 CR4: 00000000001407e0
[1114188.450213] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[1114188.451025] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[1114188.451801] Stack:
[1114188.452557]  ffff88021f333ef8 ffffffffc0608642 ffff880270b19740 ffff8800a76518c0
[1114188.453343]  ffff8803f17c7100 0000000000000000 0000000000000000 0000000000000000
[1114188.454129]  0000000000000000 0000000000000000 0000000000000000 0000000200000000
[1114188.454915] Call Trace:
[1114188.455732]  [<ffffffffc0608642>] do_flock+0xc2/0x260 [gfs2]
[1114188.456565]  [<ffffffffc0608814>] gfs2_flock+0x34/0xc0 [gfs2]
[1114188.457355]  [<ffffffff8125962e>] SyS_flock+0x15e/0x1f0
[1114188.458161]  [<ffffffff816b5292>] tracesys+0xdd/0xe2
[1114188.458949] Code: 00 00 00 0f 1f 44 00 00 55 8b 46 30 48 89 e5 83 e0 03 83 f8 01 74 1c 83 f8 02 75 0f e8 12 f3 ff ff 5d 90 c3 0f 1f 80 00 00 00 00 <0f> 0b 66 0f 1f 44 00 00 e8 5b fb ff ff 5d c3 66 0f 1f 84 00 00
[1114188.460685] RIP  [<ffffffff812587a8>] locks_lock_inode_wait+0x28/0x40
[1114188.461533]  RSP <ffff88021f333de0>

Environment

  • Red Hat Enterprise Linux Server 7 (with the High Availability Add On and Resilient Storage Add Ons)
  • A Global Filesystem 2(gfs2)

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