, fixing bcachefs (loop2): alloc_read... done bcachefs (loop2): stripes_read... done bcachefs (loop2): snapshots_read... done bcachefs (loop2): check_allocations... btree root with incorrect max_key: 18446744073707239423:U64_MAX:U32_MAX, continuing list_del corruption, ffffc90002c63568->next is NULL ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:53! invalid opcode: 0000 [#1] PREEMPT SMP PTI CPU: 1 PID: 3328 Comm: syz.2.15 Not tainted 6.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__list_del_entry_valid_or_report+0x55/0xb0 lib/list_debug.c:52 Code: 48 39 d0 74 45 48 8b 10 48 39 f2 75 4c 48 8b 51 08 48 39 f2 75 55 b0 01 c3 cc cc cc cc 48 c7 c7 79 0d 8e 83 e8 4c 81 10 01 90 <0f> 0b 48 c7 c7 a3 0d 8e 83 e8 3d 81 10 01 90 0f 0b 48 c7 c7 cd 0d RSP: 0018:ffffc90002c63420 EFLAGS: 00010246 RAX: 0000000000000033 RBX: ffffc90002c63520 RCX: 8de5511170fef900 RDX: ffff888237d29e80 RSI: ffffffff83a2d721 RDI: 00000000ffffffff RBP: ffff88810d6f1000 R08: 0000000000000000 R09: ffffffff83cccfe0 R10: ffffc90002c63308 R11: ffffc90002c632b0 R12: ffff88810af64000 R13: 00000000fffff75e R14: ffff88810af64000 R15: ffff88810eb00000 FS: 00007ff1c17f96c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558e944faab0 CR3: 0000000103364000 CR4: 00000000003506f0 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:354 [inline] bch2_btree_and_journal_iter_exit+0x11/0x40 fs/bcachefs/btree_journal_iter.c:458 bch2_btree_node_check_topology+0x48e/0x8a0 fs/bcachefs/btree_update_interior.c:159 bch2_gc_btree_init_recurse+0xfa/0x470 fs/bcachefs/btree_gc.c:942 bch2_gc_btree_init fs/bcachefs/btree_gc.c:1010 [inline] bch2_gc_btrees fs/bcachefs/btree_gc.c:1048 [inline] bch2_gc+0x1522/0x3580 fs/bcachefs/btree_gc.c:1660 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:182 [inline] bch2_run_recovery_passes+0xaf/0x210 fs/bcachefs/recovery_passes.c:225 bch2_fs_recovery+0x9b3/0x1160 fs/bcachefs/recovery.c:798 bch2_fs_start+0x1b9/0x270 fs/bcachefs/super.c:1044 bch2_fs_open+0x404/0x530 fs/bcachefs/super.c:2106 bch2_mount+0x277/0x5c0 fs/bcachefs/fs.c:1899 legacy_get_tree+0x2d/0x60 fs/fs_context.c:662 vfs_get_tree+0x2a/0xf0 fs/super.c:1779 do_new_mount+0x15a/0x3a0 fs/namespace.c:3352 do_mount fs/namespace.c:3692 [inline] __do_sys_mount fs/namespace.c:3898 [inline] __se_sys_mount+0x14b/0x1c0 fs/namespace.c:3875 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xe2/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff1c197ffba Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1c17f8e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ff1c17f8ef0 RCX: 00007ff1c197ffba RDX: 0000000020000040 RSI: 0000000020000000 RDI: 00007ff1c17f8eb0 RBP: 0000000020000040 R08: 00007ff1c17f8ef0 R09: 0000000000800000 R10: 0000000000800000 R11: 0000000000000246 R12: 0000000020000000 R13: 00007ff1c17f8eb0 R14: 0000000000005996 R15: 00000000200003c0 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__list_del_entry_valid_or_report+0x55/0xb0 lib/list_debug.c:52 Code: 48 39 d0 74 45 48 8b 10 48 39 f2 75 4c 48 8b 51 08 48 39 f2 75 55 b0 01 c3 cc cc cc cc 48 c7 c7 79 0d 8e 83 e8 4c 81 10 01 90 <0f> 0b 48 c7 c7 a3 0d 8e 83 e8 3d 81 10 01 90 0f 0b 48 c7 c7 cd 0d RSP: 0018:ffffc90002c63420 EFLAGS: 00010246 RAX: 0000000000000033 RBX: ffffc90002c63520 RCX: 8de5511170fef900 RDX: ffff888237d29e80 RSI: ffffffff83a2d721 RDI: 00000000ffffffff RBP: ffff88810d6f1000 R08: 0000000000000000 R09: ffffffff83cccfe0 R10: ffffc90002c63308 R11: ffffc90002c632b0 R12: ffff88810af64000 R13: 00000000fffff75e R14: ffff88810af64000 R15: ffff88810eb00000 FS: 00007ff1c17f96c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558e944faab0 CR3: 0000000103364000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400