bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 ------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.c:1189! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 7296 Comm: syz-executor Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : bch2_fs_journal_stop+0x374/0x378 fs/bcachefs/journal.c:1187 lr : bch2_fs_journal_stop+0x374/0x378 fs/bcachefs/journal.c:1187 sp : ffff8000a07a7500 x29: ffff8000a07a75b0 x28: 1fffe0001cf8954f x27: 1fffe0001cf89490 x26: dfff800000000000 x25: ffff7000140f4ea0 x24: 000000000000000d x23: 1fffe0001cf89488 x22: 000000000000000d x21: 000000000000000e x20: ffff0000e7c4a440 x19: ffff0000e7c4a480 x18: 1fffe000367a85de x17: ffff80008f2dd000 x16: ffff80008032d32c x15: 0000000000000001 x14: 1fffe0001cf8954f x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001cf89550 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cb24bc80 x7 : ffff80008024b950 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000828eb418 x2 : 0000000000000000 x1 : 000000000000000d x0 : 000000000000000e Call trace: bch2_fs_journal_stop+0x374/0x378 fs/bcachefs/journal.c:1187 __bch2_fs_read_only+0x2a4/0x3d0 fs/bcachefs/super.c:291 bch2_fs_read_only+0x930/0xf0c fs/bcachefs/super.c:356 __bch2_fs_stop+0x100/0x510 fs/bcachefs/super.c:614 bch2_put_super+0x40/0x50 fs/bcachefs/fs.c:1811 generic_shutdown_super+0x128/0x2b8 fs/super.c:642 bch2_kill_sb+0x40/0x58 fs/bcachefs/fs.c:2044 deactivate_locked_super+0xc4/0x12c fs/super.c:473 deactivate_super+0xe0/0x100 fs/super.c:506 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x4e4/0x1ac8 kernel/exit.c:876 do_group_exit+0x194/0x22c kernel/exit.c:1025 __do_sys_exit_group kernel/exit.c:1036 [inline] __se_sys_exit_group kernel/exit.c:1034 [inline] pid_child_should_wake+0x0/0x1dc kernel/exit.c:1034 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: c80a7e69 35ffffaa 17ffffc9 9771825b (d4210000) ---[ end trace 0000000000000000 ]---