A kernel panic occurred after messages about "leftover lock" on RHEL 7

Solution Verified - Updated -

Issue

A kernel panic occurred after messages about leftover lock on RHEL 7.

[42171.320062] ------------[ cut here ]------------
[42171.320075] WARNING: CPU: 10 PID: 27227 at fs/locks.c:2390 locks_remove_flock+0x1ea/0x200
[42171.320077] leftover lock: dev=253:39 ino=647692868 type=0 flags=0x1 start=0 end=9223372036854775807
[....]
42179.335421] WARNING: CPU: 11 PID: 29005 at fs/locks.c:2390 locks_remove_flock+0x1ea/0x200
[42179.335423] leftover lock: dev=253:39 ino=647692868 type=0 flags=0x1 start=0 end=9223372036854775807
[....]
[42227.955600] WARNING: CPU: 6 PID: 6307 at fs/locks.c:2390 locks_remove_flock+0x1ea/0x200
[42227.955603] leftover lock: dev=253:39 ino=647692868 type=0 flags=0x1 start=0 end=9223372036854775807
[42227.955604] Modules linked in: bridge stp llc dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag af_packet_diag netlink_diag iscsi_target_mod target_core_mod ip6_tables iptable_filter rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache ext4 mbcache jbd2 gfs2 fp_rcfs(POE) fp_fe(POE) fp_audit(POE) fp_delegation(POE) fp_ac(POE) fp_proc(POE) fp_core(POE) fp_syscall(POE) fp_gpl(OE) dlm vmw_vsock_vmci_transport vsock sb_edac edac_core coretemp iosf_mbi crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd ppdev vmw_balloon pcspkr joydev sg i2c_piix4 vmw_vmci shpchp parport_pc parport nfsd nfs_acl lockd binfmt_misc auth_rpcgss grace sunrpc ip_tables xfs libcrc32c sr_mod cdrom ata_generic pata_acpi sd_mod crc_t10dif crct10dif_generic vmwgfx drm_kms_helper syscopyarea sysfillrect
[42227.955649]  sysimgblt ahci fb_sys_fops ttm crct10dif_pclmul ata_piix libahci crct10dif_common drm libata crc32c_intel serio_raw vmxnet3 i2c_core vmw_pvscsi floppy dm_mirror dm_region_hash dm_log dm_mod
[42227.955660] CPU: 6 PID: 6307 Comm: sas Tainted: P        W  OE  ------------   3.10.0-693.11.1.el7.x86_64 #1
[42227.955661] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 09/17/2015
[42227.955662]  ffff88176f3bfd08 0000000087d4a4a8 ffff88176f3bfcb8 ffffffff816a3e61
[42227.955664]  ffff88176f3bfcf8 ffffffff810879d8 000009566f3bfcc8 ffff8807c23a3788
[42227.955666]  ffff88176f3bfd90 ffff8807c23a3640 ffff8807c23a36c8 ffff88201dac8800
[42227.955668] Call Trace:
[42227.955675]  [<ffffffff816a3e61>] dump_stack+0x19/0x1b
[42227.955680]  [<ffffffff810879d8>] __warn+0xd8/0x100
[42227.955682]  [<ffffffff81087a5f>] warn_slowpath_fmt+0x5f/0x80
[42227.955694]  [<ffffffffc0b747fc>] ? gfs2_flock+0x8c/0xc0 [gfs2]
[42227.955696]  [<ffffffff81259b7a>] locks_remove_flock+0x1ea/0x200
[42227.955701]  [<ffffffff81202d8d>] __fput+0xbd/0x260
[42227.955702]  [<ffffffff8120301e>] ____fput+0xe/0x10
[42227.955709]  [<ffffffff810ad275>] task_work_run+0xc5/0xf0
[42227.955712]  [<ffffffff8102ab62>] do_notify_resume+0x92/0xb0
[42227.955716]  [<ffffffff816b533d>] int_signal+0x12/0x17
[42227.955718] ---[ end trace e1122a266043551f ]---
[42227.955725] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
[42227.955833] IP: [<ffffffff81256db2>] locks_unlink_lock+0x12/0xa0
[42227.955858] PGD 0 
[42227.955869] Oops: 0000 [#1] SMP 
[42227.955884] Modules linked in: bridge stp llc dccp_diag dccp tcp_diag udp_diag inet_diag unix_diag af_packet_diag netlink_diag iscsi_target_mod target_core_mod ip6_tables iptable_filter rpcsec_gss_krb5 nfsv4 dns_resolver nfs fscache ext4 mbcache jbd2 gfs2 fp_rcfs(POE) fp_fe(POE) fp_audit(POE) fp_delegation(POE) fp_ac(POE) fp_proc(POE) fp_core(POE) fp_syscall(POE) fp_gpl(OE) dlm vmw_vsock_vmci_transport vsock sb_edac edac_core coretemp iosf_mbi crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd ppdev vmw_balloon pcspkr joydev sg i2c_piix4 vmw_vmci shpchp parport_pc parport nfsd nfs_acl lockd binfmt_misc auth_rpcgss grace sunrpc ip_tables xfs libcrc32c sr_mod cdrom ata_generic pata_acpi sd_mod crc_t10dif crct10dif_generic vmwgfx drm_kms_helper syscopyarea sysfillrect
[42227.956280]  sysimgblt ahci fb_sys_fops ttm crct10dif_pclmul ata_piix libahci crct10dif_common drm libata crc32c_intel serio_raw vmxnet3 i2c_core vmw_pvscsi floppy dm_mirror dm_region_hash dm_log dm_mod
[42227.956371] CPU: 6 PID: 6307 Comm: sas Tainted: P        W  OE  ------------   3.10.0-693.11.1.el7.x86_64 #1
[42227.956409] Hardware name: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 09/17/2015
[42227.956446] task: ffff8817ebf90fd0 ti: ffff88176f3bc000 task.ti: ffff88176f3bc000
[42227.956475] RIP: 0010:[<ffffffff81256db2>]  [<ffffffff81256db2>] locks_unlink_lock+0x12/0xa0
[42227.956506] RSP: 0018:ffff88176f3bfd30  EFLAGS: 00010246
[42227.956548] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000006
[42227.956571] RDX: 0000000000000000 RSI: ffff88176f3bfd90 RDI: ffff8807c23a3788
[42227.956624] RBP: ffff88176f3bfd40 R08: 000000005b2d2d2d R09: 3533343036363261
[42227.956649] R10: 00000000000009bb R11: 61727420646e6520 R12: ffff8807c23a3788
[42227.956673] R13: ffff8807c23a3640 R14: ffff8807c23a36c8 R15: ffff88201dac8800
[42227.956706] FS:  00002ba5eaf95700(0000) GS:ffff88101fd00000(0000) knlGS:0000000000000000
[42227.956733] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[42227.956752] CR2: 0000000000000010 CR3: 0000001798694000 CR4: 00000000000407e0
[42227.956808] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[42227.956859] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[42227.956883] Stack:
[42227.957887]  ffff88176f3bfd90 0000000000000000 ffff88176f3bfd60 ffffffff812576c7
[42227.958823]  ffff8807c23a3788 ffff88176f3bfd90 ffff88176f3bfe90 ffffffff81259b11
[42227.959758]  ffff881f00000000 0000000000000001 0000000000000000 7fffffffffffffff
[42227.960679] Call Trace:
[42227.961586]  [<ffffffff812576c7>] locks_delete_lock+0x17/0x50
[42227.962517]  [<ffffffff81259b11>] locks_remove_flock+0x181/0x200
[42227.963436]  [<ffffffff81202d8d>] __fput+0xbd/0x260
[42227.964346]  [<ffffffff8120301e>] ____fput+0xe/0x10
[42227.965271]  [<ffffffff810ad275>] task_work_run+0xc5/0xf0
[42227.966180]  [<ffffffff8102ab62>] do_notify_resume+0x92/0xb0
[42227.967052]  [<ffffffff816b533d>] int_signal+0x12/0x17
[42227.967986] Code: 01 00 00 00 be 03 00 00 00 e8 3b 67 e6 ff eb 92 66 0f 1f 84 00 00 00 00 00 66 66 66 66 90 55 48 89 e5 41 54 49 89 fc 53 48 8b 1f <48> 83 7b 10 00 74 47 8b 73 3c 48 c7 c7 80 8f a8 81 e8 c8 1f e6 
[42227.969944] RIP  [<ffffffff81256db2>] locks_unlink_lock+0x12/0xa0
[42227.970911]  RSP <ffff88176f3bfd30>
[42227.971842] CR2: 0000000000000010

Environment

  • Red Hat Enterprise Linux Server 7
  • Protegrity File Protector (used for file encryption)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In