[ 65.153360][ T5251] sshd (5251) used greatest stack depth: 18800 bytes left Warning: Permanently added '[localhost]:3481' (ED25519) to the list of known hosts. executing program [ 68.835066][ T5299] loop0: detected capacity change from 0 to 32768 [ 68.925377][ T5299] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 68.932398][ T5299] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 68.935668][ T5299] bcachefs (loop0): Version upgrade required: [ 68.935668][ T5299] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 68.935668][ T5299] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 68.935668][ T5299] 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 [ 68.970042][ T5299] invalid bkey u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 68.970064][ T5299] gen 0 oldest_gen 0 data_type (unknown data_type 130) [ 68.970072][ T5299] journal_seq 5 [ 68.970078][ T5299] need_discard 1 [ 68.970084][ T5299] need_inc_gen 1 [ 68.970089][ T5299] dirty_sectors 0 [ 68.970095][ T5299] stripe_sectors 0 [ 68.970100][ T5299] cached_sectors 0 [ 68.970106][ T5299] stripe 0 [ 68.970118][ T5299] stripe_redundancy 27 [ 68.970125][ T5299] io_time[READ] 1 [ 68.970131][ T5299] io_time[WRITE] 512 [ 68.970137][ T5299] fragmentation 0 [ 68.970143][ T5299] bp_start 8 [ 68.970149][ T5299] [ 68.970155][ T5299] invalid data type (got 130 should be 9): delete?, fixing [ 69.004818][ T5299] bcachefs (loop0): accounting_read... done [ 69.007863][ T5299] bcachefs (loop0): alloc_read... done [ 69.010249][ T5299] bcachefs (loop0): stripes_read... done [ 69.012881][ T5299] bcachefs (loop0): snapshots_read... done [ 69.015377][ T5299] bcachefs (loop0): check_allocations... [ 69.019181][ T5299] ------------[ cut here ]------------ [ 69.023659][ T5299] kernel BUG at fs/bcachefs/bkey.c:298! [ 69.026457][ T5299] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 69.031696][ T5299] CPU: 0 UID: 0 PID: 5299 Comm: syz-executor313 Not tainted 6.13.0-rc4-syzkaller #0 [ 69.035337][ T5299] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 [ 69.040613][ T5299] RIP: 0010:__bkey_unpack_pos+0x781/0x790 [ 69.042870][ T5299] Code: e8 74 9f 89 fd 48 c7 c7 80 fa f2 8e 4c 89 e6 48 89 da e8 b2 ea e4 00 e9 f4 fc ff ff e8 58 9f 89 fd 90 0f 0b e8 50 9f 89 fd 90 <0f> 0b e8 48 9f 89 fd 90 0f 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 [ 69.050284][ T5299] RSP: 0018:ffffc9000d01e2c0 EFLAGS: 00010293 [ 69.052560][ T5299] RAX: ffffffff8415d4e0 RBX: 0000000000000003 RCX: ffff88801ab70000 [ 69.055485][ T5299] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 [ 69.058404][ T5299] RBP: 0000000000000000 R08: ffffffff8415ce35 R09: 0000000000000000 [ 69.061239][ T5299] R10: ffffc9000d01e380 R11: fffff52001a03c72 R12: ffffc9000d01e380 [ 69.064030][ T5299] R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88804b901060 [ 69.066927][ T5299] FS: 0000555573836380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 69.070490][ T5299] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 69.072825][ T5299] CR2: 00007ffcd6804fa8 CR3: 0000000044000000 CR4: 0000000000352ef0 [ 69.075949][ T5299] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 69.078937][ T5299] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 69.081754][ T5299] Call Trace: [ 69.083000][ T5299] [ 69.084108][ T5299] ? __die_body+0x5f/0xb0 [ 69.085760][ T5299] ? die+0x9e/0xc0 [ 69.087157][ T5299] ? do_trap+0x15a/0x3a0 [ 69.088766][ T5299] ? __bkey_unpack_pos+0x781/0x790 [ 69.090662][ T5299] ? do_error_trap+0x1dc/0x2c0 [ 69.092360][ T5299] ? __bkey_unpack_pos+0x781/0x790 [ 69.094251][ T5299] ? __pfx_do_error_trap+0x10/0x10 [ 69.096268][ T5299] ? report_bug+0x3e8/0x500 [ 69.098058][ T5299] ? handle_invalid_op+0x34/0x40 [ 69.099857][ T5299] ? __bkey_unpack_pos+0x781/0x790 [ 69.101655][ T5299] ? exc_invalid_op+0x38/0x50 [ 69.103512][ T5299] ? asm_exc_invalid_op+0x1a/0x20 [ 69.105321][ T5299] ? __bkey_unpack_pos+0xd5/0x790 [ 69.107092][ T5299] ? __bkey_unpack_pos+0x780/0x790 [ 69.109017][ T5299] ? __bkey_unpack_pos+0x781/0x790 [ 69.110891][ T5299] __bch2_bkey_cmp_packed_format_checked+0x2c7/0x800 [ 69.113357][ T5299] ? __pfx___bch2_bkey_cmp_packed_format_checked+0x10/0x10 [ 69.116133][ T5299] ? __bch2_btree_node_iter_advance+0x15e/0xaa0 [ 69.118487][ T5299] ? bch2_btree_node_iter_init+0x841/0x4280 [ 69.120560][ T5299] bch2_btree_node_iter_init+0x234b/0x4280 [ 69.122914][ T5299] ? __pfx_bch2_btree_node_iter_init+0x10/0x10 [ 69.125848][ T5299] ? __bkey_unpack_pos+0x4da/0x790 [ 69.128020][ T5299] ? __bch2_btree_path_set_pos+0x40c/0x1710 [ 69.130229][ T5299] __bch2_btree_path_set_pos+0xb8e/0x1710 [ 69.132315][ T5299] ? _raw_spin_unlock_irqrestore+0x8f/0x140 [ 69.134522][ T5299] ? __pfx___bch2_btree_path_set_pos+0x10/0x10 [ 69.136873][ T5299] ? bch2_btree_iter_peek_node+0x5ee/0xed0 [ 69.139075][ T5299] bch2_btree_iter_peek_node+0x7c5/0xed0 [ 69.141129][ T5299] ? bch2_check_allocations+0x2119/0x7070 [ 69.143302][ T5299] ? __pfx_bch2_btree_iter_peek_node+0x10/0x10 [ 69.145565][ T5299] ? __asan_memset+0x23/0x50 [ 69.147353][ T5299] bch2_check_allocations+0x2125/0x7070 [ 69.149493][ T5299] ? __pfx_prb_first_seq+0x10/0x10 [ 69.151400][ T5299] ? this_cpu_in_panic+0x4f/0x80 [ 69.153221][ T5299] ? bch2_check_allocations+0x798/0x7070 [ 69.155414][ T5299] ? __pfx__prb_read_valid+0x10/0x10 [ 69.157387][ T5299] ? __pfx_validate_chain+0x10/0x10 [ 69.159423][ T5299] ? __pfx_validate_chain+0x10/0x10 [ 69.161348][ T5299] ? __pfx_bch2_check_allocations+0x10/0x10 [ 69.163438][ T5299] ? __pfx_prb_read_valid+0x10/0x10 [ 69.165332][ T5299] ? data_alloc+0x523/0x840 [ 69.166964][ T5299] ? desc_read+0x200/0x3f0 [ 69.168582][ T5299] ? desc_read+0x1a2/0x3f0 [ 69.170237][ T5299] ? prb_first_seq+0x131/0x210 [ 69.171983][ T5299] ? __pfx_prb_first_seq+0x10/0x10 [ 69.173845][ T5299] ? this_cpu_in_panic+0x4f/0x80 [ 69.175674][ T5299] ? _prb_read_valid+0xa39/0xac0 [ 69.177546][ T5299] ? bch2_check_allocations+0x1a47/0x7070 [ 69.179625][ T5299] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 69.181773][ T5299] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 69.184006][ T5299] ? __console_unlock+0x12d/0x1f0 [ 69.185854][ T5299] ? bch2_check_allocations+0x2119/0x7070 [ 69.187939][ T5299] ? this_cpu_in_panic+0x4f/0x80 [ 69.189802][ T5299] ? console_unlock+0x2fc/0x3b0 [ 69.193222][ T5299] ? __pfx_console_unlock+0x10/0x10 [ 69.195185][ T5299] ? __wake_up_klogd+0xd5/0x110 [ 69.196869][ T5299] ? bch2_run_recovery_passes+0x42b/0x880 [ 69.198889][ T5299] ? trace_contention_end+0x3c/0x120 [ 69.200582][ T5299] ? bch2_check_allocations+0x798/0x7070 [ 69.202412][ T5299] ? __bch2_print+0x17a/0x220 [ 69.204010][ T5299] ? __mutex_unlock_slowpath+0x21e/0x790 [ 69.205892][ T5299] ? __pfx___bch2_print+0x10/0x10 [ 69.207622][ T5299] bch2_run_recovery_pass+0xf0/0x1e0 [ 69.209450][ T5299] bch2_run_recovery_passes+0x3a7/0x880 [ 69.211480][ T5299] bch2_fs_recovery+0x25cc/0x39d0 [ 69.213344][ T5299] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 69.215222][ T5299] ? __pfx_lock_release+0x10/0x10 [ 69.216975][ T5299] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 69.219069][ T5299] ? __pfx_lock_release+0x10/0x10 [ 69.221013][ T5299] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 69.223126][ T5299] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 69.225063][ T5299] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 69.227209][ T5299] ? llist_reverse_order+0x72/0x90 [ 69.229221][ T5299] bch2_fs_start+0x356/0x5b0 [ 69.231050][ T5299] bch2_fs_get_tree+0xd68/0x1710 [ 69.232911][ T5299] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 69.234773][ T5299] ? generic_parse_monolithic+0x387/0x400 [ 69.236904][ T5299] ? apparmor_capable+0x13b/0x1b0 [ 69.238869][ T5299] vfs_get_tree+0x90/0x2b0 [ 69.240569][ T5299] do_new_mount+0x2be/0xb40 [ 69.242282][ T5299] ? __pfx_do_new_mount+0x10/0x10 [ 69.244231][ T5299] __se_sys_mount+0x2d6/0x3c0 [ 69.246027][ T5299] ? __pfx___se_sys_mount+0x10/0x10 [ 69.247987][ T5299] ? do_syscall_64+0x100/0x230 [ 69.249698][ T5299] ? __x64_sys_mount+0x20/0xc0 [ 69.251388][ T5299] do_syscall_64+0xf3/0x230 [ 69.253001][ T5299] ? clear_bhb_loop+0x35/0x90 [ 69.254725][ T5299] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 69.256851][ T5299] RIP: 0033:0x7fa1db696b7a [ 69.258636][ T5299] 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 [ 69.265491][ T5299] RSP: 002b:00007ffc50c8acf8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 69.268518][ T5299] RAX: ffffffffffffffda RBX: 00007ffc50c8ad10 RCX: 00007fa1db696b7a [ 69.271334][ T5299] RDX: 00000000200002c0 RSI: 0000000020000380 RDI: 00007ffc50c8ad10 [ 69.274117][ T5299] RBP: 0000000000000004 R08: 00007ffc50c8ad50 R09: 0000000000005931 [ 69.276949][ T5299] R10: 0000000000000000 R11: 0000000000000282 R12: 0000000000000000 [ 69.279881][ T5299] R13: 00007ffc50c8ad50 R14: 0000000000000003 R15: 0000000001000000 [ 69.282818][ T5299] [ 69.283982][ T5299] Modules linked in: [ 69.285686][ T5299] ---[ end trace 0000000000000000 ]--- [ 69.293624][ T5299] RIP: 0010:__bkey_unpack_pos+0x781/0x790 [ 69.295517][ T5299] Code: e8 74 9f 89 fd 48 c7 c7 80 fa f2 8e 4c 89 e6 48 89 da e8 b2 ea e4 00 e9 f4 fc ff ff e8 58 9f 89 fd 90 0f 0b e8 50 9f 89 fd 90 <0f> 0b e8 48 9f 89 fd 90 0f 0b 0f 1f 44 00 00 90 90 90 90 90 90 90 [ 69.302088][ T5299] RSP: 0018:ffffc9000d01e2c0 EFLAGS: 00010293 [ 69.304194][ T5299] RAX: ffffffff8415d4e0 RBX: 0000000000000003 RCX: ffff88801ab70000 [ 69.306753][ T5299] RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 [ 69.309303][ T5299] RBP: 0000000000000000 R08: ffffffff8415ce35 R09: 0000000000000000 [ 69.312523][ T5299] R10: ffffc9000d01e380 R11: fffff52001a03c72 R12: ffffc9000d01e380 [ 69.315230][ T5299] R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88804b901060 [ 69.317837][ T5299] FS: 0000555573836380(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 [ 69.320743][ T5299] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 69.323360][ T5299] CR2: 00007ffcd6804fa8 CR3: 0000000044000000 CR4: 0000000000352ef0 [ 69.326076][ T5299] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 69.328958][ T5299] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 69.332141][ T5299] Kernel panic - not syncing: Fatal exception [ 69.334626][ T5299] Kernel Offset: disabled [ 69.336194][ T5299] Rebooting in 86400 seconds.. VM DIAGNOSIS: 20:54:42 Registers: info registers vcpu 0 CPU#0 RAX=0000000000000030 RBX=ffffffff9a6f1820 RCX=0000000000000000 RDX=00000000000003f8 RSI=0000000000000000 RDI=0000000000000020 RBP=0000000000000000 RSP=ffffc9000d01d970 R8 =ffffffff8550359b R9 =1ffff11003e1c046 R10=dffffc0000000000 R11=ffffffff85503550 R12=dffffc0000000000 R13=ffffffff9a3ebf68 R14=0000000000000030 R15=00000000000003f8 RIP=ffffffff855035ce 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 0000555573836380 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=00007ffcd6804fa8 CR3=0000000044000000 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=0000000030000000 Opmask01=00000000fffffffa Opmask02=0000000000000000 Opmask03=0000000000000000 Opmask04=0000000000000000 Opmask05=0000000000000000 Opmask06=0000000000000000 Opmask07=0000000000000000 ZMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000001 ZMM01=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00007ffc76222050 0000003000000010 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 2525252525252525 2525252525252525 2525252525252525 2525252525252525 ZMM18=0000000000000000 0000000000000000 0000000000000000 0000000000000000 4f6e3a6d5e007325 2e73250064252e73 2500656c6f736e6f 632f7665642f000a ZMM19=0000000000000000 0000000000000000 0000000000000000 0000000000000000 4f4b1f485e005600 0b56000041000b56 000040494a564b4a 460a5340410a000a ZMM20=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 00000000000a000a ZMM21=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM22=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM23=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 ZMM24=0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000000000 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