===================================================== BUG: KMSAN: uninit-value in __writepoint_find fs/bcachefs/alloc_foreground.c:1090 [inline] BUG: KMSAN: uninit-value in writepoint_find fs/bcachefs/alloc_foreground.c:1164 [inline] BUG: KMSAN: uninit-value in bch2_alloc_sectors_start_trans+0x750/0x3560 fs/bcachefs/alloc_foreground.c:1272 __writepoint_find fs/bcachefs/alloc_foreground.c:1090 [inline] writepoint_find fs/bcachefs/alloc_foreground.c:1164 [inline] bch2_alloc_sectors_start_trans+0x750/0x3560 fs/bcachefs/alloc_foreground.c:1272 __bch2_write+0x7ff/0x6bc0 fs/bcachefs/io_write.c:1533 bch2_write+0xcc5/0x1860 fs/bcachefs/io_write.c:1722 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:486 [inline] bch2_writepages+0x26b/0x570 fs/bcachefs/fs-io-buffered.c:668 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 __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+0xb91/0x1d80 kernel/workqueue.c:3321 worker_thread+0xedf/0x1590 kernel/workqueue.c:3402 kthread+0xd5c/0xf00 kernel/kthread.c:464 ret_from_fork+0x1e3/0x310 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Uninit was stored to memory at: ------------[ cut here ]------------ WARNING: CPU: 0 PID: 16495 at kernel/stacktrace.c:29 stack_trace_print+0xd4/0xf0 kernel/stacktrace.c:29 Modules linked in: CPU: 0 UID: 0 PID: 16495 Comm: kworker/u8:18 Not tainted 6.16.0-rc2-syzkaller-00231-g75f5f23f8787 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-bcachefs-129) RIP: 0010:stack_trace_print+0xd4/0xf0 kernel/stacktrace.c:29 Code: a7 82 02 92 89 de ba 20 00 00 00 4c 89 e1 e8 23 7b 4d ff 49 83 c6 08 49 ff cd 0f 85 6e ff ff ff eb 0b e8 4f 96 c3 00 eb d4 90 <0f> 0b 90 5b 41 5c 41 5d 41 5e 41 5f 5d e9 da 3e f3 0e cc 66 0f 1f RSP: 0018:ffff8880458d2b58 EFLAGS: 00010246 RAX: ffff888119d8ac18 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffff8880458d2b80 R08: 0000000000000000 R09: 0000000000000000 R10: ffff8880450d2b98 R11: 000000000005bf40 R12: 0000000000000000 R13: 00000000abcd0100 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881aa87f000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000001fe0 CR3: 0000000012466000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kmsan_print_origin+0xb0/0x340 mm/kmsan/report.c:133 kmsan_report+0x1d3/0x320 mm/kmsan/report.c:196 __msan_warning+0x1b/0x30 mm/kmsan/instrumentation.c:315 __writepoint_find fs/bcachefs/alloc_foreground.c:1090 [inline] writepoint_find fs/bcachefs/alloc_foreground.c:1164 [inline] bch2_alloc_sectors_start_trans+0x750/0x3560 fs/bcachefs/alloc_foreground.c:1272 __bch2_write+0x7ff/0x6bc0 fs/bcachefs/io_write.c:1533 bch2_write+0xcc5/0x1860 fs/bcachefs/io_write.c:1722 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:486 [inline] bch2_writepages+0x26b/0x570 fs/bcachefs/fs-io-buffered.c:668 do_writepages+0x3ef/0x860 mm/page-writeback.c:2636 __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+0xb91/0x1d80 kernel/workqueue.c:3321 worker_thread+0xedf/0x1590 kernel/workqueue.c:3402 kthread+0xd5c/0xf00 kernel/kthread.c:464 ret_from_fork+0x1e3/0x310 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---[ end trace 0000000000000000 ]--- Uninit was created at: slab_post_alloc_hook mm/slub.c:4154 [inline] slab_alloc_node mm/slub.c:4197 [inline] kmem_cache_alloc_lru_noprof+0x822/0xed0 mm/slub.c:4216 __bch2_new_inode+0x9b/0x4b0 fs/bcachefs/fs.c:455 __bch2_create+0x286/0x1650 fs/bcachefs/fs.c:558 bch2_mknod fs/bcachefs/fs.c:750 [inline] bch2_create+0xba/0x1c0 fs/bcachefs/fs.c:764 lookup_open fs/namei.c:3717 [inline] open_last_lookups fs/namei.c:3816 [inline] path_openat+0x2d47/0x6760 fs/namei.c:4052 do_filp_open+0x280/0x660 fs/namei.c:4082 do_sys_openat2+0x1bb/0x2f0 fs/open.c:1437 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x240/0x300 fs/open.c:1463 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/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 16495 Comm: kworker/u8:18 Tainted: G W 6.16.0-rc2-syzkaller-00231-g75f5f23f8787 #0 PREEMPT(undef) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-bcachefs-129) =====================================================