./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3596483877 <...> Warning: Permanently added '10.128.1.5' (ED25519) to the list of known hosts. execve("./syz-executor3596483877", ["./syz-executor3596483877"], 0x7ffd0adeaeb0 /* 10 vars */) = 0 brk(NULL) = 0x5555906f3000 brk(0x5555906f3d00) = 0x5555906f3d00 arch_prctl(ARCH_SET_FS, 0x5555906f3380) = 0 set_tid_address(0x5555906f3650) = 5838 set_robust_list(0x5555906f3660, 24) = 0 rseq(0x5555906f3ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3596483877", 4096) = 28 getrandom("\x21\x1c\xdb\x90\xfe\xb5\xc8\x6c", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555906f3d00 brk(0x555590714d00) = 0x555590714d00 brk(0x555590715000) = 0x555590715000 mprotect(0x7fc7e4562000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5840 attached , child_tidptr=0x5555906f3650) = 5840 [pid 5840] set_robust_list(0x5555906f3660, 24) = 0 [pid 5840] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5840] setpgid(0, 0) = 0 [pid 5840] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5840] write(3, "1000", 4) = 4 [pid 5840] close(3) = 0 [pid 5840] write(1, "executing program\n", 18executing program ) = 18 [pid 5840] memfd_create("syzkaller", 0) = 3 [pid 5840] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc7dc000000 [pid 5840] 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 [pid 5840] munmap(0x7fc7dc000000, 138412032) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5840] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5840] close(3) = 0 [pid 5840] close(4) = 0 [pid 5840] mkdir("./file2", 0777) = 0 [ 89.040407][ T5840] loop0: detected capacity change from 0 to 32768 [ 89.085897][ T5840] ======================================================= [ 89.085897][ T5840] WARNING: The mand mount option has been deprecated and [ 89.085897][ T5840] and is ignored by this kernel. Remove the mand [ 89.085897][ T5840] option from the mount to silence this warning. [ 89.085897][ T5840] ======================================================= [ 89.180193][ T5840] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,nojournal_transaction_names,version_upgrade=none [ 89.180214][ T5840] allowing incompatible features above 0.0: (unknown version) [ 89.180223][ T5840] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 89.221937][ T5840] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 89.231176][ T5840] bcachefs (loop0): invalid journal entry, version=1.7: mi_btree_bitmap type=data_usage in superblock: invalid journal entry usage: bad size, fixing [ 89.247160][ T5840] bcachefs (loop0): invalid bkey in superblock btree=snapshots level=0: u64s 11 type btree_ptr_v2 18446742987082825727:U64_MAX:U32_MAX len 0 ver 0: seq ebb8d5a9e3463bdb written 16 min_key POS_MIN durability: 1 ptr: 0:32:0 gen 0 [ 89.247188][ T5840] invalid key type for btree snapshots (btree_ptr_v2), deleting [ 89.277347][ T5840] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 89.298294][ T5840] bcachefs (loop0): error reading btree root btree=extents level=0: btree_node_read_error, fixing [ 89.317211][ T5840] bcachefs (loop0): btree node read error at btree freespace level 0/0 [ 89.317241][ T5840] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key 128:0:0 durability: 1 ptr: 0:29:0 gen 0 [ 89.317252][ T5840] loop0 node offset 0/32: incorrect min_key: got POS_MIN should be 128:0:0 [ 89.317260][ T5840] flagging btree freespace lost data [ 89.317267][ T5840] running recovery pass check_alloc_info (13), currently at recovery_pass_empty (0) [ 89.317276][ T5840] ret btree_node_read_validate_error [ 89.369114][ T5840] bcachefs (loop0): error reading btree root btree=freespace level=0: btree_node_read_error, fixing [ 89.383179][ T5840] bcachefs (loop0): check_topology... [ 89.383277][ T5840] bcachefs (loop0): btree root extents unreadable, must recover from scan [ 89.397657][ T5840] bcachefs (loop0): running recovery pass scan_for_btree_nodes (1), currently at check_topology (2) - rewinding [ 89.409688][ T5840] bcachefs (loop0): bch2_check_root(): error restart_recovery [ 89.417223][ T5840] bcachefs (loop0): scan_for_btree_nodes... [ 89.420687][ T5840] bcachefs (loop0): btree node scan found 3 nodes after overwrites [ 89.436152][ T5840] done [ 89.438949][ T5840] bcachefs (loop0): check_topology... [ 89.439004][ T5840] bcachefs (loop0): btree root extents unreadable, must recover from scan [ 89.453750][ T5840] bcachefs (loop0): bch2_get_scanned_nodes(): recovery btree=extents level=0 POS_MIN - SPOS_MAX [ 89.464497][ T5840] 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 [ 89.486733][ T5840] bcachefs (loop0): empty interior btree node at btree=extents level=1 [ 89.486747][ T5840] u64s 5 type btree_ptr SPOS_MAX len 0 ver 0, fixing [ 89.502136][ T5840] bcachefs (loop0): bch2_btree_repair_topology_recurse(): error ECHILD [ 89.510485][ T5840] bcachefs (loop0): empty btree root extents [ 89.518385][ T5840] done [ 89.521167][ T5840] bcachefs (loop0): accounting_read... done [ 89.528941][ T5840] bcachefs (loop0): alloc_read... done [ 89.535894][ T5840] bcachefs (loop0): snapshots_read... done [ 89.542738][ T5840] bcachefs (loop0): check_allocations... [ 89.545192][ T5840] bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap [ 89.545213][ T5840] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 89.576542][ T5840] bcachefs (loop0): bucket 0:26 gen 0 different types of data in same bucket: journal, btree [ 89.576558][ T5840] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 89.607445][ T5840] bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap [ 89.607460][ T5840] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 89.632449][ T5840] bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap [ 89.632464][ T5840] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 89.657694][ T5840] bcachefs (loop0): btree ptr not marked in member info btree allocated bitmap [ 89.657710][ T5840] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 89.683524][ T5840] bcachefs (loop0): bucket 0:25 gen 0 has wrong data_type: got free, should be journal, fixing [ 89.694080][ T5840] bcachefs (loop0): bucket 0:25 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 89.706626][ T5840] bcachefs (loop0): bucket 0:27 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 89.717702][ T5840] bcachefs (loop0): bucket 0:27 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 89.730289][ T5840] bcachefs (loop0): bucket 0:29 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 89.741338][ T5840] bcachefs (loop0): bucket 0:29 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 89.753758][ T5840] bcachefs (loop0): bucket 0:32 gen 0 has wrong data_type: got btree, should be need_discard, fixing [ 89.764811][ T5840] bcachefs (loop0): bucket 0:32 gen 0 data type need_discard has wrong dirty_sectors: got 256, should be 0, fixing [ 89.777140][ T5840] bcachefs (loop0): bucket 0:34 gen 0 has wrong data_type: got user, should be need_discard, fixing [ 89.788187][ T5840] bcachefs (loop0): bucket 0:34 gen 0 data type need_discard has wrong dirty_sectors: got 16, should be 0, fixing [ 89.802709][ T5840] done [ 89.807499][ T5840] bcachefs (loop0): going read-write [ 89.817091][ T5840] bcachefs (loop0): journal_replay... [ 89.817952][ T5840] ------------[ cut here ]------------ [ 89.828932][ T5840] kernel BUG at fs/bcachefs/btree_update.c:375! [ 89.835525][ T5840] Oops: invalid opcode: 0000 [#1] SMP KASAN PTI [ 89.841812][ T5840] CPU: 0 UID: 0 PID: 5840 Comm: syz-executor359 Not tainted 6.16.0-rc5-syzkaller #0 PREEMPT(full) [ 89.852479][ T5840] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 [ 89.862534][ T5840] RIP: 0010:bch2_trans_update_by_path+0x1efb/0x1f30 [ 89.869125][ T5840] Code: 80 e1 07 fe c1 38 c1 0f 8c 40 f7 ff ff 48 8b 7c 24 28 e8 a8 1b fa fd e9 31 f7 ff ff e8 1e c3 98 fd 90 0f 0b e8 16 c3 98 fd 90 <0f> 0b e8 0e c3 98 fd 90 0f 0b e8 06 c3 98 fd 90 0f 0b e8 fe c2 98 [ 89.888812][ T5840] RSP: 0018:ffffc90003ffea08 EFLAGS: 00010293 [ 89.894895][ T5840] RAX: ffffffff842761ca RBX: 0000000000008540 RCX: ffff888035a10000 [ 89.902865][ T5840] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 89.910834][ T5840] RBP: 1ffff1100e411802 R08: ffffffff844b68d9 R09: 0000000000000002 [ 89.918804][ T5840] R10: 0000000000000003 R11: 0000000000000000 R12: 1ffff1100e41185e [ 89.926771][ T5840] R13: ffff88807208c010 R14: 0000000000000088 R15: ffff88807208c2f0 [ 89.934739][ T5840] FS: 00005555906f3380(0000) GS:ffff888125c51000(0000) knlGS:0000000000000000 [ 89.943755][ T5840] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.950338][ T5840] CR2: 00007ffc288fc000 CR3: 0000000072d04000 CR4: 00000000003526f0 [ 89.958326][ T5840] Call Trace: [ 89.961606][ T5840] [ 89.964534][ T5840] ? __bitmap_weight+0xe4/0x100 [ 89.969386][ T5840] ? btree_trans_verify_sorted_refs+0x40c/0x4e0 [ 89.975621][ T5840] ? btree_node_unlock+0x97/0x240 [ 89.980661][ T5840] ? bch2_journal_replay_key+0x499/0xb40 [ 89.986295][ T5840] ? __btree_path_up_until_good_node+0xaec/0xb30 [ 89.992622][ T5840] bch2_trans_update_ip+0x9a6/0x1db0 [ 89.997922][ T5840] ? bch2_journal_replay_key+0x499/0xb40 [ 90.003563][ T5840] ? bch2_btree_path_traverse_one+0x19fe/0x21d0 [ 90.009811][ T5840] ? __pfx_bch2_path_get+0x10/0x10 [ 90.014929][ T5840] ? __pfx_bch2_trans_update_ip+0x10/0x10 [ 90.020648][ T5840] ? bch2_journal_replay_key+0x1fb/0xb40 [ 90.026282][ T5840] ? bch2_trans_node_iter_init+0x406/0x5e0 [ 90.032086][ T5840] ? bch2_btree_iter_traverse+0x700/0xa50 [ 90.037814][ T5840] ? bch2_journal_replay_key+0x1ec/0xb40 [ 90.043451][ T5840] bch2_journal_replay_key+0x4b0/0xb40 [ 90.048913][ T5840] ? __pfx_bch2_journal_replay_key+0x10/0x10 [ 90.054895][ T5840] ? bch2_journal_replay_key+0x1ec/0xb40 [ 90.060531][ T5840] ? __bch2_trans_get+0x9c2/0xd80 [ 90.065554][ T5840] bch2_journal_replay+0x171d/0x2630 [ 90.070932][ T5840] ? irq_work_queue+0xbc/0x140 [ 90.075706][ T5840] ? __wake_up_klogd+0xd9/0x110 [ 90.080564][ T5840] ? __pfx_vprintk_emit+0x10/0x10 [ 90.085588][ T5840] ? __pfx_bch2_journal_replay+0x10/0x10 [ 90.091230][ T5840] ? do_raw_spin_lock+0x121/0x290 [ 90.096260][ T5840] ? __bch2_print+0x176/0x220 [ 90.100939][ T5840] ? __pfx___bch2_print+0x10/0x10 [ 90.106003][ T5840] ? _raw_spin_unlock_irq+0x23/0x50 [ 90.111213][ T5840] ? lockdep_hardirqs_on+0x9c/0x150 [ 90.116415][ T5840] __bch2_run_recovery_passes+0x395/0x1010 [ 90.122233][ T5840] bch2_run_recovery_passes+0x184/0x210 [ 90.127783][ T5840] bch2_fs_recovery+0x2690/0x3a50 [ 90.132804][ T5840] ? check_noncircular+0xe0/0x160 [ 90.137833][ T5840] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 90.143223][ T5840] ? __lock_acquire+0xab9/0xd20 [ 90.148072][ T5840] ? __lock_acquire+0xab9/0xd20 [ 90.152916][ T5840] ? __lock_acquire+0xab9/0xd20 [ 90.157770][ T5840] ? bch2_fs_start+0xa0f/0xda0 [ 90.162536][ T5840] ? up_write+0x1c4/0x420 [ 90.166861][ T5840] ? bch2_fs_start+0x5e7/0xda0 [ 90.171628][ T5840] bch2_fs_start+0xaaf/0xda0 [ 90.176236][ T5840] ? bch2_fs_start+0x5e7/0xda0 [ 90.181010][ T5840] ? __pfx_bch2_fs_start+0x10/0x10 [ 90.186129][ T5840] ? sget+0x267/0x620 [ 90.190115][ T5840] bch2_fs_get_tree+0xb39/0x1520 [ 90.195067][ T5840] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 90.200458][ T5840] ? smack_fs_context_parse_param+0x102/0x170 [ 90.206537][ T5840] ? vfs_parse_monolithic_sep+0x2df/0x310 [ 90.212261][ T5840] ? __pfx_vfs_parse_comma_sep+0x10/0x10 [ 90.217902][ T5840] ? cap_capable+0x11f/0x460 [ 90.222496][ T5840] ? bch2_init_fs_context+0x88/0x110 [ 90.227784][ T5840] ? safesetid_security_capable+0xa9/0x1a0 [ 90.233596][ T5840] vfs_get_tree+0x8f/0x2b0 [ 90.238016][ T5840] do_new_mount+0x24a/0xa40 [ 90.242526][ T5840] __se_sys_mount+0x317/0x410 [ 90.247200][ T5840] ? __pfx___se_sys_mount+0x10/0x10 [ 90.252459][ T5840] ? rcu_is_watching+0x15/0xb0 [ 90.257218][ T5840] ? __x64_sys_mount+0x20/0xc0 [ 90.261970][ T5840] do_syscall_64+0xfa/0x3b0 [ 90.266488][ T5840] ? lockdep_hardirqs_on+0x9c/0x150 [ 90.271687][ T5840] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.277749][ T5840] ? clear_bhb_loop+0x60/0xb0 [ 90.282423][ T5840] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 90.288316][ T5840] RIP: 0033:0x7fc7e44eae2a [ 90.292750][ T5840] 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 [ 90.312360][ T5840] RSP: 002b:00007ffc288fb1d8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 90.320774][ T5840] RAX: ffffffffffffffda RBX: 00007ffc288fb1f0 RCX: 00007fc7e44eae2a [ 90.328743][ T5840] RDX: 0000200000000040 RSI: 0000200000005900 RDI: 00007ffc288fb1f0 [ 90.336713][ T5840] RBP: 0000200000005900 R08: 00007ffc288fb230 R09: 0000000000005928 [ 90.344680][ T5840] R10: 0000000002808040 R11: 0000000000000282 R12: 0000200000000040 [ 90.352646][ T5840] R13: 00007ffc288fb230 R14: 0000000000000003 R15: 0000000002808040 [ 90.360622][ T5840] [ 90.363752][ T5840] Modules linked in: [ 90.367917][ T5840] ---[ end trace 0000000000000000 ]--- [ 90.373505][ T5840] RIP: 0010:bch2_trans_update_by_path+0x1efb/0x1f30 [ 90.380180][ T5840] Code: 80 e1 07 fe c1 38 c1 0f 8c 40 f7 ff ff 48 8b 7c 24 28 e8 a8 1b fa fd e9 31 f7 ff ff e8 1e c3 98 fd 90 0f 0b e8 16 c3 98 fd 90 <0f> 0b e8 0e c3 98 fd 90 0f 0b e8 06 c3 98 fd 90 0f 0b e8 fe c2 98 [ 90.399878][ T5840] RSP: 0018:ffffc90003ffea08 EFLAGS: 00010293 [ 90.406017][ T5840] RAX: ffffffff842761ca RBX: 0000000000008540 RCX: ffff888035a10000 [ 90.414014][ T5840] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 90.422063][ T5840] RBP: 1ffff1100e411802 R08: ffffffff844b68d9 R09: 0000000000000002 [ 90.430189][ T5840] R10: 0000000000000003 R11: 0000000000000000 R12: 1ffff1100e41185e [ 90.438218][ T5840] R13: ffff88807208c010 R14: 0000000000000088 R15: ffff88807208c2f0 [ 90.446232][ T5840] FS: 00005555906f3380(0000) GS:ffff888125c51000(0000) knlGS:0000000000000000 [ 90.455165][ T5840] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 90.461799][ T5840] CR2: 00007ffc288fc000 CR3: 0000000072d04000 CR4: 00000000003526f0 [ 90.469812][ T5840] Kernel panic - not syncing: Fatal exception [ 90.476192][ T5840] Kernel Offset: disabled [ 90.480520][ T5840] Rebooting in 86400 seconds..