bcachefs (loop4): reconstruct_snapshots... bcachefs (loop4): snapshot node 4294967295 from tree 4294967295 missing, recreating ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8560 at fs/bcachefs/btree_iter.c:3132 __bch2_trans_kmalloc+0x5b0/0xb8c fs/bcachefs/btree_iter.c:3132 Modules linked in: CPU: 0 UID: 0 PID: 8560 Comm: syz.4.398 Not tainted 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __bch2_trans_kmalloc+0x5b0/0xb8c fs/bcachefs/btree_iter.c:3132 lr : __bch2_trans_kmalloc+0x5b0/0xb8c fs/bcachefs/btree_iter.c:3132 sp : ffff80009c4a5f00 x29: ffff80009c4a5f40 x28: 0000000000000178 x27: ffff0000cdb40000 x26: 0000000000020000 x25: dfff800000000000 x24: ffff0000cdb40034 x23: ffff0000cdb40030 x22: 1fffe00019b68000 x21: 0000000000000011 x20: ffff800082790aec x19: ffff0000cdb40000 x18: 00000000ffffffff x17: 0000000000000000 x16: ffff80008aecb76c x15: 0000000000000001 x14: 1ffff00013894c14 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000007ffff x9 : ffff8000a546e000 x8 : 0000000000080000 x7 : 0000000000000003 x6 : 0000000000000001 x5 : 0000000000000001 x4 : ffff80009c4a6390 x3 : ffff0000fd19dbc0 x2 : ffff800082790a2c x1 : 0000000000020000 x0 : 0000000000010000 Call trace: __bch2_trans_kmalloc+0x5b0/0xb8c fs/bcachefs/btree_iter.c:3132 (P) bch2_trans_kmalloc_nomemzero_ip fs/bcachefs/btree_iter.h:586 [inline] bch2_trans_kmalloc_nomemzero+0xe4/0x13c fs/bcachefs/btree_iter.h:621 bch2_alloc_sectors_start_trans+0x78/0x1880 fs/bcachefs/alloc_foreground.c:1250 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:320 [inline] bch2_btree_reserve_get+0x4ec/0xe80 fs/bcachefs/btree_update_interior.c:534 bch2_btree_update_start+0x1524/0x1a68 fs/bcachefs/btree_update_interior.c:1289 bch2_btree_split_leaf+0x118/0x71c fs/bcachefs/btree_update_interior.c:1920 bch2_trans_commit_error+0x17c/0x11a0 fs/bcachefs/btree_trans_commit.c:911 __bch2_trans_commit+0x1888/0x6198 fs/bcachefs/btree_trans_commit.c:1098 bch2_trans_commit fs/bcachefs/btree_update.h:242 [inline] bch2_reconstruct_snapshots+0x1418/0x1968 fs/bcachefs/snapshot.c:1013 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:485 [inline] __bch2_run_recovery_passes+0x29c/0xd18 fs/bcachefs/recovery_passes.c:540 bch2_run_recovery_passes+0x174/0x1f4 fs/bcachefs/recovery_passes.c:611 bch2_fs_recovery+0x1d60/0x2fa8 fs/bcachefs/recovery.c:989 bch2_fs_start+0x914/0xbc0 fs/bcachefs/super.c:1203 bch2_fs_get_tree+0x890/0x1048 fs/bcachefs/fs.c:2489 vfs_get_tree+0x90/0x28c fs/super.c:1802 do_new_mount+0x228/0x814 fs/namespace.c:3885 path_mount+0x5b4/0xde0 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount fs/namespace.c:4410 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4410 __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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 68254 hardirqs last enabled at (68253): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] hardirqs last enabled at (68253): [] _raw_spin_unlock_irqrestore+0x38/0x98 kernel/locking/spinlock.c:194 hardirqs last disabled at (68254): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (68178): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (68178): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (68157): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 8560 at mm/page_alloc.c:4935 __alloc_frozen_pages_noprof+0xd0/0x318 mm/page_alloc.c:4935 Modules linked in: CPU: 0 UID: 0 PID: 8560 Comm: syz.4.398 Tainted: G W 6.16.0-rc2-syzkaller-g9aa9b43d689e #0 PREEMPT Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : __alloc_frozen_pages_noprof+0xd0/0x318 mm/page_alloc.c:4935 lr : __alloc_frozen_pages_noprof+0xac/0x318 mm/page_alloc.c:4929 sp : ffff80009c4a5c40 x29: ffff80009c4a5d00 x28: ffff80008282e740 x27: 00000000ffffffff x26: 0000000000000000 x25: dfff800000000000 x24: ffff80009c4a5c60 x23: ffff700013894b8c x22: 0000000000000000 x21: 0000000000040cc0 x20: 0000000000000000 x19: 000000000000000b x18: 00000000ffffffff x17: 0000000000000000 x16: ffff80008ae33808 x15: 0000000000000005 x14: 1ffff00013894b90 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700013894b95 x10: dfff800000000000 x9 : 0000000000000001 x8 : ffff800092c0f000 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: __alloc_frozen_pages_noprof+0xd0/0x318 mm/page_alloc.c:4935 (P) __alloc_pages_noprof+0x18/0x100 mm/page_alloc.c:4993 __alloc_pages_node_noprof include/linux/gfp.h:284 [inline] alloc_pages_node_noprof include/linux/gfp.h:311 [inline] ___kmalloc_large_node+0xa8/0x1d8 mm/slub.c:4272 __kmalloc_large_node_noprof+0x2c/0x8c mm/slub.c:4300 __do_kmalloc_node mm/slub.c:4316 [inline] __kmalloc_node_track_caller_noprof+0x3c4/0x4d0 mm/slub.c:4347 __do_krealloc mm/slub.c:4905 [inline] krealloc_noprof+0x11c/0x2f0 mm/slub.c:4958 __bch2_trans_kmalloc+0x5e0/0xb8c fs/bcachefs/btree_iter.c:3191 bch2_trans_kmalloc_nomemzero_ip fs/bcachefs/btree_iter.h:586 [inline] bch2_trans_kmalloc_nomemzero+0xe4/0x13c fs/bcachefs/btree_iter.h:621 bch2_alloc_sectors_start_trans+0x78/0x1880 fs/bcachefs/alloc_foreground.c:1250 __bch2_btree_node_alloc fs/bcachefs/btree_update_interior.c:320 [inline] bch2_btree_reserve_get+0x4ec/0xe80 fs/bcachefs/btree_update_interior.c:534 bch2_btree_update_start+0x1524/0x1a68 fs/bcachefs/btree_update_interior.c:1289 bch2_btree_split_leaf+0x118/0x71c fs/bcachefs/btree_update_interior.c:1920 bch2_trans_commit_error+0x17c/0x11a0 fs/bcachefs/btree_trans_commit.c:911 __bch2_trans_commit+0x1888/0x6198 fs/bcachefs/btree_trans_commit.c:1098 bch2_trans_commit fs/bcachefs/btree_update.h:242 [inline] bch2_reconstruct_snapshots+0x1418/0x1968 fs/bcachefs/snapshot.c:1013 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:485 [inline] __bch2_run_recovery_passes+0x29c/0xd18 fs/bcachefs/recovery_passes.c:540 bch2_run_recovery_passes+0x174/0x1f4 fs/bcachefs/recovery_passes.c:611 bch2_fs_recovery+0x1d60/0x2fa8 fs/bcachefs/recovery.c:989 bch2_fs_start+0x914/0xbc0 fs/bcachefs/super.c:1203 bch2_fs_get_tree+0x890/0x1048 fs/bcachefs/fs.c:2489 vfs_get_tree+0x90/0x28c fs/super.c:1802 do_new_mount+0x228/0x814 fs/namespace.c:3885 path_mount+0x5b4/0xde0 fs/namespace.c:4209 do_mount fs/namespace.c:4222 [inline] __do_sys_mount fs/namespace.c:4433 [inline] __se_sys_mount fs/namespace.c:4410 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4410 __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/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 138428 hardirqs last enabled at (138427): [] el1_dbg+0x6c/0x80 arch/arm64/kernel/entry-common.c:514 hardirqs last disabled at (138428): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (137842): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (137842): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (137815): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop4): bch2_btree_update_start(): error ENOMEM_trans_kmalloc bcachefs (loop4): bch2_reconstruct_snapshots(): error ENOMEM_trans_kmalloc bcachefs (loop4): error in recovery: ENOMEM_trans_kmallocemergency read only at seq 18 bcachefs (loop4): bch2_fs_start(): error starting filesystem ENOMEM_trans_kmalloc bcachefs (loop4): shutting down bcachefs (loop4): shutdown complete bcachefs: bch2_fs_get_tree() error: ENOMEM_trans_kmalloc