===================================================== 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_node_rewrite+0x1cd/0x1b50 fs/bcachefs/btree_update_interior.c:2245 bch2_btree_node_rewrite_key fs/bcachefs/btree_update_interior.c:2311 [inline] async_btree_node_rewrite_work+0x6e8/0x10d0 fs/bcachefs/btree_update_interior.c:2368 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+0x1e0/0x310 arch/x86/kernel/process.c:148 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: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] kmem_cache_alloc_noprof+0x91b/0xec0 mm/slub.c:4204 dquot_alloc+0x4b/0x60 fs/quota/dquot.c:890 get_empty_dquot fs/quota/dquot.c:898 [inline] dqget+0x7a7/0x1e60 fs/quota/dquot.c:948 __dquot_initialize+0x3dc/0x1540 fs/quota/dquot.c:1505 dquot_initialize+0x33/0x40 fs/quota/dquot.c:1567 shmem_get_inode+0x15af/0x1c20 mm/shmem.c:3123 shmem_fill_super+0x14fb/0x1890 mm/shmem.c:5098 vfs_get_super fs/super.c:1323 [inline] get_tree_nodev+0x164/0x360 fs/super.c:1342 shmem_get_tree+0x35/0x40 mm/shmem.c:5118 vfs_get_tree+0xb0/0x5c0 fs/super.c:1802 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: 1 UID: 0 PID: 4537 Comm: kworker/u8:14 Tainted: G W 6.16.0-rc1-syzkaller-00236-g8c6bc74c7f89 #0 PREEMPT(undef) Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: btree_node_rewrite async_btree_node_rewrite_work =====================================================