./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor70044308 <...> Warning: Permanently added '10.128.0.12' (ED25519) to the list of known hosts. execve("./syz-executor70044308", ["./syz-executor70044308"], 0x7ffea4e26bc0 /* 10 vars */) = 0 brk(NULL) = 0x555559c71000 brk(0x555559c71d00) = 0x555559c71d00 arch_prctl(ARCH_SET_FS, 0x555559c71380) = 0 set_tid_address(0x555559c71650) = 5854 set_robust_list(0x555559c71660, 24) = 0 rseq(0x555559c71ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor70044308", 4096) = 26 getrandom("\x6f\xd6\x49\x70\xbe\x3a\x4a\x57", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x555559c71d00 brk(0x555559c92d00) = 0x555559c92d00 brk(0x555559c93000) = 0x555559c93000 mprotect(0x7fa63b3bc000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 write(1, "executing program\n", 18executing program ) = 18 memfd_create("syzkaller", 0) = 3 mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fa632e00000 write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 munmap(0x7fa632e00000, 138412032) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 ioctl(4, LOOP_SET_FD, 3) = 0 close(3) = 0 close(4) = 0 mkdir("./file1", 0777) = 0 [ 75.517589][ T5854] loop0: detected capacity change from 0 to 32768 [ 75.607404][ T5854] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,fsck,fix_errors=yes,norecovery,nojournal_transaction_names,reconstruct_alloc,no_data_io [ 75.628893][ T5854] invalid bkey u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 unwritten [ 75.628916][ T5854] has unwritten ptrs: delete?, fixing [ 75.650748][ T5854] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 75.659138][ T5854] bcachefs (loop0): Version upgrade required: [ 75.659138][ T5854] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 75.659138][ T5854] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 75.659138][ T5854] 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 [ 75.732892][ T5854] bcachefs (loop0): dropping and reconstructing all alloc info [ 75.743362][ T5854] invalid btree root btree=extents level=0, fixing [ 75.750089][ T5854] bcachefs (loop0): flagging btree extents lost data [ 75.757034][ T5854] bcachefs (loop0): running explicit recovery pass scan_for_btree_nodes (0), currently at scan_for_btree_nodes (0) [ 75.775720][ T5854] bcachefs (loop0): flagging btree xattrs lost data [ 75.785114][ T5854] error reading btree root btree=xattrs level=0: btree_node_read_error, fixing [ 75.798705][ T5854] bcachefs (loop0): scan_for_btree_nodes... [ 75.822442][ T5854] bch2_scan_for_btree_nodes: nodes found after overwrites: [ 75.822467][ T5854] btree=extents level=0 seq=1 journal_seq=5 cookie=c6c25c03258c59c5 POS_MIN-SPOS_MAX ptr: 0:27:0 gen 0 [ 75.822478][ T5854] btree=inodes level=0 seq=1 journal_seq=5 cookie=7589ab5e0c11cc7a POS_MIN-SPOS_MAX ptr: 0:38:0 gen 0 [ 75.822489][ T5854] btree=dirents level=0 seq=1 journal_seq=4 cookie=9aa2895aefce4bdf POS_MIN-SPOS_MAX ptr: 0:41:0 gen 0 [ 75.822499][ T5854] btree=xattrs level=0 seq=1 journal_seq=4 cookie=2285c34bed0abe32 POS_MIN-U64_MAX:18374686479671623680:50331647 ptr: 0:31:0 gen 0 [ 75.822511][ T5854] btree=subvolumes level=0 seq=1 journal_seq=4294967297 cookie=c0bef60d07ceb940 POS_MIN-SPOS_MAX ptr: 0:35:0 gen 0 [ 75.822540][ T5854] btree=snapshots level=0 seq=1 journal_seq=1 cookie=ebb8d5a9e3463bdb POS_MIN-SPOS_MAX ptr: 0:32:0 gen 0 [ 75.822551][ T5854] btree=deleted_inodes level=0 seq=1 journal_seq=0 cookie=1db8f60c84bb244c POS_MIN-SPOS_MAX ptr: 0:42:0 gen 0 [ 75.822562][ T5854] [ 75.921346][ T5854] done [ 75.925513][ T5854] bcachefs (loop0): check_topology... [ 75.925720][ T5854] bcachefs (loop0): btree root extents unreadable, must recover from scan [ 75.939972][ T5854] bcachefs (loop0): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 75.950643][ T5854] bcachefs (loop0): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 75.971353][ T59] bcachefs (loop0): error validating btree node at btree extents level 0/0 [ 75.971373][ T59] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 75.971386][ T59] node offset 8/16 bset u64s 49 bset byte offset 232: keys out of order: u64s 7 type inline_data 536870976:8:U32_MAX len 8 ver 0 > u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0, fixing [ 76.013782][ T59] bcachefs (loop0): btree_node_read_work: rewriting btree node at due to error [ 76.013782][ T59] btree=extents level=0 u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c6c25c03258c59c5 written 16 min_key POS_MIN durability: 1 ptr: 0:27:0 gen 0 [ 76.039688][ T5854] bcachefs (loop0): btree root extentsinodesdirentsxattrs unreadable, must recover from scan [ 76.050165][ T5854] bcachefs (loop0): bch2_get_scanned_nodes(): recovery btree=xattrs level=0 POS_MIN - SPOS_MAX [ 76.060722][ T5854] bcachefs (loop0): bch2_get_scanned_nodes(): recovering u64s 11 type btree_ptr_v2 U64_MAX:18374686479671623680:50331647 len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0 [ 76.083446][ T5854] btree node with incorrect max_key at btree=xattrs level=1: [ 76.083469][ T5854] parent: u64s 5 type btree_ptr SPOS_MAX len 0 ver 0 [ 76.083478][ T5854] child: u64s 11 type btree_ptr_v2 U64_MAX:18374686479671623680:50331647 len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0, fixing [ 76.115774][ T5854] bcachefs (loop0): bch2_get_scanned_nodes(): recovery btree=xattrs level=0 U64_MAX:18374686479671623680:50331648 - SPOS_MAX [ 76.129107][ T5854] bcachefs (loop0): set_node_max(): u64s 11 type btree_ptr_v2 U64_MAX:18374686479671623680:50331647 len 0 ver 0: seq 2285c34bed0abe32 written 16 min_key POS_MIN durability: 1 ptr: 0:31:0 gen 0 -> SPOS_MAX [ 76.149799][ T5854] ------------[ cut here ]------------ [ 76.155486][ T5854] kernel BUG at fs/bcachefs/btree_cache.c:280! [ 76.161671][ T5854] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 76.168611][ T5854] CPU: 1 UID: 0 PID: 5854 Comm: syz-executor700 Not tainted 6.12.0-rc6-next-20241105-syzkaller #0 [ 76.179193][ T5854] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 76.189248][ T5854] RIP: 0010:__bch2_btree_node_hash_insert+0x12ed/0x1310 [ 76.196210][ T5854] Code: f6 fd e9 9d f5 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f2 f7 ff ff 48 89 df e8 2e d5 f6 fd e9 e5 f7 ff ff e8 04 74 8c fd 90 <0f> 0b e8 fc 73 8c fd 90 0f 0b e8 f4 73 8c fd 90 0f 0b e8 1c 6c bc [ 76.215812][ T5854] RSP: 0018:ffffc90003d36640 EFLAGS: 00010293 [ 76.221877][ T5854] RAX: ffffffff840963bc RBX: ffff8880282a0228 RCX: ffff888034390000 [ 76.229846][ T5854] RDX: 0000000000000000 RSI: ffff8880282a0000 RDI: ffff888075b81a90 [ 76.238000][ T5854] RBP: ffffc90003d36770 R08: 0000000000000000 R09: 0000000000000000 [ 76.245969][ T5854] R10: 0000000000000000 R11: 000000000001f001 R12: 1ffff11005054045 [ 76.253933][ T5854] R13: dffffc0000000000 R14: ffff888075b81a90 R15: ffff8880282a0000 [ 76.261908][ T5854] FS: 0000555559c71380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 76.270836][ T5854] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 76.277413][ T5854] CR2: 000055792096e558 CR3: 00000000758cc000 CR4: 00000000003526f0 [ 76.285379][ T5854] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 76.293343][ T5854] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 76.301307][ T5854] Call Trace: [ 76.304591][ T5854] [ 76.307516][ T5854] ? __die_body+0x5f/0xb0 [ 76.311858][ T5854] ? die+0x9e/0xc0 [ 76.315601][ T5854] ? do_trap+0x15a/0x3a0 [ 76.319872][ T5854] ? __bch2_btree_node_hash_insert+0x12ed/0x1310 [ 76.326209][ T5854] ? do_error_trap+0x1dc/0x2c0 [ 76.330979][ T5854] ? __bch2_btree_node_hash_insert+0x12ed/0x1310 [ 76.337404][ T5854] ? __sanitizer_cov_trace_pc+0x8/0x70 [ 76.342890][ T5854] ? __pfx_do_error_trap+0x10/0x10 [ 76.348007][ T5854] ? handle_invalid_op+0x34/0x40 [ 76.352945][ T5854] ? __bch2_btree_node_hash_insert+0x12ed/0x1310 [ 76.359360][ T5854] ? exc_invalid_op+0x38/0x50 [ 76.364043][ T5854] ? asm_exc_invalid_op+0x1a/0x20 [ 76.369078][ T5854] ? __bch2_btree_node_hash_insert+0x12ec/0x1310 [ 76.375432][ T5854] ? __bch2_btree_node_hash_insert+0x12ed/0x1310 [ 76.381767][ T5854] ? __bch2_btree_node_hash_remove+0xe0/0xed0 [ 76.387921][ T5854] ? __pfx___bch2_btree_node_hash_remove+0x10/0x10 [ 76.394422][ T5854] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 76.400936][ T5854] ? __kasan_kmalloc+0x98/0xb0 [ 76.405713][ T5854] ? set_node_max+0x529/0x710 [ 76.410386][ T5854] set_node_max+0x542/0x710 [ 76.414921][ T5854] ? __pfx_set_node_max+0x10/0x10 [ 76.419963][ T5854] ? bch2_btree_repair_topology_recurse+0x5a2a/0x6c10 [ 76.426732][ T5854] bch2_btree_repair_topology_recurse+0x5a7c/0x6c10 [ 76.433345][ T5854] ? __pfx_bch2_btree_repair_topology_recurse+0x10/0x10 [ 76.440284][ T5854] ? __pfx_bch2_journal_key_insert_take+0x10/0x10 [ 76.446696][ T5854] ? trace_kmalloc+0x1f/0xd0 [ 76.451283][ T5854] ? bch2_journal_key_insert+0x8e/0x130 [ 76.456884][ T5854] ? __pfx_bch2_get_scanned_nodes+0x10/0x10 [ 76.462780][ T5854] ? six_unlock_ip+0x2ce/0x3e0 [ 76.467633][ T5854] ? __do_six_trylock+0x832/0x9f0 [ 76.472658][ T5854] ? __pfx___do_six_trylock+0x10/0x10 [ 76.478030][ T5854] ? bch2_check_topology+0x5e0/0xba0 [ 76.483316][ T5854] ? six_lock_ip_waiter+0xe5/0x160 [ 76.488431][ T5854] ? __pfx_bch2_six_check_for_deadlock+0x10/0x10 [ 76.494758][ T5854] bch2_check_topology+0x6d4/0xba0 [ 76.499890][ T5854] ? tick_nohz_tick_stopped+0x82/0xb0 [ 76.505261][ T5854] ? bch2_check_topology+0x5e0/0xba0 [ 76.510574][ T5854] ? __pfx_bch2_check_topology+0x10/0x10 [ 76.516242][ T5854] ? __bch2_print+0x17a/0x220 [ 76.520920][ T5854] ? bch2_run_recovery_pass+0x6d/0x1e0 [ 76.526385][ T5854] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 76.532714][ T5854] ? _raw_spin_lock_irq+0xdf/0x120 [ 76.537828][ T5854] bch2_run_recovery_pass+0xf0/0x1e0 [ 76.543113][ T5854] bch2_run_recovery_passes+0x290/0x9f0 [ 76.548679][ T5854] bch2_fs_recovery+0x25cc/0x39b0 [ 76.553712][ T5854] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 76.559088][ T5854] ? __pfx_lock_release+0x10/0x10 [ 76.564108][ T5854] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 76.569742][ T5854] ? __pfx_lock_release+0x10/0x10 [ 76.574777][ T5854] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 76.580417][ T5854] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 76.586191][ T5854] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 76.591943][ T5854] ? llist_reverse_order+0x72/0x90 [ 76.597082][ T5854] bch2_fs_start+0x37c/0x610 [ 76.601683][ T5854] bch2_fs_get_tree+0xd68/0x1710 [ 76.606644][ T5854] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 76.612026][ T5854] ? generic_parse_monolithic+0x387/0x400 [ 76.617767][ T5854] ? apparmor_capable+0x13b/0x1b0 [ 76.622819][ T5854] vfs_get_tree+0x90/0x2b0 [ 76.627267][ T5854] do_new_mount+0x2be/0xb40 [ 76.631780][ T5854] ? __pfx_do_new_mount+0x10/0x10 [ 76.636808][ T5854] __se_sys_mount+0x2d6/0x3c0 [ 76.641489][ T5854] ? __pfx___se_sys_mount+0x10/0x10 [ 76.646688][ T5854] ? do_syscall_64+0x100/0x230 [ 76.651456][ T5854] ? __x64_sys_mount+0x20/0xc0 [ 76.656221][ T5854] do_syscall_64+0xf3/0x230 [ 76.660727][ T5854] ? clear_bhb_loop+0x35/0x90 [ 76.665494][ T5854] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 76.671403][ T5854] RIP: 0033:0x7fa63b34497a [ 76.675841][ T5854] 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 [ 76.695561][ T5854] RSP: 002b:00007fff4e112dd8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 76.703999][ T5854] RAX: ffffffffffffffda RBX: 00007fff4e112df0 RCX: 00007fa63b34497a [ 76.711993][ T5854] RDX: 0000000020000180 RSI: 0000000020000000 RDI: 00007fff4e112df0 [ 76.719975][ T5854] RBP: 0000000000000004 R08: 00007fff4e112e30 R09: 00000000000059b6 [ 76.728118][ T5854] R10: 0000000000800008 R11: 0000000000000282 R12: 0000000000800008 [ 76.736084][ T5854] R13: 00007fff4e112e30 R14: 0000000000000003 R15: 0000000001000000 [ 76.744053][ T5854] [ 76.747064][ T5854] Modules linked in: [ 76.751148][ T5854] ---[ end trace 0000000000000000 ]--- [ 76.756734][ T5854] RIP: 0010:__bch2_btree_node_hash_insert+0x12ed/0x1310 [ 76.763729][ T5854] Code: f6 fd e9 9d f5 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c f2 f7 ff ff 48 89 df e8 2e d5 f6 fd e9 e5 f7 ff ff e8 04 74 8c fd 90 <0f> 0b e8 fc 73 8c fd 90 0f 0b e8 f4 73 8c fd 90 0f 0b e8 1c 6c bc [ 76.783396][ T5854] RSP: 0018:ffffc90003d36640 EFLAGS: 00010293 [ 76.789509][ T5854] RAX: ffffffff840963bc RBX: ffff8880282a0228 RCX: ffff888034390000 [ 76.797523][ T5854] RDX: 0000000000000000 RSI: ffff8880282a0000 RDI: ffff888075b81a90 [ 76.805541][ T5854] RBP: ffffc90003d36770 R08: 0000000000000000 R09: 0000000000000000 [ 76.813537][ T5854] R10: 0000000000000000 R11: 000000000001f001 R12: 1ffff11005054045 [ 76.821576][ T5854] R13: dffffc0000000000 R14: ffff888075b81a90 R15: ffff8880282a0000 [ 76.829599][ T5854] FS: 0000555559c71380(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 76.838587][ T5854] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 76.845224][ T5854] CR2: 000055792096e558 CR3: 00000000758cc000 CR4: 00000000003526f0 [ 76.853202][ T5854] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 76.861233][ T5854] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 76.869254][ T5854] Kernel panic - not syncing: Fatal exception [ 76.875626][ T5854] Kernel Offset: disabled [ 76.879953][ T5854] Rebooting in 86400 seconds..