gfs2: fsid=syz:syz.0: G: s:EX n:8/1 f:qb t:EX d:EX/0 a:0 v:0 r:5 m:20 p:0 gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:5083 [syz-executor561] gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1318 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1531! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5083 Comm: syz-executor561 Not tainted 6.2.0-rc2-next-20230105-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:add_to_queue fs/gfs2/glock.c:1531 [inline] RIP: 0010:gfs2_glock_nq.cold+0x2cf/0x350 fs/gfs2/glock.c:1556 Code: 8e 9c 00 00 00 8b 53 18 44 89 e9 4c 89 e6 48 c7 c7 e0 c0 97 8a e8 c0 d1 f2 ff 48 8b 34 24 ba 01 00 00 00 31 ff e8 39 f3 c1 f9 <0f> 0b e8 42 bd 04 f8 4c 8b 4c 24 18 4c 8b 44 24 10 e9 5c fd ff ff RSP: 0018:ffffc90003bcf968 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888075d25c20 RCX: 0000000000000000 RDX: ffff888029961d40 RSI: ffffffff838ce337 RDI: ffffffff8a97f810 RBP: ffff88801dd04438 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802a21d270 R13: 0000000000000001 R14: ffff88801dd04400 R15: ffff888075d25ca0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb010e90140 CR3: 000000000c48e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline] do_sync+0x4b9/0xcf0 fs/gfs2/quota.c:910 gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1318 gfs2_sync_fs+0x44/0xb0 fs/gfs2/super.c:650 sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56 sync_filesystem+0x8f/0xc0 fs/sync.c:43 generic_shutdown_super+0x74/0x410 fs/super.c:474 kill_block_super+0x9b/0xf0 fs/super.c:1386 gfs2_kill_sb+0x108/0x170 fs/gfs2/ops_fstype.c:1738 deactivate_locked_super+0x98/0x160 fs/super.c:332 deactivate_super+0xb1/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1291 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xb17/0x2a90 kernel/exit.c:867 do_group_exit+0xd4/0x2a0 kernel/exit.c:1012 __do_sys_exit_group kernel/exit.c:1023 [inline] __se_sys_exit_group kernel/exit.c:1021 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1021 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb010e09999 Code: Unable to access opcode bytes at 0x7fb010e0996f. RSP: 002b:00007ffdb858bf38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007fb010e92330 RCX: 00007fb010e09999 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 00000000000134ba R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb010e92330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1531 [inline] RIP: 0010:gfs2_glock_nq.cold+0x2cf/0x350 fs/gfs2/glock.c:1556 Code: 8e 9c 00 00 00 8b 53 18 44 89 e9 4c 89 e6 48 c7 c7 e0 c0 97 8a e8 c0 d1 f2 ff 48 8b 34 24 ba 01 00 00 00 31 ff e8 39 f3 c1 f9 <0f> 0b e8 42 bd 04 f8 4c 8b 4c 24 18 4c 8b 44 24 10 e9 5c fd ff ff RSP: 0018:ffffc90003bcf968 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888075d25c20 RCX: 0000000000000000 RDX: ffff888029961d40 RSI: ffffffff838ce337 RDI: ffffffff8a97f810 RBP: ffff88801dd04438 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802a21d270 R13: 0000000000000001 R14: ffff88801dd04400 R15: ffff888075d25ca0 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb010e90140 CR3: 000000000c48e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400