bcachefs (loop3): fatal error - emergency read only ------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.h:375! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 UID: 0 PID: 62 Comm: kworker/u8:4 Not tainted 6.12.0-rc7-syzkaller-00042-gf1b785f4c787 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: btree_update btree_interior_update_work RIP: 0010:bch2_journal_res_get fs/bcachefs/journal.h:375 [inline] RIP: 0010:bch2_trans_journal_res_get fs/bcachefs/btree_trans_commit.c:350 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:668 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:900 [inline] RIP: 0010:__bch2_trans_commit+0x4096/0x84b0 fs/bcachefs/btree_trans_commit.c:1121 Code: ff ff 48 8b bd 68 ff ff ff e8 46 78 f3 fd e9 13 fb ff ff 48 8b bd f8 fe ff ff e8 a5 77 f3 fd e9 36 fb ff ff e8 1b bd 92 fd 90 <0f> 0b 4c 89 f7 e8 20 78 f3 fd e9 77 fb ff ff e8 06 bd 92 fd 48 8b RSP: 0018:ffffc900015d7950 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888068580000 RCX: ffffffff83fab8d7 RDX: ffff888021ea9e00 RSI: ffffffff83fabd35 RDI: 0000000000000001 RBP: ffffc900015d7ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff1100bc408a4 R12: ffff88802f3ec120 R13: ffff8880685ca500 R14: 0000000000000000 R15: 0000000000000044 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d520210 CR3: 000000000df7c000 CR4: 0000000000350ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:723 [inline] btree_interior_update_work+0x1c17/0x2b20 fs/bcachefs/btree_update_interior.c:861 process_one_work+0x9c8/0x1ba0 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x6c8/0xf00 kernel/workqueue.c:3391 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:bch2_journal_res_get fs/bcachefs/journal.h:375 [inline] RIP: 0010:bch2_trans_journal_res_get fs/bcachefs/btree_trans_commit.c:350 [inline] RIP: 0010:bch2_trans_commit_write_locked fs/bcachefs/btree_trans_commit.c:668 [inline] RIP: 0010:do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:900 [inline] RIP: 0010:__bch2_trans_commit+0x4096/0x84b0 fs/bcachefs/btree_trans_commit.c:1121 Code: ff ff 48 8b bd 68 ff ff ff e8 46 78 f3 fd e9 13 fb ff ff 48 8b bd f8 fe ff ff e8 a5 77 f3 fd e9 36 fb ff ff e8 1b bd 92 fd 90 <0f> 0b 4c 89 f7 e8 20 78 f3 fd e9 77 fb ff ff e8 06 bd 92 fd 48 8b RSP: 0018:ffffc900015d7950 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888068580000 RCX: ffffffff83fab8d7 RDX: ffff888021ea9e00 RSI: ffffffff83fabd35 RDI: 0000000000000001 RBP: ffffc900015d7ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff1100bc408a4 R12: ffff88802f3ec120 R13: ffff8880685ca500 R14: 0000000000000000 R15: 0000000000000044 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f3a70f8f50 CR3: 0000000069eea000 CR4: 0000000000350ef0