bcachefs (loop4): running explicit recovery pass scan_for_btree_nodes (1), currently at recovery_pass_empty (0) bcachefs (loop4): error reading btree root btree=extents level=0: btree_node_read_error, fixing ------------[ cut here ]------------ precision 65535 too large WARNING: CPU: 0 PID: 8209 at lib/vsprintf.c:2720 set_precision lib/vsprintf.c:2720 [inline] WARNING: CPU: 0 PID: 8209 at lib/vsprintf.c:2720 vsnprintf+0xbb0/0x1014 lib/vsprintf.c:2825 Modules linked in: CPU: 0 UID: 0 PID: 8209 Comm: syz.4.314 Not tainted 6.15.0-rc2-syzkaller-gc72692105976 #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : set_precision lib/vsprintf.c:2720 [inline] pc : vsnprintf+0xbb0/0x1014 lib/vsprintf.c:2825 lr : set_precision lib/vsprintf.c:2720 [inline] lr : vsnprintf+0xbb0/0x1014 lib/vsprintf.c:2825 sp : ffff80009df75a00 x29: ffff80009df75ac0 x28: ffff80009df75a80 x27: 000000000000ffff x26: 0000000000000003 x25: ffff80009df75b50 x24: dfff800000000000 x23: ffff80008bee36c3 x22: ffff0000d9a0e380 x21: ffff0000d9a0e373 x20: ffff80009df75be0 x19: 1ffff00013beeb50 x18: 1fffe000366ddeb6 x17: ffff80008ff2e000 x16: ffff80008333712c x15: 0000000000000001 x14: 1fffe000366e0928 x13: ffff80009df78000 x12: ffff80009df755c0 x11: 0000000000080000 x10: 0000000000000003 x9 : 250f79590b2fcb00 x8 : 250f79590b2fcb00 x7 : ffff8000803e3214 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000007 x1 : ffff80008bfc68c0 x0 : 0000000000000001 Call trace: set_precision lib/vsprintf.c:2720 [inline] (P) vsnprintf+0xbb0/0x1014 lib/vsprintf.c:2825 (P) bch2_prt_printf+0x194/0x5c4 fs/bcachefs/printbuf.c:183 bch2_dirent_to_text+0x170/0x380 fs/bcachefs/dirent.c:227 bch2_val_to_text fs/bcachefs/bkey_methods.c:305 [inline] bch2_bkey_val_to_text+0xfc/0x140 fs/bcachefs/bkey_methods.c:315 __bch2_bkey_fsck_err+0x354/0x4dc fs/bcachefs/error.c:629 bch2_dirent_validate+0x5d8/0x944 fs/bcachefs/dirent.c:-1 bch2_bkey_val_validate+0x18c/0x280 fs/bcachefs/bkey_methods.c:143 btree_node_bkey_val_validate fs/bcachefs/btree_io.c:840 [inline] bch2_btree_node_read_done+0x3040/0x4b60 fs/bcachefs/btree_io.c:1255 btree_node_read_work+0x51c/0xfe0 fs/bcachefs/btree_io.c:1366 bch2_btree_node_read+0x1da0/0x2480 fs/bcachefs/btree_io.c:1756 __bch2_btree_root_read fs/bcachefs/btree_io.c:1797 [inline] bch2_btree_root_read+0x2c0/0x41c fs/bcachefs/btree_io.c:1819 read_btree_roots+0x2e0/0x88c fs/bcachefs/recovery.c:581 bch2_fs_recovery+0x20a8/0x3300 fs/bcachefs/recovery.c:928 bch2_fs_start+0x2b0/0x5a8 fs/bcachefs/super.c:1059 bch2_fs_get_tree+0xcf4/0x12cc fs/bcachefs/fs.c:2253 vfs_get_tree+0x90/0x28c fs/super.c:1759 do_new_mount+0x278/0x900 fs/namespace.c:3879 path_mount+0x590/0xe04 fs/namespace.c:4206 do_mount fs/namespace.c:4219 [inline] __do_sys_mount fs/namespace.c:4430 [inline] __se_sys_mount fs/namespace.c:4407 [inline] __arm64_sys_mount+0x4f4/0x5d0 fs/namespace.c:4407 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 72568 hardirqs last enabled at (72567): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1525 [inline] hardirqs last enabled at (72567): [] finish_lock_switch+0xbc/0x1e4 kernel/sched/core.c:5130 hardirqs last disabled at (72568): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (71604): [] spin_unlock_bh include/linux/spinlock.h:396 [inline] softirqs last enabled at (71604): [] bdi_register_va+0x540/0x838 mm/backing-dev.c:1114 softirqs last disabled at (71602): [] spin_lock_bh include/linux/spinlock.h:356 [inline] softirqs last disabled at (71602): [] bdi_register_va+0x328/0x838 mm/backing-dev.c:1104 ---[ end trace 0000000000000000 ]--- bcachefs (loop4): invalid bkey in btree_node btree=dirents level=0: u64s 7 type dirent 4098:8977922886548783724:U32_MAX len 0 ver 0: -> 18374686479671627779 type (bad d_type) dirent names exceed bkey size (65535 + 32767 > 0), deleting bcachefs (loop4): bcachefs (loop4): error validating btree node at btree alloc level 0/0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing bcachefs (loop4): btree_node_read_work: rewriting btree node at due to error btree=alloc level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0 bcachefs (loop4): scan_for_btree_nodes... bcachefs (loop4): btree node scan found 7 nodes after overwrites done bcachefs (loop4): check_topology... bcachefs (loop4): btree root extents unreadable, must recover from scan bcachefs (loop4): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX bcachefs (loop4): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 done bcachefs (loop4): accounting_read... done bcachefs (loop4): alloc_read... done bcachefs (loop4): snapshots_read... done bcachefs (loop4): check_allocations... bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:12 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:12 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:13 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:13 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:14 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:14 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:15 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:15 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:16 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:16 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:17 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:17 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:18 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:18 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:19 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:19 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:20 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:20 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:21 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:21 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:22 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:22 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:23 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:23 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:24 gen 0 has wrong data_type: got free, should be journal, fixing bcachefs (loop4): bucket 0:24 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:26 gen 0 has wrong data_type: got free, should be btree, fixing bcachefs (loop4): bucket 0:26 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:29 gen 0 has wrong data_type: got free, should be btree, fixing bcachefs (loop4): bucket 0:29 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:32 gen 0 has wrong data_type: got sb, should be btree, fixing bcachefs (loop4): bucket 0:35 gen 0 has wrong data_type: got free, should be btree, fixing bcachefs (loop4): bucket 0:35 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:38 gen 0 has wrong data_type: got free, should be btree, fixing bcachefs (loop4): bucket 0:38 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:41 gen 0 has wrong data_type: got free, should be btree, fixing bcachefs (loop4): bucket 0:41 gen 0 data type btree has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:120 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:120 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:121 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:121 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:122 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:122 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:123 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:123 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:124 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:124 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:125 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:125 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:126 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:126 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing bcachefs (loop4): bucket 0:127 gen 0 has wrong data_type: got free, should be sb, fixing bcachefs (loop4): bucket 0:127 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing done bcachefs (loop4): going read-write bcachefs (loop4): journal_replay... done bcachefs (loop4): check_alloc_info... done bcachefs (loop4): check_lrus... done bcachefs (loop4): check_btree_backpointers... done bcachefs (loop4): check_backpointers_to_extents... done bcachefs (loop4): check_extents_to_backpointers... bcachefs (loop4): scanning for missing backpointers in 4/128 buckets done bcachefs (loop4): check_alloc_to_lru_refs... done bcachefs (loop4): bucket_gens_init... done bcachefs (loop4): check_snapshot_trees... done bcachefs (loop4): check_snapshots... bcachefs (loop4): snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing bcachefs (loop4): snapshot points to missing/incorrect tree: u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: is_subvol 1 deleted 0 parent 0 children 0 0 subvol 1 tree 0, fixing done bcachefs (loop4): check_subvols... done bcachefs (loop4): check_subvol_children... done bcachefs (loop4): delete_dead_snapshots... done bcachefs (loop4): check_inodes... bcachefs (loop4): inode points to missing dirent inum: 4099:4294967295 mode=100755 flags=(15300000) journal_seq=5 hash_seed=fc917866faeb7b5b hash_type=siphash bi_size=1050 bi_sectors=8 bi_version=0 bi_atime=2770562249 bi_ctime=2770562249 bi_mtime=2770562249 bi_otime=2770562249 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=4098 bi_dir_offset=8977922886548783724 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0, fixing done bcachefs (loop4): check_extents... done bcachefs (loop4): check_indirect_extents... done bcachefs (loop4): check_dirents... done bcachefs (loop4): check_xattrs... done bcachefs (loop4): check_root... done bcachefs (loop4): check_unreachable_inodes... bcachefs (loop4): unreachable inode: inum: 4099:4294967295 mode=100755 flags=(4300000) journal_seq=21 hash_seed=fc917866faeb7b5b hash_type=siphash bi_size=1050 bi_sectors=8 bi_version=0 bi_atime=2770562249 bi_ctime=2770562249 bi_mtime=2770562249 bi_otime=2770562249 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=0 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0, fixing bcachefs (loop4): unreachable inode: inum: 4099:4294967295 mode=100755 flags=(4300000) journal_seq=21 hash_seed=fc917866faeb7b5b hash_type=siphash bi_size=1050 bi_sectors=8 bi_version=0 bi_atime=2770562249 bi_ctime=2770562249 bi_mtime=2770562249 bi_otime=2770562249 bi_uid=0 bi_gid=0 bi_nlink=0 bi_generation=0 bi_dev=0 bi_data_checksum=0 bi_compression=0 bi_project=0 bi_background_compression=0 bi_data_replicas=0 bi_promote_target=0 bi_foreground_target=0 bi_background_target=0 bi_erasure_code=0 bi_fields_set=0 bi_dir=0 bi_dir_offset=0 bi_subvol=0 bi_parent_subvol=0 bi_nocow=0 bi_depth=0 bi_inodes_32bit=0, fixing done bcachefs (loop4): check_subvolume_structure... done bcachefs (loop4): check_directory_structure... done bcachefs (loop4): check_nlinks... bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing done bcachefs (loop4): resume_logged_ops... done bcachefs (loop4): delete_dead_inodes... done bcachefs (loop4): set_fs_needs_rebalance... done bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean bcachefs (loop4): check_alloc_info... done bcachefs (loop4): check_lrus... done bcachefs (loop4): check_btree_backpointers... done bcachefs (loop4): check_backpointers_to_extents... done bcachefs (loop4): check_extents_to_backpointers... bcachefs (loop4): scanning for missing backpointers in 1/128 buckets done bcachefs (loop4): check_alloc_to_lru_refs... done bcachefs (loop4): bucket_gens_init... done bcachefs (loop4): check_snapshot_trees... done bcachefs (loop4): check_snapshots... done bcachefs (loop4): check_subvols... done bcachefs (loop4): check_subvol_children... done bcachefs (loop4): delete_dead_snapshots... done bcachefs (loop4): check_inodes... done bcachefs (loop4): check_extents... done bcachefs (loop4): check_indirect_extents... done bcachefs (loop4): check_dirents... done bcachefs (loop4): check_xattrs... done bcachefs (loop4): check_root... done bcachefs (loop4): check_unreachable_inodes... done bcachefs (loop4): check_subvolume_structure... done bcachefs (loop4): check_directory_structure... done bcachefs (loop4): check_nlinks... done bcachefs (loop4): resume_logged_ops... done bcachefs (loop4): delete_dead_inodes... done bcachefs (loop4): set_fs_needs_rebalance... done bcachefs (loop4): done starting filesystem