io_time[WRITE] 512 fragmentation 0 bp_start 8 incorrectly set at freespace:0:31:0 (free 0, genbits 0 should be 0), fixing ===================================================== BUG: KMSAN: uninit-value in try_alloc_bucket fs/bcachefs/alloc_foreground.c:297 [inline] BUG: KMSAN: uninit-value in bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:442 [inline] BUG: KMSAN: uninit-value in bch2_bucket_alloc_trans+0x2191/0x3280 fs/bcachefs/alloc_foreground.c:574 try_alloc_bucket fs/bcachefs/alloc_foreground.c:297 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:442 [inline] bch2_bucket_alloc_trans+0x2191/0x3280 fs/bcachefs/alloc_foreground.c:574 bch2_bucket_alloc_set_trans+0x935/0x1620 fs/bcachefs/alloc_foreground.c:730 __open_bucket_add_buckets+0x1e98/0x3130 fs/bcachefs/alloc_foreground.c:973 open_bucket_add_buckets+0x32b/0x530 fs/bcachefs/alloc_foreground.c:1017 bch2_alloc_sectors_start_trans+0x1839/0x32d0 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:322 [inline] bch2_btree_reserve_get+0x9eb/0x22b0 fs/bcachefs/btree_update_interior.c:532 bch2_btree_update_start+0x22b8/0x2ec0 fs/bcachefs/btree_update_interior.c:1232 bch2_btree_split_leaf+0x12b/0xcb0 fs/bcachefs/btree_update_interior.c:1853 bch2_trans_commit_error+0x1d8/0x2080 fs/bcachefs/btree_trans_commit.c:908 __bch2_trans_commit+0x1d6a/0xd3c0 fs/bcachefs/btree_trans_commit.c:1089 bch2_trans_commit fs/bcachefs/btree_update.h:191 [inline] bch2_journal_replay+0x3147/0x4e40 fs/bcachefs/recovery.c:373 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:226 [inline] bch2_run_recovery_passes+0x5a2/0x1160 fs/bcachefs/recovery_passes.c:291 bch2_fs_recovery+0x489c/0x6230 fs/bcachefs/recovery.c:936 bch2_fs_start+0x7ca/0xc20 fs/bcachefs/super.c:1041 bch2_fs_get_tree+0x1564/0x24e0 fs/bcachefs/fs.c:2203 vfs_get_tree+0xb1/0x5a0 fs/super.c:1759 do_new_mount+0x71f/0x15e0 fs/namespace.c:3878 path_mount+0x742/0x1f10 fs/namespace.c:4205 do_mount fs/namespace.c:4218 [inline] __do_sys_mount fs/namespace.c:4429 [inline] __se_sys_mount+0x71f/0x800 fs/namespace.c:4406 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4406 x64_sys_call+0xed5/0x3c80 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Local variable gen.i.i created at: bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:442 [inline] bch2_bucket_alloc_trans+0x1fb2/0x3280 fs/bcachefs/alloc_foreground.c:574 bch2_bucket_alloc_set_trans+0x935/0x1620 fs/bcachefs/alloc_foreground.c:730 CPU: 1 UID: 0 PID: 7761 Comm: syz.6.439 Not tainted 6.14.0-syzkaller-01103-g2df0c02dab82 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 =====================================================