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:280 [inline] BUG: KMSAN: uninit-value in bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:425 [inline] BUG: KMSAN: uninit-value in bch2_bucket_alloc_trans+0x21a7/0x3280 fs/bcachefs/alloc_foreground.c:557 try_alloc_bucket fs/bcachefs/alloc_foreground.c:280 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:425 [inline] bch2_bucket_alloc_trans+0x21a7/0x3280 fs/bcachefs/alloc_foreground.c:557 bch2_bucket_alloc_set_trans+0x903/0x1590 fs/bcachefs/alloc_foreground.c:749 __open_bucket_add_buckets+0x1e98/0x3130 fs/bcachefs/alloc_foreground.c:992 open_bucket_add_buckets+0x32b/0x530 fs/bcachefs/alloc_foreground.c:1036 bch2_alloc_sectors_start_trans+0x1736/0x32d0 fs/bcachefs/alloc_foreground.c:1359 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:319 [inline] bch2_btree_reserve_get+0x9eb/0x22b0 fs/bcachefs/btree_update_interior.c:529 bch2_btree_update_start+0x22ac/0x2e90 fs/bcachefs/btree_update_interior.c:1229 bch2_btree_split_leaf+0x12b/0xcb0 fs/bcachefs/btree_update_interior.c:1864 bch2_trans_commit_error+0x4a2/0x1fc0 fs/bcachefs/btree_trans_commit.c:904 __bch2_trans_commit+0x346d/0xeb20 fs/bcachefs/btree_trans_commit.c:1069 bch2_trans_commit fs/bcachefs/btree_update.h:195 [inline] btree_update_nodes_written fs/bcachefs/btree_update_interior.c:705 [inline] btree_interior_update_work+0x1d1c/0x4410 fs/bcachefs/btree_update_interior.c:843 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xc1d/0x1e80 kernel/workqueue.c:3319 worker_thread+0xea3/0x1500 kernel/workqueue.c:3400 kthread+0x6ce/0xf10 kernel/kthread.c:464 ret_from_fork+0x6d/0x90 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Local variable gen.i.i created at: try_alloc_bucket fs/bcachefs/alloc_foreground.c:-1 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:425 [inline] bch2_bucket_alloc_trans+0x1fb8/0x3280 fs/bcachefs/alloc_foreground.c:557 bch2_bucket_alloc_set_trans+0x903/0x1590 fs/bcachefs/alloc_foreground.c:749 CPU: 1 UID: 0 PID: 9877 Comm: kworker/u8:3 Tainted: G W 6.15.0-rc2-syzkaller-00404-g8560697b23dc #0 PREEMPT(undef) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 Workqueue: btree_update btree_interior_update_work =====================================================