bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing Ratelimiting new instances of previous error done bcachefs (loop2): going read-write bcachefs (loop2): journal_replay... ===================================================== BUG: KMSAN: uninit-value in __bch2_alloc_v4_to_text+0x7a4/0xdf0 fs/bcachefs/alloc_background.c:355 __bch2_alloc_v4_to_text+0x7a4/0xdf0 fs/bcachefs/alloc_background.c:355 bch2_alloc_v4_to_text+0x181/0x1f0 fs/bcachefs/alloc_background.c:380 bch2_val_to_text fs/bcachefs/bkey_methods.c:321 [inline] bch2_bkey_val_to_text+0x1e8/0x280 fs/bcachefs/bkey_methods.c:331 bch2_check_discard_freespace_key+0xe35/0x1a30 fs/bcachefs/alloc_background.c:1436 try_alloc_bucket fs/bcachefs/alloc_foreground.c:272 [inline] bch2_bucket_alloc_freelist fs/bcachefs/alloc_foreground.c:420 [inline] bch2_bucket_alloc_trans+0x225d/0x3a40 fs/bcachefs/alloc_foreground.c:544 bch2_bucket_alloc_set_trans+0xebb/0x1c10 fs/bcachefs/alloc_foreground.c:728 __open_bucket_add_buckets+0x21f8/0x37b0 fs/bcachefs/alloc_foreground.c:925 open_bucket_add_buckets+0x347/0x580 fs/bcachefs/alloc_foreground.c:957 bch2_alloc_sectors_start_trans+0x1de1/0x3560 fs/bcachefs/alloc_foreground.c:-1 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:320 [inline] bch2_btree_reserve_get+0x9fd/0x2120 fs/bcachefs/btree_update_interior.c:534 bch2_btree_update_start+0x27c3/0x3620 fs/bcachefs/btree_update_interior.c:1270 bch2_btree_split_leaf+0x11a/0xc00 fs/bcachefs/btree_update_interior.c:1920 bch2_trans_commit_error+0x2b3/0x1b10 fs/bcachefs/btree_trans_commit.c:911 __bch2_trans_commit+0x6203/0xe240 fs/bcachefs/btree_trans_commit.c:1098 bch2_trans_commit fs/bcachefs/btree_update.h:242 [inline] bch2_journal_replay+0x2d7e/0x4c00 fs/bcachefs/recovery.c:396 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:485 [inline] __bch2_run_recovery_passes+0x49e/0x1330 fs/bcachefs/recovery_passes.c:540 bch2_run_recovery_passes+0x284/0x310 fs/bcachefs/recovery_passes.c:611 bch2_fs_recovery+0x5332/0x6a70 fs/bcachefs/recovery.c:989 bch2_fs_start+0x1159/0x1920 fs/bcachefs/super.c:1203 bch2_fs_get_tree+0x113a/0x2ae0 fs/bcachefs/fs.c:2489 vfs_get_tree+0xb0/0x5c0 fs/super.c:1804 do_new_mount+0x738/0x1610 fs/namespace.c:3885 path_mount+0x6db/0x1e90 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount+0x6eb/0x7d0 fs/namespace.c:4410 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4410 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/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was created at: __alloc_frozen_pages_noprof+0x689/0xf00 mm/page_alloc.c:4982 alloc_pages_mpol+0x328/0x860 mm/mempolicy.c:2419 alloc_frozen_pages_noprof+0xf7/0x200 mm/mempolicy.c:2490 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab+0x24d/0x1220 mm/slub.c:2619 new_slab mm/slub.c:2673 [inline] ___slab_alloc+0xfec/0x3480 mm/slub.c:3859 __slab_alloc mm/slub.c:3949 [inline] __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_noprof+0xa96/0x1310 mm/slub.c:4340 kmalloc_noprof include/linux/slab.h:909 [inline] __bkey_cached_alloc fs/bcachefs/btree_key_cache.c:139 [inline] bkey_cached_alloc fs/bcachefs/btree_key_cache.c:162 [inline] btree_key_cache_create fs/bcachefs/btree_key_cache.c:231 [inline] btree_key_cache_fill+0x784/0x4780 fs/bcachefs/btree_key_cache.c:344 bch2_btree_path_traverse_cached+0x10d7/0x1870 fs/bcachefs/btree_key_cache.c:399 bch2_btree_path_traverse_one+0x6db/0x4060 fs/bcachefs/btree_iter.c:1179 bch2_btree_path_traverse fs/bcachefs/btree_iter.h:250 [inline] bch2_trans_update_get_key_cache+0x88a/0x1110 fs/bcachefs/btree_update.c:476 bch2_trans_update_ip+0x1083/0x24d0 fs/bcachefs/btree_update.c:524 bch2_trans_update fs/bcachefs/btree_update.h:123 [inline] bch2_alloc_write_key fs/bcachefs/btree_gc.c:928 [inline] bch2_gc_alloc_done fs/bcachefs/btree_gc.c:938 [inline] bch2_check_allocations+0x88b6/0xb540 fs/bcachefs/btree_gc.c:1087 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:485 [inline] __bch2_run_recovery_passes+0x49e/0x1330 fs/bcachefs/recovery_passes.c:540 bch2_run_recovery_passes+0x284/0x310 fs/bcachefs/recovery_passes.c:611 bch2_fs_recovery+0x5332/0x6a70 fs/bcachefs/recovery.c:989 bch2_fs_start+0x1159/0x1920 fs/bcachefs/super.c:1203 bch2_fs_get_tree+0x113a/0x2ae0 fs/bcachefs/fs.c:2489 vfs_get_tree+0xb0/0x5c0 fs/super.c:1804 do_new_mount+0x738/0x1610 fs/namespace.c:3885 path_mount+0x6db/0x1e90 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount+0x6eb/0x7d0 fs/namespace.c:4410 __x64_sys_mount+0xe4/0x150 fs/namespace.c:4410 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/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f CPU: 0 UID: 0 PID: 8658 Comm: syz.2.472 Not tainted 6.16.0-rc2-syzkaller-00318-g739a6c93cc75 #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 =====================================================