bcachefs (loop5): flushing journal and stopping allocators complete, journal seq 25 ------------[ cut here ]------------ journal shutdown error: cur seq 25 but last empty seq 24 WARNING: CPU: 1 PID: 6900 at fs/bcachefs/journal.c:1472 bch2_fs_journal_stop+0x394/0x3cc fs/bcachefs/journal.c:1468 Modules linked in: CPU: 1 UID: 0 PID: 6900 Comm: syz-executor Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : bch2_fs_journal_stop+0x394/0x3cc fs/bcachefs/journal.c:1468 lr : bch2_fs_journal_stop+0x394/0x3cc fs/bcachefs/journal.c:1468 sp : ffff8000a05177a0 x29: ffff8000a0517870 x28: 1fffe0001ddc953e x27: 1fffe0001ddc9300 x26: dfff800000000000 x25: ffff7000140a2ef8 x24: 0000000000000019 x23: 0000000000000018 x22: 0000000000000019 x21: ffff0000eee4aa28 x20: ffff0000eee49800 x19: ffff0000eee49840 x18: 1fffe00033776488 x17: ffff80008f85e000 x16: ffff80008b065ce0 x15: 0000000000000001 x14: 1ffff00011f2c5a7 x13: 0000000000000000 x12: 0000000000000000 x11: 000000003008b74b x10: 0000000000ff0100 x9 : 13dba8b3fc942700 x8 : 13dba8b3fc942700 x7 : ffff80008056636c x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000002 x2 : 0000000000000002 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: bch2_fs_journal_stop+0x394/0x3cc fs/bcachefs/journal.c:1468 (P) __bch2_fs_read_only+0x2ac/0x4dc fs/bcachefs/super.c:306 bch2_fs_read_only+0x344/0x960 fs/bcachefs/super.c:366 __bch2_fs_stop+0x104/0x800 fs/bcachefs/super.c:677 bch2_put_super+0x40/0x50 fs/bcachefs/fs.c:2365 generic_shutdown_super+0x12c/0x2b8 fs/super.c:643 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2618 deactivate_locked_super+0xc4/0x12c fs/super.c:474 deactivate_super+0xe0/0x100 fs/super.c:507 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1375 __cleanup_mnt+0x20/0x30 fs/namespace.c:1382 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xfc/0x168 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] arm64_exit_to_user_mode arch/arm64/kernel/entry-common.c:103 [inline] el0_svc+0x170/0x254 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 332664 hardirqs last enabled at (332663): [] vprintk_store+0x898/0xac8 kernel/printk/printk.c:2356 hardirqs last disabled at (332664): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (332632): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (332632): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (332107): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop5): clean shutdown complete, journal seq 25 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/super.c:384! Internal error: Oops - BUG: 00000000f2000800 [#1] SMP Modules linked in: CPU: 0 UID: 0 PID: 6900 Comm: syz-executor Tainted: G W syzkaller #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 83400005 (Nzcv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : bch2_fs_read_only+0x93c/0x960 fs/bcachefs/super.c:384 lr : bch2_fs_read_only+0x93c/0x960 fs/bcachefs/super.c:384 sp : ffff8000a0517940 x29: ffff8000a0517a40 x28: ffff8000a0517960 x27: 1fffe0001ddc0035 x26: 00000000003fffff x25: dfff800000000000 x24: ffff7000140a2f2c x23: 00000000001023be x22: 0000000000000018 x21: 0000000000000019 x20: ffff0000eee006e2 x19: ffff0000eee00000 x18: 1fffe00033776488 x17: ffff80008f85e000 x16: ffff80008052b264 x15: 0000000000000001 x14: 1fffe0001ddc953e x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001ddc953f x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000dc733d00 x7 : ffff800082b0c2a8 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff800082aff444 x2 : 0000000000000000 x1 : 0000000000000019 x0 : 0000000000000018 Call trace: bch2_fs_read_only+0x93c/0x960 fs/bcachefs/super.c:384 (P) __bch2_fs_stop+0x104/0x800 fs/bcachefs/super.c:677 bch2_put_super+0x40/0x50 fs/bcachefs/fs.c:2365 generic_shutdown_super+0x12c/0x2b8 fs/super.c:643 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2618 deactivate_locked_super+0xc4/0x12c fs/super.c:474 deactivate_super+0xe0/0x100 fs/super.c:507 cleanup_mnt+0x31c/0x3ac fs/namespace.c:1375 __cleanup_mnt+0x20/0x30 fs/namespace.c:1382 task_work_run+0x1dc/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xfc/0x168 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] arm64_exit_to_user_mode arch/arm64/kernel/entry-common.c:103 [inline] el0_svc+0x170/0x254 arch/arm64/kernel/entry-common.c:745 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Code: c80a7ea9 35ffffaa 17fffee3 9770da08 (d4210000) ---[ end trace 0000000000000000 ]---