------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_io.c:2100! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 1074 Comm: kworker/u4:9 Not tainted 6.13.0-rc5-syzkaller-00198-g9244696b34f2 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: btree_node_rewrite async_btree_node_rewrite_work RIP: 0010:__bch2_btree_node_write+0x43d8/0x4400 fs/bcachefs/btree_io.c:2100 Code: fd 90 0f 0b e8 99 f3 82 fd 90 0f 0b e8 91 f3 82 fd 90 0f 0b e8 89 f3 82 fd 90 0f 0b e8 81 f3 82 fd 90 0f 0b e8 79 f3 82 fd 90 <0f> 0b e8 71 f3 82 fd 90 0f 0b e8 69 f3 82 fd 90 0f 0b e8 61 f3 82 RSP: 0018:ffffc900026a7560 EFLAGS: 00010293 RAX: ffffffff841c90a7 RBX: 0000000000000131 RCX: ffff8880356f0000 RDX: 0000000000000000 RSI: 0000000000000163 RDI: 0000000000000131 RBP: ffffc900026a7840 R08: ffffffff841c6fa8 R09: 0000000000000000 R10: ffffc900026a7300 R11: fffff520004d4e62 R12: dffffc0000000000 R13: ffff88805211009e R14: 0000000000000163 R15: 0000000000000131 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561538be0068 CR3: 00000000504e2000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_btree_node_write+0x63/0x1f0 fs/bcachefs/btree_io.c:2284 bch2_btree_node_rewrite+0xcac/0x1270 fs/bcachefs/btree_update_interior.c:2179 async_btree_node_rewrite_trans fs/bcachefs/btree_update_interior.c:2236 [inline] async_btree_node_rewrite_work+0x31e/0xda0 fs/bcachefs/btree_update_interior.c:2249 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/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_btree_node_write+0x43d8/0x4400 fs/bcachefs/btree_io.c:2100 Code: fd 90 0f 0b e8 99 f3 82 fd 90 0f 0b e8 91 f3 82 fd 90 0f 0b e8 89 f3 82 fd 90 0f 0b e8 81 f3 82 fd 90 0f 0b e8 79 f3 82 fd 90 <0f> 0b e8 71 f3 82 fd 90 0f 0b e8 69 f3 82 fd 90 0f 0b e8 61 f3 82 RSP: 0018:ffffc900026a7560 EFLAGS: 00010293 RAX: ffffffff841c90a7 RBX: 0000000000000131 RCX: ffff8880356f0000 RDX: 0000000000000000 RSI: 0000000000000163 RDI: 0000000000000131 RBP: ffffc900026a7840 R08: ffffffff841c6fa8 R09: 0000000000000000 R10: ffffc900026a7300 R11: fffff520004d4e62 R12: dffffc0000000000 R13: ffff88805211009e R14: 0000000000000163 R15: 0000000000000131 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561538be0068 CR3: 00000000504e2000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400