===================================================== 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_writepages+0x22d/0x430 fs/bcachefs/fs-io-buffered.c:677 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: slab_post_alloc_hook mm/slub.c:4167 [inline] slab_alloc_node mm/slub.c:4210 [inline] kmem_cache_alloc_lru_noprof+0x822/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_lookup_trans fs/bcachefs/fs.c:669 [inline] bch2_lookup+0x1dbc/0x2310 fs/bcachefs/fs.c:697 lookup_open fs/namei.c:3679 [inline] open_last_lookups fs/namei.c:3800 [inline] path_openat+0x2987/0x6760 fs/namei.c:4036 do_filp_open+0x280/0x660 fs/namei.c:4066 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1429 do_sys_open fs/open.c:1444 [inline] __do_sys_openat fs/open.c:1460 [inline] __se_sys_openat fs/open.c:1455 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1455 x64_sys_call+0x213/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:258 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: 1 UID: 0 PID: 3870 Comm: kworker/u8:18 Not tainted 6.15.0-rc3-syzkaller-00094-g02ddfb981de8 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/29/2025 Workqueue: writeback wb_workfn (flush-bcachefs-30) =====================================================