./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor1970302946 <...> Warning: Permanently added '10.128.1.15' (ED25519) to the list of known hosts. execve("./syz-executor1970302946", ["./syz-executor1970302946"], 0x7ffe5b718830 /* 10 vars */) = 0 brk(NULL) = 0x55555cc1a000 brk(0x55555cc1ad00) = 0x55555cc1ad00 arch_prctl(ARCH_SET_FS, 0x55555cc1a380) = 0 set_tid_address(0x55555cc1a650) = 5820 set_robust_list(0x55555cc1a660, 24) = 0 rseq(0x55555cc1aca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor1970302946", 4096) = 28 getrandom("\x3a\xcc\x7b\x4d\x53\x8f\x25\xaf", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555cc1ad00 brk(0x55555cc3bd00) = 0x55555cc3bd00 brk(0x55555cc3c000) = 0x55555cc3c000 mprotect(0x7fb81a7d5000, 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 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 5821 attached , child_tidptr=0x55555cc1a650) = 5821 [pid 5821] set_robust_list(0x55555cc1a660, 24) = 0 [pid 5821] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5821] setpgid(0, 0) = 0 [pid 5821] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5821] write(3, "1000", 4) = 4 [pid 5821] close(3) = 0 [pid 5821] write(1, "executing program\n", 18executing program ) = 18 [pid 5821] memfd_create("syzkaller", 0) = 3 [pid 5821] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fb812200000 [pid 5821] 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 5821] munmap(0x7fb812200000, 138412032) = 0 [pid 5821] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5821] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5821] close(3) = 0 [pid 5821] close(4) = 0 [pid 5821] mkdir("./file1", 0777) = 0 [ 74.607696][ T5821] loop0: detected capacity change from 0 to 32768 [ 74.701560][ T5821] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=errors=continue,metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 74.718998][ T5821] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 74.727775][ T5821] bcachefs (loop0): Version upgrade required: [ 74.727775][ T5821] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 74.727775][ T5821] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 74.727775][ T5821] 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 [ 74.805711][ T5821] bcachefs (loop0): error validating btree node at btree extents level 0/0 [ 74.805734][ T5821] 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 [ 74.805743][ T5821] node offset 8/16 bset u64s 49 bset byte offset 96: keys out of order: u64s 7 type extent 83890179:8:U32_MAX len 8 ver 0 > u64s 10 type inline_data 4100:8:U32_MAX len 8 ver 0, fixing [ 74.847407][ T5821] bcachefs (loop0): btree_node_read_work: rewriting btree node at btree=extents level=0 SPOS_MAX due to error [ 74.861608][ T5821] bcachefs (loop0): error validating btree node on loop0 at btree dirents level 0/0 [ 74.861624][ T5821] 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 [ 74.861632][ T5821] node offset 16/24: btree node data missing: expected 24 sectors, found 16, fixing [ 74.895422][ T5821] bcachefs (loop0): btree_node_read_work: rewriting btree node at btree=dirents level=0 SPOS_MAX due to error [ 74.908578][ T5821] bcachefs (loop0): error validating btree node at btree alloc level 0/0 [ 74.908598][ T5821] 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 [ 74.908613][ T5821] node offset 8/24 bset u64s 375 bset byte offset 184: keys out of order: u64s 11 type alloc_v4 0:32:0 len 0 ver 0 > u64s 11 type alloc_v4 0:2:0 len 0 ver 0, fixing [ 74.949256][ T5821] bcachefs (loop0): btree_node_read_work: rewriting btree node at btree=alloc level=0 SPOS_MAX due to error [ 74.964429][ T5821] bcachefs (loop0): error validating btree node on loop0 at btree freespace level 0/0 [ 74.964454][ T5821] u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0 [ 74.964462][ T5821] node offset 0/32 bset u64s 0: invalid bkey format: incorrect key_u64s: got 3, should be 1 [ 74.964469][ T5821] u64s 3 fields 2:0, 0:0, 0:0, 0:0, 0:0, 0:0 [ 75.005932][ T5821] bcachefs (loop0): flagging btree freespace lost data [ 75.016427][ T5821] error reading btree root freespace l=0: btree_node_read_error, fixing [ 75.026195][ T5821] ------------[ cut here ]------------ [ 75.031938][ T5821] kernel BUG at fs/bcachefs/ec.h:35! [ 75.037246][ T5821] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 75.044241][ T5821] CPU: 0 UID: 0 PID: 5821 Comm: syz-executor197 Not tainted 6.13.0-rc5-syzkaller-00004-gccb98ccef0e5 #0 [ 75.055368][ T5821] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 75.065466][ T5821] RIP: 0010:bch2_stripe_validate+0x639/0x680 [ 75.071597][ T5821] Code: 3d c7 71 fd e9 76 fc ff ff 44 89 f9 80 e1 07 38 c1 0f 8c 53 fd ff ff 4c 89 ff e8 52 a3 d5 fd e9 46 fd ff ff e8 18 c7 71 fd 90 <0f> 0b e8 10 c7 71 fd 90 0f 0b 44 89 e1 80 e1 07 38 c1 7c ab 4c 89 [ 75.091743][ T5821] RSP: 0018:ffffc90003d9e9f8 EFLAGS: 00010293 [ 75.097834][ T5821] RAX: ffffffff842dac78 RBX: 0000000000000008 RCX: ffff88807e908000 [ 75.105982][ T5821] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007 [ 75.114146][ T5821] RBP: 00000000ffffffff R08: ffffffff842da839 R09: 1ffff1100ec30035 [ 75.122356][ T5821] R10: dffffc0000000000 R11: ffffffff842da640 R12: 0000000000000000 [ 75.130360][ T5821] R13: 0000000000000009 R14: ffff8880241980b8 R15: ffffc90003d9ee40 [ 75.138452][ T5821] FS: 000055555cc1a380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 [ 75.147602][ T5821] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 75.154398][ T5821] CR2: 00005594dad4b328 CR3: 0000000033b96000 CR4: 00000000003526f0 [ 75.162510][ T5821] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 75.170613][ T5821] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 75.178641][ T5821] Call Trace: [ 75.182022][ T5821] [ 75.185050][ T5821] ? __die_body+0x5f/0xb0 [ 75.189420][ T5821] ? die+0x9e/0xc0 [ 75.193290][ T5821] ? do_trap+0x15a/0x3a0 [ 75.197575][ T5821] ? bch2_stripe_validate+0x639/0x680 [ 75.202973][ T5821] ? do_error_trap+0x1dc/0x2c0 [ 75.207845][ T5821] ? bch2_stripe_validate+0x639/0x680 [ 75.213306][ T5821] ? __pfx_do_error_trap+0x10/0x10 [ 75.218467][ T5821] ? handle_invalid_op+0x34/0x40 [ 75.223438][ T5821] ? bch2_stripe_validate+0x639/0x680 [ 75.228842][ T5821] ? exc_invalid_op+0x38/0x50 [ 75.233544][ T5821] ? asm_exc_invalid_op+0x1a/0x20 [ 75.238613][ T5821] ? __pfx_bch2_stripe_validate+0x10/0x10 [ 75.244534][ T5821] ? bch2_stripe_validate+0x1f9/0x680 [ 75.249926][ T5821] ? bch2_stripe_validate+0x638/0x680 [ 75.255311][ T5821] ? bch2_stripe_validate+0x639/0x680 [ 75.260783][ T5821] ? bch2_stripe_validate+0x638/0x680 [ 75.266304][ T5821] bch2_btree_node_read_done+0x3e7e/0x5e90 [ 75.272248][ T5821] ? bch2_bkey_pick_read_device+0x221/0x1670 [ 75.278281][ T5821] ? __pfx_bch2_btree_node_read_done+0x10/0x10 [ 75.284492][ T5821] ? bch2_bkey_pick_read_device+0x137d/0x1670 [ 75.290705][ T5821] ? bch2_bkey_pick_read_device+0x221/0x1670 [ 75.296810][ T5821] ? __pfx_bch2_bkey_pick_read_device+0x10/0x10 [ 75.303160][ T5821] ? bch2_btree_ptr_v2_to_text+0x209/0x2f0 [ 75.308990][ T5821] btree_node_read_work+0x68b/0x1260 [ 75.314496][ T5821] ? __pfx_btree_node_read_work+0x10/0x10 [ 75.320273][ T5821] ? __bch2_time_stats_update+0x220/0x370 [ 75.326031][ T5821] ? __pfx_bch2_latency_acct+0x10/0x10 [ 75.331600][ T5821] ? bio_associate_blkg+0x6c/0x230 [ 75.336740][ T5821] bch2_btree_node_read+0x2433/0x29f0 [ 75.342180][ T5821] ? __pfx_lock_release+0x10/0x10 [ 75.347243][ T5821] ? bch2_trans_unlock+0x346/0x470 [ 75.352360][ T5821] ? __pfx_bch2_btree_node_read+0x10/0x10 [ 75.358195][ T5821] ? __pfx___bch2_btree_node_hash_insert+0x10/0x10 [ 75.364781][ T5821] ? bch2_trans_unlock+0x3a6/0x470 [ 75.370062][ T5821] bch2_btree_root_read+0x617/0x7a0 [ 75.375304][ T5821] ? __pfx_bch2_btree_root_read+0x10/0x10 [ 75.381071][ T5821] ? bch2_current_has_btree_trans+0x142/0x180 [ 75.387198][ T5821] read_btree_roots+0x296/0x840 [ 75.392086][ T5821] bch2_fs_recovery+0x2585/0x39d0 [ 75.397165][ T5821] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 75.402593][ T5821] ? __pfx_lock_release+0x10/0x10 [ 75.407678][ T5821] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.413393][ T5821] ? __pfx_lock_release+0x10/0x10 [ 75.418516][ T5821] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.424223][ T5821] ? bch2_get_next_online_dev+0x4b9/0x4f0 [ 75.430097][ T5821] ? bch2_get_next_online_dev+0x2b/0x4f0 [ 75.435950][ T5821] ? llist_reverse_order+0x72/0x90 [ 75.441165][ T5821] bch2_fs_start+0x356/0x5b0 [ 75.445827][ T5821] bch2_fs_get_tree+0xd68/0x1710 [ 75.450787][ T5821] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 75.456213][ T5821] ? smack_fs_context_parse_param+0xff/0x170 [ 75.462234][ T5821] ? generic_parse_monolithic+0x387/0x400 [ 75.468158][ T5821] ? cap_capable+0x1b4/0x250 [ 75.472758][ T5821] ? safesetid_security_capable+0xb2/0x1d0 [ 75.478583][ T5821] vfs_get_tree+0x90/0x2b0 [ 75.483018][ T5821] do_new_mount+0x2be/0xb40 [ 75.487541][ T5821] ? __pfx_do_new_mount+0x10/0x10 [ 75.492681][ T5821] __se_sys_mount+0x2d6/0x3c0 [ 75.497369][ T5821] ? __pfx___se_sys_mount+0x10/0x10 [ 75.502661][ T5821] ? do_syscall_64+0x100/0x230 [ 75.507448][ T5821] ? __x64_sys_mount+0x20/0xc0 [ 75.512308][ T5821] do_syscall_64+0xf3/0x230 [ 75.517290][ T5821] ? clear_bhb_loop+0x35/0x90 [ 75.522180][ T5821] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 75.528121][ T5821] RIP: 0033:0x7fb81a75e06a [ 75.532750][ T5821] 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 [ 75.552507][ T5821] RSP: 002b:00007ffccc013c38 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 75.561143][ T5821] RAX: ffffffffffffffda RBX: 00007ffccc013c50 RCX: 00007fb81a75e06a [ 75.569701][ T5821] RDX: 0000000020000040 RSI: 0000000020000080 RDI: 00007ffccc013c50 [ 75.577784][ T5821] RBP: 0000000000000010 R08: 00007ffccc013c90 R09: 0000000000005998 [ 75.585901][ T5821] R10: 0000000000000010 R11: 0000000000000282 R12: 0000000000000004 [ 75.593882][ T5821] R13: 00007ffccc013c90 R14: 0000000000000003 R15: 0000000001000000 [ 75.602044][ T5821] [ 75.605094][ T5821] Modules linked in: [ 75.609206][ T5821] ---[ end trace 0000000000000000 ]--- [ 75.615038][ T5821] RIP: 0010:bch2_stripe_validate+0x639/0x680 [ 75.621386][ T5821] Code: 3d c7 71 fd e9 76 fc ff ff 44 89 f9 80 e1 07 38 c1 0f 8c 53 fd ff ff 4c 89 ff e8 52 a3 d5 fd e9 46 fd ff ff e8 18 c7 71 fd 90 <0f> 0b e8 10 c7 71 fd 90 0f 0b 44 89 e1 80 e1 07 38 c1 7c ab 4c 89 [ 75.641827][ T5821] RSP: 0018:ffffc90003d9e9f8 EFLAGS: 00010293 [ 75.647941][ T5821] RAX: ffffffff842dac78 RBX: 0000000000000008 RCX: ffff88807e908000 [ 75.656262][ T5821] RDX: 0000000000000000 RSI: 0000000000000008 RDI: 0000000000000007 [ 75.664414][ T5821] RBP: 00000000ffffffff R08: ffffffff842da839 R09: 1ffff1100ec30035 [ 75.672498][ T5821] R10: dffffc0000000000 R11: ffffffff842da640 R12: 0000000000000000 [ 75.680813][ T5821] R13: 0000000000000009 R14: ffff8880241980b8 R15: ffffc90003d9ee40 [ 75.688880][ T5821] FS: 000055555cc1a380(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 [ 75.698100][ T5821] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 75.704954][ T5821] CR2: 00005594dad4b328 CR3: 0000000033b96000 CR4: 00000000003526f0 [ 75.713014][ T5821] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 75.721530][ T5821] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 75.729696][ T5821] Kernel panic - not syncing: Fatal exception [ 75.736122][ T5821] Kernel Offset: disabled [ 75.740589][ T5821] Rebooting in 86400 seconds..