===================================================== BUG: KMSAN: uninit-value in __writepoint_find fs/bcachefs/alloc_foreground.c:1171 [inline] BUG: KMSAN: uninit-value in writepoint_find fs/bcachefs/alloc_foreground.c:1248 [inline] BUG: KMSAN: uninit-value in bch2_alloc_sectors_start_trans+0x424/0x3370 fs/bcachefs/alloc_foreground.c:1348 __writepoint_find fs/bcachefs/alloc_foreground.c:1171 [inline] writepoint_find fs/bcachefs/alloc_foreground.c:1248 [inline] bch2_alloc_sectors_start_trans+0x424/0x3370 fs/bcachefs/alloc_foreground.c:1348 __bch2_write+0x7de/0x6ae0 fs/bcachefs/io_write.c:1494 bch2_write+0xe9f/0x1690 fs/bcachefs/io_write.c:1681 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:494 [inline] __bch2_writepage+0x1974/0x3c70 fs/bcachefs/fs-io-buffered.c:641 write_cache_pages+0xc5/0x270 mm/page-writeback.c:2613 bch2_writepages+0x121/0x430 fs/bcachefs/fs-io-buffered.c:675 do_writepages+0x445/0xcb0 mm/page-writeback.c:2656 __writeback_single_inode+0x101/0x1190 fs/fs-writeback.c:1680 writeback_sb_inodes+0xaa9/0x1c90 fs/fs-writeback.c:1976 wb_writeback+0x4ce/0xc00 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x397/0x1910 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xb97/0x1d90 kernel/workqueue.c:3319 worker_thread+0xedf/0x1590 kernel/workqueue.c:3400 kthread+0xd59/0xf00 kernel/kthread.c:464 ret_from_fork+0x6e/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: bch2_writepage_io_alloc fs/bcachefs/fs-io-buffered.c:522 [inline] __bch2_writepage+0x2b49/0x3c70 fs/bcachefs/fs-io-buffered.c:644 write_cache_pages+0xc5/0x270 mm/page-writeback.c:2613 bch2_writepages+0x121/0x430 fs/bcachefs/fs-io-buffered.c:675 do_writepages+0x445/0xcb0 mm/page-writeback.c:2656 __writeback_single_inode+0x101/0x1190 fs/fs-writeback.c:1680 writeback_sb_inodes+0xaa9/0x1c90 fs/fs-writeback.c:1976 wb_writeback+0x4ce/0xc00 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x397/0x1910 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xb97/0x1d90 kernel/workqueue.c:3319 worker_thread+0xedf/0x1590 kernel/workqueue.c:3400 kthread+0xd59/0xf00 kernel/kthread.c:464 ret_from_fork+0x6e/0x90 arch/x86/kernel/process.c:153 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Uninit was created at: __alloc_frozen_pages_noprof+0x689/0xf00 mm/page_alloc.c:4993 alloc_pages_mpol+0x328/0x860 mm/mempolicy.c:2301 alloc_frozen_pages_noprof+0xf7/0x200 mm/mempolicy.c:2372 alloc_slab_page mm/slub.c:2468 [inline] allocate_slab+0x24d/0x1210 mm/slub.c:2632 new_slab mm/slub.c:2686 [inline] ___slab_alloc+0xfec/0x3480 mm/slub.c:3872 __slab_alloc mm/slub.c:3962 [inline] __slab_alloc_node mm/slub.c:4037 [inline] slab_alloc_node mm/slub.c:4198 [inline] kmem_cache_alloc_lru_noprof+0x922/0xed0 mm/slub.c:4229 __bch2_new_inode+0x9b/0x4b0 fs/bcachefs/fs.c:438 bch2_new_inode fs/bcachefs/fs.c:464 [inline] bch2_inode_hash_init_insert+0x82/0x3c0 fs/bcachefs/fs.c:484 bch2_vfs_inode_get+0x565/0x710 fs/bcachefs/fs.c:507 bch2_fs_get_tree+0x20ad/0x2780 fs/bcachefs/fs.c:2257 vfs_get_tree+0xb0/0x5c0 fs/super.c:1759 do_new_mount+0x73c/0x1620 fs/namespace.c:3881 path_mount+0x6db/0x1e90 fs/namespace.c:4208 do_mount fs/namespace.c:4221 [inline] __do_sys_mount fs/namespace.c:4432 [inline] __se_sys_mount+0x6eb/0x7d0 fs/namespace.c:4409 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4409 x64_sys_call+0xfa7/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x1b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 3581 Comm: kworker/u8:10 Not tainted 6.15.0-rc3-syzkaller-00094-g02ddfb981de8 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-bcachefs-34) =====================================================