gfs2: fsid=syz:syz.0: H: s:EX f:cH e:0 p:5174 [syz-executor.2] 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: 5174 Comm: syz-executor.2 Not tainted 6.2.0-syzkaller-12017-g1ec35eadc3b4 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 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 c0 ce 97 8a e8 b6 33 cc 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 7a 90 e8 fd 48 89 ef be 01 00 00 00 e8 ad RSP: 0018:ffffc900023cfa18 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880758e0c80 RCX: 0000000000000000 RDX: ffff888015a6e240 RSI: ffffffff839aff3b RDI: ffffffff8a9805f0 RBP: ffff88801fbb7438 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000000023c R12: ffff888029f25278 R13: 0000000000001436 R14: ffff88801fbb7400 R15: ffff88801fbb7422 FS: 000055555617e400(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30f21000 CR3: 000000007473f000 CR4: 0000000000150ef0 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:473 kill_block_super+0x9b/0xf0 fs/super.c:1398 gfs2_kill_sb+0x378/0x430 fs/gfs2/ops_fstype.c:1807 deactivate_locked_super+0x98/0x160 fs/super.c:331 deactivate_super+0xb1/0xd0 fs/super.c:362 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1177 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x23c/0x250 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:296 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f8b82a8d567 Code: ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 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 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fffc7994238 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f8b82a8d567 RDX: 00007fffc799430a RSI: 000000000000000a RDI: 00007fffc7994300 RBP: 00007fffc7994300 R08: 00000000ffffffff R09: 00007fffc79940d0 R10: 000055555617f8b3 R11: 0000000000000246 R12: 00007f8b82ae6b24 R13: 00007fffc79953c0 R14: 000055555617f810 R15: 00007fffc7995400 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 c0 ce 97 8a e8 b6 33 cc 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 7a 90 e8 fd 48 89 ef be 01 00 00 00 e8 ad RSP: 0018:ffffc900023cfa18 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8880758e0c80 RCX: 0000000000000000 RDX: ffff888015a6e240 RSI: ffffffff839aff3b RDI: ffffffff8a9805f0 RBP: ffff88801fbb7438 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000000000023c R12: ffff888029f25278 R13: 0000000000001436 R14: ffff88801fbb7400 R15: ffff88801fbb7422 FS: 000055555617e400(0000) GS:ffff88802ca00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30f21000 CR3: 000000007473f000 CR4: 0000000000150ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400