gfs2: pid: 3413 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:6 m:20 gfs2: H: s:EX f:cH e:0 p:3413 [syz-executor] gfs2_glock_nq_init fs/gfs2/glock.h:226 [inline] gfs2: H: s:EX f:cH e:0 p:3413 [syz-executor] do_sync+0x198/0x510 fs/gfs2/quota.c:896 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1076! invalid opcode: 0000 [#1] SMP PTI CPU: 0 PID: 3413 Comm: syz-executor Not tainted 4.19.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:add_to_queue fs/gfs2/glock.c:1076 [inline] RIP: 0010:gfs2_glock_nq.cold.14+0x89/0x95 fs/gfs2/glock.c:1101 Code: 9d 80 82 e8 27 1f cc ff 49 8b 47 10 48 c7 c7 70 a2 80 82 41 0f b7 57 22 8b 70 18 e8 0f 1f cc ff 4c 89 e6 31 ff e8 cc dd ff ff <0f> 0b 31 f6 eb 8d 31 f6 eb c8 90 90 55 48 89 e5 41 54 4c 8d 67 20 RSP: 0018:ffffc90000e4bc50 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff880225e53500 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000286 RBP: ffffc90000e4bc90 R08: 0000000000000000 R09: 000000006c788c58 R10: ffffffff82aa8b98 R11: ffff88021acd63d0 R12: ffff88021ad13540 R13: ffff88021ad13540 R14: 0000000000000000 R15: ffff880225e53538 FS: 00007fc45d3e2500(0000) GS:ffff880237a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc45af819a0 CR3: 000000022fd2a000 CR4: 00000000003406f0 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+0x1a0/0x510 fs/gfs2/quota.c:896 gfs2_quota_sync+0x132/0x220 fs/gfs2/quota.c:1304 gfs2_sync_fs+0x1b/0x50 fs/gfs2/super.c:956 __sync_filesystem fs/sync.c:39 [inline] sync_filesystem+0x3d/0x90 fs/sync.c:64 generic_shutdown_super+0x22/0x100 fs/super.c:442 kill_block_super+0x22/0x50 fs/super.c:1185 gfs2_kill_sb+0x6c/0x80 fs/gfs2/ops_fstype.c:1373 deactivate_locked_super+0x30/0x70 fs/super.c:329 deactivate_super fs/super.c:360 [inline] deactivate_super+0x4c/0x50 fs/super.c:356 cleanup_mnt+0x3a/0x70 fs/namespace.c:1098 __cleanup_mnt+0xd/0x10 fs/namespace.c:1105 task_work_run+0x8f/0xb0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0xd4/0xe0 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x17a/0x180 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fc45af9fb47 Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffd7aae0648 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fc45b0115fc RCX: 00007fc45af9fb47 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffd7aae0700 RBP: 00007ffd7aae0700 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffd7aae1780 R13: 00007fc45b0115fc R14: 000000000000e374 R15: 00007ffd7aae17c0 Modules linked in: ---[ end trace 11bf84c0b05f9f5f ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1076 [inline] RIP: 0010:gfs2_glock_nq.cold.14+0x89/0x95 fs/gfs2/glock.c:1101 Code: 9d 80 82 e8 27 1f cc ff 49 8b 47 10 48 c7 c7 70 a2 80 82 41 0f b7 57 22 8b 70 18 e8 0f 1f cc ff 4c 89 e6 31 ff e8 cc dd ff ff <0f> 0b 31 f6 eb 8d 31 f6 eb c8 90 90 55 48 89 e5 41 54 4c 8d 67 20 RSP: 0018:ffffc90000e4bc50 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff880225e53500 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000286 RBP: ffffc90000e4bc90 R08: 0000000000000000 R09: 000000006c788c58 R10: ffffffff82aa8b98 R11: ffff88021acd63d0 R12: ffff88021ad13540 R13: ffff88021ad13540 R14: 0000000000000000 R15: ffff880225e53538 FS: 00007fc45d3e2500(0000) GS:ffff880237a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc45af819a0 CR3: 000000022fd2a000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400