------------[ cut here ]------------ precision 65535 too large WARNING: CPU: 1 PID: 7848 at lib/vsprintf.c:2794 set_precision lib/vsprintf.c:2794 [inline] WARNING: CPU: 1 PID: 7848 at lib/vsprintf.c:2794 vsnprintf+0x9c8/0xd60 lib/vsprintf.c:2899 Modules linked in: CPU: 1 UID: 0 PID: 7848 Comm: syz.3.246 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : set_precision lib/vsprintf.c:2794 [inline] pc : vsnprintf+0x9c8/0xd60 lib/vsprintf.c:2899 lr : set_precision lib/vsprintf.c:2794 [inline] lr : vsnprintf+0x9c8/0xd60 lib/vsprintf.c:2899 sp : ffff80009cf15b20 x29: ffff80009cf15b60 x28: ffff80008b57f8a0 x27: dfff800000000000 x26: 0000000000000003 x25: ffff80009cf15c80 x24: ffff80009cf15c88 x23: ffff0000d4e02a73 x22: ffff80008b57f8a3 x21: ffff80009cf15c98 x20: ffff0000d4e02a80 x19: 000000000000ffff x18: 1fffe0003379be88 x17: 30206c6576656c20 x16: ffff80008b0142f8 x15: 0000000000000001 x14: 1ffff000139e2ad4 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000007ffff x9 : ffaa55527ea93b00 x8 : ffaa55527ea93b00 x7 : ffff800080563d30 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffff8000807de9b0 x2 : 0000000000000002 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: set_precision lib/vsprintf.c:2794 [inline] (P) vsnprintf+0x9c8/0xd60 lib/vsprintf.c:2899 (P) bch2_prt_printf+0x170/0x598 fs/bcachefs/printbuf.c:183 bch2_dirent_to_text+0x184/0x8b0 fs/bcachefs/dirent.c:216 bch2_val_to_text fs/bcachefs/bkey_methods.c:321 [inline] bch2_bkey_val_to_text+0xf0/0x140 fs/bcachefs/bkey_methods.c:331 __bch2_bkey_fsck_err+0x338/0x4a0 fs/bcachefs/error.c:691 bch2_dirent_validate+0x658/0x9dc fs/bcachefs/dirent.c:164 bch2_bkey_val_validate+0x188/0x280 fs/bcachefs/bkey_methods.c:143 btree_node_bkey_val_validate fs/bcachefs/btree_io.c:880 [inline] bch2_btree_node_read_done+0x2c90/0x449c fs/bcachefs/btree_io.c:1303 btree_node_read_work+0x320/0xc14 fs/bcachefs/btree_io.c:1440 bch2_btree_node_read+0x814/0x23f8 fs/bcachefs/btree_io.c:-1 __bch2_btree_root_read fs/bcachefs/btree_io.c:1906 [inline] bch2_btree_root_read+0x280/0x3c8 fs/bcachefs/btree_io.c:1928 read_btree_roots+0x218/0x6c0 fs/bcachefs/recovery.c:615 bch2_fs_recovery+0x1bb4/0x2fb4 fs/bcachefs/recovery.c:1006 bch2_fs_start+0x940/0xbec fs/bcachefs/super.c:1213 bch2_fs_get_tree+0x880/0x107c fs/bcachefs/fs.c:2488 vfs_get_tree+0x90/0x28c fs/super.c:1815 do_new_mount+0x278/0x7f4 fs/namespace.c:3808 path_mount+0x5b4/0xde0 fs/namespace.c:4123 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount fs/namespace.c:4324 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4324 __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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 48124 hardirqs last enabled at (48123): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:86 [inline] hardirqs last enabled at (48123): [] exit_to_kernel_mode+0xc0/0xf0 arch/arm64/kernel/entry-common.c:96 hardirqs last disabled at (48124): [] el1_brk64+0x1c/0x48 arch/arm64/kernel/entry-common.c:574 softirqs last enabled at (47658): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (47658): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (47531): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop3): invalid bkey in btree_node btree=dirents level=0: u64s 7 type dirent 4098:8977922886548783724:U32_MAX len 0 ver 0: ÿ (casefold ) -> 4099 type (bad d_type) dirent names exceed bkey size (65535 + 65535 > 1), deleting bcachefs (loop3): error reading btree root btree=dirents level=0: btree_node_read_error, fixing bcachefs (loop3): btree node read error at btree freespace level 0/0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 2 ptr: 0:29:0 gen 0 d=2 loop3 node offset 8/32 bset u64s 35: checksum error, type none: got should be loop3 btree validate error flagging btree freespace lost data ret fsck_errors_not_fixed bcachefs (loop3): error reading btree root btree=freespace level=0: btree_node_read_error, fixing bcachefs (loop3): check_topology... bcachefs (loop3): btree root dirents unreadable, must recover from scan bcachefs (loop3): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding bcachefs (loop3): bch2_check_root(): error restart_recovery bcachefs (loop3): scan_for_btree_nodes... bcachefs (loop3): btree node scan found 1 nodes after overwrites done bcachefs (loop3): check_topology... bcachefs (loop3): btree root dirents unreadable, must recover from scan bcachefs (loop3): no nodes found for btree dirents, shutting down error not marked as autofix and not in fsck run fsck, and forward to devs so error can be marked for self-healing emergency read only at seq 10 bcachefs (loop3): bch2_check_root(): error fsck_errors_not_fixed bcachefs (loop3): error in recovery: fsck_errors_not_fixed bcachefs (loop3): bch2_fs_start(): error starting filesystem fsck_errors_not_fixed bcachefs (loop3): shutting down bcachefs (loop3): shutdown complete bcachefs: bch2_fs_get_tree() error: fsck_errors_not_fixed