bcachefs (loop4): 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: 0 PID: 6684 Comm: syz-executor Not tainted 6.10.0-rc5-syzkaller-gb4a3f9b4863a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/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 : ffff80009a0c7700 x29: ffff80009a0c77b0 x28: 1fffe0001bee957f x27: 1fffe0001bee94c0 x26: dfff800000000000 x25: ffff700013418ee0 x24: 000000000000000d x23: 1fffe0001bee94b8 x22: 000000000000000d x21: 000000000000000e x20: ffff0000df74a5c0 x19: ffff0000df74a600 x18: 1fffe000367aa1de x17: ffff80008f19d000 x16: ffff800080338814 x15: 0000000000000001 x14: 1fffe0001bee957f x13: 0000000000000000 x12: 0000000000000000 x11: ffff60001bee9580 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d3d95ac0 x7 : ffff800080257790 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000829149dc 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:615 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 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] do_notify_resume+0x178/0x1f4 arch/arm64/kernel/entry-common.c:151 exit_to_user_mode_prepare arch/arm64/kernel/entry-common.c:169 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:178 [inline] el0_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713 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 977112fd (d4210000) ---[ end trace 0000000000000000 ]---