Warning: Permanently added '[localhost]:9426' (ED25519) to the list of known hosts. executing program [ 64.191860][ T5311] loop0: detected capacity change from 0 to 32768 [ 64.208441][ T5311] bcachefs (/dev/loop0): error reading default superblock: checksum error, type none: got should be [ 64.275116][ T5311] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names,version_upgrade=none [ 64.282016][ T5311] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 64.285717][ T5311] bcachefs (loop0): Version upgrade required: [ 64.285717][ T5311] Version upgrade from 0.19: freespace to 1.7: mi_btree_bitmap incomplete [ 64.285717][ T5311] Doing incompatible version upgrade from 0.19: freespace to 1.13: inode_has_child_snapshots [ 64.285717][ T5311] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 64.321183][ T5311] invalid bkey u64s 8 type dirent 4096:9097378837824744618:U32_MAX len 0 ver 0: -> 536870914 type (bad d_type) [ 64.321205][ T5311] dirent has stray data after name's NUL: delete?, fixing [ 64.343176][ T5311] invalid bkey u64s 11 type alloc_v4 0:7:0 len 0 ver 0: [ 64.343194][ T5311] gen 0 oldest_gen 0 data_type sb [ 64.343201][ T5311] journal_seq 1 [ 64.343207][ T5311] need_discard 1 [ 64.343214][ T5311] need_inc_gen 1 [ 64.343220][ T5311] dirty_sectors 256 [ 64.343226][ T5311] stripe_sectors 0 [ 64.343232][ T5311] cached_sectors 0 [ 64.343238][ T5311] stripe 0 [ 64.343243][ T5311] stripe_redundancy 0 [ 64.343250][ T5311] io_time[READ] 8863084066665136129 [ 64.343257][ T5311] io_time[WRITE] 8 [ 64.343291][ T5311] fragmentation 0 [ 64.343298][ T5311] bp_start 8 [ 64.343305][ T5311] [ 64.343310][ T5311] invalid io_time[read]: 8863084066665136129, max 281474976710655: deleting [ 64.379613][ T5311] bcachefs (loop0): accounting_read... done [ 64.382610][ T5311] bcachefs (loop0): alloc_read... done [ 64.384803][ T5311] bcachefs (loop0): stripes_read... done [ 64.387007][ T5311] bcachefs (loop0): snapshots_read... [ 64.387344][ T5311] ------------[ cut here ]------------ [ 64.391761][ T5311] kernel BUG at fs/bcachefs/bkey.c:297! [ 64.394482][ T5311] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 64.396849][ T5311] CPU: 0 UID: 0 PID: 5311 Comm: syz-executor213 Not tainted 6.12.0-rc4-syzkaller-00261-g850925a8133c #0 [ 64.400654][ T5311] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 64.404341][ T5311] RIP: 0010:__bkey_unpack_pos+0x779/0x790 [ 64.406473][ T5311] Code: b6 e4 00 e9 ad fb ff ff e8 24 ea 83 fd 48 c7 c7 40 b1 f3 8e 4c 89 e6 48 89 da e8 f2 b5 e4 00 e9 f4 fc ff ff e8 08 ea 83 fd 90 <0f> 0b e8 00 ea 83 fd 90 0f 0b e8 f8 e9 83 fd 90 0f 0b 0f 1f 44 00 [ 64.414435][ T5311] RSP: 0018:ffffc9000cdfe360 EFLAGS: 00010293 [ 64.416606][ T5311] RAX: ffffffff84110068 RBX: 0000000000000001 RCX: ffff888000d4a440 [ 64.419430][ T5311] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 [ 64.422471][ T5311] RBP: 0000000000000000 R08: ffffffff8410f998 R09: 0000000000000000 [ 64.425391][ T5311] R10: ffffc9000cdfe400 R11: fffff520019bfc82 R12: ffffc9000cdfe400 [ 64.428294][ T5311] R13: dffffc0000000000 R14: 0000000000000001 R15: ffffc9000cdfe840 [ 64.431055][ T5311] FS: 0000555574f49380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 64.434830][ T5311] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 64.437418][ T5311] CR2: 00007ffc52831f40 CR3: 000000004475a000 CR4: 0000000000352ef0 [ 64.440394][ T5311] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 64.443484][ T5311] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 64.446527][ T5311] Call Trace: [ 64.447857][ T5311] [ 64.449053][ T5311] ? __die_body+0x5f/0xb0 [ 64.450729][ T5311] ? die+0x9e/0xc0 [ 64.452427][ T5311] ? do_trap+0x15a/0x3a0 [ 64.453926][ T5311] ? __bkey_unpack_pos+0x779/0x790 [ 64.455682][ T5311] ? do_error_trap+0x1dc/0x2c0 [ 64.457320][ T5311] ? __bkey_unpack_pos+0x779/0x790 [ 64.459097][ T5311] ? __pfx_do_error_trap+0x10/0x10 [ 64.460883][ T5311] ? report_bug+0x3e8/0x500 [ 64.462503][ T5311] ? handle_invalid_op+0x34/0x40 [ 64.464182][ T5311] ? __bkey_unpack_pos+0x779/0x790 [ 64.465723][ T5311] ? exc_invalid_op+0x38/0x50 [ 64.467392][ T5311] ? asm_exc_invalid_op+0x1a/0x20 [ 64.469284][ T5311] ? __bkey_unpack_pos+0xa8/0x790 [ 64.471154][ T5311] ? __bkey_unpack_pos+0x778/0x790 [ 64.473123][ T5311] ? __bkey_unpack_pos+0x779/0x790 [ 64.474927][ T5311] __bch2_bkey_cmp_left_packed+0xed/0x790 [ 64.477077][ T5311] ? bch2_bkey_pack_pos_lossy+0xa20/0x1990 [ 64.479227][ T5311] ? __pfx___bch2_bkey_cmp_left_packed+0x10/0x10 [ 64.481667][ T5311] ? bch2_bkey_pack_pos_lossy+0x122/0x1990 [ 64.483669][ T5311] bch2_bkey_pack_pos_lossy+0xa08/0x1990 [ 64.485788][ T5311] ? __pfx_bch2_bkey_pack_pos_lossy+0x10/0x10 [ 64.488037][ T5311] ? lock_release+0xbf/0xa30 [ 64.489747][ T5311] ? bch2_bkey_pack_pos_lossy+0x122/0x1990 [ 64.491960][ T5311] ? bch2_bkey_pack_pos_lossy+0xa20/0x1990 [ 64.494104][ T5311] ? bch2_btree_node_iter_init+0x841/0x4280 [ 64.496294][ T5311] bch2_btree_node_iter_init+0x894/0x4280 [ 64.498371][ T5311] ? __pfx_validate_chain+0x10/0x10 [ 64.500546][ T5311] ? __pfx_bch2_btree_node_iter_init+0x10/0x10 [ 64.502984][ T5311] ? look_up_lock_class+0x77/0x170 [ 64.504926][ T5311] ? __pfx___do_six_trylock+0x10/0x10 [ 64.506854][ T5311] ? __btree_path_up_until_good_node+0xafb/0xb40 [ 64.509142][ T5311] bch2_btree_path_level_init+0x4d2/0x9f0 [ 64.511309][ T5311] ? bch2_btree_path_traverse_one+0xa4b/0x2940 [ 64.513640][ T5311] bch2_btree_path_traverse_one+0x10de/0x2940 [ 64.516188][ T5311] ? __pfx_validate_chain+0x10/0x10 [ 64.518089][ T5311] ? bch2_snapshots_read+0x4ac/0x15f0 [ 64.520009][ T5311] ? __pfx_bch2_btree_path_traverse_one+0x10/0x10 [ 64.522385][ T5311] ? __pfx___might_resched+0x10/0x10 [ 64.524489][ T5311] ? bch2_trans_update_max_paths+0x2c8/0x420 [ 64.526794][ T5311] ? __pfx_lock_release+0x10/0x10 [ 64.528652][ T5311] ? btree_trans_verify_sorted_refs+0x492/0x560 [ 64.530995][ T5311] ? mark_lock+0x9a/0x360 [ 64.532717][ T5311] ? __lock_acquire+0x1384/0x2050 [ 64.534630][ T5311] ? bch2_btree_path_verify+0x1fd/0x300 [ 64.536628][ T5311] bch2_btree_iter_peek_upto+0xb58/0x70e0 [ 64.538534][ T5311] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 64.540847][ T5311] ? lockdep_hardirqs_on+0x99/0x150 [ 64.542783][ T5311] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 64.545002][ T5311] ? __pfx_bch2_btree_iter_peek_upto+0x10/0x10 [ 64.547249][ T5311] ? __bch2_time_stats_update+0x2ca/0x370 [ 64.549340][ T5311] ? bch2_trans_begin+0x16c1/0x1c00 [ 64.551167][ T5311] ? bch2_snapshots_read+0x453/0x15f0 [ 64.553174][ T5311] bch2_snapshots_read+0x4ac/0x15f0 [ 64.555082][ T5311] ? bch2_snapshots_read+0x1b0/0x15f0 [ 64.557075][ T5311] ? __pfx_bch2_snapshots_read+0x10/0x10 [ 64.559155][ T5311] ? irq_work_queue+0xd1/0x150 [ 64.560947][ T5311] ? __wake_up_klogd+0xd5/0x110 [ 64.562720][ T5311] ? vprintk_emit+0x7ed/0xa10 [ 64.564409][ T5311] ? __pfx_vprintk_emit+0x10/0x10 [ 64.566369][ T5311] ? bch2_snapshots_read+0x1b0/0x15f0 [ 64.568462][ T5311] ? __bch2_print+0x17a/0x220 [ 64.570200][ T5311] ? local_clock+0x10/0x30 [ 64.571891][ T5311] ? bch2_run_recovery_pass+0x6d/0x1e0 [ 64.573948][ T5311] ? __pfx___bch2_print+0x10/0x10 [ 64.575863][ T5311] bch2_run_recovery_pass+0xf0/0x1e0 [ 64.577862][ T5311] bch2_run_recovery_passes+0x387/0x870 [ 64.579915][ T5311] bch2_fs_recovery+0x25cc/0x39c0 [ 64.581810][ T5311] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 64.583871][ T5311] ? __pfx_lock_release+0x10/0x10 [ 64.585666][ T5311] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.587617][ T5311] ? __pfx_lock_release+0x10/0x10 [ 64.589498][ T5311] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.591586][ T5311] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 64.593762][ T5311] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 64.595882][ T5311] ? llist_reverse_order+0x72/0x90 [ 64.597875][ T5311] bch2_fs_start+0x356/0x5b0 [ 64.599690][ T5311] bch2_fs_get_tree+0xd68/0x1710 [ 64.601572][ T5311] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 64.603681][ T5311] ? generic_parse_monolithic+0x387/0x400 [ 64.605833][ T5311] ? apparmor_capable+0x13b/0x1b0 [ 64.607774][ T5311] vfs_get_tree+0x90/0x2b0 [ 64.609386][ T5311] do_new_mount+0x2be/0xb40 [ 64.611072][ T5311] ? __pfx_do_new_mount+0x10/0x10 [ 64.612874][ T5311] __se_sys_mount+0x2d6/0x3c0 [ 64.614595][ T5311] ? __pfx___se_sys_mount+0x10/0x10 [ 64.616437][ T5311] ? do_syscall_64+0x100/0x230 [ 64.618218][ T5311] ? __x64_sys_mount+0x20/0xc0 [ 64.620049][ T5311] do_syscall_64+0xf3/0x230 [ 64.621818][ T5311] ? clear_bhb_loop+0x35/0x90 [ 64.623584][ T5311] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 64.625599][ T5311] RIP: 0033:0x7fe43d8e1cba [ 64.627220][ T5311] 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 [ 64.634449][ T5311] RSP: 002b:00007fff67207cf8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 64.637702][ T5311] RAX: ffffffffffffffda RBX: 00007fff67207d10 RCX: 00007fe43d8e1cba [ 64.640662][ T5311] RDX: 00000000200058c0 RSI: 0000000020005900 RDI: 00007fff67207d10 [ 64.643517][ T5311] RBP: 0000000000000004 R08: 00007fff67207d50 R09: 0000000000005946 [ 64.646194][ T5311] R10: 0000000001000000 R11: 0000000000000282 R12: 0000000001000000 [ 64.649067][ T5311] R13: 00007fff67207d50 R14: 0000000000000003 R15: 0000000001000000 [ 64.651915][ T5311] [ 64.653305][ T5311] Modules linked in: [ 64.655157][ T5311] ---[ end trace 0000000000000000 ]--- [ 64.659934][ T5311] RIP: 0010:__bkey_unpack_pos+0x779/0x790 [ 64.661993][ T5311] Code: b6 e4 00 e9 ad fb ff ff e8 24 ea 83 fd 48 c7 c7 40 b1 f3 8e 4c 89 e6 48 89 da e8 f2 b5 e4 00 e9 f4 fc ff ff e8 08 ea 83 fd 90 <0f> 0b e8 00 ea 83 fd 90 0f 0b e8 f8 e9 83 fd 90 0f 0b 0f 1f 44 00 [ 64.672751][ T5311] RSP: 0018:ffffc9000cdfe360 EFLAGS: 00010293 [ 64.675041][ T5311] RAX: ffffffff84110068 RBX: 0000000000000001 RCX: ffff888000d4a440 [ 64.678044][ T5311] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000006 [ 64.680814][ T5311] RBP: 0000000000000000 R08: ffffffff8410f998 R09: 0000000000000000 [ 64.683656][ T5311] R10: ffffc9000cdfe400 R11: fffff520019bfc82 R12: ffffc9000cdfe400 [ 64.686530][ T5311] R13: dffffc0000000000 R14: 0000000000000001 R15: ffffc9000cdfe840 [ 64.689887][ T5311] FS: 0000555574f49380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 64.693086][ T5311] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 64.695651][ T5311] CR2: 00007ffc52831f40 CR3: 000000004475a000 CR4: 0000000000352ef0 [ 64.700569][ T5311] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 64.703578][ T5311] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 64.706549][ T5311] Kernel panic - not syncing: Fatal exception [ 64.709122][ T5311] Kernel Offset: disabled [ 64.710747][ T5311] Rebooting in 86400 seconds.. VM DIAGNOSIS: 16:41:06 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000066 RBX=ffffffff9a718e80 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000cdfd910 R8 =ffffffff854abd6b R9 =1ffff11003d60046 R10=dffffc0000000000 R11=ffffffff854abd20 R12=dffffc0000000000 R13=ffffffff9a413f67 R14=0000000000000066 R15=00000000000003f8 RIP=ffffffff854abd9e RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 ffffffff 00c00000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 ffffffff 00c00000 FS =0000 0000555574f49380 ffffffff 00c00000 GS =0000 ffff88801fc00000 ffffffff 00c00000 LDT=0000 0000000000000000 ffffffff 00c00000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007ffc52831f40 CR3=000000004475a000 CR4=00352ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000fffe0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 Opmask00=0000000000000001 Opmask01=0000000000000002 Opmask02=00000000ffffffff Opmask03=0000000000000000 Opmask04=00000000ffffffff Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffe58b5b770 0000003000000018 ZMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 6565656565656565 6565656565656565 ZMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM04=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ff00ff0000000000 0000000000000000 ZMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ffffffffffffffff ffffffffffff0000 ZMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ff00ff0000000000 0000000000000000 ZMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM16=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM17=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0a0a0a0a0a0a0a0a 0a0a0a0a0a0a0a0a 0a0a0a0a0a0a0a0a 0a0a0a0a0a0a0a0a ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 6465686361632020 205d313133355420 5b5d323332333433 2e34362020205b00 ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 6465626361632020 2057313133355420 5157323332333433 2434362020205100 ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 322020205b203630 0030322037363220 3a64206b63616d20 2000006563656120 ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 322020205b203230 0030322030363220 3a2c206163616220 2000006563632c20 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 787f7e697f787e79 557378657e696f78 636e5561696f6269 266f787f7e697f78 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 796f7e73682a323a 3c3a382a30627e7a 6f6e2a61696b7e79 2a0a006f69646b66 ZMM25=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM26=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM27=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM28=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM29=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM30=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM31=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000