------------[ cut here ]------------ WARNING: CPU: 0 PID: 5114 at fs/bcachefs/error.c:242 __bch2_fsck_err+0x131c/0x1500 fs/bcachefs/error.c:242 Modules linked in: CPU: 0 UID: 0 PID: 5114 Comm: read_btree_node Not tainted 6.11.0-syzkaller-10669-g11a299a7933e #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__bch2_fsck_err+0x131c/0x1500 fs/bcachefs/error.c:242 Code: f9 ff ff e8 96 6b d2 f5 41 bc 5d f7 ff ff 45 31 f6 e9 7a fa ff ff e8 83 6b d2 f5 90 0f 0b 90 e9 42 ee ff ff e8 75 6b d2 f5 90 <0f> 0b 90 e9 8b ee ff ff 89 f9 80 e1 07 38 c1 0f 8c c7 ed ff ff e8 RSP: 0018:ffffc90002dae9a0 EFLAGS: 00010293 RAX: ffffffff8bc249cb RBX: 0000000000000000 RCX: ffff888000af8000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffc90002dae8e0 RBP: ffffc90002daeb50 R08: ffffc90002dae8e7 R09: 1ffff920005b5d1c R10: dffffc0000000000 R11: fffff520005b5d1d R12: 0000000000000054 R13: dffffc0000000000 R14: 0000000000000054 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055e35ec4c828 CR3: 000000001ce08000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __bch2_bkey_fsck_err+0x1a2/0x230 fs/bcachefs/error.c:436 __bch2_bkey_validate+0x45b/0x8b0 bset_key_validate fs/bcachefs/btree_io.c:843 [inline] validate_bset_keys+0x775/0x1610 fs/bcachefs/btree_io.c:914 bch2_btree_node_read_done+0x23f8/0x5d80 fs/bcachefs/btree_io.c:1134 btree_node_read_work+0x68b/0x1260 fs/bcachefs/btree_io.c:1323 bch2_btree_node_read+0x2433/0x2a10 bch2_btree_node_fill+0xbb6/0x1200 fs/bcachefs/btree_cache.c:969 bch2_btree_node_get_noiter+0x9d5/0xf70 fs/bcachefs/btree_cache.c:1238 found_btree_node_is_readable fs/bcachefs/btree_node_scan.c:85 [inline] try_read_btree_node fs/bcachefs/btree_node_scan.c:190 [inline] read_btree_nodes_worker+0x122c/0x20b0 fs/bcachefs/btree_node_scan.c:239 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244