------------[ cut here ]------------ kernel BUG at fs/bcachefs/journal.h:375! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 1 UID: 0 PID: 1036 Comm: kworker/u8:5 Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #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 e6 ad f3 fd e9 13 fb ff ff 48 8b bd f8 fe ff ff e8 45 ad f3 fd e9 36 fb ff ff e8 8b 06 93 fd 90 <0f> 0b 4c 89 f7 e8 c0 ad f3 fd e9 77 fb ff ff e8 76 06 93 fd 48 8b RSP: 0018:ffffc90004557950 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88804a300000 RCX: ffffffff83fa7307 RDX: ffff888026d51e00 RSI: ffffffff83fa7765 RDI: 0000000000000001 RBP: ffffc90004557ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88804d2d8120 R13: ffff88804a34a500 R14: 0000000000000000 R15: 0000000000000044 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff70199f68 CR3: 0000000053796000 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 e6 ad f3 fd e9 13 fb ff ff 48 8b bd f8 fe ff ff e8 45 ad f3 fd e9 36 fb ff ff e8 8b 06 93 fd 90 <0f> 0b 4c 89 f7 e8 c0 ad f3 fd e9 77 fb ff ff e8 76 06 93 fd 48 8b RSP: 0018:ffffc90004557950 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88804a300000 RCX: ffffffff83fa7307 RDX: ffff888026d51e00 RSI: ffffffff83fa7765 RDI: 0000000000000001 RBP: ffffc90004557ad0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88804d2d8120 R13: ffff88804a34a500 R14: 0000000000000000 R15: 0000000000000044 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff70199f68 CR3: 000000001b7fa000 CR4: 0000000000350ef0