===================================================== BUG: KMSAN: uninit-value in bch2_alloc_to_v4 fs/bcachefs/alloc_background.h:233 [inline] BUG: KMSAN: uninit-value in bch2_bucket_alloc_early+0xe70/0x2950 fs/bcachefs/alloc_foreground.c:354 bch2_alloc_to_v4 fs/bcachefs/alloc_background.h:233 [inline] bch2_bucket_alloc_early+0xe70/0x2950 fs/bcachefs/alloc_foreground.c:354 bch2_bucket_alloc_trans+0x9c5/0x3290 fs/bcachefs/alloc_foreground.c:575 bch2_bucket_alloc_set_trans+0x92c/0x1620 fs/bcachefs/alloc_foreground.c:730 __open_bucket_add_buckets+0x1e6e/0x30f0 fs/bcachefs/alloc_foreground.c:973 open_bucket_add_buckets+0x328/0x530 fs/bcachefs/alloc_foreground.c:1017 bch2_alloc_sectors_start_trans+0x1833/0x32b0 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:322 [inline] bch2_btree_reserve_get+0x9d6/0x2290 fs/bcachefs/btree_update_interior.c:532 bch2_btree_update_start+0x1af9/0x2d60 fs/bcachefs/btree_update_interior.c:1232 bch2_btree_split_leaf+0x120/0xc90 fs/bcachefs/btree_update_interior.c:1853 bch2_trans_commit_error+0x1c0/0x1d60 fs/bcachefs/btree_trans_commit.c:908 __bch2_trans_commit+0x1d5f/0xd310 fs/bcachefs/btree_trans_commit.c:1089 bch2_trans_commit fs/bcachefs/btree_update.h:183 [inline] wb_flush_one_slowpath+0x1e8/0x220 fs/bcachefs/btree_write_buffer.c:127 wb_flush_one fs/bcachefs/btree_write_buffer.c:181 [inline] bch2_btree_write_buffer_flush_locked+0x45aa/0x71b0 fs/bcachefs/btree_write_buffer.c:379 btree_write_buffer_flush_seq+0x3034/0x3250 fs/bcachefs/btree_write_buffer.c:551 bch2_btree_write_buffer_journal_flush+0x103/0x1f0 fs/bcachefs/btree_write_buffer.c:567 journal_flush_pins+0x1335/0x1f90 fs/bcachefs/journal_reclaim.c:589 journal_flush_pins_or_still_flushing fs/bcachefs/journal_reclaim.c:861 [inline] journal_flush_done+0x157/0xe40 fs/bcachefs/journal_reclaim.c:879 bch2_journal_flush_pins+0x2a9/0x3b0 fs/bcachefs/journal_reclaim.c:911 bch2_journal_flush_all_pins fs/bcachefs/journal_reclaim.h:76 [inline] bch2_journal_replay+0x4a22/0x4e20 fs/bcachefs/recovery.c:442 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:1814 do_new_mount+0x71f/0x15e0 fs/namespace.c:3560 path_mount+0x742/0x1f10 fs/namespace.c:3887 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x71f/0x800 fs/namespace.c:4088 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4088 x64_sys_call+0x39bf/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: ___kmalloc_large_node+0x22c/0x370 mm/slub.c:4249 __kmalloc_large_node_noprof+0x3f/0x1e0 mm/slub.c:4266 __do_kmalloc_node mm/slub.c:4282 [inline] __kmalloc_node_noprof+0xc96/0x1250 mm/slub.c:4300 __kvmalloc_node_noprof+0xc0/0x2d0 mm/util.c:662 btree_node_data_alloc fs/bcachefs/btree_cache.c:156 [inline] __bch2_btree_node_mem_alloc+0x2be/0xa80 fs/bcachefs/btree_cache.c:201 bch2_fs_btree_cache_init+0x4f0/0xb60 fs/bcachefs/btree_cache.c:655 bch2_fs_alloc fs/bcachefs/super.c:919 [inline] bch2_fs_open+0x4d84/0x5ba0 fs/bcachefs/super.c:2064 bch2_fs_get_tree+0x98a/0x24e0 fs/bcachefs/fs.c:2190 vfs_get_tree+0xb1/0x5a0 fs/super.c:1814 do_new_mount+0x71f/0x15e0 fs/namespace.c:3560 path_mount+0x742/0x1f10 fs/namespace.c:3887 do_mount fs/namespace.c:3900 [inline] __do_sys_mount fs/namespace.c:4111 [inline] __se_sys_mount+0x71f/0x800 fs/namespace.c:4088 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4088 x64_sys_call+0x39bf/0x3c30 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1e0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 7553 Comm: syz.4.318 Not tainted 6.14.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 =====================================================