gfs2: fsid=syz:syz.0: new: gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1318 gfs2: fsid=syz:syz.0: pid: 5079 gfs2: fsid=syz:syz.0: lock type: 8 req lock state : 1 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:5079 [syz-executor813] gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1318 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glock.c:1551! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5079 Comm: syz-executor813 Not tainted 6.2.0-rc7-next-20230208-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:add_to_queue fs/gfs2/glock.c:1551 [inline] RIP: 0010:gfs2_glock_nq+0xa2a/0x17a0 fs/gfs2/glock.c:1576 Code: 3c 03 0f 8e fd 0c 00 00 8b 53 18 4c 89 e6 48 c7 c7 60 d8 97 8a e8 96 81 ce fd 48 8b 34 24 ba 01 00 00 00 31 ff e8 56 55 ff ff <0f> 0b 4c 8b 7c 24 18 e8 ca a8 ea fd 48 89 ef be 01 00 00 00 e8 3d RSP: 0000:ffffc90003e8f920 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888076e19900 RCX: 0000000000000000 RDX: ffff88807d5c9d40 RSI: ffffffff839931cb RDI: ffffffff8a980f90 RBP: ffff88802ab37238 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802251d278 R13: 00000000000013d7 R14: ffff88802ab37200 R15: ffff88802ab37222 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056516e563000 CR3: 000000002beb3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: gfs2_glock_nq_init fs/gfs2/glock.h:261 [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:656 sync_filesystem.part.0+0x75/0x1d0 fs/sync.c:56 sync_filesystem+0x8f/0xc0 fs/sync.c:43 generic_shutdown_super+0x74/0x480 fs/super.c:474 kill_block_super+0x9b/0xf0 fs/super.c:1399 gfs2_kill_sb+0x378/0x430 fs/gfs2/ops_fstype.c:1807 deactivate_locked_super+0x98/0x160 fs/super.c:332 deactivate_super+0xb1/0xd0 fs/super.c:363 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1177 task_work_run+0x16f/0x270 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xb42/0x2b60 kernel/exit.c:869 do_group_exit+0xd4/0x2a0 kernel/exit.c:1019 __do_sys_exit_group kernel/exit.c:1030 [inline] __se_sys_exit_group kernel/exit.c:1028 [inline] __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1028 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:0x7ffa77cba999 Code: Unable to access opcode bytes at 0x7ffa77cba96f. RSP: 002b:00007fff211ff5b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007ffa77d67330 RCX: 00007ffa77cba999 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffffffffffc0 R09: 0000000000037f49 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffa77d67330 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:add_to_queue fs/gfs2/glock.c:1551 [inline] RIP: 0010:gfs2_glock_nq+0xa2a/0x17a0 fs/gfs2/glock.c:1576 Code: 3c 03 0f 8e fd 0c 00 00 8b 53 18 4c 89 e6 48 c7 c7 60 d8 97 8a e8 96 81 ce fd 48 8b 34 24 ba 01 00 00 00 31 ff e8 56 55 ff ff <0f> 0b 4c 8b 7c 24 18 e8 ca a8 ea fd 48 89 ef be 01 00 00 00 e8 3d RSP: 0000:ffffc90003e8f920 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888076e19900 RCX: 0000000000000000 RDX: ffff88807d5c9d40 RSI: ffffffff839931cb RDI: ffffffff8a980f90 RBP: ffff88802ab37238 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802251d278 R13: 00000000000013d7 R14: ffff88802ab37200 R15: ffff88802ab37222 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056516e563000 CR3: 000000002beb3000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400