------------[ cut here ]------------ kernel BUG at fs/bcachefs/bset.c:644! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 48 Comm: kworker/u5:0 Not tainted 6.13.0-rc2-syzkaller-00018-g7cb1b4663150 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: bcachefs bch2_write_point_do_index_updates RIP: 0010:make_bfloat fs/bcachefs/bset.c:644 [inline] RIP: 0010:__build_ro_aux_tree+0x1a84/0x1aa0 fs/bcachefs/bset.c:742 Code: 62 59 88 fd 90 0f 0b e8 5a 59 88 fd 90 0f 0b e8 52 59 88 fd 90 0f 0b e8 1a 04 b1 07 e8 45 59 88 fd 90 0f 0b e8 3d 59 88 fd 90 <0f> 0b e8 35 59 88 fd 90 0f 0b e8 2d 59 88 fd 90 0f 0b 66 2e 0f 1f RSP: 0018:ffffc900006367e0 EFLAGS: 00010293 RAX: ffffffff84170503 RBX: 0000000000000140 RCX: ffff88801e10c880 RDX: 0000000000000000 RSI: 0000000000000130 RDI: 00000000000000fe RBP: ffffc90000636a18 R08: ffffffff8416fbb8 R09: ffffffff8417deca R10: 0000000000000002 R11: ffff88801e10c880 R12: 0000000000000130 R13: 0000000000000001 R14: ffff888046cf9404 R15: 0000000000000090 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 00000000411b0000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: bch2_bset_build_aux_tree+0x4d1/0x6c0 fs/bcachefs/bset.c:779 bch2_btree_build_aux_trees fs/bcachefs/btree_io.c:448 [inline] bch2_drop_whiteouts+0x127b/0x1510 fs/bcachefs/btree_io.c:283 bch2_btree_post_write_cleanup+0x135/0xa70 fs/bcachefs/btree_io.c:2251 bch2_btree_node_write+0x169/0x1f0 fs/bcachefs/btree_io.c:2289 btree_split+0x5400/0x6ba0 fs/bcachefs/btree_update_interior.c:1711 bch2_btree_split_leaf+0x14f/0x840 fs/bcachefs/btree_update_interior.c:1862 bch2_trans_commit_error+0x212/0x1380 fs/bcachefs/btree_trans_commit.c:942 __bch2_trans_commit+0x7ead/0x93c0 fs/bcachefs/btree_trans_commit.c:1140 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:325 bch2_write_index_default fs/bcachefs/io_write.c:373 [inline] __bch2_write_index+0xed2/0x2140 fs/bcachefs/io_write.c:526 bch2_write_point_do_index_updates+0x32e/0x690 fs/bcachefs/io_write.c:635 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:make_bfloat fs/bcachefs/bset.c:644 [inline] RIP: 0010:__build_ro_aux_tree+0x1a84/0x1aa0 fs/bcachefs/bset.c:742 Code: 62 59 88 fd 90 0f 0b e8 5a 59 88 fd 90 0f 0b e8 52 59 88 fd 90 0f 0b e8 1a 04 b1 07 e8 45 59 88 fd 90 0f 0b e8 3d 59 88 fd 90 <0f> 0b e8 35 59 88 fd 90 0f 0b e8 2d 59 88 fd 90 0f 0b 66 2e 0f 1f RSP: 0018:ffffc900006367e0 EFLAGS: 00010293 RAX: ffffffff84170503 RBX: 0000000000000140 RCX: ffff88801e10c880 RDX: 0000000000000000 RSI: 0000000000000130 RDI: 00000000000000fe RBP: ffffc90000636a18 R08: ffffffff8416fbb8 R09: ffffffff8417deca R10: 0000000000000002 R11: ffff88801e10c880 R12: 0000000000000130 R13: 0000000000000001 R14: ffff888046cf9404 R15: 0000000000000090 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000011874000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400