------------[ 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: 5339 Comm: bch-reclaim/loo Not tainted 6.12.0-rc5-syzkaller-00322-gb9021de3ec2f #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+0x5695/0x59f0 fs/bcachefs/btree_write_buffer.c:375 Code: a1 02 f5 ff e8 7c 98 70 fd 90 0f 0b e8 74 98 70 fd 90 0f 0b e8 6c 98 70 fd 90 0f 0b e8 64 98 70 fd 90 0f 0b e8 5c 98 70 fd 90 <0f> 0b e8 54 98 70 fd 90 0f 0b e8 4c 98 70 fd 90 0f 0b e8 44 98 70 RSP: 0018:ffffc9000d1f7520 EFLAGS: 00010293 RAX: ffffffff84244144 RBX: 6e0000000000000b RCX: ffff8880003aa440 RDX: 0000000000000000 RSI: 000000000000000b RDI: 6e0000000000000b RBP: ffffc9000d1f7970 R08: ffffffff842403bf R09: 0000000000000000 R10: ffffc9000d1f7000 R11: fffff52001a3ee01 R12: 0000000000000000 R13: ffff8880522f0000 R14: 000000000000000b R15: ffffc90021200000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f57c77ff000 CR3: 0000000043932000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btree_write_buffer_flush_seq+0x1a43/0x1bc0 fs/bcachefs/btree_write_buffer.c:510 bch2_btree_write_buffer_journal_flush+0x4e/0x80 fs/bcachefs/btree_write_buffer.c:525 journal_flush_pins+0x5f7/0xb20 fs/bcachefs/journal_reclaim.c:565 __bch2_journal_reclaim+0x789/0xdc0 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 ]--- RIP: 0010:wb_flush_one fs/bcachefs/btree_write_buffer.c:147 [inline] RIP: 0010:bch2_btree_write_buffer_flush_locked+0x5695/0x59f0 fs/bcachefs/btree_write_buffer.c:375 Code: a1 02 f5 ff e8 7c 98 70 fd 90 0f 0b e8 74 98 70 fd 90 0f 0b e8 6c 98 70 fd 90 0f 0b e8 64 98 70 fd 90 0f 0b e8 5c 98 70 fd 90 <0f> 0b e8 54 98 70 fd 90 0f 0b e8 4c 98 70 fd 90 0f 0b e8 44 98 70 RSP: 0018:ffffc9000d1f7520 EFLAGS: 00010293 RAX: ffffffff84244144 RBX: 6e0000000000000b RCX: ffff8880003aa440 RDX: 0000000000000000 RSI: 000000000000000b RDI: 6e0000000000000b RBP: ffffc9000d1f7970 R08: ffffffff842403bf R09: 0000000000000000 R10: ffffc9000d1f7000 R11: fffff52001a3ee01 R12: 0000000000000000 R13: ffff8880522f0000 R14: 000000000000000b R15: ffffc90021200000 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f57c77ff000 CR3: 000000001e9c4000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400