bcachefs (loop0): check_allocations... btree root with incorrect max_key: 18446744073707239423:U64_MAX:U32_MAX, continuing list_del corruption, ffffc9000d096588->next is NULL ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:53! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5315 Comm: syz-executor365 Not tainted 6.12.0-syzkaller-07749-g28eb75e178d3 #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:__list_del_entry_valid_or_report+0xd0/0x140 lib/list_debug.c:52 Code: d6 49 44 fd 48 8b 13 4c 39 fa 75 6b b0 01 5b 41 5c 41 5e 41 5f c3 cc cc cc cc 48 c7 c7 80 76 60 8c 4c 89 fe e8 91 42 08 07 90 <0f> 0b 48 c7 c7 e0 76 60 8c 4c 89 fe e8 7f 42 08 07 90 0f 0b 48 c7 RSP: 0018:ffffc9000d096400 EFLAGS: 00010246 RAX: 0000000000000033 RBX: 0000000000000000 RCX: 2c8cb1f6fc7cc500 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d096790 R08: ffffffff8174e83c R09: 1ffff92001a12c1c R10: dffffc0000000000 R11: fffff52001a12c1d R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc9000d096588 FS: 000055556d014380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005569d8a1c3d0 CR3: 00000000358b2000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry_valid include/linux/list.h:124 [inline] __list_del_entry include/linux/list.h:215 [inline] list_del include/linux/list.h:229 [inline] bch2_journal_iter_exit fs/bcachefs/btree_journal_iter.c:339 [inline] bch2_btree_and_journal_iter_exit+0x2c/0x100 fs/bcachefs/btree_journal_iter.c:443 bch2_btree_node_check_topology+0x13dd/0x2b00 fs/bcachefs/btree_update_interior.c:144 bch2_gc_mark_key+0x1dc/0x10e0 fs/bcachefs/btree_gc.c:588 bch2_gc_btree fs/bcachefs/btree_gc.c:670 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:729 [inline] bch2_check_allocations+0x1c3e/0x7070 fs/bcachefs/btree_gc.c:1133 bch2_run_recovery_pass+0xf0/0x1e0 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x3a7/0x880 fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x25cc/0x39d0 fs/bcachefs/recovery.c:861 bch2_fs_start+0x356/0x5b0 fs/bcachefs/super.c:1037 bch2_fs_get_tree+0xd68/0x1710 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x2b0 fs/super.c:1814 do_new_mount+0x2be/0xb40 fs/namespace.c:3507 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:4034 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f40f58a1f6a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 5e 04 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd19a1dc08 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffd19a1dc20 RCX: 00007f40f58a1f6a RDX: 0000000020000040 RSI: 0000000020000000 RDI: 00007ffd19a1dc20 RBP: 0000000000000004 R08: 00007ffd19a1dc60 R09: 0000000000005993 R10: 0000000000800000 R11: 0000000000000282 R12: 0000000000800000 R13: 00007ffd19a1dc60 R14: 0000000000000003 R15: 0000000001000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0xd0/0x140 lib/list_debug.c:52 Code: d6 49 44 fd 48 8b 13 4c 39 fa 75 6b b0 01 5b 41 5c 41 5e 41 5f c3 cc cc cc cc 48 c7 c7 80 76 60 8c 4c 89 fe e8 91 42 08 07 90 <0f> 0b 48 c7 c7 e0 76 60 8c 4c 89 fe e8 7f 42 08 07 90 0f 0b 48 c7 RSP: 0018:ffffc9000d096400 EFLAGS: 00010246 RAX: 0000000000000033 RBX: 0000000000000000 RCX: 2c8cb1f6fc7cc500 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: ffffc9000d096790 R08: ffffffff8174e83c R09: 1ffff92001a12c1c R10: dffffc0000000000 R11: fffff52001a12c1d R12: dffffc0000000000 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffc9000d096588 FS: 000055556d014380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005569d8a1c3d0 CR3: 00000000358b2000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400