gfs2: fsid=syz:syz.0: G: s:UN n:2/924 f:lfqobn t:EX d:EX/0 a:0 v:0 r:2 m:20 p:1 gfs2: fsid=syz:syz.0: H: s:EX f:W e:0 p:5531 [syz-executor.0] __mark_inode_dirty+0x247/0x11e0 fs/fs-writeback.c:2419 ------------[ cut here ]------------ kernel BUG at fs/gfs2/glops.c:312! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 5531 Comm: syz-executor.0 Not tainted 6.2.0-rc1-syzkaller-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 RIP: 0010:inode_go_sync+0x4bd/0x560 fs/gfs2/glops.c:312 Code: 00 00 48 8b 7b 30 31 c9 31 d2 31 f6 e8 bc 6b 2c fe e9 82 fe ff ff e8 f2 b1 f0 fd ba 01 00 00 00 48 89 ee 31 ff e8 73 18 ff ff <0f> 0b 48 89 df e8 99 a3 40 fe e9 d0 fb ff ff e8 cf b1 f0 fd be 08 RSP: 0018:ffffc9000591f780 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888071a0b5c0 RCX: 0000000000000000 RDX: ffff8880778957c0 RSI: ffffffff838f707d RDI: 0000000000000001 RBP: ffff888076b62a40 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: ffff888076b62ce0 R15: 0000000000000000 FS: 0000555557453400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc56f95128 CR3: 00000000291f7000 CR4: 0000000000350ef0 Call Trace: do_xmote+0x2f5/0xc40 fs/gfs2/glock.c:708 run_queue+0x3cf/0x660 fs/gfs2/glock.c:846 gfs2_glock_nq+0x592/0x1470 fs/gfs2/glock.c:1563 gfs2_glock_nq_init fs/gfs2/glock.h:262 [inline] gfs2_dirty_inode+0x38f/0x820 fs/gfs2/super.c:488 __mark_inode_dirty+0x247/0x11e0 fs/fs-writeback.c:2419 mark_inode_dirty include/linux/fs.h:2462 [inline] gfs2_adjust_quota+0x66e/0x870 fs/gfs2/quota.c:873 do_sync+0x916/0xb90 fs/gfs2/quota.c:950 gfs2_quota_sync+0x2e6/0x660 fs/gfs2/quota.c:1313 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 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:0x7ff0a908d567 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:00007ffc541a4f08 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007ff0a908d567 RDX: 00007ffc541a4fd9 RSI: 000000000000000a RDI: 00007ffc541a4fd0 RBP: 00007ffc541a4fd0 R08: 00000000ffffffff R09: 00007ffc541a4da0 R10: 00005555574548b3 R11: 0000000000000246 R12: 00007ff0a90e6b24 R13: 00007ffc541a6090 R14: 0000555557454810 R15: 00007ffc541a60d0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:inode_go_sync+0x4bd/0x560 fs/gfs2/glops.c:312 Code: 00 00 48 8b 7b 30 31 c9 31 d2 31 f6 e8 bc 6b 2c fe e9 82 fe ff ff e8 f2 b1 f0 fd ba 01 00 00 00 48 89 ee 31 ff e8 73 18 ff ff <0f> 0b 48 89 df e8 99 a3 40 fe e9 d0 fb ff ff e8 cf b1 f0 fd be 08 RSP: 0018:ffffc9000591f780 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff888071a0b5c0 RCX: 0000000000000000 RDX: ffff8880778957c0 RSI: ffffffff838f707d RDI: 0000000000000001 RBP: ffff888076b62a40 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: ffff888076b62ce0 R15: 0000000000000000 FS: 0000555557453400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1dc37e5300 CR3: 00000000291f7000 CR4: 0000000000350ef0