bcachefs (loop2): 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: 12 Comm: kworker/u8:1 Not tainted 6.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 76 b4 f3 fd e9 13 fb ff ff 48 8b bd f8 fe ff ff e8 d5 b3 f3 fd e9 36 fb ff ff e8 4b 0d 93 fd 90 <0f> 0b 4c 89 f7 e8 50 b4 f3 fd e9 77 fb ff ff e8 36 0d 93 fd 48 8b RSP: 0018:ffffc90000117950 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888056f00000 RCX: ffffffff83fa6c47 RDX: ffff88801d6bda00 RSI: ffffffff83fa70a5 RDI: 0000000000000001 RBP: ffffc90000117ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff1100b84ca64 R12: ffff88801250c120 R13: ffff888056f4a500 R14: 0000000000000000 R15: 0000000000000044 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555850fe588 CR3: 000000004af3e000 CR4: 0000000000350ef0 Call Trace: bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:728 [inline] btree_interior_update_work+0x1c17/0x2b20 fs/bcachefs/btree_update_interior.c:866 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 76 b4 f3 fd e9 13 fb ff ff 48 8b bd f8 fe ff ff e8 d5 b3 f3 fd e9 36 fb ff ff e8 4b 0d 93 fd 90 <0f> 0b 4c 89 f7 e8 50 b4 f3 fd e9 77 fb ff ff e8 36 0d 93 fd 48 8b RSP: 0018:ffffc90000117950 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888056f00000 RCX: ffffffff83fa6c47 RDX: ffff88801d6bda00 RSI: ffffffff83fa70a5 RDI: 0000000000000001 RBP: ffffc90000117ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 1ffff1100b84ca64 R12: ffff88801250c120 R13: ffff888056f4a500 R14: 0000000000000000 R15: 0000000000000044 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffecd8bd58 CR3: 000000004b2b8000 CR4: 0000000000350ef0