------------[ cut here ]------------ requested to flush journal seq 36028797018963972, but currently at 9 WARNING: CPU: 0 PID: 5109 at fs/bcachefs/journal.c:672 bch2_journal_flush_seq_async+0x7c2/0x830 fs/bcachefs/journal.c:670 Modules linked in: CPU: 0 UID: 0 PID: 5109 Comm: syz.0.0 Not tainted 6.11.0-syzkaller-05442-g932d2d1fcb2b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:bch2_journal_flush_seq_async+0x7c2/0x830 fs/bcachefs/journal.c:670 Code: df 48 8b 44 24 38 42 80 3c 38 00 74 08 48 89 df e8 73 b6 c3 fd 48 8b 13 48 c7 c7 00 d2 53 8c 48 8b 74 24 18 e8 ff 11 1e fd 90 <0f> 0b 90 90 31 db e9 5c ff ff ff 89 f9 80 e1 07 38 c1 0f 8c ae fd RSP: 0018:ffffc90002e6faa0 EFLAGS: 00010246 RAX: e44d70eb608bec00 RBX: ffff88804beca9b8 RCX: 0000000000040000 RDX: ffffc9000b69a000 RSI: 0000000000001d0b RDI: 0000000000001d0c RBP: ffffc90002e6fb90 R08: ffffffff8155c052 R09: 1ffff11003fc519a R10: dffffc0000000000 R11: ffffed1003fc519b R12: 1ffff920005cdf60 R13: ffff88804beca9c8 R14: 0000000000000009 R15: dffffc0000000000 FS: 00007f2841e046c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f28410795a0 CR3: 000000001f7fa000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_journal_flush_seq+0xef/0x2b0 fs/bcachefs/journal.c:759 bch2_flush_inode+0x276/0x410 fs/bcachefs/fs-io.c:185 bch2_fsync+0x183/0x360 fs/bcachefs/fs-io.c:205 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fdatasync fs/sync.c:225 [inline] __se_sys_fdatasync fs/sync.c:223 [inline] __x64_sys_fdatasync+0xb7/0x110 fs/sync.c:223 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2840f7def9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f2841e04038 EFLAGS: 00000246 ORIG_RAX: 000000000000004b RAX: ffffffffffffffda RBX: 00007f2841136058 RCX: 00007f2840f7def9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000000a RBP: 00007f2840ff0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f2841136058 R15: 00007ffc538e3b98