gfs2: pid: 10974 gfs2: lock type: 8 req lock state : 1 gfs2: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:5 m:20 gfs2: H: s:EX f:cH e:0 p:10974 [syz-executor.2] gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline] gfs2: H: s:EX f:cH e:0 p:10974 [syz-executor.2] do_sync+0x4de/0xdf0 fs/gfs2/quota.c:896 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1081! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10974 Comm: syz-executor.2 Not tainted 4.19.152-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:add_to_queue fs/gfs2/glock.c:1081 [inline] RIP: 0010:gfs2_glock_nq.cold+0x19a/0x1f4 fs/gfs2/glock.c:1106 Code: 0f b6 04 02 84 c0 74 04 3c 03 7e 71 8b 73 18 44 89 e2 48 c7 c7 e0 fb 45 88 e8 cb 81 33 fe 48 8b 74 24 08 31 ff e8 90 79 ff ff <0f> 0b 48 c7 c7 40 86 ee 89 e8 62 51 8e 00 e8 7d 54 83 fe e9 a3 fe RSP: 0018:ffff88809136fa30 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88804eaf4cf8 RCX: ffffffff8327563d RDX: 0000000000000000 RSI: ffffffff8327568c RDI: ffffffff88461ed0 RBP: 0000000000002ade R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880970ca1b8 R14: 0000000000000000 R15: 0000000000000008 FS: 00000000022a5940(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000022aea98 CR3: 0000000092bf2000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:228 [inline] do_sync+0x4e6/0xdf0 fs/gfs2/quota.c:896 gfs2_quota_sync+0x2dd/0x640 fs/gfs2/quota.c:1303 gfs2_sync_fs+0x40/0xb0 fs/gfs2/super.c:956 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x105/0x250 fs/sync.c:64 generic_shutdown_super+0x70/0x370 fs/super.c:442 kill_block_super+0x97/0xf0 fs/super.c:1185 gfs2_kill_sb+0x12c/0x1a0 fs/gfs2/ops_fstype.c:1386 deactivate_locked_super+0x8c/0x100 fs/super.c:329 deactivate_super+0x174/0x1a0 fs/super.c:360 cleanup_mnt+0x1da/0x300 fs/namespace.c:1098 task_work_run+0x141/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x269/0x2c0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x57c/0x670 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x460887 Code: 64 89 04 25 d0 02 00 00 58 5f ff d0 48 89 c7 e8 2f be ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffca34f3868 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000043b71 RCX: 0000000000460887 RDX: 0000000000403188 RSI: 0000000000000002 RDI: 00007ffca34f3910 RBP: 00000000000000ad R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000005 R11: 0000000000000246 R12: 00007ffca34f49a0 R13: 00000000022a6a60 R14: 0000000000000000 R15: 00007ffca34f49a0 Modules linked in: ---[ end trace 2003ad13c4c0b9b1 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1081 [inline] RIP: 0010:gfs2_glock_nq.cold+0x19a/0x1f4 fs/gfs2/glock.c:1106 Code: 0f b6 04 02 84 c0 74 04 3c 03 7e 71 8b 73 18 44 89 e2 48 c7 c7 e0 fb 45 88 e8 cb 81 33 fe 48 8b 74 24 08 31 ff e8 90 79 ff ff <0f> 0b 48 c7 c7 40 86 ee 89 e8 62 51 8e 00 e8 7d 54 83 fe e9 a3 fe RSP: 0018:ffff88809136fa30 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff88804eaf4cf8 RCX: ffffffff8327563d RDX: 0000000000000000 RSI: ffffffff8327568c RDI: ffffffff88461ed0 RBP: 0000000000002ade R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880970ca1b8 R14: 0000000000000000 R15: 0000000000000008 FS: 00000000022a5940(0000) GS:ffff8880ae200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000022aea98 CR3: 0000000092bf2000 CR4: 00000000001426f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400