=====================================================
BUG: KMSAN: uninit-value in bch2_alloc_to_v4_mut_inlined fs/bcachefs/alloc_background.c:441 [inline]
BUG: KMSAN: uninit-value in bch2_trans_start_alloc_update_noupdate fs/bcachefs/alloc_background.c:466 [inline]
BUG: KMSAN: uninit-value in bch2_trans_start_alloc_update+0x676/0x14c0 fs/bcachefs/alloc_background.c:481
 bch2_alloc_to_v4_mut_inlined fs/bcachefs/alloc_background.c:441 [inline]
 bch2_trans_start_alloc_update_noupdate fs/bcachefs/alloc_background.c:466 [inline]
 bch2_trans_start_alloc_update+0x676/0x14c0 fs/bcachefs/alloc_background.c:481
 bch2_trigger_pointer fs/bcachefs/buckets.c:587 [inline]
 __trigger_extent+0x1873/0x6410 fs/bcachefs/buckets.c:736
 bch2_trigger_extent+0xa1d/0x1230 fs/bcachefs/buckets.c:865
 bch2_key_trigger fs/bcachefs/bkey_methods.h:88 [inline]
 bch2_key_trigger_old fs/bcachefs/bkey_methods.h:102 [inline]
 btree_update_nodes_written_trans fs/bcachefs/btree_update_interior.c:634 [inline]
 btree_update_nodes_written fs/bcachefs/btree_update_interior.c:708 [inline]
 btree_interior_update_work+0x16e0/0x4850 fs/bcachefs/btree_update_interior.c:846
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xc1d/0x1e80 kernel/workqueue.c:3319
 worker_thread+0xea7/0x14f0 kernel/workqueue.c:3400
 kthread+0x6b9/0xef0 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

Uninit was stored to memory at:
 memcpy_u64s_small fs/bcachefs/util.h:416 [inline]
 bkey_reassemble fs/bcachefs/bkey.h:506 [inline]
 btree_key_cache_create fs/bcachefs/btree_key_cache.c:261 [inline]
 btree_key_cache_fill+0x1435/0x4b50 fs/bcachefs/btree_key_cache.c:319
 bch2_btree_path_traverse_cached+0x9fe/0xe90 fs/bcachefs/btree_key_cache.c:381
 bch2_btree_path_traverse_one+0x3bd7/0x47c0 fs/bcachefs/btree_iter.c:1179
 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:249 [inline]
 bch2_btree_iter_peek_slot+0xf49/0x32a0 fs/bcachefs/btree_iter.c:2784
 __bch2_bkey_get_iter fs/bcachefs/btree_iter.h:585 [inline]
 bch2_bkey_get_iter fs/bcachefs/btree_iter.h:599 [inline]
 bch2_trans_start_alloc_update_noupdate fs/bcachefs/alloc_background.c:458 [inline]
 bch2_trans_start_alloc_update+0x3da/0x14c0 fs/bcachefs/alloc_background.c:481
 bch2_trigger_pointer fs/bcachefs/buckets.c:587 [inline]
 __trigger_extent+0x1873/0x6410 fs/bcachefs/buckets.c:736
 bch2_trigger_extent+0xa1d/0x1230 fs/bcachefs/buckets.c:865
 bch2_key_trigger fs/bcachefs/bkey_methods.h:88 [inline]
 bch2_key_trigger_old fs/bcachefs/bkey_methods.h:102 [inline]
 btree_update_nodes_written_trans fs/bcachefs/btree_update_interior.c:634 [inline]
 btree_update_nodes_written fs/bcachefs/btree_update_interior.c:708 [inline]
 btree_interior_update_work+0x16e0/0x4850 fs/bcachefs/btree_update_interior.c:846
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xc1d/0x1e80 kernel/workqueue.c:3319
 worker_thread+0xea7/0x14f0 kernel/workqueue.c:3400
 kthread+0x6b9/0xef0 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

Uninit was created at:
 ___kmalloc_large_node+0x365/0x420 mm/slub.c:4273
 __kmalloc_large_node_noprof+0x3f/0x1e0 mm/slub.c:4290
 __do_kmalloc_node mm/slub.c:4306 [inline]
 __kvmalloc_node_noprof+0xa2/0x13d0 mm/slub.c:5003
 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+0x4d8a/0x5bb0 fs/bcachefs/super.c:2065
 bch2_fs_get_tree+0x98a/0x24e0 fs/bcachefs/fs.c:2190
 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

CPU: 0 UID: 0 PID: 14 Comm: kworker/u8:1 Not tainted 6.14.0-syzkaller-03576-g1e1ba8d23dae #0 PREEMPT(undef) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
Workqueue: btree_update btree_interior_update_work
=====================================================