------------[ cut here ]------------ kernel BUG at fs/bcachefs/btree_write_buffer.c:147! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5333 Comm: bch-reclaim/loo Not tainted 6.13.0-rc5-syzkaller-00006-g56e6a3499e14 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:wb_flush_one fs/bcachefs/btree_write_buffer.c:147 [inline] RIP: 0010:bch2_btree_write_buffer_flush_locked+0x56bd/0x5a00 fs/bcachefs/btree_write_buffer.c:379 Code: c9 fd f4 ff e8 14 53 76 fd 90 0f 0b e8 0c 53 76 fd 90 0f 0b e8 04 53 76 fd 90 0f 0b e8 fc 52 76 fd 90 0f 0b e8 f4 52 76 fd 90 <0f> 0b e8 ec 52 76 fd 90 0f 0b e8 a4 88 9f 07 e8 df 52 76 fd 90 0f RSP: 0018:ffffc9000d417480 EFLAGS: 00010293 RAX: ffffffff842920ec RBX: 080000000000000b RCX: ffff88801cddc880 RDX: 0000000000000000 RSI: 000000000000000b RDI: 080000000000000b RBP: ffffc9000d4178d0 R08: ffffffff8428e39b R09: 0000000000000000 R10: ffffc9000d416f60 R11: fffff52001a82ded R12: ffffc90024200000 R13: ffff8880526e8000 R14: 000000000000000b R15: ffffc90024200000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe3b4de0fe0 CR3: 0000000042b98000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_write_buffer_flush_seq+0x1b23/0x1cc0 fs/bcachefs/btree_write_buffer.c:517 bch2_btree_write_buffer_journal_flush+0xc7/0x150 fs/bcachefs/btree_write_buffer.c:533 journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:565 __bch2_journal_reclaim+0x789/0xda0 fs/bcachefs/journal_reclaim.c:698 bch2_journal_reclaim_thread+0x174/0x560 fs/bcachefs/journal_reclaim.c:740 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 ]---