bcachefs (loop0): going read-only bcachefs (loop0): finished waiting for writes to stop bcachefs (loop0): flushing journal and stopping allocators, journal seq 24 bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 24 ------------[ cut here ]------------ journal shutdown error: cur seq 24 but last empty seq 23 WARNING: CPU: 0 PID: 5379 at fs/bcachefs/journal.c:1472 bch2_fs_journal_stop+0x42b/0x440 fs/bcachefs/journal.c:1468 Modules linked in: CPU: 0 UID: 0 PID: 5379 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) 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_fs_journal_stop+0x42b/0x440 fs/bcachefs/journal.c:1468 Code: 44 24 30 42 80 3c 28 00 48 8b 5c 24 20 74 08 48 89 df e8 c8 32 d9 fd 48 8b 13 48 c7 c7 60 96 f5 8b 4c 89 e6 e8 56 c6 37 fd 90 <0f> 0b 90 90 e9 e4 fe ff ff e8 d7 e2 30 07 0f 1f 80 00 00 00 00 90 RSP: 0018:ffffc9000d4a79c0 EFLAGS: 00010246 RAX: 2bb97a3ce3216400 RBX: ffff88805404aa28 RCX: ffff8880003d2440 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000002 RBP: ffffc9000d4a7ae0 R08: ffff88801fc24253 R09: 1ffff11003f8484a R10: dffffc0000000000 R11: ffffed1003f8484b R12: 0000000000000018 R13: dffffc0000000000 R14: ffff888054049800 R15: 1ffff1100a809300 FS: 00007f19879b36c0(0000) GS:ffff88808d007000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f19879b2fc8 CR3: 00000000425ff000 CR4: 0000000000352ef0 Call Trace: __bch2_fs_read_only+0x343/0x5b0 fs/bcachefs/super.c:306 bch2_fs_read_only+0x42a/0xb00 fs/bcachefs/super.c:366 bch2_fs_reconfigure+0x1ba/0x400 fs/bcachefs/fs.c:2671 reconfigure_super+0x227/0x890 fs/super.c:1077 vfs_cmd_reconfigure fs/fsopen.c:262 [inline] vfs_fsconfig_locked+0x171/0x320 fs/fsopen.c:291 __do_sys_fsconfig fs/fsopen.c:467 [inline] __se_sys_fsconfig+0x78e/0x8d0 fs/fsopen.c:344 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f198b58eec9 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:00007f19879b3038 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f198b7e6180 RCX: 00007f198b58eec9 RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000007 RBP: 00007f198b611f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f198b7e6218 R14: 00007f198b7e6180 R15: 00007ffed6443c88