bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=0 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0, fixing done bcachefs (loop0): check_subvolume_structure... done bcachefs (loop0): check_directory_structure... done bcachefs (loop0): check_nlinks... inode 536870913 type reg has wrong i_nlink (2, should be 1), fixing inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop0): check_alloc_info... done bcachefs (loop0): check_lrus... done bcachefs (loop0): check_btree_backpointers... done bcachefs (loop0): check_backpointers_to_extents... done bcachefs (loop0): check_extents_to_backpointers... done bcachefs (loop0): check_alloc_to_lru_refs... done bcachefs (loop0): bucket_gens_init... done bcachefs (loop0): check_snapshot_trees... done bcachefs (loop0): check_snapshots... done bcachefs (loop0): check_subvols... done bcachefs (loop0): check_subvol_children... done bcachefs (loop0): delete_dead_snapshots... done bcachefs (loop0): check_inodes... done bcachefs (loop0): check_extents... done bcachefs (loop0): check_indirect_extents... done bcachefs (loop0): check_dirents... done bcachefs (loop0): check_xattrs... done bcachefs (loop0): check_root... done bcachefs (loop0): check_unreachable_inodes... done bcachefs (loop0): check_subvolume_structure... done bcachefs (loop0): check_directory_structure... done bcachefs (loop0): check_nlinks... done bcachefs (loop0): resume_logged_ops... done bcachefs (loop0): delete_dead_inodes... done bcachefs (loop0): set_fs_needs_rebalance... done bcachefs (loop0): done starting filesystem ------------[ cut here ]------------ kernel BUG at fs/bcachefs/bset.c:644! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5320 Comm: syz.0.0 Not tainted 6.14.0-rc1-syzkaller-00020-g0de63bb7d919 #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:make_bfloat fs/bcachefs/bset.c:644 [inline] RIP: 0010:__build_ro_aux_tree+0x1a84/0x1aa0 fs/bcachefs/bset.c:742 Code: 62 05 85 fd 90 0f 0b e8 5a 05 85 fd 90 0f 0b e8 52 05 85 fd 90 0f 0b e8 8a 5f bb 07 e8 45 05 85 fd 90 0f 0b e8 3d 05 85 fd 90 <0f> 0b e8 35 05 85 fd 90 0f 0b e8 2d 05 85 fd 90 0f 0b 66 2e 0f 1f RSP: 0018:ffffc9000d1dd420 EFLAGS: 00010287 RAX: ffffffff843a58e3 RBX: 0000000000000140 RCX: 0000000000100000 RDX: ffffc9000e9da000 RSI: 00000000000fafd3 RDI: 00000000000fafd4 RBP: ffffc9000d1dd658 R08: ffffffff843a4f98 R09: ffffffff843b32aa R10: 0000000000000002 R11: ffff88801ef0c880 R12: 0000000000000130 R13: 0000000000000001 R14: ffff888052907804 R15: 0000000000000090 FS: 00007f6226b8b6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f621afbd000 CR3: 000000003f924000 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:447 [inline] bch2_drop_whiteouts+0x127b/0x1510 fs/bcachefs/btree_io.c:282 bch2_btree_post_write_cleanup+0x135/0xa70 fs/bcachefs/btree_io.c:2296 bch2_btree_node_write_trans+0x18a/0x790 fs/bcachefs/btree_io.c:2362 btree_split+0x617d/0x7e90 fs/bcachefs/btree_update_interior.c:1708 bch2_btree_split_leaf+0x14f/0x880 fs/bcachefs/btree_update_interior.c:1857 bch2_trans_commit_error+0x212/0x1380 fs/bcachefs/btree_trans_commit.c:908 __bch2_trans_commit+0x812b/0x97a0 fs/bcachefs/btree_trans_commit.c:1085 bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline] bch2_extent_update+0x4c0/0xbb0 fs/bcachefs/io_write.c:326 bch2_write_index_default fs/bcachefs/io_write.c:374 [inline] __bch2_write_index+0xee4/0x2160 fs/bcachefs/io_write.c:542 __bch2_write+0x57bb/0x5eb0 fs/bcachefs/io_write.c:1522 bch2_write+0x85b/0x15f0 fs/bcachefs/io_write.c:1649 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_dio_write_loop fs/bcachefs/fs-io-direct.c:537 [inline] bch2_direct_write+0x1b0b/0x3190 fs/bcachefs/fs-io-direct.c:660 bch2_write_iter+0x19d/0x2ca0 fs/bcachefs/fs-io-buffered.c:1047 iter_file_splice_write+0xbfa/0x1510 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11b/0x220 fs/splice.c:1164 splice_direct_to_actor+0x586/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x289/0x3e0 fs/splice.c:1233 do_sendfile+0x564/0x8a0 fs/read_write.c:1363 __do_sys_sendfile64 fs/read_write.c:1424 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1410 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f6225d8cda9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6226b8b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f6225fa5fa0 RCX: 00007f6225d8cda9 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 0000000000000008 RBP: 00007f6225e0e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0001000000201005 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f6225fa5fa0 R15: 00007ffef29f8918 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 05 85 fd 90 0f 0b e8 5a 05 85 fd 90 0f 0b e8 52 05 85 fd 90 0f 0b e8 8a 5f bb 07 e8 45 05 85 fd 90 0f 0b e8 3d 05 85 fd 90 <0f> 0b e8 35 05 85 fd 90 0f 0b e8 2d 05 85 fd 90 0f 0b 66 2e 0f 1f RSP: 0018:ffffc9000d1dd420 EFLAGS: 00010287 RAX: ffffffff843a58e3 RBX: 0000000000000140 RCX: 0000000000100000 RDX: ffffc9000e9da000 RSI: 00000000000fafd3 RDI: 00000000000fafd4 RBP: ffffc9000d1dd658 R08: ffffffff843a4f98 R09: ffffffff843b32aa R10: 0000000000000002 R11: ffff88801ef0c880 R12: 0000000000000130 R13: 0000000000000001 R14: ffff888052907804 R15: 0000000000000090 FS: 00007f6226b8b6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f621afbd000 CR3: 000000003f924000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400