./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3018788977 <...> Warning: Permanently added '10.128.0.201' (ED25519) to the list of known hosts. execve("./syz-executor3018788977", ["./syz-executor3018788977"], 0x7ffcb3fb6160 /* 10 vars */) = 0 brk(NULL) = 0x55557d106000 brk(0x55557d106d40) = 0x55557d106d40 arch_prctl(ARCH_SET_FS, 0x55557d1063c0) = 0 set_tid_address(0x55557d106690) = 5822 set_robust_list(0x55557d1066a0, 24) = 0 rseq(0x55557d106ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3018788977", 4096) = 28 getrandom("\x06\x45\x8b\xbc\xe3\xbc\xcd\xca", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55557d106d40 brk(0x55557d127d40) = 0x55557d127d40 brk(0x55557d128000) = 0x55557d128000 mprotect(0x7f39d1604000, 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 mkdir("./syzkaller.rsI1if", 0700) = 0 chmod("./syzkaller.rsI1if", 0777) = 0 chdir("./syzkaller.rsI1if") = 0 mkdir("./0", 0777) = 0 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 5823 attached , child_tidptr=0x55557d106690) = 5823 [pid 5823] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5823] chdir("./0") = 0 [pid 5823] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5823] setpgid(0, 0) = 0 [pid 5823] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5823] write(3, "1000", 4) = 4 [pid 5823] close(3) = 0 [pid 5823] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5823] write(1, "executing program\n", 18executing program ) = 18 [pid 5823] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5823] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5823] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5823] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5823] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5823] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5823] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5825 attached [pid 5825] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5823] <... clone3 resumed> => {parent_tid=[5825]}, 88) = 5825 [pid 5825] set_robust_list(0x7f39d15339a0, 24) = 0 [pid 5823] rt_sigprocmask(SIG_SETMASK, [], [pid 5825] rt_sigprocmask(SIG_SETMASK, [], [pid 5823] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5825] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5823] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5825] memfd_create("syzkaller", 0 [pid 5823] <... futex resumed>) = 0 [pid 5825] <... memfd_create resumed>) = 3 [pid 5823] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5825] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5825] 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 5825] munmap(0x7f39c9000000, 138412032) = 0 [pid 5825] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5825] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5825] close(3) = 0 [pid 5825] close(4) = 0 [pid 5825] mkdir("./file0", 0777) = 0 [ 58.724329][ T5825] loop0: detected capacity change from 0 to 32768 [ 58.798224][ T5825] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 58.819389][ T5825] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 58.827950][ T5825] bcachefs (loop0): Version upgrade required: [ 58.827950][ T5825] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 58.827950][ T5825] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 58.827950][ T5825] 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 [ 58.900688][ T5825] bcachefs (loop0): dropping and reconstructing all alloc info [ 58.916407][ T5825] bcachefs (loop0): accounting_read... done [ 58.923318][ T5825] bcachefs (loop0): alloc_read... done [ 58.928914][ T5825] bcachefs (loop0): stripes_read... done [ 58.934611][ T5825] bcachefs (loop0): snapshots_read... done [pid 5825] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5825] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5825] chdir("./file0") = 0 [pid 5825] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 58.940728][ T5825] bcachefs (loop0): check_allocations... done [ 58.959195][ T5825] bcachefs (loop0): going read-write [ 58.968438][ T5825] bcachefs (loop0): done starting filesystem [pid 5825] ioctl(4, LOOP_CLR_FD) = 0 [pid 5825] close(4) = 0 [pid 5825] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5823] <... futex resumed>) = 0 [pid 5825] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5823] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5825] <... futex resumed>) = 0 [pid 5823] <... futex resumed>) = 1 [pid 5825] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5823] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5825] <... open resumed>) = 4 [pid 5825] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5823] <... futex resumed>) = 0 [pid 5825] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5823] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5825] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5823] <... futex resumed>) = 0 [pid 5823] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [ 59.057987][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 59.058005][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 59.085823][ T25] bcachefs (loop0): going read-only [ 59.091207][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [pid 5825] truncate("./file2", 2560 [pid 5823] <... futex resumed>) = -1 ETIMEDOUT (Connection timed out) [pid 5823] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5823] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5823] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5823] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5823] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0} => {parent_tid=[5837]}, 88) = 5837 [pid 5823] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5823] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5823] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}./strace-static-x86_64: Process 5837 attached [pid 5837] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [pid 5837] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5837] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5837] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5837] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5823] <... futex resumed>) = 0 [ 59.101299][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 59.101324][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 59.101335][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 59.101345][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 59.101357][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 59.101366][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 59.101379][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 59.101391][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 59.101401][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 59.101411][ T5137] mode=100755 [ 59.101419][ T5137] flags=(15300000) [ 59.101427][ T5137] journal_seq=5 [ 59.101435][ T5137] hash_seed=b68791a594a6d5ae [ 59.101444][ T5137] hash_type=siphash [ 59.101453][ T5137] bi_size=9000 [ 59.101461][ T5137] bi_sectors=24 [ 59.101470][ T5137] bi_version=0 [ 59.101479][ T5137] bi_atime=2780562352 [ 59.101488][ T5137] bi_ctime=2780562352 [ 59.101497][ T5137] bi_mtime=2780562352 [ 59.101506][ T5137] bi_otime=2780562352 [ 59.101515][ T5137] bi_uid=0 [ 59.101524][ T5137] bi_gid=0 [ 59.101531][ T5137] bi_nlink=1 [ 59.101539][ T5137] bi_generation=0 [ 59.101548][ T5137] bi_dev=0 [ 59.101557][ T5137] bi_data_checksum=0 [ 59.101566][ T5137] bi_compression=0 [ 59.101574][ T5137] bi_project=0 [ 59.101583][ T5137] bi_background_compression=0 [ 59.101592][ T5137] bi_data_replicas=0 [ 59.101599][ T5137] bi_promote_target=0 [ 59.101606][ T5137] bi_foreground_target=0 [ 59.101613][ T5137] bi_background_target=0 [ 59.101620][ T5137] bi_erasure_code=0 [ 59.101628][ T5137] bi_fields_set=0 [ 59.101636][ T5137] bi_dir=4096 [ 59.101643][ T5137] bi_dir_offset=1896155912177158345 [ 59.101652][ T5137] bi_subvol=0 [ 59.101661][ T5137] bi_parent_subvol=0 [ 59.101670][ T5137] bi_nocow=0 [ 59.101679][ T5137] bi_depth=0 [ 59.101688][ T5137] bi_inodes_32bit=0 [ 59.101696][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 59.101706][ T5137] mode=100755 [ 59.101714][ T5137] flags=(15300000) [ 59.101723][ T5137] journal_seq=5 [ 59.101732][ T5137] hash_seed=b68791a594a6d5ae [ 59.101741][ T5137] hash_type=siphash [ 59.101750][ T5137] bi_size=9000 [ 59.101759][ T5137] bi_sectors=24 [ 59.101767][ T5137] bi_version=0 [ 59.101775][ T5137] bi_atime=2780562352 [ 59.101784][ T5137] bi_ctime=2780562352 [ 59.101793][ T5137] bi_mtime=2780562352 [ 59.101803][ T5137] bi_otime=2780562352 [ 59.101812][ T5137] bi_uid=0 [ 59.101821][ T5137] bi_gid=0 [ 59.101829][ T5137] bi_nlink=1 [ 59.101837][ T5137] bi_generation=0 [ 59.101846][ T5137] bi_dev=0 [ 59.101854][ T5137] bi_data_checksum=0 [ 59.101863][ T5137] bi_compression=0 [ 59.101872][ T5137] bi_project=0 [ 59.101880][ T5137] bi_background_compression=0 [ 59.101889][ T5137] bi_data_replicas=0 [ 59.101898][ T5137] bi_promote_target=0 [ 59.101907][ T5137] bi_foreground_target=0 [ 59.101915][ T5137] bi_background_target=0 [ 59.101925][ T5137] bi_erasure_code=0 [ 59.101934][ T5137] bi_fields_set=0 [ 59.101943][ T5137] bi_dir=4096 [ 59.101952][ T5137] bi_dir_offset=1896155912177158345 [ 59.101962][ T5137] bi_subvol=0 [ 59.101971][ T5137] bi_parent_subvol=0 [ 59.101979][ T5137] bi_nocow=0 [ 59.101988][ T5137] bi_depth=0 [ 59.101996][ T5137] bi_inodes_32bit=0 [ 59.102005][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 59.102016][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 59.102025][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 59.102035][ T5137] gen 0 oldest_gen 0 data_type free [ 59.102044][ T5137] journal_seq_nonempty 0 [ 59.102063][ T5137] journal_seq_empty 0 [ 59.102064][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 59.102073][ T5137] need_discard 0 [ 59.102082][ T5137] need_inc_gen 0 [ 59.102091][ T5137] dirty_sectors 0 [ 59.102100][ T5137] stripe_sectors 0 [ 59.102108][ T5137] cached_sectors 0 [ 59.102117][ T5137] stripe 0 [ 59.102126][ T5137] stripe_redundancy 0 [ 59.102135][ T5137] io_time[READ] 0 [ 59.102145][ T5137] io_time[WRITE] 0 [ 59.102155][ T5137] fragmentation 0 [ 59.102164][ T5137] bp_start 8 [ 59.102164][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 59.102174][ T5137] [ 59.102182][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 59.102192][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 59.102202][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 59.102211][ T5137] gen 0 oldest_gen 0 data_type free [ 59.102220][ T5137] journal_seq_nonempty 0 [ 59.102229][ T5137] journal_seq_empty 0 [ 59.102238][ T5137] need_discard 0 [ 59.102247][ T5137] need_inc_gen 0 [ 59.102256][ T5137] dirty_sectors 0 [ 59.102265][ T5137] stripe_sectors 0 [ 59.102274][ T5137] cached_sectors 0 [ 59.102283][ T5137] stripe 0 [ 59.102292][ T5137] stripe_redundancy 0 [pid 5837] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5825] <... truncate resumed>) = -1 EIO (Input/output error) [ 59.102301][ T5137] io_time[READ] 0 [ 59.102310][ T5137] io_time[WRITE] 0 [ 59.102319][ T5137] fragmentation 0 [ 59.102328][ T5137] bp_start 8 [ 59.102338][ T5137] [ 59.102346][ T5137] [ 59.102650][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 59.111097][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 59.698383][ T25] bcachefs (loop0): finished waiting for writes to stop [pid 5825] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5823] exit_group(0 [pid 5837] <... futex resumed>) = ? [pid 5825] <... futex resumed>) = ? [pid 5823] <... exit_group resumed>) = ? [pid 5837] +++ exited with 0 +++ [pid 5825] +++ exited with 0 +++ [pid 5823] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5823, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=24 /* 0.24 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 59.705964][ T25] bcachefs (loop0): done going read-only, filesystem not clean [ 59.716394][ T5825] syz-executor301 (5825) used greatest stack depth: 14992 bytes left getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./0/binderfs") = 0 [ 59.855312][ T5822] bcachefs (loop0): shutting down [ 59.870595][ T5822] bcachefs (loop0): shutdown complete umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./0/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./0/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./0") = 0 mkdir("./1", 0777) = 0 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 5838 attached , child_tidptr=0x55557d106690) = 5838 [pid 5838] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5838] chdir("./1") = 0 [pid 5838] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5838] setpgid(0, 0) = 0 [pid 5838] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5838] write(3, "1000", 4) = 4 [pid 5838] close(3) = 0 [pid 5838] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5838] write(1, "executing program\n", 18) = 18 [pid 5838] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5838] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5838] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5838] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5838] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5838] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5838] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5839 attached [pid 5839] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053 [pid 5838] <... clone3 resumed> => {parent_tid=[5839]}, 88) = 5839 [pid 5839] <... rseq resumed>) = 0 [pid 5838] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5839] set_robust_list(0x7f39d15339a0, 24 [pid 5838] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5839] <... set_robust_list resumed>) = 0 [pid 5838] <... futex resumed>) = 0 [pid 5839] rt_sigprocmask(SIG_SETMASK, [], [pid 5838] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5839] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5839] memfd_create("syzkaller", 0) = 3 [pid 5839] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5839] 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 5839] munmap(0x7f39c9000000, 138412032) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5839] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5839] close(3) = 0 [pid 5839] close(4) = 0 [pid 5839] mkdir("./file0", 0777) = 0 [ 61.318529][ T5839] loop0: detected capacity change from 0 to 32768 [ 61.389485][ T5839] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 61.410260][ T5839] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 61.418581][ T5839] bcachefs (loop0): Version upgrade required: [ 61.418581][ T5839] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 61.418581][ T5839] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 61.418581][ T5839] 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 [ 61.489998][ T5839] bcachefs (loop0): dropping and reconstructing all alloc info [ 61.504214][ T5839] bcachefs (loop0): accounting_read... done [ 61.510379][ T5839] bcachefs (loop0): alloc_read... done [ 61.515935][ T5839] bcachefs (loop0): stripes_read... done [ 61.521589][ T5839] bcachefs (loop0): snapshots_read... done [pid 5839] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5839] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5839] chdir("./file0") = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5839] ioctl(4, LOOP_CLR_FD) = 0 [ 61.527475][ T5839] bcachefs (loop0): check_allocations... done [ 61.544216][ T5839] bcachefs (loop0): going read-write [ 61.552598][ T5839] bcachefs (loop0): done starting filesystem [pid 5839] close(4) = 0 [pid 5839] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5838] <... futex resumed>) = 0 [pid 5839] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5838] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5839] <... futex resumed>) = 0 [pid 5838] <... futex resumed>) = 1 [pid 5839] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5838] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5839] <... open resumed>) = 4 [pid 5839] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5838] <... futex resumed>) = 0 [pid 5839] <... futex resumed>) = 1 [pid 5838] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5839] truncate("./file2", 2560 [pid 5838] <... futex resumed>) = 0 [ 61.623774][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 61.623792][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 61.651190][ T9] bcachefs (loop0): going read-only [ 61.653490][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [pid 5838] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5838] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5838] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5838] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5838] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5838] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5850 attached [pid 5850] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5838] <... clone3 resumed> => {parent_tid=[5850]}, 88) = 5850 [pid 5850] <... rseq resumed>) = 0 [pid 5850] set_robust_list(0x7f39d15129a0, 24 [pid 5838] rt_sigprocmask(SIG_SETMASK, [], [pid 5850] <... set_robust_list resumed>) = 0 [pid 5838] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5850] rt_sigprocmask(SIG_SETMASK, [], [pid 5838] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5850] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5838] <... futex resumed>) = 0 [pid 5850] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000 [pid 5838] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5850] <... fallocate resumed>) = -1 EROFS (Read-only file system) [pid 5850] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5838] <... futex resumed>) = 0 [ 61.666276][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 61.675758][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 61.675834][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 61.675838][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 61.675860][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 61.675871][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 61.675882][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 61.675896][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 61.675907][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 61.675920][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 61.675934][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 61.675945][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 61.675956][ T5137] mode=100755 [ 61.675965][ T5137] flags=(15300000) [ 61.675974][ T5137] journal_seq=5 [ 61.675984][ T5137] hash_seed=b68791a594a6d5ae [ 61.675994][ T5137] hash_type=siphash [ 61.676003][ T5137] bi_size=9000 [ 61.676012][ T5137] bi_sectors=24 [ 61.676021][ T5137] bi_version=0 [ 61.676029][ T5137] bi_atime=2780562352 [ 61.676038][ T5137] bi_ctime=2780562352 [ 61.676047][ T5137] bi_mtime=2780562352 [ 61.676057][ T5137] bi_otime=2780562352 [ 61.676066][ T5137] bi_uid=0 [ 61.676075][ T5137] bi_gid=0 [ 61.676084][ T5137] bi_nlink=1 [ 61.676106][ T5137] bi_generation=0 [ 61.676115][ T5137] bi_dev=0 [ 61.676124][ T5137] bi_data_checksum=0 [ 61.676134][ T5137] bi_compression=0 [ 61.676143][ T5137] bi_project=0 [ 61.676152][ T5137] bi_background_compression=0 [ 61.676162][ T5137] bi_data_replicas=0 [ 61.676171][ T5137] bi_promote_target=0 [ 61.676180][ T5137] bi_foreground_target=0 [ 61.676190][ T5137] bi_background_target=0 [ 61.676199][ T5137] bi_erasure_code=0 [ 61.676209][ T5137] bi_fields_set=0 [ 61.676218][ T5137] bi_dir=4096 [ 61.676227][ T5137] bi_dir_offset=1896155912177158345 [ 61.676237][ T5137] bi_subvol=0 [ 61.676246][ T5137] bi_parent_subvol=0 [ 61.676255][ T5137] bi_nocow=0 [ 61.676264][ T5137] bi_depth=0 [ 61.676273][ T5137] bi_inodes_32bit=0 [ 61.676283][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 61.676294][ T5137] mode=100755 [ 61.676303][ T5137] flags=(15300000) [ 61.676312][ T5137] journal_seq=5 [ 61.676321][ T5137] hash_seed=b68791a594a6d5ae [ 61.676331][ T5137] hash_type=siphash [ 61.676340][ T5137] bi_size=9000 [ 61.676349][ T5137] bi_sectors=24 [ 61.676359][ T5137] bi_version=0 [ 61.676368][ T5137] bi_atime=2780562352 [ 61.676377][ T5137] bi_ctime=2780562352 [ 61.676387][ T5137] bi_mtime=2780562352 [ 61.676396][ T5137] bi_otime=2780562352 [ 61.676405][ T5137] bi_uid=0 [ 61.676414][ T5137] bi_gid=0 [ 61.676423][ T5137] bi_nlink=1 [ 61.676432][ T5137] bi_generation=0 [ 61.676442][ T5137] bi_dev=0 [ 61.676451][ T5137] bi_data_checksum=0 [ 61.676460][ T5137] bi_compression=0 [ 61.676469][ T5137] bi_project=0 [ 61.676479][ T5137] bi_background_compression=0 [ 61.676488][ T5137] bi_data_replicas=0 [ 61.676498][ T5137] bi_promote_target=0 [ 61.676507][ T5137] bi_foreground_target=0 [ 61.676516][ T5137] bi_background_target=0 [ 61.676526][ T5137] bi_erasure_code=0 [ 61.676535][ T5137] bi_fields_set=0 [ 61.676544][ T5137] bi_dir=4096 [ 61.676553][ T5137] bi_dir_offset=1896155912177158345 [ 61.676563][ T5137] bi_subvol=0 [ 61.676572][ T5137] bi_parent_subvol=0 [ 61.676581][ T5137] bi_nocow=0 [ 61.676590][ T5137] bi_depth=0 [ 61.676600][ T5137] bi_inodes_32bit=0 [ 61.676609][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 61.676620][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 61.676630][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 61.676641][ T5137] gen 0 oldest_gen 0 data_type free [ 61.676650][ T5137] journal_seq_nonempty 0 [ 61.676660][ T5137] journal_seq_empty 0 [ 61.676669][ T5137] need_discard 0 [ 61.676679][ T5137] need_inc_gen 0 [ 61.676688][ T5137] dirty_sectors 0 [ 61.676698][ T5137] stripe_sectors 0 [ 61.676707][ T5137] cached_sectors 0 [ 61.676717][ T5137] stripe 0 [ 61.676726][ T5137] stripe_redundancy 0 [ 61.676735][ T5137] io_time[READ] 0 [ 61.676745][ T5137] io_time[WRITE] 0 [ 61.676754][ T5137] fragmentation 0 [ 61.676764][ T5137] bp_start 8 [ 61.676773][ T5137] [ 61.676782][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 61.676793][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 61.676803][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 61.676813][ T5137] gen 0 oldest_gen 0 data_type free [ 61.676823][ T5137] journal_seq_nonempty 0 [ 61.676833][ T5137] journal_seq_empty 0 [ 61.676842][ T5137] need_discard 0 [ 61.676851][ T5137] need_inc_gen 0 [ 61.676860][ T5137] dirty_sectors 0 [ 61.676870][ T5137] stripe_sectors 0 [ 61.676879][ T5137] cached_sectors 0 [ 61.676889][ T5137] stripe 0 [ 61.676898][ T5137] stripe_redundancy 0 [ 61.676908][ T5137] io_time[READ] 0 [ 61.676917][ T5137] io_time[WRITE] 0 [ 61.676927][ T5137] fragmentation 0 [ 61.676936][ T5137] bp_start 8 [ 61.676946][ T5137] [ 61.676954][ T5137] [ 62.257475][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 62.268119][ T9] bcachefs (loop0): finished waiting for writes to stop [pid 5850] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5839] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5839] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5838] exit_group(0 [pid 5850] <... futex resumed>) = ? [pid 5838] <... exit_group resumed>) = ? [pid 5850] +++ exited with 0 +++ [pid 5839] +++ exited with 0 +++ [pid 5838] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5838, si_uid=0, si_status=0, si_utime=1 /* 0.01 s */, si_stime=26 /* 0.26 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 62.275114][ T9] bcachefs (loop0): done going read-only, filesystem not clean getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./1/binderfs") = 0 [ 62.412633][ T5822] bcachefs (loop0): shutting down [ 62.427140][ T5822] bcachefs (loop0): shutdown complete umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./1/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./1") = 0 mkdir("./2", 0777) = 0 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 5851 attached [pid 5851] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5822] <... clone resumed>, child_tidptr=0x55557d106690) = 5851 [pid 5851] chdir("./2") = 0 [pid 5851] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5851] setpgid(0, 0) = 0 [pid 5851] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5851] write(3, "1000", 4) = 4 [pid 5851] close(3) = 0 [pid 5851] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5851] write(1, "executing program\n", 18) = 18 [pid 5851] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5851] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5851] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5851] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5851] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5851] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5851] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5852 attached [pid 5852] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5852] set_robust_list(0x7f39d15339a0, 24 [pid 5851] <... clone3 resumed> => {parent_tid=[5852]}, 88) = 5852 [pid 5852] <... set_robust_list resumed>) = 0 [pid 5851] rt_sigprocmask(SIG_SETMASK, [], [pid 5852] rt_sigprocmask(SIG_SETMASK, [], [pid 5851] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5852] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5851] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5852] memfd_create("syzkaller", 0 [pid 5851] <... futex resumed>) = 0 [pid 5852] <... memfd_create resumed>) = 3 [pid 5851] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5852] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5852] 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 5852] munmap(0x7f39c9000000, 138412032) = 0 [pid 5852] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5852] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5852] close(3) = 0 [pid 5852] close(4) = 0 [pid 5852] mkdir("./file0", 0777) = 0 [ 63.833628][ T5852] loop0: detected capacity change from 0 to 32768 [ 63.898725][ T5852] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 63.919436][ T5852] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 63.927570][ T5852] bcachefs (loop0): Version upgrade required: [ 63.927570][ T5852] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 63.927570][ T5852] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 63.927570][ T5852] 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 [ 63.998592][ T5852] bcachefs (loop0): dropping and reconstructing all alloc info [ 64.012985][ T5852] bcachefs (loop0): accounting_read... done [ 64.019101][ T5852] bcachefs (loop0): alloc_read... done [ 64.024603][ T5852] bcachefs (loop0): stripes_read... done [ 64.030344][ T5852] bcachefs (loop0): snapshots_read... done [pid 5852] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5852] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5852] chdir("./file0") = 0 [pid 5852] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5852] ioctl(4, LOOP_CLR_FD) = 0 [pid 5852] close(4) = 0 [pid 5852] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5851] <... futex resumed>) = 0 [pid 5851] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5852] <... futex resumed>) = 1 [pid 5851] <... futex resumed>) = 0 [pid 5852] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5851] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5852] <... open resumed>) = 4 [pid 5852] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5851] <... futex resumed>) = 0 [pid 5851] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5852] truncate("./file2", 2560 [pid 5851] <... futex resumed>) = 0 [ 64.036278][ T5852] bcachefs (loop0): check_allocations... done [ 64.052881][ T5852] bcachefs (loop0): going read-write [ 64.061806][ T5852] bcachefs (loop0): done starting filesystem [ 64.105410][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 64.105441][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 64.133164][ T25] bcachefs (loop0): going read-only [ 64.135401][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [pid 5851] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5851] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [ 64.148223][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 64.157132][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 64.157152][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 64.157178][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 64.157189][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [pid 5851] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5851] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5851] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5851] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5863 attached [pid 5863] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [pid 5851] <... clone3 resumed> => {parent_tid=[5863]}, 88) = 5863 [pid 5863] set_robust_list(0x7f39d15129a0, 24 [pid 5851] rt_sigprocmask(SIG_SETMASK, [], [pid 5863] <... set_robust_list resumed>) = 0 [pid 5863] rt_sigprocmask(SIG_SETMASK, [], [pid 5851] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5863] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5851] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5863] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000 [pid 5851] <... futex resumed>) = 0 [pid 5863] <... fallocate resumed>) = -1 EROFS (Read-only file system) [pid 5851] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5863] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5851] <... futex resumed>) = 0 [ 64.157198][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 64.157212][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 64.157221][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 64.157222][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 64.157237][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 64.157250][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 64.157261][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 64.157271][ T5137] mode=100755 [ 64.157280][ T5137] flags=(15300000) [ 64.157289][ T5137] journal_seq=5 [ 64.157298][ T5137] hash_seed=b68791a594a6d5ae [ 64.157306][ T5137] hash_type=siphash [ 64.157315][ T5137] bi_size=9000 [ 64.157325][ T5137] bi_sectors=24 [ 64.157334][ T5137] bi_version=0 [ 64.157343][ T5137] bi_atime=2780562352 [ 64.157352][ T5137] bi_ctime=2780562352 [ 64.157362][ T5137] bi_mtime=2780562352 [ 64.157371][ T5137] bi_otime=2780562352 [ 64.157381][ T5137] bi_uid=0 [ 64.157390][ T5137] bi_gid=0 [ 64.157398][ T5137] bi_nlink=1 [ 64.157408][ T5137] bi_generation=0 [ 64.157417][ T5137] bi_dev=0 [ 64.157426][ T5137] bi_data_checksum=0 [ 64.157435][ T5137] bi_compression=0 [ 64.157444][ T5137] bi_project=0 [ 64.157454][ T5137] bi_background_compression=0 [ 64.157463][ T5137] bi_data_replicas=0 [ 64.157472][ T5137] bi_promote_target=0 [ 64.157482][ T5137] bi_foreground_target=0 [ 64.157491][ T5137] bi_background_target=0 [ 64.157501][ T5137] bi_erasure_code=0 [ 64.157518][ T5137] bi_fields_set=0 [ 64.157528][ T5137] bi_dir=4096 [ 64.157537][ T5137] bi_dir_offset=1896155912177158345 [ 64.157547][ T5137] bi_subvol=0 [ 64.157556][ T5137] bi_parent_subvol=0 [ 64.157565][ T5137] bi_nocow=0 [ 64.157575][ T5137] bi_depth=0 [ 64.157583][ T5137] bi_inodes_32bit=0 [ 64.157593][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 64.157604][ T5137] mode=100755 [ 64.157613][ T5137] flags=(15300000) [ 64.157622][ T5137] journal_seq=5 [ 64.157631][ T5137] hash_seed=b68791a594a6d5ae [ 64.157641][ T5137] hash_type=siphash [ 64.157650][ T5137] bi_size=9000 [ 64.157659][ T5137] bi_sectors=24 [ 64.157667][ T5137] bi_version=0 [ 64.157674][ T5137] bi_atime=2780562352 [ 64.157684][ T5137] bi_ctime=2780562352 [ 64.157693][ T5137] bi_mtime=2780562352 [ 64.157702][ T5137] bi_otime=2780562352 [ 64.157711][ T5137] bi_uid=0 [ 64.157720][ T5137] bi_gid=0 [ 64.157729][ T5137] bi_nlink=1 [ 64.157738][ T5137] bi_generation=0 [ 64.157748][ T5137] bi_dev=0 [ 64.157756][ T5137] bi_data_checksum=0 [ 64.157766][ T5137] bi_compression=0 [ 64.157775][ T5137] bi_project=0 [ 64.157784][ T5137] bi_background_compression=0 [ 64.157794][ T5137] bi_data_replicas=0 [ 64.157803][ T5137] bi_promote_target=0 [ 64.157813][ T5137] bi_foreground_target=0 [ 64.157822][ T5137] bi_background_target=0 [ 64.157831][ T5137] bi_erasure_code=0 [ 64.157841][ T5137] bi_fields_set=0 [ 64.157850][ T5137] bi_dir=4096 [ 64.157859][ T5137] bi_dir_offset=1896155912177158345 [ 64.157869][ T5137] bi_subvol=0 [ 64.157878][ T5137] bi_parent_subvol=0 [ 64.157887][ T5137] bi_nocow=0 [ 64.157896][ T5137] bi_depth=0 [ 64.157905][ T5137] bi_inodes_32bit=0 [ 64.157921][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 64.157932][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 64.157942][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 64.157952][ T5137] gen 0 oldest_gen 0 data_type free [ 64.157962][ T5137] journal_seq_nonempty 0 [ 64.157971][ T5137] journal_seq_empty 0 [ 64.157981][ T5137] need_discard 0 [ 64.157990][ T5137] need_inc_gen 0 [ 64.158000][ T5137] dirty_sectors 0 [ 64.158009][ T5137] stripe_sectors 0 [ 64.158019][ T5137] cached_sectors 0 [ 64.158028][ T5137] stripe 0 [ 64.158037][ T5137] stripe_redundancy 0 [ 64.158047][ T5137] io_time[READ] 0 [ 64.158056][ T5137] io_time[WRITE] 0 [ 64.158066][ T5137] fragmentation 0 [ 64.158075][ T5137] bp_start 8 [ 64.158084][ T5137] [ 64.158093][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 64.158104][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 64.158114][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 64.158125][ T5137] gen 0 oldest_gen 0 data_type free [ 64.158135][ T5137] journal_seq_nonempty 0 [ 64.158144][ T5137] journal_seq_empty 0 [ 64.158153][ T5137] need_discard 0 [ 64.158163][ T5137] need_inc_gen 0 [ 64.158172][ T5137] dirty_sectors 0 [ 64.158182][ T5137] stripe_sectors 0 [ 64.158191][ T5137] cached_sectors 0 [pid 5863] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5852] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5852] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5852] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5851] exit_group(0 [pid 5852] <... futex resumed>) = ? [pid 5851] <... exit_group resumed>) = ? [pid 5852] +++ exited with 0 +++ [pid 5863] <... futex resumed>) = ? [ 64.158200][ T5137] stripe 0 [ 64.158210][ T5137] stripe_redundancy 0 [ 64.158219][ T5137] io_time[READ] 0 [ 64.158229][ T5137] io_time[WRITE] 0 [ 64.158238][ T5137] fragmentation 0 [ 64.158247][ T5137] bp_start 8 [ 64.158257][ T5137] [ 64.158265][ T5137] [ 64.737552][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 64.748192][ T25] bcachefs (loop0): finished waiting for writes to stop [pid 5863] +++ exited with 0 +++ [pid 5851] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5851, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=24 /* 0.24 s */} --- [ 64.755802][ T25] bcachefs (loop0): done going read-only, filesystem not clean umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./2/binderfs") = 0 [ 64.876184][ T5822] bcachefs (loop0): shutting down [ 64.888805][ T5822] bcachefs (loop0): shutdown complete umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./2/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./2") = 0 mkdir("./3", 0777) = 0 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 5864 attached , child_tidptr=0x55557d106690) = 5864 [pid 5864] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5864] chdir("./3") = 0 [pid 5864] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5864] setpgid(0, 0) = 0 [pid 5864] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5864] write(3, "1000", 4) = 4 [pid 5864] close(3) = 0 [pid 5864] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5864] write(1, "executing program\n", 18) = 18 [pid 5864] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5864] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5864] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5864] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5864] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5864] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5864] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5865 attached [pid 5865] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5865] set_robust_list(0x7f39d15339a0, 24 [pid 5864] <... clone3 resumed> => {parent_tid=[5865]}, 88) = 5865 [pid 5865] <... set_robust_list resumed>) = 0 [pid 5864] rt_sigprocmask(SIG_SETMASK, [], [pid 5865] rt_sigprocmask(SIG_SETMASK, [], [pid 5864] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5865] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5864] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5865] memfd_create("syzkaller", 0 [pid 5864] <... futex resumed>) = 0 [pid 5865] <... memfd_create resumed>) = 3 [pid 5864] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5865] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5865] 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 5865] munmap(0x7f39c9000000, 138412032) = 0 [pid 5865] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5865] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5865] close(3) = 0 [pid 5865] close(4) = 0 [pid 5865] mkdir("./file0", 0777) = 0 [ 66.285820][ T5865] loop0: detected capacity change from 0 to 32768 [ 66.358184][ T5865] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 66.378852][ T5865] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 66.386947][ T5865] bcachefs (loop0): Version upgrade required: [ 66.386947][ T5865] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 66.386947][ T5865] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 66.386947][ T5865] 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 [ 66.457816][ T5865] bcachefs (loop0): dropping and reconstructing all alloc info [ 66.471998][ T5865] bcachefs (loop0): accounting_read... done [ 66.478384][ T5865] bcachefs (loop0): alloc_read... done [ 66.483982][ T5865] bcachefs (loop0): stripes_read... done [ 66.489802][ T5865] bcachefs (loop0): snapshots_read... done [pid 5865] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5865] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5865] chdir("./file0") = 0 [pid 5865] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 66.495722][ T5865] bcachefs (loop0): check_allocations... done [ 66.511690][ T5865] bcachefs (loop0): going read-write [ 66.519970][ T5865] bcachefs (loop0): done starting filesystem [pid 5865] ioctl(4, LOOP_CLR_FD) = 0 [pid 5865] close(4) = 0 [pid 5865] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5864] <... futex resumed>) = 0 [pid 5864] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5865] <... futex resumed>) = 1 [pid 5864] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5865] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160) = 4 [pid 5865] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5864] <... futex resumed>) = 0 [pid 5865] truncate("./file2", 2560 [pid 5864] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [ 66.590717][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 66.590736][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 66.617967][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 66.627418][ T25] bcachefs (loop0): going read-only [pid 5864] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5864] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5864] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5864] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE [pid 5865] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5864] <... mprotect resumed>) = 0 [pid 5865] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5865] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5864] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5864] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0} => {parent_tid=[5876]}, 88) = 5876 [pid 5864] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5864] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5864] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}./strace-static-x86_64: Process 5876 attached [pid 5876] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [pid 5876] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5876] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5876] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5876] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5864] <... futex resumed>) = 0 [pid 5876] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5864] exit_group(0 [pid 5876] <... futex resumed>) = ? [ 66.632728][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 66.632756][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 66.632767][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 66.632778][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 66.632792][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [pid 5865] <... futex resumed>) = ? [pid 5864] <... exit_group resumed>) = ? [pid 5876] +++ exited with 0 +++ [pid 5865] +++ exited with 0 +++ [pid 5864] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5864, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=25 /* 0.25 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./3/binderfs") = 0 [ 66.632804][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 66.632818][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 66.632832][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 66.632843][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 66.632853][ T5137] mode=100755 [ 66.632862][ T5137] flags=(15300000) [ 66.632872][ T5137] journal_seq=5 [ 66.632881][ T5137] hash_seed=b68791a594a6d5ae [ 66.632890][ T5137] hash_type=siphash [ 66.632899][ T5137] bi_size=9000 [ 66.632908][ T5137] bi_sectors=24 [ 66.632918][ T5137] bi_version=0 [ 66.632927][ T5137] bi_atime=2780562352 [ 66.632936][ T5137] bi_ctime=2780562352 [ 66.632945][ T5137] bi_mtime=2780562352 [ 66.632955][ T5137] bi_otime=2780562352 [ 66.632964][ T5137] bi_uid=0 [ 66.632973][ T5137] bi_gid=0 [ 66.632982][ T5137] bi_nlink=1 [ 66.632991][ T5137] bi_generation=0 [ 66.633000][ T5137] bi_dev=0 [ 66.633009][ T5137] bi_data_checksum=0 [ 66.633017][ T5137] bi_compression=0 [ 66.633026][ T5137] bi_project=0 [ 66.633034][ T5137] bi_background_compression=0 [ 66.633043][ T5137] bi_data_replicas=0 [ 66.633052][ T5137] bi_promote_target=0 [ 66.633061][ T5137] bi_foreground_target=0 [ 66.633070][ T5137] bi_background_target=0 [ 66.633079][ T5137] bi_erasure_code=0 [ 66.633087][ T5137] bi_fields_set=0 [ 66.633096][ T5137] bi_dir=4096 [ 66.633104][ T5137] bi_dir_offset=1896155912177158345 [ 66.633114][ T5137] bi_subvol=0 [ 66.633122][ T5137] bi_parent_subvol=0 [ 66.633230][ T5137] bi_nocow=0 [ 66.633240][ T5137] bi_depth=0 [ 66.633249][ T5137] bi_inodes_32bit=0 [ 66.633258][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 66.633268][ T5137] mode=100755 [ 66.633276][ T5137] flags=(15300000) [ 66.633285][ T5137] journal_seq=5 [ 66.633294][ T5137] hash_seed=b68791a594a6d5ae [ 66.633303][ T5137] hash_type=siphash [ 66.633312][ T5137] bi_size=9000 [ 66.633321][ T5137] bi_sectors=24 [ 66.633330][ T5137] bi_version=0 [ 66.633339][ T5137] bi_atime=2780562352 [ 66.633348][ T5137] bi_ctime=2780562352 [ 66.633354][ T5137] bi_mtime=2780562352 [ 66.633360][ T5137] bi_otime=2780562352 [ 66.633365][ T5137] bi_uid=0 [ 66.633370][ T5137] bi_gid=0 [ 66.633374][ T5137] bi_nlink=1 [ 66.633379][ T5137] bi_generation=0 [ 66.633384][ T5137] bi_dev=0 [ 66.633389][ T5137] bi_data_checksum=0 [ 66.633394][ T5137] bi_compression=0 [ 66.633399][ T5137] bi_project=0 [ 66.633404][ T5137] bi_background_compression=0 [ 66.633409][ T5137] bi_data_replicas=0 [ 66.633414][ T5137] bi_promote_target=0 [ 66.633419][ T5137] bi_foreground_target=0 [ 66.633424][ T5137] bi_background_target=0 [ 66.633429][ T5137] bi_erasure_code=0 [ 66.633434][ T5137] bi_fields_set=0 [ 66.633439][ T5137] bi_dir=4096 [ 66.633444][ T5137] bi_dir_offset=1896155912177158345 [ 66.633449][ T5137] bi_subvol=0 [ 66.633454][ T5137] bi_parent_subvol=0 [ 66.633459][ T5137] bi_nocow=0 [ 66.633463][ T5137] bi_depth=0 [ 66.633468][ T5137] bi_inodes_32bit=0 [ 66.633473][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 66.633479][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 66.633485][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 66.633490][ T5137] gen 0 oldest_gen 0 data_type free [ 66.633502][ T5137] journal_seq_nonempty 0 [ 66.633507][ T5137] journal_seq_empty 0 [ 66.633512][ T5137] need_discard 0 [ 66.633517][ T5137] need_inc_gen 0 [ 66.633522][ T5137] dirty_sectors 0 [ 66.633527][ T5137] stripe_sectors 0 [ 66.633532][ T5137] cached_sectors 0 [ 66.633537][ T5137] stripe 0 [ 66.633542][ T5137] stripe_redundancy 0 [ 66.633547][ T5137] io_time[READ] 0 [ 66.633552][ T5137] io_time[WRITE] 0 [ 66.633557][ T5137] fragmentation 0 [ 66.633562][ T5137] bp_start 8 [ 66.633567][ T5137] [ 66.633571][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 66.633577][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 66.633583][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 66.633588][ T5137] gen 0 oldest_gen 0 data_type free [ 66.633594][ T5137] journal_seq_nonempty 0 [ 66.633599][ T5137] journal_seq_empty 0 [ 66.633604][ T5137] need_discard 0 [ 66.633609][ T5137] need_inc_gen 0 [ 66.633614][ T5137] dirty_sectors 0 [ 66.633619][ T5137] stripe_sectors 0 [ 66.633624][ T5137] cached_sectors 0 [ 66.633629][ T5137] stripe 0 [ 66.633634][ T5137] stripe_redundancy 0 [ 66.633639][ T5137] io_time[READ] 0 [ 66.633644][ T5137] io_time[WRITE] 0 [ 66.633649][ T5137] fragmentation 0 [ 66.633654][ T5137] bp_start 8 [ 66.633658][ T5137] [ 66.633663][ T5137] [ 66.642702][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 66.650883][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 66.660227][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 67.225223][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 67.225885][ T5822] bcachefs (loop0): shutting down [ 67.233600][ T25] bcachefs (loop0): finished waiting for writes to stop [ 67.244713][ T25] bcachefs (loop0): done going read-only, filesystem not clean [ 67.259447][ T5822] bcachefs (loop0): shutdown complete umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./3/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./3") = 0 mkdir("./4", 0777) = 0 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 5877 attached , child_tidptr=0x55557d106690) = 5877 [pid 5877] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5877] chdir("./4") = 0 [pid 5877] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5877] setpgid(0, 0) = 0 [pid 5877] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5877] write(3, "1000", 4) = 4 [pid 5877] close(3) = 0 [pid 5877] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5877] write(1, "executing program\n", 18executing program ) = 18 [pid 5877] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5877] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5877] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5877] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5877] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5877] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5877] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5878 attached [pid 5878] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5877] <... clone3 resumed> => {parent_tid=[5878]}, 88) = 5878 [pid 5878] set_robust_list(0x7f39d15339a0, 24 [pid 5877] rt_sigprocmask(SIG_SETMASK, [], [pid 5878] <... set_robust_list resumed>) = 0 [pid 5877] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5878] rt_sigprocmask(SIG_SETMASK, [], [pid 5877] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5878] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5877] <... futex resumed>) = 0 [pid 5878] memfd_create("syzkaller", 0 [pid 5877] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5878] <... memfd_create resumed>) = 3 [pid 5878] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5878] 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 5878] munmap(0x7f39c9000000, 138412032) = 0 [pid 5878] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5878] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5878] close(3) = 0 [pid 5878] close(4) = 0 [pid 5878] mkdir("./file0", 0777) = 0 [ 68.694913][ T5878] loop0: detected capacity change from 0 to 32768 [ 68.760813][ T5878] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 68.782339][ T5878] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 68.790422][ T5878] bcachefs (loop0): Version upgrade required: [ 68.790422][ T5878] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 68.790422][ T5878] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 68.790422][ T5878] 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.861350][ T5878] bcachefs (loop0): dropping and reconstructing all alloc info [ 68.875485][ T5878] bcachefs (loop0): accounting_read... done [ 68.881536][ T5878] bcachefs (loop0): alloc_read... done [ 68.887242][ T5878] bcachefs (loop0): stripes_read... done [ 68.892921][ T5878] bcachefs (loop0): snapshots_read... done [pid 5878] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5878] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5878] chdir("./file0") = 0 [pid 5878] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5878] ioctl(4, LOOP_CLR_FD) = 0 [ 68.899057][ T5878] bcachefs (loop0): check_allocations... done [ 68.916121][ T5878] bcachefs (loop0): going read-write [ 68.924602][ T5878] bcachefs (loop0): done starting filesystem [pid 5878] close(4) = 0 [pid 5878] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5878] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5877] <... futex resumed>) = 0 [pid 5877] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5878] <... futex resumed>) = 0 [pid 5877] <... futex resumed>) = 1 [pid 5878] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5877] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5878] <... open resumed>) = 4 [pid 5878] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5877] <... futex resumed>) = 0 [pid 5878] <... futex resumed>) = 1 [pid 5877] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5878] truncate("./file2", 2560 [pid 5877] <... futex resumed>) = 0 [ 68.993601][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 68.993621][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 69.021055][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 69.030861][ T9] bcachefs (loop0): going read-only [pid 5877] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5877] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5877] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5877] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5877] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5877] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0} => {parent_tid=[5889]}, 88) = 5889 [pid 5877] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5877] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000) = 0 ./strace-static-x86_64: Process 5889 attached [pid 5877] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5889] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [pid 5889] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5889] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5889] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5889] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5877] <... futex resumed>) = 0 [ 69.036192][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 69.036418][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 69.036431][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 69.036442][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 69.036455][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 69.036465][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 69.036478][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 69.036492][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 69.036503][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 69.036514][ T5137] mode=100755 [ 69.036523][ T5137] flags=(15300000) [ 69.036532][ T5137] journal_seq=5 [ 69.036541][ T5137] hash_seed=b68791a594a6d5ae [ 69.036550][ T5137] hash_type=siphash [ 69.036558][ T5137] bi_size=9000 [ 69.036567][ T5137] bi_sectors=24 [ 69.036575][ T5137] bi_version=0 [ 69.036584][ T5137] bi_atime=2780562352 [ 69.036592][ T5137] bi_ctime=2780562352 [ 69.036601][ T5137] bi_mtime=2780562352 [ 69.036610][ T5137] bi_otime=2780562352 [ 69.036618][ T5137] bi_uid=0 [ 69.036627][ T5137] bi_gid=0 [ 69.036636][ T5137] bi_nlink=1 [ 69.036645][ T5137] bi_generation=0 [ 69.036655][ T5137] bi_dev=0 [ 69.036663][ T5137] bi_data_checksum=0 [ 69.036672][ T5137] bi_compression=0 [ 69.036681][ T5137] bi_project=0 [ 69.036691][ T5137] bi_background_compression=0 [ 69.036700][ T5137] bi_data_replicas=0 [ 69.036709][ T5137] bi_promote_target=0 [ 69.036717][ T5137] bi_foreground_target=0 [ 69.036726][ T5137] bi_background_target=0 [ 69.036735][ T5137] bi_erasure_code=0 [ 69.036745][ T5137] bi_fields_set=0 [ 69.036754][ T5137] bi_dir=4096 [ 69.036763][ T5137] bi_dir_offset=1896155912177158345 [ 69.036773][ T5137] bi_subvol=0 [ 69.036782][ T5137] bi_parent_subvol=0 [ 69.036791][ T5137] bi_nocow=0 [ 69.036800][ T5137] bi_depth=0 [ 69.036809][ T5137] bi_inodes_32bit=0 [ 69.036818][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 69.036828][ T5137] mode=100755 [ 69.036836][ T5137] flags=(15300000) [ 69.036845][ T5137] journal_seq=5 [ 69.036854][ T5137] hash_seed=b68791a594a6d5ae [ 69.036863][ T5137] hash_type=siphash [ 69.036873][ T5137] bi_size=9000 [ 69.036882][ T5137] bi_sectors=24 [ 69.036891][ T5137] bi_version=0 [ 69.036900][ T5137] bi_atime=2780562352 [ 69.036909][ T5137] bi_ctime=2780562352 [ 69.036918][ T5137] bi_mtime=2780562352 [ 69.036928][ T5137] bi_otime=2780562352 [ 69.036936][ T5137] bi_uid=0 [ 69.036944][ T5137] bi_gid=0 [ 69.036953][ T5137] bi_nlink=1 [ 69.036961][ T5137] bi_generation=0 [ 69.036969][ T5137] bi_dev=0 [ 69.036978][ T5137] bi_data_checksum=0 [ 69.036987][ T5137] bi_compression=0 [ 69.036996][ T5137] bi_project=0 [ 69.037005][ T5137] bi_background_compression=0 [ 69.037013][ T5137] bi_data_replicas=0 [ 69.037106][ T5137] bi_promote_target=0 [ 69.037117][ T5137] bi_foreground_target=0 [ 69.037126][ T5137] bi_background_target=0 [ 69.037136][ T5137] bi_erasure_code=0 [ 69.037144][ T5137] bi_fields_set=0 [ 69.037153][ T5137] bi_dir=4096 [ 69.037162][ T5137] bi_dir_offset=1896155912177158345 [ 69.037171][ T5137] bi_subvol=0 [ 69.037179][ T5137] bi_parent_subvol=0 [ 69.037188][ T5137] bi_nocow=0 [ 69.037196][ T5137] bi_depth=0 [ 69.037204][ T5137] bi_inodes_32bit=0 [ 69.037212][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 69.037222][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 69.037231][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 69.037241][ T5137] gen 0 oldest_gen 0 data_type free [ 69.037251][ T5137] journal_seq_nonempty 0 [ 69.037260][ T5137] journal_seq_empty 0 [ 69.037269][ T5137] need_discard 0 [ 69.037277][ T5137] need_inc_gen 0 [ 69.037286][ T5137] dirty_sectors 0 [ 69.037295][ T5137] stripe_sectors 0 [ 69.037311][ T5137] cached_sectors 0 [ 69.037320][ T5137] stripe 0 [ 69.037329][ T5137] stripe_redundancy 0 [ 69.037338][ T5137] io_time[READ] 0 [ 69.037347][ T5137] io_time[WRITE] 0 [ 69.037346][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 69.037356][ T5137] fragmentation 0 [ 69.037365][ T5137] bp_start 8 [ 69.037374][ T5137] [ 69.037382][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 69.037393][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 69.037404][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 69.037414][ T5137] gen 0 oldest_gen 0 data_type free [ 69.037419][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 69.037424][ T5137] journal_seq_nonempty 0 [ 69.037434][ T5137] journal_seq_empty 0 [ 69.037443][ T5137] need_discard 0 [ 69.037452][ T5137] need_inc_gen 0 [ 69.037460][ T5137] dirty_sectors 0 [ 69.037469][ T5137] stripe_sectors 0 [ 69.037477][ T5137] cached_sectors 0 [ 69.037486][ T5137] stripe 0 [ 69.037494][ T5137] stripe_redundancy 0 [pid 5889] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5878] <... truncate resumed>) = -1 EIO (Input/output error) [ 69.037502][ T5137] io_time[READ] 0 [ 69.037510][ T5137] io_time[WRITE] 0 [ 69.037518][ T5137] fragmentation 0 [ 69.037527][ T5137] bp_start 8 [ 69.037536][ T5137] [ 69.037544][ T5137] [ 69.038036][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 69.046242][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 69.635527][ T9] bcachefs (loop0): finished waiting for writes to stop [pid 5878] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5877] exit_group(0 [pid 5889] <... futex resumed>) = ? [pid 5878] <... futex resumed>) = ? [pid 5877] <... exit_group resumed>) = ? [pid 5889] +++ exited with 0 +++ [pid 5878] +++ exited with 0 +++ [pid 5877] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5877, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=20 /* 0.20 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 69.642931][ T9] bcachefs (loop0): done going read-only, filesystem not clean openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./4/binderfs") = 0 [ 69.793565][ T5822] bcachefs (loop0): shutting down [ 69.806378][ T5822] bcachefs (loop0): shutdown complete umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./4/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./4") = 0 mkdir("./5", 0777) = 0 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, child_tidptr=0x55557d106690) = 5890 ./strace-static-x86_64: Process 5890 attached [pid 5890] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5890] chdir("./5") = 0 [pid 5890] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5890] setpgid(0, 0) = 0 [pid 5890] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5890] write(3, "1000", 4) = 4 [pid 5890] close(3) = 0 [pid 5890] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5890] write(1, "executing program\n", 18executing program ) = 18 [pid 5890] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5890] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5890] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5890] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5890] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5890] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5890] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5891 attached [pid 5891] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053 [pid 5890] <... clone3 resumed> => {parent_tid=[5891]}, 88) = 5891 [pid 5891] <... rseq resumed>) = 0 [pid 5891] set_robust_list(0x7f39d15339a0, 24) = 0 [pid 5891] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5891] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5890] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5890] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5891] <... futex resumed>) = 0 [pid 5890] <... futex resumed>) = 1 [pid 5891] memfd_create("syzkaller", 0 [pid 5890] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5891] <... memfd_create resumed>) = 3 [pid 5891] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5891] 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 5891] munmap(0x7f39c9000000, 138412032) = 0 [pid 5891] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5891] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5891] close(3) = 0 [pid 5891] close(4) = 0 [pid 5891] mkdir("./file0", 0777) = 0 [ 71.335631][ T5891] loop0: detected capacity change from 0 to 32768 [ 71.401802][ T5891] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 71.422754][ T5891] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 71.430889][ T5891] bcachefs (loop0): Version upgrade required: [ 71.430889][ T5891] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 71.430889][ T5891] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 71.430889][ T5891] 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 [ 71.502081][ T5891] bcachefs (loop0): dropping and reconstructing all alloc info [ 71.516023][ T5891] bcachefs (loop0): accounting_read... done [ 71.522077][ T5891] bcachefs (loop0): alloc_read... done [ 71.527606][ T5891] bcachefs (loop0): stripes_read... done [ 71.533279][ T5891] bcachefs (loop0): snapshots_read... done [pid 5891] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5891] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5891] chdir("./file0") = 0 [ 71.539210][ T5891] bcachefs (loop0): check_allocations... done [ 71.558870][ T5891] bcachefs (loop0): going read-write [ 71.566827][ T5891] bcachefs (loop0): done starting filesystem [pid 5891] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5891] ioctl(4, LOOP_CLR_FD) = 0 [pid 5891] close(4) = 0 [pid 5891] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5890] <... futex resumed>) = 0 [pid 5891] <... futex resumed>) = 1 [pid 5890] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5891] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5890] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5891] <... open resumed>) = 4 [pid 5891] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5890] <... futex resumed>) = 0 [pid 5891] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5890] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5891] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5890] <... futex resumed>) = 0 [pid 5891] truncate("./file2", 2560 [ 71.636481][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 71.636500][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 71.664225][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 71.673556][ T25] bcachefs (loop0): going read-only [pid 5890] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5891] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5890] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5891] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5890] <... futex resumed>) = 0 [pid 5891] <... futex resumed>) = 0 [pid 5890] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5891] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5890] <... mmap resumed>) = 0x7f39d14f2000 [ 71.678869][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 71.678896][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 71.678907][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 71.678915][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 71.678923][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [pid 5890] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5890] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5890] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0} => {parent_tid=[5902]}, 88) = 5902 [pid 5890] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5890] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5890] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}./strace-static-x86_64: Process 5902 attached [pid 5902] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [ 71.678929][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 71.678937][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 71.678945][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 71.678951][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 71.678957][ T5137] mode=100755 [ 71.678962][ T5137] flags=(15300000) [pid 5902] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5902] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5902] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5902] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5890] <... futex resumed>) = 0 [pid 5902] <... futex resumed>) = 1 [pid 5890] exit_group(0 [pid 5891] <... futex resumed>) = ? [pid 5890] <... exit_group resumed>) = ? [pid 5902] +++ exited with 0 +++ [pid 5891] +++ exited with 0 +++ [pid 5890] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5890, si_uid=0, si_status=0, si_utime=0, si_stime=21 /* 0.21 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 [ 71.678966][ T5137] journal_seq=5 [ 71.678971][ T5137] hash_seed=b68791a594a6d5ae [ 71.678977][ T5137] hash_type=siphash [ 71.678981][ T5137] bi_size=9000 [ 71.678986][ T5137] bi_sectors=24 [ 71.678991][ T5137] bi_version=0 [ 71.678996][ T5137] bi_atime=2780562352 [ 71.679001][ T5137] bi_ctime=2780562352 [ 71.679006][ T5137] bi_mtime=2780562352 [ 71.679011][ T5137] bi_otime=2780562352 [ 71.679016][ T5137] bi_uid=0 [ 71.679021][ T5137] bi_gid=0 umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 71.679025][ T5137] bi_nlink=1 [ 71.679030][ T5137] bi_generation=0 [ 71.679035][ T5137] bi_dev=0 [ 71.679040][ T5137] bi_data_checksum=0 [ 71.679045][ T5137] bi_compression=0 [ 71.679050][ T5137] bi_project=0 [ 71.679054][ T5137] bi_background_compression=0 [ 71.679060][ T5137] bi_data_replicas=0 [ 71.679064][ T5137] bi_promote_target=0 [ 71.679069][ T5137] bi_foreground_target=0 [ 71.679075][ T5137] bi_background_target=0 [ 71.679080][ T5137] bi_erasure_code=0 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 [ 71.679084][ T5137] bi_fields_set=0 [ 71.679089][ T5137] bi_dir=4096 [ 71.679094][ T5137] bi_dir_offset=1896155912177158345 [ 71.679099][ T5137] bi_subvol=0 [ 71.679104][ T5137] bi_parent_subvol=0 [ 71.679109][ T5137] bi_nocow=0 [ 71.679114][ T5137] bi_depth=0 [ 71.679119][ T5137] bi_inodes_32bit=0 [ 71.679124][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 71.679129][ T5137] mode=100755 [ 71.679134][ T5137] flags=(15300000) [ 71.679139][ T5137] journal_seq=5 umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./5/binderfs") = 0 [ 71.679150][ T5137] hash_seed=b68791a594a6d5ae [ 71.679155][ T5137] hash_type=siphash [ 71.679160][ T5137] bi_size=9000 [ 71.679165][ T5137] bi_sectors=24 [ 71.679170][ T5137] bi_version=0 [ 71.679175][ T5137] bi_atime=2780562352 [ 71.679180][ T5137] bi_ctime=2780562352 [ 71.679185][ T5137] bi_mtime=2780562352 [ 71.679190][ T5137] bi_otime=2780562352 [ 71.679195][ T5137] bi_uid=0 [ 71.679199][ T5137] bi_gid=0 [ 71.679204][ T5137] bi_nlink=1 [ 71.679209][ T5137] bi_generation=0 [ 71.679214][ T5137] bi_dev=0 [ 71.679219][ T5137] bi_data_checksum=0 [ 71.679224][ T5137] bi_compression=0 [ 71.679229][ T5137] bi_project=0 [ 71.679233][ T5137] bi_background_compression=0 [ 71.679239][ T5137] bi_data_replicas=0 [ 71.679243][ T5137] bi_promote_target=0 [ 71.679248][ T5137] bi_foreground_target=0 [ 71.679253][ T5137] bi_background_target=0 [ 71.679258][ T5137] bi_erasure_code=0 [ 71.679263][ T5137] bi_fields_set=0 [ 71.679268][ T5137] bi_dir=4096 [ 71.679273][ T5137] bi_dir_offset=1896155912177158345 [ 71.679278][ T5137] bi_subvol=0 [ 71.679283][ T5137] bi_parent_subvol=0 [ 71.679288][ T5137] bi_nocow=0 [ 71.679293][ T5137] bi_depth=0 [ 71.679298][ T5137] bi_inodes_32bit=0 [ 71.679303][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 71.679308][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 71.679314][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 71.679319][ T5137] gen 0 oldest_gen 0 data_type free [ 71.679325][ T5137] journal_seq_nonempty 0 [ 71.679330][ T5137] journal_seq_empty 0 [ 71.679335][ T5137] need_discard 0 [ 71.679340][ T5137] need_inc_gen 0 [ 71.679345][ T5137] dirty_sectors 0 [ 71.679350][ T5137] stripe_sectors 0 [ 71.679354][ T5137] cached_sectors 0 [ 71.679360][ T5137] stripe 0 [ 71.679365][ T5137] stripe_redundancy 0 [ 71.679370][ T5137] io_time[READ] 0 [ 71.679375][ T5137] io_time[WRITE] 0 [ 71.679380][ T5137] fragmentation 0 [ 71.679385][ T5137] bp_start 8 [ 71.679390][ T5137] [ 71.679397][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 71.679403][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 71.679408][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 71.679414][ T5137] gen 0 oldest_gen 0 data_type free [ 71.679419][ T5137] journal_seq_nonempty 0 [ 71.679424][ T5137] journal_seq_empty 0 [ 71.679429][ T5137] need_discard 0 [ 71.679434][ T5137] need_inc_gen 0 [ 71.679439][ T5137] dirty_sectors 0 [ 71.679444][ T5137] stripe_sectors 0 [ 71.679449][ T5137] cached_sectors 0 [ 71.679454][ T5137] stripe 0 [ 71.679459][ T5137] stripe_redundancy 0 [ 71.679464][ T5137] io_time[READ] 0 [ 71.679469][ T5137] io_time[WRITE] 0 [ 71.679474][ T5137] fragmentation 0 [ 71.679479][ T5137] bp_start 8 [ 71.679484][ T5137] [ 71.679489][ T5137] [ 71.688897][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 71.696579][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 71.703569][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 72.272175][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 72.279889][ T5822] bcachefs (loop0): shutting down [ 72.280756][ T25] bcachefs (loop0): finished waiting for writes to stop [ 72.291923][ T25] bcachefs (loop0): done going read-only, filesystem not clean [ 72.307330][ T5822] bcachefs (loop0): shutdown complete umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./5/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./5/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./5") = 0 mkdir("./6", 0777) = 0 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 5904 attached [pid 5904] set_robust_list(0x55557d1066a0, 24 [pid 5822] <... clone resumed>, child_tidptr=0x55557d106690) = 5904 [pid 5904] <... set_robust_list resumed>) = 0 [pid 5904] chdir("./6") = 0 [pid 5904] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5904] setpgid(0, 0) = 0 [pid 5904] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5904] write(3, "1000", 4) = 4 [pid 5904] close(3) = 0 [pid 5904] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5904] write(1, "executing program\n", 18) = 18 [pid 5904] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5904] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5904] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5904] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5904] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5904] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5904] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5905 attached [pid 5905] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5904] <... clone3 resumed> => {parent_tid=[5905]}, 88) = 5905 [pid 5905] set_robust_list(0x7f39d15339a0, 24 [pid 5904] rt_sigprocmask(SIG_SETMASK, [], [pid 5905] <... set_robust_list resumed>) = 0 [pid 5904] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5905] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5904] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5905] memfd_create("syzkaller", 0 [pid 5904] <... futex resumed>) = 0 [pid 5904] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5905] <... memfd_create resumed>) = 3 [pid 5905] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5905] 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 5905] munmap(0x7f39c9000000, 138412032) = 0 [pid 5905] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5905] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5905] close(3) = 0 [pid 5905] close(4) = 0 [pid 5905] mkdir("./file0", 0777) = 0 [ 73.752873][ T5905] loop0: detected capacity change from 0 to 32768 [ 73.823173][ T5905] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 73.843872][ T5905] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 73.851954][ T5905] bcachefs (loop0): Version upgrade required: [ 73.851954][ T5905] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 73.851954][ T5905] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 73.851954][ T5905] 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 [ 73.922793][ T5905] bcachefs (loop0): dropping and reconstructing all alloc info [ 73.936655][ T5905] bcachefs (loop0): accounting_read... done [ 73.942707][ T5905] bcachefs (loop0): alloc_read... done [ 73.948301][ T5905] bcachefs (loop0): stripes_read... done [ 73.953977][ T5905] bcachefs (loop0): snapshots_read... done [pid 5905] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5905] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5905] chdir("./file0") = 0 [pid 5905] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5905] ioctl(4, LOOP_CLR_FD) = 0 [pid 5905] close(4) = 0 [ 73.959987][ T5905] bcachefs (loop0): check_allocations... done [ 73.976333][ T5905] bcachefs (loop0): going read-write [ 73.984516][ T5905] bcachefs (loop0): done starting filesystem [pid 5905] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5904] <... futex resumed>) = 0 [pid 5905] <... futex resumed>) = 1 [pid 5905] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5904] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5905] <... futex resumed>) = 0 [pid 5904] <... futex resumed>) = 1 [pid 5905] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5904] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5905] <... open resumed>) = 4 [pid 5905] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5904] <... futex resumed>) = 0 [pid 5905] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5904] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5905] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5905] truncate("./file2", 2560 [pid 5904] <... futex resumed>) = 0 [ 74.046121][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 74.046140][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 74.073634][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 74.083173][ T9] bcachefs (loop0): going read-only [pid 5904] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5904] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5904] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5904] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5904] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5904] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5917 attached [pid 5917] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5904] <... clone3 resumed> => {parent_tid=[5917]}, 88) = 5917 [pid 5917] <... rseq resumed>) = 0 [pid 5917] set_robust_list(0x7f39d15129a0, 24 [pid 5904] rt_sigprocmask(SIG_SETMASK, [], [pid 5917] <... set_robust_list resumed>) = 0 [pid 5904] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5917] rt_sigprocmask(SIG_SETMASK, [], [pid 5904] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5917] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5904] <... futex resumed>) = 0 [pid 5917] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000 [pid 5904] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5917] <... fallocate resumed>) = -1 EROFS (Read-only file system) [pid 5917] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5904] <... futex resumed>) = 0 [ 74.088548][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 74.089132][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 74.089162][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 74.089175][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 74.089187][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 74.089202][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 74.089203][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 74.089213][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 74.089226][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 74.089239][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 74.089250][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 74.089259][ T5137] mode=100755 [ 74.089268][ T5137] flags=(15300000) [ 74.089277][ T5137] journal_seq=5 [ 74.089285][ T5137] hash_seed=b68791a594a6d5ae [ 74.089290][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 74.089294][ T5137] hash_type=siphash [ 74.089304][ T5137] bi_size=9000 [ 74.089313][ T5137] bi_sectors=24 [ 74.089322][ T5137] bi_version=0 [ 74.089331][ T5137] bi_atime=2780562352 [ 74.089340][ T5137] bi_ctime=2780562352 [ 74.089349][ T5137] bi_mtime=2780562352 [ 74.089358][ T5137] bi_otime=2780562352 [ 74.089367][ T5137] bi_uid=0 [ 74.089376][ T5137] bi_gid=0 [ 74.089385][ T5137] bi_nlink=1 [ 74.089394][ T5137] bi_generation=0 [ 74.089403][ T5137] bi_dev=0 [ 74.089412][ T5137] bi_data_checksum=0 [ 74.089422][ T5137] bi_compression=0 [ 74.089431][ T5137] bi_project=0 [ 74.089440][ T5137] bi_background_compression=0 [ 74.089450][ T5137] bi_data_replicas=0 [ 74.089459][ T5137] bi_promote_target=0 [ 74.089468][ T5137] bi_foreground_target=0 [ 74.089478][ T5137] bi_background_target=0 [ 74.089487][ T5137] bi_erasure_code=0 [ 74.089497][ T5137] bi_fields_set=0 [ 74.089506][ T5137] bi_dir=4096 [ 74.089515][ T5137] bi_dir_offset=1896155912177158345 [ 74.089525][ T5137] bi_subvol=0 [ 74.089534][ T5137] bi_parent_subvol=0 [ 74.089543][ T5137] bi_nocow=0 [ 74.089552][ T5137] bi_depth=0 [ 74.089562][ T5137] bi_inodes_32bit=0 [ 74.089571][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 74.089582][ T5137] mode=100755 [ 74.089591][ T5137] flags=(15300000) [ 74.089600][ T5137] journal_seq=5 [ 74.089609][ T5137] hash_seed=b68791a594a6d5ae [ 74.089619][ T5137] hash_type=siphash [ 74.089628][ T5137] bi_size=9000 [ 74.089637][ T5137] bi_sectors=24 [ 74.089646][ T5137] bi_version=0 [ 74.089655][ T5137] bi_atime=2780562352 [ 74.089665][ T5137] bi_ctime=2780562352 [ 74.089674][ T5137] bi_mtime=2780562352 [ 74.089683][ T5137] bi_otime=2780562352 [ 74.089693][ T5137] bi_uid=0 [ 74.089702][ T5137] bi_gid=0 [ 74.089711][ T5137] bi_nlink=1 [ 74.089720][ T5137] bi_generation=0 [ 74.089729][ T5137] bi_dev=0 [ 74.089738][ T5137] bi_data_checksum=0 [ 74.089747][ T5137] bi_compression=0 [ 74.089757][ T5137] bi_project=0 [ 74.089766][ T5137] bi_background_compression=0 [ 74.089776][ T5137] bi_data_replicas=0 [ 74.089785][ T5137] bi_promote_target=0 [ 74.089794][ T5137] bi_foreground_target=0 [ 74.089804][ T5137] bi_background_target=0 [ 74.089813][ T5137] bi_erasure_code=0 [ 74.089823][ T5137] bi_fields_set=0 [ 74.089832][ T5137] bi_dir=4096 [ 74.089841][ T5137] bi_dir_offset=1896155912177158345 [ 74.089851][ T5137] bi_subvol=0 [ 74.089860][ T5137] bi_parent_subvol=0 [ 74.089870][ T5137] bi_nocow=0 [ 74.089878][ T5137] bi_depth=0 [ 74.089888][ T5137] bi_inodes_32bit=0 [ 74.089897][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 74.089908][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 74.089918][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 74.089928][ T5137] gen 0 oldest_gen 0 data_type free [ 74.089938][ T5137] journal_seq_nonempty 0 [ 74.089948][ T5137] journal_seq_empty 0 [ 74.089957][ T5137] need_discard 0 [ 74.089967][ T5137] need_inc_gen 0 [ 74.089983][ T5137] dirty_sectors 0 [ 74.089993][ T5137] stripe_sectors 0 [ 74.090002][ T5137] cached_sectors 0 [ 74.090012][ T5137] stripe 0 [ 74.090021][ T5137] stripe_redundancy 0 [ 74.090031][ T5137] io_time[READ] 0 [ 74.090040][ T5137] io_time[WRITE] 0 [ 74.090049][ T5137] fragmentation 0 [ 74.090059][ T5137] bp_start 8 [ 74.090068][ T5137] [ 74.090077][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 74.090088][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 74.090098][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 74.090109][ T5137] gen 0 oldest_gen 0 data_type free [ 74.090118][ T5137] journal_seq_nonempty 0 [ 74.090128][ T5137] journal_seq_empty 0 [ 74.090137][ T5137] need_discard 0 [ 74.090147][ T5137] need_inc_gen 0 [ 74.090156][ T5137] dirty_sectors 0 [ 74.090166][ T5137] stripe_sectors 0 [ 74.090175][ T5137] cached_sectors 0 [pid 5917] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5905] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5905] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5905] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5904] exit_group(0 [pid 5905] <... futex resumed>) = ? [pid 5905] +++ exited with 0 +++ [pid 5904] <... exit_group resumed>) = ? [ 74.090185][ T5137] stripe 0 [ 74.090194][ T5137] stripe_redundancy 0 [ 74.090204][ T5137] io_time[READ] 0 [ 74.090213][ T5137] io_time[WRITE] 0 [ 74.090222][ T5137] fragmentation 0 [ 74.090232][ T5137] bp_start 8 [ 74.090241][ T5137] [ 74.090250][ T5137] [ 74.678780][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 74.689447][ T9] bcachefs (loop0): finished waiting for writes to stop [pid 5917] <... futex resumed>) = ? [pid 5917] +++ exited with 0 +++ [pid 5904] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5904, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=24 /* 0.24 s */} --- umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 74.696718][ T9] bcachefs (loop0): done going read-only, filesystem not clean openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./6/binderfs") = 0 [ 74.797019][ T5822] bcachefs (loop0): shutting down [ 74.809633][ T5822] bcachefs (loop0): shutdown complete umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./6/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./6") = 0 mkdir("./7", 0777) = 0 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 5918 attached , child_tidptr=0x55557d106690) = 5918 [pid 5918] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5918] chdir("./7") = 0 [pid 5918] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5918] setpgid(0, 0) = 0 [pid 5918] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5918] write(3, "1000", 4) = 4 [pid 5918] close(3) = 0 [pid 5918] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5918] write(1, "executing program\n", 18) = 18 [pid 5918] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5918] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5918] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5918] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5918] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5918] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5918] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5919 attached [pid 5919] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5918] <... clone3 resumed> => {parent_tid=[5919]}, 88) = 5919 [pid 5919] set_robust_list(0x7f39d15339a0, 24 [pid 5918] rt_sigprocmask(SIG_SETMASK, [], [pid 5919] <... set_robust_list resumed>) = 0 [pid 5918] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5919] rt_sigprocmask(SIG_SETMASK, [], [pid 5918] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5919] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5918] <... futex resumed>) = 0 [pid 5919] memfd_create("syzkaller", 0 [pid 5918] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5919] <... memfd_create resumed>) = 3 [pid 5919] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5919] 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 5919] munmap(0x7f39c9000000, 138412032) = 0 [pid 5919] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5919] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5919] close(3) = 0 [pid 5919] close(4) = 0 [pid 5919] mkdir("./file0", 0777) = 0 [ 76.301324][ T5919] loop0: detected capacity change from 0 to 32768 [ 76.377450][ T5919] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 76.398129][ T5919] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 76.406218][ T5919] bcachefs (loop0): Version upgrade required: [ 76.406218][ T5919] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 76.406218][ T5919] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 76.406218][ T5919] 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 [ 76.477185][ T5919] bcachefs (loop0): dropping and reconstructing all alloc info [ 76.491158][ T5919] bcachefs (loop0): accounting_read... done [ 76.497538][ T5919] bcachefs (loop0): alloc_read... done [ 76.503055][ T5919] bcachefs (loop0): stripes_read... done [ 76.508853][ T5919] bcachefs (loop0): snapshots_read... done [pid 5919] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5919] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5919] chdir("./file0") = 0 [pid 5919] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5919] ioctl(4, LOOP_CLR_FD) = 0 [pid 5919] close(4) = 0 [pid 5919] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5918] <... futex resumed>) = 0 [pid 5919] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5918] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5919] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5918] <... futex resumed>) = 0 [pid 5919] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5918] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5919] <... open resumed>) = 4 [pid 5919] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5918] <... futex resumed>) = 0 [pid 5919] <... futex resumed>) = 1 [pid 5918] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5918] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [ 76.514744][ T5919] bcachefs (loop0): check_allocations... done [ 76.530865][ T5919] bcachefs (loop0): going read-write [ 76.539241][ T5919] bcachefs (loop0): done starting filesystem [ 76.572445][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 76.572464][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 76.600568][ T25] bcachefs (loop0): going read-only [ 76.605114][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [pid 5919] truncate("./file2", 2560 [pid 5918] <... futex resumed>) = -1 ETIMEDOUT (Connection timed out) [pid 5918] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5918] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5918] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5918] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5918] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5930 attached [ 76.615413][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 76.624259][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 76.624581][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 76.624610][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 76.624621][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 => {parent_tid=[5930]}, 88) = 5930 [pid 5930] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5918] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5918] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5918] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5930] <... rseq resumed>) = 0 [pid 5930] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5930] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5930] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5930] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5918] <... futex resumed>) = 0 [pid 5930] <... futex resumed>) = 1 [ 76.624632][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 76.624646][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 76.624657][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 76.624671][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 76.624685][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 76.624695][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 76.624705][ T5137] mode=100755 [ 76.624714][ T5137] flags=(15300000) [ 76.624713][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 76.624723][ T5137] journal_seq=5 [ 76.624732][ T5137] hash_seed=b68791a594a6d5ae [ 76.624741][ T5137] hash_type=siphash [ 76.624750][ T5137] bi_size=9000 [ 76.624759][ T5137] bi_sectors=24 [ 76.624768][ T5137] bi_version=0 [ 76.624776][ T5137] bi_atime=2780562352 [ 76.624784][ T5137] bi_ctime=2780562352 [ 76.624793][ T5137] bi_mtime=2780562352 [ 76.624802][ T5137] bi_otime=2780562352 [ 76.624811][ T5137] bi_uid=0 [ 76.624820][ T5137] bi_gid=0 [ 76.624828][ T5137] bi_nlink=1 [ 76.624838][ T5137] bi_generation=0 [ 76.624847][ T5137] bi_dev=0 [ 76.624856][ T5137] bi_data_checksum=0 [ 76.624865][ T5137] bi_compression=0 [ 76.624874][ T5137] bi_project=0 [ 76.624884][ T5137] bi_background_compression=0 [ 76.624893][ T5137] bi_data_replicas=0 [ 76.624902][ T5137] bi_promote_target=0 [ 76.624912][ T5137] bi_foreground_target=0 [ 76.624921][ T5137] bi_background_target=0 [ 76.624931][ T5137] bi_erasure_code=0 [ 76.624940][ T5137] bi_fields_set=0 [ 76.624949][ T5137] bi_dir=4096 [ 76.624958][ T5137] bi_dir_offset=1896155912177158345 [ 76.624968][ T5137] bi_subvol=0 [ 76.624977][ T5137] bi_parent_subvol=0 [ 76.624986][ T5137] bi_nocow=0 [ 76.624995][ T5137] bi_depth=0 [ 76.625063][ T5137] bi_inodes_32bit=0 [ 76.625073][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 76.625084][ T5137] mode=100755 [ 76.625092][ T5137] flags=(15300000) [ 76.625102][ T5137] journal_seq=5 [ 76.625111][ T5137] hash_seed=b68791a594a6d5ae [ 76.625120][ T5137] hash_type=siphash [ 76.625130][ T5137] bi_size=9000 [ 76.625139][ T5137] bi_sectors=24 [ 76.625148][ T5137] bi_version=0 [ 76.625157][ T5137] bi_atime=2780562352 [ 76.625166][ T5137] bi_ctime=2780562352 [ 76.625176][ T5137] bi_mtime=2780562352 [ 76.625185][ T5137] bi_otime=2780562352 [ 76.625194][ T5137] bi_uid=0 [ 76.625203][ T5137] bi_gid=0 [ 76.625212][ T5137] bi_nlink=1 [ 76.625221][ T5137] bi_generation=0 [ 76.625230][ T5137] bi_dev=0 [ 76.625239][ T5137] bi_data_checksum=0 [ 76.625248][ T5137] bi_compression=0 [ 76.625257][ T5137] bi_project=0 [ 76.625267][ T5137] bi_background_compression=0 [ 76.625276][ T5137] bi_data_replicas=0 [ 76.625285][ T5137] bi_promote_target=0 [ 76.625295][ T5137] bi_foreground_target=0 [ 76.625304][ T5137] bi_background_target=0 [ 76.625313][ T5137] bi_erasure_code=0 [ 76.625322][ T5137] bi_fields_set=0 [ 76.625332][ T5137] bi_dir=4096 [ 76.625341][ T5137] bi_dir_offset=1896155912177158345 [ 76.625350][ T5137] bi_subvol=0 [ 76.625359][ T5137] bi_parent_subvol=0 [ 76.625368][ T5137] bi_nocow=0 [ 76.625377][ T5137] bi_depth=0 [ 76.625386][ T5137] bi_inodes_32bit=0 [ 76.625396][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 76.625407][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 76.625417][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 76.625427][ T5137] gen 0 oldest_gen 0 data_type free [ 76.625437][ T5137] journal_seq_nonempty 0 [ 76.625446][ T5137] journal_seq_empty 0 [ 76.625455][ T5137] need_discard 0 [ 76.625465][ T5137] need_inc_gen 0 [ 76.625474][ T5137] dirty_sectors 0 [ 76.625483][ T5137] stripe_sectors 0 [ 76.625493][ T5137] cached_sectors 0 [ 76.625502][ T5137] stripe 0 [ 76.625512][ T5137] stripe_redundancy 0 [ 76.625521][ T5137] io_time[READ] 0 [ 76.625530][ T5137] io_time[WRITE] 0 [ 76.625540][ T5137] fragmentation 0 [ 76.625549][ T5137] bp_start 8 [ 76.625558][ T5137] [ 76.625567][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 76.625578][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 76.625588][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 76.625598][ T5137] gen 0 oldest_gen 0 data_type free [ 76.625608][ T5137] journal_seq_nonempty 0 [ 76.625617][ T5137] journal_seq_empty 0 [ 76.625627][ T5137] need_discard 0 [ 76.625636][ T5137] need_inc_gen 0 [ 76.625646][ T5137] dirty_sectors 0 [ 76.625655][ T5137] stripe_sectors 0 [ 76.625664][ T5137] cached_sectors 0 [ 76.625674][ T5137] stripe 0 [ 76.625683][ T5137] stripe_redundancy 0 [ 76.625692][ T5137] io_time[READ] 0 [ 76.625702][ T5137] io_time[WRITE] 0 [ 76.625711][ T5137] fragmentation 0 [ 76.625720][ T5137] bp_start 8 [ 76.625730][ T5137] [ 76.625738][ T5137] [ 76.667038][ T58] cfg80211: failed to load regulatory.db [ 76.677233][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [pid 5930] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5919] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5919] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5919] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5918] exit_group(0 [pid 5919] <... futex resumed>) = ? [pid 5918] <... exit_group resumed>) = ? [pid 5919] +++ exited with 0 +++ [pid 5930] <... futex resumed>) = ? [pid 5930] +++ exited with 0 +++ [pid 5918] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5918, si_uid=0, si_status=0, si_utime=0, si_stime=28 /* 0.28 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 [ 77.220472][ T25] bcachefs (loop0): finished waiting for writes to stop [ 77.229565][ T25] bcachefs (loop0): done going read-only, filesystem not clean umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./7/binderfs") = 0 [ 77.392044][ T5822] bcachefs (loop0): shutting down [ 77.413533][ T5822] bcachefs (loop0): shutdown complete umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./7/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./7") = 0 mkdir("./8", 0777) = 0 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 5931 attached [pid 5931] set_robust_list(0x55557d1066a0, 24 [pid 5822] <... clone resumed>, child_tidptr=0x55557d106690) = 5931 [pid 5931] <... set_robust_list resumed>) = 0 [pid 5931] chdir("./8") = 0 [pid 5931] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5931] setpgid(0, 0) = 0 [pid 5931] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5931] write(3, "1000", 4) = 4 [pid 5931] close(3) = 0 [pid 5931] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5931] write(1, "executing program\n", 18) = 18 [pid 5931] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5931] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5931] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5931] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5931] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5931] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5931] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5932 attached [pid 5932] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5931] <... clone3 resumed> => {parent_tid=[5932]}, 88) = 5932 [pid 5932] set_robust_list(0x7f39d15339a0, 24 [pid 5931] rt_sigprocmask(SIG_SETMASK, [], [pid 5932] <... set_robust_list resumed>) = 0 [pid 5931] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5932] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5931] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5932] memfd_create("syzkaller", 0 [pid 5931] <... futex resumed>) = 0 [pid 5932] <... memfd_create resumed>) = 3 [pid 5931] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5932] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5932] 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 5932] munmap(0x7f39c9000000, 138412032) = 0 [pid 5932] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5932] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5932] close(3) = 0 [pid 5932] close(4) = 0 [pid 5932] mkdir("./file0", 0777) = 0 [ 78.831256][ T5932] loop0: detected capacity change from 0 to 32768 [ 78.898737][ T5932] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 78.919495][ T5932] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 78.927624][ T5932] bcachefs (loop0): Version upgrade required: [ 78.927624][ T5932] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.927624][ T5932] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 78.927624][ T5932] 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 [ 78.998540][ T5932] bcachefs (loop0): dropping and reconstructing all alloc info [ 79.012250][ T5932] bcachefs (loop0): accounting_read... done [ 79.018398][ T5932] bcachefs (loop0): alloc_read... done [ 79.024148][ T5932] bcachefs (loop0): stripes_read... done [ 79.029854][ T5932] bcachefs (loop0): snapshots_read... done [pid 5932] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5932] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5932] chdir("./file0") = 0 [pid 5932] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5932] ioctl(4, LOOP_CLR_FD) = 0 [pid 5932] close(4) = 0 [pid 5932] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5931] <... futex resumed>) = 0 [pid 5932] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [ 79.035803][ T5932] bcachefs (loop0): check_allocations... done [ 79.051746][ T5932] bcachefs (loop0): going read-write [ 79.059659][ T5932] bcachefs (loop0): done starting filesystem [pid 5931] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5932] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5931] <... futex resumed>) = 0 [pid 5932] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5931] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5932] <... open resumed>) = 4 [pid 5932] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5931] <... futex resumed>) = 0 [pid 5931] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5932] truncate("./file2", 2560 [pid 5931] <... futex resumed>) = 0 [ 79.119098][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 79.119129][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 79.146644][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 79.156098][ T9] bcachefs (loop0): going read-only [pid 5931] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5931] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5931] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5931] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5931] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5931] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5943 attached [pid 5943] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5931] <... clone3 resumed> => {parent_tid=[5943]}, 88) = 5943 [pid 5943] <... rseq resumed>) = 0 [pid 5931] rt_sigprocmask(SIG_SETMASK, [], [pid 5943] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5931] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5943] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5931] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5943] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000 [pid 5931] <... futex resumed>) = 0 [pid 5943] <... fallocate resumed>) = -1 EROFS (Read-only file system) [pid 5931] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5943] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5931] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5943] <... futex resumed>) = 0 [ 79.162535][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 79.162563][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 79.162574][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 79.162584][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 79.162598][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 79.162609][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 79.162622][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 79.162636][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 79.162647][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 79.162658][ T5137] mode=100755 [ 79.162666][ T5137] flags=(15300000) [pid 5943] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5932] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5932] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5932] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5931] exit_group(0 [pid 5943] <... futex resumed>) = ? [pid 5932] <... futex resumed>) = ? [pid 5931] <... exit_group resumed>) = ? [pid 5943] +++ exited with 0 +++ [pid 5932] +++ exited with 0 +++ [pid 5931] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5931, si_uid=0, si_status=0, si_utime=0, si_stime=29 /* 0.29 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 79.162676][ T5137] journal_seq=5 [ 79.162685][ T5137] hash_seed=b68791a594a6d5ae [ 79.162694][ T5137] hash_type=siphash [ 79.162703][ T5137] bi_size=9000 [ 79.162712][ T5137] bi_sectors=24 [ 79.162721][ T5137] bi_version=0 [ 79.162730][ T5137] bi_atime=2780562352 [ 79.162739][ T5137] bi_ctime=2780562352 [ 79.162748][ T5137] bi_mtime=2780562352 [ 79.162758][ T5137] bi_otime=2780562352 [ 79.162767][ T5137] bi_uid=0 [ 79.162775][ T5137] bi_gid=0 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./8/binderfs") = 0 [ 79.162784][ T5137] bi_nlink=1 [ 79.162793][ T5137] bi_generation=0 [ 79.162802][ T5137] bi_dev=0 [ 79.162811][ T5137] bi_data_checksum=0 [ 79.162819][ T5137] bi_compression=0 [ 79.162836][ T5137] bi_project=0 [ 79.162845][ T5137] bi_background_compression=0 [ 79.162854][ T5137] bi_data_replicas=0 [ 79.162864][ T5137] bi_promote_target=0 [ 79.162873][ T5137] bi_foreground_target=0 [ 79.162882][ T5137] bi_background_target=0 [ 79.162891][ T5137] bi_erasure_code=0 [ 79.162900][ T5137] bi_fields_set=0 [ 79.162910][ T5137] bi_dir=4096 [ 79.162918][ T5137] bi_dir_offset=1896155912177158345 [ 79.162928][ T5137] bi_subvol=0 [ 79.162937][ T5137] bi_parent_subvol=0 [ 79.162946][ T5137] bi_nocow=0 [ 79.162955][ T5137] bi_depth=0 [ 79.162964][ T5137] bi_inodes_32bit=0 [ 79.162973][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 79.162984][ T5137] mode=100755 [ 79.162993][ T5137] flags=(15300000) [ 79.163002][ T5137] journal_seq=5 [ 79.163011][ T5137] hash_seed=b68791a594a6d5ae [ 79.163020][ T5137] hash_type=siphash [ 79.163029][ T5137] bi_size=9000 [ 79.163039][ T5137] bi_sectors=24 [ 79.163047][ T5137] bi_version=0 [ 79.163056][ T5137] bi_atime=2780562352 [ 79.163065][ T5137] bi_ctime=2780562352 [ 79.163074][ T5137] bi_mtime=2780562352 [ 79.163084][ T5137] bi_otime=2780562352 [ 79.163093][ T5137] bi_uid=0 [ 79.163101][ T5137] bi_gid=0 [ 79.163111][ T5137] bi_nlink=1 [ 79.163119][ T5137] bi_generation=0 [ 79.163128][ T5137] bi_dev=0 [ 79.163137][ T5137] bi_data_checksum=0 [ 79.163146][ T5137] bi_compression=0 [ 79.163155][ T5137] bi_project=0 [ 79.163164][ T5137] bi_background_compression=0 [ 79.163173][ T5137] bi_data_replicas=0 [ 79.163183][ T5137] bi_promote_target=0 [ 79.163192][ T5137] bi_foreground_target=0 [ 79.163201][ T5137] bi_background_target=0 [ 79.163210][ T5137] bi_erasure_code=0 [ 79.163219][ T5137] bi_fields_set=0 [ 79.163228][ T5137] bi_dir=4096 [ 79.163238][ T5137] bi_dir_offset=1896155912177158345 [ 79.163247][ T5137] bi_subvol=0 [ 79.163256][ T5137] bi_parent_subvol=0 [ 79.163265][ T5137] bi_nocow=0 [ 79.163274][ T5137] bi_depth=0 [ 79.163283][ T5137] bi_inodes_32bit=0 [ 79.163292][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 79.163303][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 79.163313][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 79.163323][ T5137] gen 0 oldest_gen 0 data_type free [ 79.163332][ T5137] journal_seq_nonempty 0 [ 79.163342][ T5137] journal_seq_empty 0 [ 79.163351][ T5137] need_discard 0 [ 79.163360][ T5137] need_inc_gen 0 [ 79.163369][ T5137] dirty_sectors 0 [ 79.163378][ T5137] stripe_sectors 0 [ 79.163388][ T5137] cached_sectors 0 [ 79.163397][ T5137] stripe 0 [ 79.163406][ T5137] stripe_redundancy 0 [ 79.163416][ T5137] io_time[READ] 0 [ 79.163425][ T5137] io_time[WRITE] 0 [ 79.163434][ T5137] fragmentation 0 [ 79.163443][ T5137] bp_start 8 [ 79.163452][ T5137] [ 79.163461][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 79.163472][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 79.163481][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 79.163492][ T5137] gen 0 oldest_gen 0 data_type free [ 79.163501][ T5137] journal_seq_nonempty 0 [ 79.163510][ T5137] journal_seq_empty 0 [ 79.163520][ T5137] need_discard 0 [ 79.163529][ T5137] need_inc_gen 0 [ 79.163538][ T5137] dirty_sectors 0 [ 79.163548][ T5137] stripe_sectors 0 [ 79.163556][ T5137] cached_sectors 0 [ 79.163566][ T5137] stripe 0 [ 79.163575][ T5137] stripe_redundancy 0 [ 79.163584][ T5137] io_time[READ] 0 [ 79.163594][ T5137] io_time[WRITE] 0 [ 79.163603][ T5137] fragmentation 0 [ 79.163612][ T5137] bp_start 8 [ 79.163621][ T5137] [ 79.163630][ T5137] [ 79.229400][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 79.246332][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 79.254403][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 79.752768][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 79.761511][ T5822] bcachefs (loop0): shutting down [ 79.761949][ T9] bcachefs (loop0): finished waiting for writes to stop [ 79.773527][ T9] bcachefs (loop0): done going read-only, filesystem not clean [ 79.788737][ T5822] bcachefs (loop0): shutdown complete umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./8/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./8") = 0 mkdir("./9", 0777) = 0 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 5944 attached , child_tidptr=0x55557d106690) = 5944 [pid 5944] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5944] chdir("./9") = 0 [pid 5944] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5944] setpgid(0, 0) = 0 [pid 5944] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5944] write(3, "1000", 4) = 4 [pid 5944] close(3) = 0 [pid 5944] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5944] write(1, "executing program\n", 18) = 18 [pid 5944] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5944] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5944] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5944] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5944] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5944] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5944] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5945 attached [pid 5945] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053 [pid 5944] <... clone3 resumed> => {parent_tid=[5945]}, 88) = 5945 [pid 5945] <... rseq resumed>) = 0 [pid 5944] rt_sigprocmask(SIG_SETMASK, [], [pid 5945] set_robust_list(0x7f39d15339a0, 24 [pid 5944] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5945] <... set_robust_list resumed>) = 0 [pid 5944] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5945] rt_sigprocmask(SIG_SETMASK, [], [pid 5944] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5945] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5945] memfd_create("syzkaller", 0) = 3 [pid 5945] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5945] 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 5945] munmap(0x7f39c9000000, 138412032) = 0 [pid 5945] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5945] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5945] close(3) = 0 [pid 5945] close(4) = 0 [pid 5945] mkdir("./file0", 0777) = 0 [ 81.170310][ T5945] loop0: detected capacity change from 0 to 32768 [ 81.234973][ T5945] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 81.256113][ T5945] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 81.264085][ T5945] bcachefs (loop0): Version upgrade required: [ 81.264085][ T5945] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 81.264085][ T5945] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 81.264085][ T5945] 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 [ 81.335461][ T5945] bcachefs (loop0): dropping and reconstructing all alloc info [ 81.349298][ T5945] bcachefs (loop0): accounting_read... done [ 81.355459][ T5945] bcachefs (loop0): alloc_read... done [ 81.360963][ T5945] bcachefs (loop0): stripes_read... done [ 81.366657][ T5945] bcachefs (loop0): snapshots_read... done [pid 5945] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5945] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5945] chdir("./file0") = 0 [pid 5945] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5945] ioctl(4, LOOP_CLR_FD) = 0 [pid 5945] close(4) = 0 [pid 5945] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5944] <... futex resumed>) = 0 [pid 5945] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5944] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5945] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5944] <... futex resumed>) = 0 [pid 5945] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5944] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5945] <... open resumed>) = 4 [pid 5945] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5944] <... futex resumed>) = 0 [pid 5945] <... futex resumed>) = 1 [pid 5944] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5945] truncate("./file2", 2560 [pid 5944] <... futex resumed>) = 0 [ 81.372550][ T5945] bcachefs (loop0): check_allocations... done [ 81.388515][ T5945] bcachefs (loop0): going read-write [ 81.396382][ T5945] bcachefs (loop0): done starting filesystem [ 81.427042][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 81.427060][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 81.454913][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 81.464766][ T9] bcachefs (loop0): going read-only [pid 5944] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5944] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5944] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5944] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5944] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5944] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0} => {parent_tid=[5956]}, 88) = 5956 [pid 5944] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 ./strace-static-x86_64: Process 5956 attached [pid 5944] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5956] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5944] <... futex resumed>) = 0 [pid 5944] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5956] <... rseq resumed>) = 0 [pid 5956] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5956] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5956] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5956] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5944] <... futex resumed>) = 0 [ 81.470696][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 81.470724][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 81.470734][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 81.470745][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 81.470759][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 81.470770][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 81.470784][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 81.470798][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 81.470809][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 81.470819][ T5137] mode=100755 [ 81.470828][ T5137] flags=(15300000) [ 81.470837][ T5137] journal_seq=5 [ 81.470846][ T5137] hash_seed=b68791a594a6d5ae [ 81.470855][ T5137] hash_type=siphash [ 81.470864][ T5137] bi_size=9000 [ 81.470873][ T5137] bi_sectors=24 [ 81.470882][ T5137] bi_version=0 [ 81.470889][ T5137] bi_atime=2780562352 [ 81.470898][ T5137] bi_ctime=2780562352 [ 81.470906][ T5137] bi_mtime=2780562352 [ 81.470915][ T5137] bi_otime=2780562352 [ 81.470923][ T5137] bi_uid=0 [ 81.470931][ T5137] bi_gid=0 [ 81.470940][ T5137] bi_nlink=1 [ 81.470949][ T5137] bi_generation=0 [ 81.470958][ T5137] bi_dev=0 [ 81.470967][ T5137] bi_data_checksum=0 [ 81.470975][ T5137] bi_compression=0 [ 81.470984][ T5137] bi_project=0 [ 81.470993][ T5137] bi_background_compression=0 [ 81.471002][ T5137] bi_data_replicas=0 [ 81.471011][ T5137] bi_promote_target=0 [ 81.471020][ T5137] bi_foreground_target=0 [ 81.471029][ T5137] bi_background_target=0 [ 81.471039][ T5137] bi_erasure_code=0 [ 81.471043][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 81.471048][ T5137] bi_fields_set=0 [ 81.471057][ T5137] bi_dir=4096 [ 81.471065][ T5137] bi_dir_offset=1896155912177158345 [ 81.471075][ T5137] bi_subvol=0 [ 81.471084][ T5137] bi_parent_subvol=0 [ 81.471094][ T5137] bi_nocow=0 [ 81.471103][ T5137] bi_depth=0 [ 81.471112][ T5137] bi_inodes_32bit=0 [ 81.471115][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 81.471122][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 81.471133][ T5137] mode=100755 [ 81.471142][ T5137] flags=(15300000) [ 81.471151][ T5137] journal_seq=5 [ 81.471159][ T5137] hash_seed=b68791a594a6d5ae [ 81.471167][ T5137] hash_type=siphash [ 81.471176][ T5137] bi_size=9000 [ 81.471184][ T5137] bi_sectors=24 [ 81.471192][ T5137] bi_version=0 [ 81.471201][ T5137] bi_atime=2780562352 [ 81.471209][ T5137] bi_ctime=2780562352 [ 81.471218][ T5137] bi_mtime=2780562352 [ 81.471227][ T5137] bi_otime=2780562352 [ 81.471237][ T5137] bi_uid=0 [ 81.471246][ T5137] bi_gid=0 [ 81.471255][ T5137] bi_nlink=1 [ 81.471263][ T5137] bi_generation=0 [ 81.471272][ T5137] bi_dev=0 [ 81.471281][ T5137] bi_data_checksum=0 [ 81.471290][ T5137] bi_compression=0 [ 81.471299][ T5137] bi_project=0 [ 81.471308][ T5137] bi_background_compression=0 [ 81.471318][ T5137] bi_data_replicas=0 [ 81.471327][ T5137] bi_promote_target=0 [ 81.471337][ T5137] bi_foreground_target=0 [ 81.471346][ T5137] bi_background_target=0 [ 81.471356][ T5137] bi_erasure_code=0 [ 81.471364][ T5137] bi_fields_set=0 [ 81.471373][ T5137] bi_dir=4096 [ 81.471382][ T5137] bi_dir_offset=1896155912177158345 [ 81.471392][ T5137] bi_subvol=0 [ 81.471401][ T5137] bi_parent_subvol=0 [ 81.471410][ T5137] bi_nocow=0 [ 81.471418][ T5137] bi_depth=0 [ 81.471427][ T5137] bi_inodes_32bit=0 [ 81.471436][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 81.471447][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 81.471457][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 81.471468][ T5137] gen 0 oldest_gen 0 data_type free [ 81.471478][ T5137] journal_seq_nonempty 0 [ 81.471487][ T5137] journal_seq_empty 0 [ 81.471496][ T5137] need_discard 0 [ 81.471505][ T5137] need_inc_gen 0 [ 81.471514][ T5137] dirty_sectors 0 [ 81.471522][ T5137] stripe_sectors 0 [ 81.471522][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 81.471531][ T5137] cached_sectors 0 [ 81.471541][ T5137] stripe 0 [ 81.471550][ T5137] stripe_redundancy 0 [ 81.471559][ T5137] io_time[READ] 0 [ 81.471568][ T5137] io_time[WRITE] 0 [ 81.471577][ T5137] fragmentation 0 [ 81.471586][ T5137] bp_start 8 [ 81.471595][ T5137] [ 81.471603][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 81.471614][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 81.471624][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 81.471635][ T5137] gen 0 oldest_gen 0 data_type free [ 81.471645][ T5137] journal_seq_nonempty 0 [ 81.471654][ T5137] journal_seq_empty 0 [ 81.471669][ T5137] need_discard 0 [ 81.471679][ T5137] need_inc_gen 0 [ 81.471688][ T5137] dirty_sectors 0 [ 81.471697][ T5137] stripe_sectors 0 [ 81.471707][ T5137] cached_sectors 0 [pid 5956] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5945] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5945] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [ 81.471716][ T5137] stripe 0 [ 81.471726][ T5137] stripe_redundancy 0 [ 81.471735][ T5137] io_time[READ] 0 [ 81.471745][ T5137] io_time[WRITE] 0 [ 81.471754][ T5137] fragmentation 0 [ 81.471764][ T5137] bp_start 8 [ 81.471773][ T5137] [ 81.471781][ T5137] [ 82.059801][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 82.070455][ T9] bcachefs (loop0): finished waiting for writes to stop [pid 5945] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5944] exit_group(0 [pid 5956] <... futex resumed>) = ? [pid 5945] <... futex resumed>) = ? [pid 5944] <... exit_group resumed>) = ? [pid 5956] +++ exited with 0 +++ [pid 5945] +++ exited with 0 +++ [pid 5944] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5944, si_uid=0, si_status=0, si_utime=1 /* 0.01 s */, si_stime=24 /* 0.24 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 82.078414][ T9] bcachefs (loop0): done going read-only, filesystem not clean newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./9/binderfs") = 0 [ 82.233449][ T5822] bcachefs (loop0): shutting down [ 82.246278][ T5822] bcachefs (loop0): shutdown complete umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./9/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./9") = 0 mkdir("./10", 0777) = 0 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 5957 attached , child_tidptr=0x55557d106690) = 5957 [pid 5957] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5957] chdir("./10") = 0 [pid 5957] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5957] setpgid(0, 0) = 0 [pid 5957] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5957] write(3, "1000", 4) = 4 [pid 5957] close(3) = 0 [pid 5957] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5957] write(1, "executing program\n", 18) = 18 [pid 5957] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5957] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5957] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5957] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5957] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5957] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5957] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5958 attached [pid 5958] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5957] <... clone3 resumed> => {parent_tid=[5958]}, 88) = 5958 [pid 5958] set_robust_list(0x7f39d15339a0, 24 [pid 5957] rt_sigprocmask(SIG_SETMASK, [], [pid 5958] <... set_robust_list resumed>) = 0 [pid 5958] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5958] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5957] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5957] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5958] <... futex resumed>) = 0 [pid 5957] <... futex resumed>) = 1 [pid 5957] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5958] memfd_create("syzkaller", 0) = 3 [pid 5958] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5958] 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 5958] munmap(0x7f39c9000000, 138412032) = 0 [pid 5958] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5958] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5958] close(3) = 0 [pid 5958] close(4) = 0 [pid 5958] mkdir("./file0", 0777) = 0 [ 83.719769][ T5958] loop0: detected capacity change from 0 to 32768 [ 83.771716][ T5958] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 83.792536][ T5958] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 83.800653][ T5958] bcachefs (loop0): Version upgrade required: [ 83.800653][ T5958] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 83.800653][ T5958] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 83.800653][ T5958] 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 [ 83.871682][ T5958] bcachefs (loop0): dropping and reconstructing all alloc info [ 83.885651][ T5958] bcachefs (loop0): accounting_read... done [ 83.891729][ T5958] bcachefs (loop0): alloc_read... done [ 83.897319][ T5958] bcachefs (loop0): stripes_read... done [ 83.902996][ T5958] bcachefs (loop0): snapshots_read... done [pid 5958] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5958] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5958] chdir("./file0") = 0 [pid 5958] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5958] ioctl(4, LOOP_CLR_FD) = 0 [pid 5958] close(4) = 0 [ 83.909015][ T5958] bcachefs (loop0): check_allocations... done [ 83.925200][ T5958] bcachefs (loop0): going read-write [ 83.932991][ T5958] bcachefs (loop0): done starting filesystem [pid 5958] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5957] <... futex resumed>) = 0 [pid 5958] <... futex resumed>) = 1 [pid 5957] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5958] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5957] <... futex resumed>) = 0 [pid 5957] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5958] <... open resumed>) = 4 [pid 5958] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5957] <... futex resumed>) = 0 [pid 5958] truncate("./file2", 2560 [pid 5957] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [ 84.010009][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 84.010028][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 84.037284][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 84.046651][ T9] bcachefs (loop0): going read-only [pid 5957] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5957] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [ 84.051940][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 84.052064][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 84.052078][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 84.052089][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 84.052102][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [pid 5957] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5957] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5957] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5957] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0} => {parent_tid=[5969]}, 88) = 5969 ./strace-static-x86_64: Process 5969 attached [pid 5957] rt_sigprocmask(SIG_SETMASK, [], [pid 5969] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5957] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5969] <... rseq resumed>) = 0 [pid 5957] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5969] set_robust_list(0x7f39d15129a0, 24 [pid 5957] <... futex resumed>) = 0 [pid 5969] <... set_robust_list resumed>) = 0 [pid 5969] rt_sigprocmask(SIG_SETMASK, [], [pid 5957] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5969] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5969] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [ 84.052113][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 84.052126][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 84.052140][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 84.052150][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 84.052159][ T5137] mode=100755 [ 84.052167][ T5137] flags=(15300000) [pid 5969] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5969] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5957] <... futex resumed>) = 0 [ 84.052175][ T5137] journal_seq=5 [ 84.052183][ T5137] hash_seed=b68791a594a6d5ae [ 84.052192][ T5137] hash_type=siphash [ 84.052200][ T5137] bi_size=9000 [ 84.052208][ T5137] bi_sectors=24 [ 84.052216][ T5137] bi_version=0 [ 84.052232][ T5137] bi_atime=2780562352 [ 84.052241][ T5137] bi_ctime=2780562352 [ 84.052250][ T5137] bi_mtime=2780562352 [ 84.052257][ T5137] bi_otime=2780562352 [ 84.052266][ T5137] bi_uid=0 [ 84.052275][ T5137] bi_gid=0 [ 84.052284][ T5137] bi_nlink=1 [ 84.052293][ T5137] bi_generation=0 [ 84.052301][ T5137] bi_dev=0 [ 84.052310][ T5137] bi_data_checksum=0 [ 84.052318][ T5137] bi_compression=0 [ 84.052326][ T5137] bi_project=0 [ 84.052335][ T5137] bi_background_compression=0 [ 84.052344][ T5137] bi_data_replicas=0 [ 84.052353][ T5137] bi_promote_target=0 [ 84.052361][ T5137] bi_foreground_target=0 [ 84.052370][ T5137] bi_background_target=0 [ 84.052379][ T5137] bi_erasure_code=0 [ 84.052388][ T5137] bi_fields_set=0 [ 84.052396][ T5137] bi_dir=4096 [ 84.052405][ T5137] bi_dir_offset=1896155912177158345 [ 84.052414][ T5137] bi_subvol=0 [ 84.052423][ T5137] bi_parent_subvol=0 [ 84.052432][ T5137] bi_nocow=0 [ 84.052434][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 84.052440][ T5137] bi_depth=0 [ 84.052451][ T5137] bi_inodes_32bit=0 [ 84.052460][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 84.052470][ T5137] mode=100755 [ 84.052478][ T5137] flags=(15300000) [ 84.052488][ T5137] journal_seq=5 [ 84.052497][ T5137] hash_seed=b68791a594a6d5ae [ 84.052507][ T5137] hash_type=siphash [ 84.052513][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 84.052516][ T5137] bi_size=9000 [ 84.052525][ T5137] bi_sectors=24 [ 84.052534][ T5137] bi_version=0 [ 84.052543][ T5137] bi_atime=2780562352 [ 84.052552][ T5137] bi_ctime=2780562352 [ 84.052561][ T5137] bi_mtime=2780562352 [ 84.052570][ T5137] bi_otime=2780562352 [ 84.052579][ T5137] bi_uid=0 [ 84.052588][ T5137] bi_gid=0 [ 84.052596][ T5137] bi_nlink=1 [ 84.052605][ T5137] bi_generation=0 [ 84.052614][ T5137] bi_dev=0 [ 84.052623][ T5137] bi_data_checksum=0 [ 84.052633][ T5137] bi_compression=0 [ 84.052642][ T5137] bi_project=0 [ 84.052650][ T5137] bi_background_compression=0 [ 84.052659][ T5137] bi_data_replicas=0 [ 84.052667][ T5137] bi_promote_target=0 [ 84.052676][ T5137] bi_foreground_target=0 [ 84.052685][ T5137] bi_background_target=0 [ 84.052695][ T5137] bi_erasure_code=0 [ 84.052704][ T5137] bi_fields_set=0 [ 84.052713][ T5137] bi_dir=4096 [ 84.052722][ T5137] bi_dir_offset=1896155912177158345 [ 84.052731][ T5137] bi_subvol=0 [ 84.052740][ T5137] bi_parent_subvol=0 [ 84.052750][ T5137] bi_nocow=0 [ 84.052759][ T5137] bi_depth=0 [ 84.052767][ T5137] bi_inodes_32bit=0 [ 84.052777][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 84.052787][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 84.052796][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 84.052799][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 84.052807][ T5137] gen 0 oldest_gen 0 data_type free [ 84.052816][ T5137] journal_seq_nonempty 0 [ 84.052825][ T5137] journal_seq_empty 0 [ 84.052834][ T5137] need_discard 0 [ 84.052844][ T5137] need_inc_gen 0 [ 84.052853][ T5137] dirty_sectors 0 [ 84.052862][ T5137] stripe_sectors 0 [ 84.052871][ T5137] cached_sectors 0 [ 84.052880][ T5137] stripe 0 [ 84.052889][ T5137] stripe_redundancy 0 [ 84.052898][ T5137] io_time[READ] 0 [ 84.052908][ T5137] io_time[WRITE] 0 [ 84.052917][ T5137] fragmentation 0 [ 84.052927][ T5137] bp_start 8 [ 84.052936][ T5137] [ 84.052945][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 84.052956][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 84.052966][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 84.052976][ T5137] gen 0 oldest_gen 0 data_type free [ 84.052986][ T5137] journal_seq_nonempty 0 [ 84.052995][ T5137] journal_seq_empty 0 [ 84.053005][ T5137] need_discard 0 [ 84.053015][ T5137] need_inc_gen 0 [ 84.053024][ T5137] dirty_sectors 0 [ 84.053034][ T5137] stripe_sectors 0 [ 84.053043][ T5137] cached_sectors 0 [ 84.053053][ T5137] stripe 0 [ 84.053062][ T5137] stripe_redundancy 0 [ 84.053072][ T5137] io_time[READ] 0 [ 84.053081][ T5137] io_time[WRITE] 0 [ 84.053091][ T5137] fragmentation 0 [ 84.053100][ T5137] bp_start 8 [ 84.053109][ T5137] [ 84.053118][ T5137] [ 84.641929][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 84.652564][ T9] bcachefs (loop0): finished waiting for writes to stop [pid 5958] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5958] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5957] exit_group(0 [pid 5958] <... futex resumed>) = 0 [pid 5958] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5969] <... futex resumed>) = ? [pid 5958] <... futex resumed>) = ? [pid 5957] <... exit_group resumed>) = ? [pid 5969] +++ exited with 0 +++ [pid 5958] +++ exited with 0 +++ [pid 5957] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5957, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=24 /* 0.24 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 [ 84.659546][ T9] bcachefs (loop0): done going read-only, filesystem not clean umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./10/binderfs") = 0 [ 84.826467][ T5822] bcachefs (loop0): shutting down [ 84.839369][ T5822] bcachefs (loop0): shutdown complete umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./10/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./10") = 0 mkdir("./11", 0777) = 0 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 5970 attached , child_tidptr=0x55557d106690) = 5970 [pid 5970] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5970] chdir("./11") = 0 [pid 5970] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5970] setpgid(0, 0) = 0 [pid 5970] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5970] write(3, "1000", 4) = 4 [pid 5970] close(3) = 0 [pid 5970] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5970] write(1, "executing program\n", 18executing program ) = 18 [pid 5970] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5970] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5970] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5970] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5970] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5970] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5970] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5971 attached [pid 5971] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5971] set_robust_list(0x7f39d15339a0, 24) = 0 [pid 5970] <... clone3 resumed> => {parent_tid=[5971]}, 88) = 5971 [pid 5971] rt_sigprocmask(SIG_SETMASK, [], [pid 5970] rt_sigprocmask(SIG_SETMASK, [], [pid 5971] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5970] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5971] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5970] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5971] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5970] <... futex resumed>) = 0 [pid 5971] memfd_create("syzkaller", 0 [pid 5970] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5971] <... memfd_create resumed>) = 3 [pid 5971] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5971] 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 5971] munmap(0x7f39c9000000, 138412032) = 0 [pid 5971] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5971] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5971] close(3) = 0 [pid 5971] close(4) = 0 [pid 5971] mkdir("./file0", 0777) = 0 [ 86.286811][ T5971] loop0: detected capacity change from 0 to 32768 [ 86.352740][ T5971] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 86.373735][ T5971] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 86.381852][ T5971] bcachefs (loop0): Version upgrade required: [ 86.381852][ T5971] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 86.381852][ T5971] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 86.381852][ T5971] 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 [ 86.452713][ T5971] bcachefs (loop0): dropping and reconstructing all alloc info [ 86.466699][ T5971] bcachefs (loop0): accounting_read... done [ 86.472761][ T5971] bcachefs (loop0): alloc_read... done [ 86.478320][ T5971] bcachefs (loop0): stripes_read... done [ 86.483998][ T5971] bcachefs (loop0): snapshots_read... done [pid 5971] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5971] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5971] chdir("./file0") = 0 [pid 5971] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5971] ioctl(4, LOOP_CLR_FD) = 0 [pid 5971] close(4) = 0 [pid 5971] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5971] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5970] <... futex resumed>) = 0 [pid 5970] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5971] <... futex resumed>) = 0 [pid 5970] <... futex resumed>) = 1 [pid 5971] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5970] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5971] <... open resumed>) = 4 [pid 5971] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5970] <... futex resumed>) = 0 [pid 5971] <... futex resumed>) = 1 [pid 5970] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5971] truncate("./file2", 2560 [pid 5970] <... futex resumed>) = 0 [ 86.489915][ T5971] bcachefs (loop0): check_allocations... done [ 86.505979][ T5971] bcachefs (loop0): going read-write [ 86.513769][ T5971] bcachefs (loop0): done starting filesystem [ 86.543787][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 86.543807][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 86.571422][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 86.580790][ T25] bcachefs (loop0): going read-only [pid 5970] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5970] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5970] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5970] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5970] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5970] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5982 attached [pid 5982] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [pid 5982] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5982] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [ 86.586684][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 86.586711][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 86.586718][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 86.586724][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 86.586732][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [pid 5982] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5971] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5970] <... clone3 resumed> => {parent_tid=[5982]}, 88) = 5982 [pid 5971] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5970] rt_sigprocmask(SIG_SETMASK, [], [pid 5971] <... futex resumed>) = 0 [pid 5970] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5971] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5970] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5970] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5982] <... futex resumed>) = 0 [pid 5982] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5982] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5982] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5970] <... futex resumed>) = 0 [pid 5970] exit_group(0 [pid 5982] <... futex resumed>) = ? [pid 5970] <... exit_group resumed>) = ? [pid 5982] +++ exited with 0 +++ [pid 5971] <... futex resumed>) = ? [pid 5971] +++ exited with 0 +++ [pid 5970] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5970, si_uid=0, si_status=0, si_utime=1 /* 0.01 s */, si_stime=22 /* 0.22 s */} --- [ 86.586738][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 86.586746][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 86.586753][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 86.586759][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 86.586765][ T5137] mode=100755 umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./11/binderfs") = 0 [ 86.586770][ T5137] flags=(15300000) [ 86.586775][ T5137] journal_seq=5 [ 86.586780][ T5137] hash_seed=b68791a594a6d5ae [ 86.586785][ T5137] hash_type=siphash [ 86.586790][ T5137] bi_size=9000 [ 86.586795][ T5137] bi_sectors=24 [ 86.586800][ T5137] bi_version=0 [ 86.586805][ T5137] bi_atime=2780562352 [ 86.586810][ T5137] bi_ctime=2780562352 [ 86.586815][ T5137] bi_mtime=2780562352 [ 86.586820][ T5137] bi_otime=2780562352 [ 86.586825][ T5137] bi_uid=0 [ 86.586830][ T5137] bi_gid=0 [ 86.586834][ T5137] bi_nlink=1 [ 86.586839][ T5137] bi_generation=0 [ 86.586844][ T5137] bi_dev=0 [ 86.586849][ T5137] bi_data_checksum=0 [ 86.586854][ T5137] bi_compression=0 [ 86.586859][ T5137] bi_project=0 [ 86.586864][ T5137] bi_background_compression=0 [ 86.586869][ T5137] bi_data_replicas=0 [ 86.586874][ T5137] bi_promote_target=0 [ 86.586879][ T5137] bi_foreground_target=0 [ 86.586884][ T5137] bi_background_target=0 [ 86.586889][ T5137] bi_erasure_code=0 [ 86.586894][ T5137] bi_fields_set=0 [ 86.586899][ T5137] bi_dir=4096 [ 86.586903][ T5137] bi_dir_offset=1896155912177158345 [ 86.586909][ T5137] bi_subvol=0 [ 86.586913][ T5137] bi_parent_subvol=0 [ 86.586918][ T5137] bi_nocow=0 [ 86.586923][ T5137] bi_depth=0 [ 86.586928][ T5137] bi_inodes_32bit=0 [ 86.586933][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 86.586939][ T5137] mode=100755 [ 86.586943][ T5137] flags=(15300000) [ 86.586948][ T5137] journal_seq=5 [ 86.586953][ T5137] hash_seed=b68791a594a6d5ae [ 86.586958][ T5137] hash_type=siphash [ 86.586963][ T5137] bi_size=9000 [ 86.586968][ T5137] bi_sectors=24 [ 86.586973][ T5137] bi_version=0 [ 86.586978][ T5137] bi_atime=2780562352 [ 86.586983][ T5137] bi_ctime=2780562352 [ 86.586988][ T5137] bi_mtime=2780562352 [ 86.586993][ T5137] bi_otime=2780562352 [ 86.586998][ T5137] bi_uid=0 [ 86.587002][ T5137] bi_gid=0 [ 86.587007][ T5137] bi_nlink=1 [ 86.587012][ T5137] bi_generation=0 [ 86.587017][ T5137] bi_dev=0 [ 86.587021][ T5137] bi_data_checksum=0 [ 86.587026][ T5137] bi_compression=0 [ 86.587031][ T5137] bi_project=0 [ 86.587036][ T5137] bi_background_compression=0 [ 86.587041][ T5137] bi_data_replicas=0 [ 86.587046][ T5137] bi_promote_target=0 [ 86.587051][ T5137] bi_foreground_target=0 [ 86.587057][ T5137] bi_background_target=0 [ 86.587064][ T5137] bi_erasure_code=0 [ 86.587069][ T5137] bi_fields_set=0 [ 86.587074][ T5137] bi_dir=4096 [ 86.587078][ T5137] bi_dir_offset=1896155912177158345 [ 86.587084][ T5137] bi_subvol=0 [ 86.587088][ T5137] bi_parent_subvol=0 [ 86.587093][ T5137] bi_nocow=0 [ 86.587098][ T5137] bi_depth=0 [ 86.587103][ T5137] bi_inodes_32bit=0 [ 86.587108][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 86.587114][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 86.587119][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 86.587125][ T5137] gen 0 oldest_gen 0 data_type free [ 86.587130][ T5137] journal_seq_nonempty 0 [ 86.587135][ T5137] journal_seq_empty 0 [ 86.587140][ T5137] need_discard 0 [ 86.587145][ T5137] need_inc_gen 0 [ 86.587150][ T5137] dirty_sectors 0 [ 86.587155][ T5137] stripe_sectors 0 [ 86.587160][ T5137] cached_sectors 0 [ 86.587165][ T5137] stripe 0 [ 86.587170][ T5137] stripe_redundancy 0 [ 86.587175][ T5137] io_time[READ] 0 [ 86.587180][ T5137] io_time[WRITE] 0 [ 86.587185][ T5137] fragmentation 0 [ 86.587190][ T5137] bp_start 8 [ 86.587195][ T5137] [ 86.587199][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 86.587205][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 86.587211][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 86.587217][ T5137] gen 0 oldest_gen 0 data_type free [ 86.587222][ T5137] journal_seq_nonempty 0 [ 86.587227][ T5137] journal_seq_empty 0 [ 86.587232][ T5137] need_discard 0 [ 86.587237][ T5137] need_inc_gen 0 [ 86.587242][ T5137] dirty_sectors 0 [ 86.587247][ T5137] stripe_sectors 0 [ 86.587252][ T5137] cached_sectors 0 [ 86.587257][ T5137] stripe 0 [ 86.587262][ T5137] stripe_redundancy 0 [ 86.587267][ T5137] io_time[READ] 0 [ 86.587272][ T5137] io_time[WRITE] 0 [ 86.587277][ T5137] fragmentation 0 [ 86.587282][ T5137] bp_start 8 [ 86.587286][ T5137] [ 86.587291][ T5137] [ 86.614731][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 86.632030][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 86.645148][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 87.180761][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 87.180961][ T5822] bcachefs (loop0): shutting down [ 87.189201][ T25] bcachefs (loop0): finished waiting for writes to stop [ 87.200262][ T25] bcachefs (loop0): done going read-only, filesystem not clean [ 87.216085][ T5822] bcachefs (loop0): shutdown complete umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./11/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./11") = 0 mkdir("./12", 0777) = 0 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 5983 attached [pid 5983] set_robust_list(0x55557d1066a0, 24 [pid 5822] <... clone resumed>, child_tidptr=0x55557d106690) = 5983 [pid 5983] <... set_robust_list resumed>) = 0 [pid 5983] chdir("./12") = 0 [pid 5983] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5983] setpgid(0, 0) = 0 [pid 5983] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5983] write(3, "1000", 4) = 4 [pid 5983] close(3) = 0 [pid 5983] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5983] write(1, "executing program\n", 18executing program ) = 18 [pid 5983] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5983] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5983] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5983] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5983] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5983] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5983] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5984 attached [pid 5984] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053) = 0 [pid 5983] <... clone3 resumed> => {parent_tid=[5984]}, 88) = 5984 [pid 5984] set_robust_list(0x7f39d15339a0, 24 [pid 5983] rt_sigprocmask(SIG_SETMASK, [], [pid 5984] <... set_robust_list resumed>) = 0 [pid 5983] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5984] rt_sigprocmask(SIG_SETMASK, [], [pid 5983] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5984] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5983] <... futex resumed>) = 0 [pid 5983] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5984] memfd_create("syzkaller", 0) = 3 [pid 5984] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5984] 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 5984] munmap(0x7f39c9000000, 138412032) = 0 [pid 5984] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5984] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5984] close(3) = 0 [pid 5984] close(4) = 0 [pid 5984] mkdir("./file0", 0777) = 0 [ 88.660233][ T5984] loop0: detected capacity change from 0 to 32768 [ 88.726775][ T5984] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 88.747704][ T5984] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 88.755778][ T5984] bcachefs (loop0): Version upgrade required: [ 88.755778][ T5984] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 88.755778][ T5984] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 88.755778][ T5984] 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 [ 88.826849][ T5984] bcachefs (loop0): dropping and reconstructing all alloc info [ 88.840609][ T5984] bcachefs (loop0): accounting_read... done [ 88.846900][ T5984] bcachefs (loop0): alloc_read... done [ 88.852405][ T5984] bcachefs (loop0): stripes_read... done [ 88.858115][ T5984] bcachefs (loop0): snapshots_read... done [pid 5984] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5984] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5984] chdir("./file0") = 0 [pid 5984] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5984] ioctl(4, LOOP_CLR_FD) = 0 [ 88.864011][ T5984] bcachefs (loop0): check_allocations... done [ 88.880093][ T5984] bcachefs (loop0): going read-write [ 88.888423][ T5984] bcachefs (loop0): done starting filesystem [pid 5984] close(4) = 0 [pid 5984] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5983] <... futex resumed>) = 0 [pid 5984] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5983] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5984] <... futex resumed>) = 0 [pid 5983] <... futex resumed>) = 1 [pid 5984] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5983] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5984] <... open resumed>) = 4 [pid 5984] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5983] <... futex resumed>) = 0 [pid 5984] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5983] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5984] <... futex resumed>) = 0 [pid 5983] <... futex resumed>) = 1 [pid 5984] truncate("./file2", 2560 [ 88.969778][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 88.969798][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 88.997158][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 89.006505][ T25] bcachefs (loop0): going read-only [pid 5983] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [pid 5983] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5983] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5983] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5983] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5983] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 5995 attached [pid 5995] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053 [pid 5983] <... clone3 resumed> => {parent_tid=[5995]}, 88) = 5995 [pid 5995] <... rseq resumed>) = 0 [pid 5983] rt_sigprocmask(SIG_SETMASK, [], [pid 5995] set_robust_list(0x7f39d15129a0, 24) = 0 [pid 5983] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5995] rt_sigprocmask(SIG_SETMASK, [], [pid 5983] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5995] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5983] <... futex resumed>) = 0 [pid 5995] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000) = -1 EROFS (Read-only file system) [pid 5983] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5995] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5983] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5995] <... futex resumed>) = 0 [ 89.011804][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 89.011832][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 89.011850][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 89.011860][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 89.011874][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [ 89.011894][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 89.011907][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 89.011919][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 89.011929][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 89.011938][ T5137] mode=100755 [ 89.011946][ T5137] flags=(15300000) [ 89.011955][ T5137] journal_seq=5 [ 89.011964][ T5137] hash_seed=b68791a594a6d5ae [ 89.011974][ T5137] hash_type=siphash [ 89.011982][ T5137] bi_size=9000 [ 89.011991][ T5137] bi_sectors=24 [ 89.011999][ T5137] bi_version=0 [ 89.012007][ T5137] bi_atime=2780562352 [ 89.012016][ T5137] bi_ctime=2780562352 [ 89.012024][ T5137] bi_mtime=2780562352 [ 89.012033][ T5137] bi_otime=2780562352 [ 89.012042][ T5137] bi_uid=0 [ 89.012051][ T5137] bi_gid=0 [ 89.012059][ T5137] bi_nlink=1 [ 89.012062][ T25] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 89.012068][ T5137] bi_generation=0 [ 89.012078][ T5137] bi_dev=0 [ 89.012087][ T5137] bi_data_checksum=0 [ 89.012096][ T5137] bi_compression=0 [ 89.012105][ T5137] bi_project=0 [ 89.012115][ T5137] bi_background_compression=0 [ 89.012125][ T5137] bi_data_replicas=0 [ 89.012133][ T5137] bi_promote_target=0 [ 89.012142][ T5137] bi_foreground_target=0 [ 89.012142][ T25] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 89.012152][ T5137] bi_background_target=0 [ 89.012161][ T5137] bi_erasure_code=0 [ 89.012170][ T5137] bi_fields_set=0 [ 89.012179][ T5137] bi_dir=4096 [ 89.012187][ T5137] bi_dir_offset=1896155912177158345 [ 89.012195][ T5137] bi_subvol=0 [ 89.012203][ T5137] bi_parent_subvol=0 [ 89.012211][ T5137] bi_nocow=0 [ 89.012219][ T5137] bi_depth=0 [ 89.012227][ T5137] bi_inodes_32bit=0 [ 89.012235][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 89.012245][ T5137] mode=100755 [ 89.012254][ T5137] flags=(15300000) [ 89.012262][ T5137] journal_seq=5 [ 89.012271][ T5137] hash_seed=b68791a594a6d5ae [ 89.012281][ T5137] hash_type=siphash [ 89.012290][ T5137] bi_size=9000 [ 89.012299][ T5137] bi_sectors=24 [ 89.012307][ T5137] bi_version=0 [ 89.012316][ T5137] bi_atime=2780562352 [ 89.012325][ T5137] bi_ctime=2780562352 [ 89.012334][ T5137] bi_mtime=2780562352 [ 89.012344][ T5137] bi_otime=2780562352 [ 89.012353][ T5137] bi_uid=0 [ 89.012362][ T5137] bi_gid=0 [ 89.012371][ T5137] bi_nlink=1 [ 89.012380][ T5137] bi_generation=0 [ 89.012389][ T5137] bi_dev=0 [ 89.012398][ T5137] bi_data_checksum=0 [ 89.012406][ T5137] bi_compression=0 [ 89.012415][ T5137] bi_project=0 [ 89.012424][ T5137] bi_background_compression=0 [ 89.012433][ T5137] bi_data_replicas=0 [ 89.012443][ T5137] bi_promote_target=0 [ 89.012452][ T5137] bi_foreground_target=0 [ 89.012461][ T5137] bi_background_target=0 [ 89.012470][ T5137] bi_erasure_code=0 [ 89.012479][ T5137] bi_fields_set=0 [ 89.012488][ T5137] bi_dir=4096 [ 89.012497][ T5137] bi_dir_offset=1896155912177158345 [ 89.012507][ T5137] bi_subvol=0 [ 89.012516][ T5137] bi_parent_subvol=0 [ 89.012525][ T5137] bi_nocow=0 [ 89.012534][ T5137] bi_depth=0 [ 89.012542][ T5137] bi_inodes_32bit=0 [ 89.012550][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 89.012553][ T25] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 89.012561][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 89.012571][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 89.012581][ T5137] gen 0 oldest_gen 0 data_type free [ 89.012591][ T5137] journal_seq_nonempty 0 [ 89.012600][ T5137] journal_seq_empty 0 [ 89.012609][ T5137] need_discard 0 [ 89.012618][ T5137] need_inc_gen 0 [ 89.012627][ T5137] dirty_sectors 0 [ 89.012636][ T5137] stripe_sectors 0 [ 89.012646][ T5137] cached_sectors 0 [ 89.012655][ T5137] stripe 0 [ 89.012664][ T5137] stripe_redundancy 0 [ 89.012674][ T5137] io_time[READ] 0 [ 89.012683][ T5137] io_time[WRITE] 0 [ 89.012693][ T5137] fragmentation 0 [ 89.012702][ T5137] bp_start 8 [ 89.012712][ T5137] [ 89.012721][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 89.012732][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 89.012742][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 89.012752][ T5137] gen 0 oldest_gen 0 data_type free [ 89.012762][ T5137] journal_seq_nonempty 0 [ 89.012772][ T5137] journal_seq_empty 0 [ 89.012781][ T5137] need_discard 0 [ 89.012790][ T5137] need_inc_gen 0 [ 89.012800][ T5137] dirty_sectors 0 [ 89.012809][ T5137] stripe_sectors 0 [ 89.012819][ T5137] cached_sectors 0 [ 89.012829][ T5137] stripe 0 [pid 5995] futex(0x7f39d160a6d8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5984] <... truncate resumed>) = -1 EIO (Input/output error) [ 89.012838][ T5137] stripe_redundancy 0 [ 89.012848][ T5137] io_time[READ] 0 [ 89.012857][ T5137] io_time[WRITE] 0 [ 89.012867][ T5137] fragmentation 0 [ 89.012883][ T5137] bp_start 8 [ 89.012893][ T5137] [ 89.012902][ T5137] [ 89.600488][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 89.611133][ T25] bcachefs (loop0): finished waiting for writes to stop [pid 5984] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000 [pid 5983] exit_group(0 [pid 5995] <... futex resumed>) = ? [pid 5984] <... futex resumed>) = ? [pid 5983] <... exit_group resumed>) = ? [pid 5984] +++ exited with 0 +++ [pid 5995] +++ exited with 0 +++ [pid 5983] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5983, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=24 /* 0.24 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 89.618194][ T25] bcachefs (loop0): done going read-only, filesystem not clean openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x55557d107730 /* 4 entries */, 32768) = 112 umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 unlink("./12/binderfs") = 0 [ 89.776581][ T5822] bcachefs (loop0): shutting down [ 89.789696][ T5822] bcachefs (loop0): shutdown complete umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(4, 0x55557d10f770 /* 2 entries */, 32768) = 48 getdents64(4, 0x55557d10f770 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./12/file0") = 0 getdents64(3, 0x55557d107730 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./12") = 0 mkdir("./13", 0777) = 0 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 5996 attached [pid 5996] set_robust_list(0x55557d1066a0, 24) = 0 [pid 5822] <... clone resumed>, child_tidptr=0x55557d106690) = 5996 [pid 5996] chdir("./13") = 0 [pid 5996] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5996] setpgid(0, 0) = 0 [pid 5996] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5996] write(3, "1000", 4) = 4 [pid 5996] close(3) = 0 [pid 5996] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5996] write(1, "executing program\n", 18executing program ) = 18 [pid 5996] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5996] rt_sigaction(SIGRT_1, {sa_handler=0x7f39d15a3030, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f39d15941e0}, NULL, 8) = 0 [pid 5996] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5996] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d1513000 [pid 5996] mprotect(0x7f39d1514000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5996] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5996] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1533990, parent_tid=0x7f39d1533990, exit_signal=0, stack=0x7f39d1513000, stack_size=0x20300, tls=0x7f39d15336c0}./strace-static-x86_64: Process 5997 attached [pid 5997] rseq(0x7f39d1533fe0, 0x20, 0, 0x53053053 [pid 5996] <... clone3 resumed> => {parent_tid=[5997]}, 88) = 5997 [pid 5997] <... rseq resumed>) = 0 [pid 5997] set_robust_list(0x7f39d15339a0, 24) = 0 [pid 5997] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5997] futex(0x7f39d160a6c8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5996] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5996] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5997] <... futex resumed>) = 0 [pid 5996] <... futex resumed>) = 1 [pid 5997] memfd_create("syzkaller", 0 [pid 5996] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5997] <... memfd_create resumed>) = 3 [pid 5997] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f39c9000000 [pid 5997] 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 5997] munmap(0x7f39c9000000, 138412032) = 0 [pid 5997] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5997] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5997] close(3) = 0 [pid 5997] close(4) = 0 [pid 5997] mkdir("./file0", 0777) = 0 [ 91.198685][ T5997] loop0: detected capacity change from 0 to 32768 [ 91.262284][ T5997] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=xxhash,data_checksum=none,compression=lz4,journal_flush_disabled,fsck,recovery_pass_last=set_may_go_rw,reconstruct_alloc,no_data_io [ 91.283028][ T5997] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 91.291380][ T5997] bcachefs (loop0): Version upgrade required: [ 91.291380][ T5997] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 91.291380][ T5997] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.20: directory_size [ 91.291380][ T5997] 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 [ 91.362174][ T5997] bcachefs (loop0): dropping and reconstructing all alloc info [ 91.376214][ T5997] bcachefs (loop0): accounting_read... done [ 91.382264][ T5997] bcachefs (loop0): alloc_read... done [ 91.387797][ T5997] bcachefs (loop0): stripes_read... done [ 91.393467][ T5997] bcachefs (loop0): snapshots_read... done [pid 5997] mount("/dev/loop0", "./file0", "bcachefs", MS_I_VERSION, "journal_transaction_names,metadata_checksum=xxhash,journal_flush_disabled,fsck,journal_flush_disable"...) = 0 [pid 5997] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5997] chdir("./file0") = 0 [pid 5997] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5997] ioctl(4, LOOP_CLR_FD) = 0 [pid 5997] close(4) = 0 [pid 5997] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5996] <... futex resumed>) = 0 [pid 5996] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5997] open("./file2", O_RDWR|O_CREAT|O_SYNC|O_NOATIME, 0160 [pid 5996] <... futex resumed>) = 0 [pid 5996] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [pid 5997] <... open resumed>) = 4 [pid 5997] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5996] <... futex resumed>) = 0 [pid 5996] futex(0x7f39d160a6c8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5996] futex(0x7f39d160a6cc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000} [ 91.399475][ T5997] bcachefs (loop0): check_allocations... done [ 91.415613][ T5997] bcachefs (loop0): going read-write [ 91.424009][ T5997] bcachefs (loop0): done starting filesystem [ 91.466744][ T5137] bucket 0:34 gen 0 data type user sector count overflow: 0 + -8 > U32_MAX [ 91.466781][ T5137] while marking u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0, shutting down [ 91.495484][ T5137] bcachefs (loop0): inconsistency detected - emergency read only at journal seq 10 [ 91.504872][ T9] bcachefs (loop0): going read-only [pid 5997] truncate("./file2", 2560 [pid 5996] <... futex resumed>) = -1 ETIMEDOUT (Connection timed out) [pid 5996] futex(0x7f39d160a6dc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5996] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f39d14f2000 [pid 5996] mprotect(0x7f39d14f3000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5996] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5996] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7f39d1512990, parent_tid=0x7f39d1512990, exit_signal=0, stack=0x7f39d14f2000, stack_size=0x20300, tls=0x7f39d15126c0}./strace-static-x86_64: Process 6008 attached [pid 6008] rseq(0x7f39d1512fe0, 0x20, 0, 0x53053053) = 0 [pid 5996] <... clone3 resumed> => {parent_tid=[6008]}, 88) = 6008 [pid 6008] set_robust_list(0x7f39d15129a0, 24 [pid 5996] rt_sigprocmask(SIG_SETMASK, [], [pid 6008] <... set_robust_list resumed>) = 0 [pid 5996] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 6008] rt_sigprocmask(SIG_SETMASK, [], [pid 5996] futex(0x7f39d160a6d8, FUTEX_WAKE_PRIVATE, 1000000 [pid 6008] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5996] <... futex resumed>) = 0 [pid 6008] fallocate(4, FALLOC_FL_KEEP_SIZE|FALLOC_FL_PUNCH_HOLE, 9, 9000 [ 91.510605][ T5137] 5 transaction updates for bch2_write_index_default journal seq 0 [ 91.510636][ T5137] update: btree=extents cached=0 bch2_trans_update+0x1e29/0x2550 [ 91.510643][ T5137] old u64s 5 type deleted 536870913:8:U32_MAX len 0 ver 0 [ 91.510649][ T5137] new u64s 7 type extent 536870913:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:0 compress incompressible ptr: 0:0:0 gen 0 [ 91.510657][ T5137] update: btree=extents cached=0 bch2_trans_update+0x186f/0x2550 [pid 5996] futex(0x7f39d160a6dc, FUTEX_WAIT_PRIVATE, 0, {tv_sec=0, tv_nsec=50000000}) = -1 ETIMEDOUT (Connection timed out) [ 91.510663][ T5137] old u64s 7 type extent 536870913:24:U32_MAX len 24 ver 0: durability: 1 crc: c_size 8 size 24 offset 0 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 91.510671][ T5137] new u64s 7 type extent 536870913:24:U32_MAX len 16 ver 0: durability: 1 crc: c_size 8 size 24 offset 8 nonce 0 csum none 0:0 compress lz4 ptr: 0:34:8 gen 0 [ 91.510679][ T5137] update: btree=inodes cached=1 bch2_extent_update_i_size_sectors+0xccb/0x11a0 [ 91.510685][ T5137] old u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 91.510690][ T5137] mode=100755 [ 91.510695][ T5137] flags=(15300000) [ 91.510700][ T5137] journal_seq=5 [ 91.510705][ T5137] hash_seed=b68791a594a6d5ae [ 91.510710][ T5137] hash_type=siphash [ 91.510715][ T5137] bi_size=9000 [ 91.510720][ T5137] bi_sectors=24 [ 91.510725][ T5137] bi_version=0 [ 91.510730][ T5137] bi_atime=2780562352 [ 91.510735][ T5137] bi_ctime=2780562352 [ 91.510740][ T5137] bi_mtime=2780562352 [ 91.510745][ T5137] bi_otime=2780562352 [ 91.510750][ T5137] bi_uid=0 [ 91.510755][ T5137] bi_gid=0 [pid 5997] <... truncate resumed>) = -1 EIO (Input/output error) [pid 5997] futex(0x7f39d160a6cc, FUTEX_WAKE_PRIVATE, 1000000) = 0 [ 91.510760][ T5137] bi_nlink=1 [ 91.510767][ T5137] bi_generation=0 [ 91.510772][ T5137] bi_dev=0 [ 91.510777][ T5137] bi_data_checksum=0 [ 91.510782][ T5137] bi_compression=0 [ 91.510787][ T5137] bi_project=0 [ 91.510792][ T5137] bi_background_compression=0 [ 91.510797][ T5137] bi_data_replicas=0 [ 91.510802][ T5137] bi_promote_target=0 [ 91.510807][ T5137] bi_foreground_target=0 [ 91.510812][ T5137] bi_background_target=0 [ 91.510817][ T5137] bi_erasure_code=0 [ 91.510822][ T5137] bi_fields_set=0 [ 91.510827][ T5137] bi_dir=4096 [ 91.510832][ T5137] bi_dir_offset=1896155912177158345 [ 91.510837][ T5137] bi_subvol=0 [ 91.510842][ T5137] bi_parent_subvol=0 [ 91.510847][ T5137] bi_nocow=0 [ 91.510852][ T5137] bi_depth=0 [ 91.510856][ T5137] bi_inodes_32bit=0 [ 91.510861][ T5137] new u64s 18 type inode_v3 0:536870913:U32_MAX len 0 ver 0: [ 91.510867][ T5137] mode=100755 [ 91.510872][ T5137] flags=(15300000) [ 91.510877][ T5137] journal_seq=5 [ 91.510882][ T5137] hash_seed=b68791a594a6d5ae [ 91.510887][ T5137] hash_type=siphash [ 91.510892][ T5137] bi_size=9000 [ 91.510896][ T5137] bi_sectors=24 [ 91.510901][ T5137] bi_version=0 [ 91.510906][ T5137] bi_atime=2780562352 [ 91.510911][ T5137] bi_ctime=2780562352 [ 91.510916][ T5137] bi_mtime=2780562352 [ 91.510921][ T5137] bi_otime=2780562352 [ 91.510926][ T5137] bi_uid=0 [ 91.510931][ T5137] bi_gid=0 [ 91.510935][ T5137] bi_nlink=1 [ 91.510940][ T5137] bi_generation=0 [ 91.510945][ T5137] bi_dev=0 [ 91.510950][ T5137] bi_data_checksum=0 [ 91.510955][ T5137] bi_compression=0 [ 91.510960][ T5137] bi_project=0 [ 91.510965][ T5137] bi_background_compression=0 [ 91.510970][ T5137] bi_data_replicas=0 [ 91.510975][ T5137] bi_promote_target=0 [ 91.510980][ T5137] bi_foreground_target=0 [ 91.510985][ T5137] bi_background_target=0 [ 91.510990][ T5137] bi_erasure_code=0 [ 91.510995][ T5137] bi_fields_set=0 [ 91.510999][ T5137] bi_dir=4096 [ 91.511004][ T5137] bi_dir_offset=1896155912177158345 [ 91.511015][ T5137] bi_subvol=0 [ 91.511020][ T5137] bi_parent_subvol=0 [ 91.511025][ T5137] bi_nocow=0 [ 91.511029][ T5137] bi_depth=0 [ 91.511034][ T5137] bi_inodes_32bit=0 [ 91.511039][ T5137] update: btree=alloc cached=0 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 91.511045][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 91.511051][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 91.511056][ T5137] gen 0 oldest_gen 0 data_type free [ 91.511061][ T5137] journal_seq_nonempty 0 [ 91.511066][ T5137] journal_seq_empty 0 [ 91.511071][ T5137] need_discard 0 [ 91.511076][ T5137] need_inc_gen 0 [ 91.511081][ T5137] dirty_sectors 0 [ 91.511086][ T5137] stripe_sectors 0 [ 91.511091][ T5137] cached_sectors 0 [ 91.511096][ T5137] stripe 0 [ 91.511102][ T5137] stripe_redundancy 0 [ 91.511107][ T5137] io_time[READ] 0 [ 91.511112][ T5137] io_time[WRITE] 0 [ 91.511116][ T5137] fragmentation 0 [ 91.511121][ T5137] bp_start 8 [ 91.511126][ T5137] [ 91.511131][ T5137] update: btree=alloc cached=1 bch2_trans_start_alloc_update+0xa65/0xdd0 [ 91.511137][ T5137] old u64s 5 type deleted 0:34:0 len 0 ver 0 [ 91.511142][ T5137] new u64s 13 type alloc_v4 0:34:0 len 0 ver 0: [ 91.511148][ T5137] gen 0 oldest_gen 0 data_type free [ 91.511153][ T5137] journal_seq_nonempty 0 [ 91.511158][ T5137] journal_seq_empty 0 [ 91.511163][ T5137] need_discard 0 [ 91.511168][ T5137] need_inc_gen 0 [ 91.511173][ T5137] dirty_sectors 0 [ 91.511178][ T5137] stripe_sectors 0 [ 91.511183][ T5137] cached_sectors 0 [ 91.511188][ T5137] stripe 0 [ 91.511193][ T5137] stripe_redundancy 0 [ 91.511198][ T5137] io_time[READ] 0 [ 91.511203][ T5137] io_time[WRITE] 0 [ 91.511208][ T5137] fragmentation 0 [ 91.511213][ T5137] bp_start 8 [ 91.511218][ T5137] [ 91.511222][ T5137] [ 91.672638][ T9] bcachefs (loop0): flushing journal and stopping allocators, journal seq 10 [ 91.678110][ T5137] bcachefs (loop0): /file3 offset 0: write error: btree update error: bucket_ref_update [ 91.679822][ T9] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 10 [ 91.690150][ T6008] ------------[ cut here ]------------ [ 91.692730][ T9] bcachefs (loop0): unclean shutdown complete, journal seq 10 [ 91.697044][ T6008] WARNING: CPU: 1 PID: 6008 at fs/bcachefs/fs-io.c:344 __bch2_truncate_folio+0x2299/0x26a0 [ 91.697074][ T6008] Modules linked in: [ 92.126823][ T6008] CPU: 1 UID: 0 PID: 6008 Comm: syz-executor301 Not tainted 6.14.0-rc1-syzkaller-00020-g0de63bb7d919 #0 [ 92.137965][ T6008] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 92.148052][ T6008] RIP: 0010:__bch2_truncate_folio+0x2299/0x26a0 [ 92.154314][ T6008] Code: 41 5f 5d c3 cc cc cc cc e8 b4 4e 65 fd 48 c7 c7 8d e3 12 8e e8 68 fb e6 ff 89 05 42 de fc 15 e9 3d e0 ff ff e8 98 4e 65 fd 90 <0f> 0b 90 e9 88 f8 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c ff [ 92.173991][ T6008] RSP: 0018:ffffc900035e78a0 EFLAGS: 00010293 [ 92.180096][ T6008] RAX: ffffffff845a0f28 RBX: 0000000000002000 RCX: ffff888028121e00 [ 92.188238][ T6008] RDX: 0000000000000000 RSI: 0000000000000a00 RDI: 0000000000002000 [ 92.196308][ T6008] RBP: ffffc900035e7b90 R08: ffffffff845a07ab R09: 1ffffd400014c5d0 [ 92.204282][ T6008] R10: dffffc0000000000 R11: fffff9400014c5d1 R12: 1ffff1100e3380fd [ 92.212290][ T6008] R13: ffffc900035e7b20 R14: ffff8880719c07e8 R15: 0000000000000a00 [ 92.220284][ T6008] FS: 00007f39d15126c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 92.229269][ T6008] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 92.235877][ T6008] CR2: 00007f39d15b8b10 CR3: 000000001232c000 CR4: 00000000003526f0 [ 92.243843][ T6008] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 92.251852][ T6008] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 92.259847][ T6008] Call Trace: [ 92.263117][ T6008] [ 92.266161][ T6008] ? __warn+0x165/0x4d0 [ 92.270335][ T6008] ? __bch2_truncate_folio+0x2299/0x26a0 [ 92.276013][ T6008] ? report_bug+0x2b3/0x500 [ 92.280541][ T6008] ? __bch2_truncate_folio+0x2299/0x26a0 [ 92.286234][ T6008] ? handle_bug+0x60/0x90 [ 92.290573][ T6008] ? exc_invalid_op+0x1a/0x50 [ 92.295289][ T6008] ? asm_exc_invalid_op+0x1a/0x20 [ 92.300325][ T6008] ? __bch2_truncate_folio+0x1b1b/0x26a0 [ 92.305991][ T6008] ? __bch2_truncate_folio+0x2298/0x26a0 [ 92.311636][ T6008] ? __bch2_truncate_folio+0x2299/0x26a0 [ 92.317312][ T6008] ? mark_lock+0x9a/0x360 [ 92.321658][ T6008] ? __pfx___bch2_truncate_folio+0x10/0x10 [ 92.327512][ T6008] ? __bch2_truncate_folio+0x39f/0x26a0 [ 92.333071][ T6008] bchfs_fpunch+0x15e/0x780 [ 92.337622][ T6008] ? file_modified_flags+0x43f/0x4e0 [ 92.342926][ T6008] ? current_time+0x279/0x3a0 [ 92.347651][ T6008] ? __pfx_bchfs_fpunch+0x10/0x10 [ 92.352685][ T6008] ? do_raw_spin_unlock+0x13c/0x8b0 [ 92.357915][ T6008] ? __mark_inode_dirty+0x69a/0xe90 [ 92.363126][ T6008] ? mnt_put_write_access_file+0xbf/0x100 [ 92.368896][ T6008] bch2_fallocate_dispatch+0x3e4/0x540 [ 92.374370][ T6008] ? __pfx_bch2_fallocate_dispatch+0x10/0x10 [ 92.380381][ T6008] ? __pfx_bch2_fallocate_dispatch+0x10/0x10 [ 92.386401][ T6008] vfs_fallocate+0x623/0x7a0 [ 92.390999][ T6008] ? __pfx_vfs_fallocate+0x10/0x10 [ 92.396167][ T6008] __x64_sys_fallocate+0xbc/0x110 [ 92.401210][ T6008] do_syscall_64+0xf3/0x230 [ 92.405772][ T6008] ? clear_bhb_loop+0x35/0x90 [ 92.410464][ T6008] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 92.416390][ T6008] RIP: 0033:0x7f39d157cc19 [ 92.420817][ T6008] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 [ 92.440488][ T6008] RSP: 002b:00007f39d1512218 EFLAGS: 00000246 ORIG_RAX: 000000000000011d [ 92.448946][ T6008] RAX: ffffffffffffffda RBX: 00007f39d160a6d8 RCX: 00007f39d157cc19 [ 92.456954][ T6008] RDX: 0000000000000009 RSI: 0000000000000003 RDI: 0000000000000004 [ 92.464926][ T6008] RBP: 00007f39d160a6d0 R08: 00007ffca788e217 R09: 0000000000000000 [ 92.472925][ T6008] R10: 0000000000002328 R11: 0000000000000246 R12: 64656c6261736964 [ 92.480931][ T6008] R13: 0032656c69662f2e R14: 0030656c69662f2e R15: 7366656863616362 [ 92.488942][ T6008] [ 92.491972][ T6008] Kernel panic - not syncing: kernel: panic_on_warn set ... [ 92.499241][ T6008] CPU: 1 UID: 0 PID: 6008 Comm: syz-executor301 Not tainted 6.14.0-rc1-syzkaller-00020-g0de63bb7d919 #0 [ 92.510324][ T6008] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 [ 92.520367][ T6008] Call Trace: [ 92.523639][ T6008] [ 92.526562][ T6008] dump_stack_lvl+0x241/0x360 [ 92.531236][ T6008] ? __pfx_dump_stack_lvl+0x10/0x10 [ 92.536429][ T6008] ? __pfx__printk+0x10/0x10 [ 92.541010][ T6008] ? _printk+0xd5/0x120 [ 92.545161][ T6008] ? __init_begin+0x41000/0x41000 [ 92.550174][ T6008] ? vscnprintf+0x5d/0x90 [ 92.554494][ T6008] panic+0x349/0x880 [ 92.558386][ T6008] ? __warn+0x174/0x4d0 [ 92.562536][ T6008] ? __pfx_panic+0x10/0x10 [ 92.566961][ T6008] __warn+0x344/0x4d0 [ 92.570934][ T6008] ? __bch2_truncate_folio+0x2299/0x26a0 [ 92.576557][ T6008] report_bug+0x2b3/0x500 [ 92.580881][ T6008] ? __bch2_truncate_folio+0x2299/0x26a0 [ 92.586506][ T6008] handle_bug+0x60/0x90 [ 92.590656][ T6008] exc_invalid_op+0x1a/0x50 [ 92.595150][ T6008] asm_exc_invalid_op+0x1a/0x20 [ 92.599996][ T6008] RIP: 0010:__bch2_truncate_folio+0x2299/0x26a0 [ 92.606226][ T6008] Code: 41 5f 5d c3 cc cc cc cc e8 b4 4e 65 fd 48 c7 c7 8d e3 12 8e e8 68 fb e6 ff 89 05 42 de fc 15 e9 3d e0 ff ff e8 98 4e 65 fd 90 <0f> 0b 90 e9 88 f8 ff ff 44 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c ff [ 92.625822][ T6008] RSP: 0018:ffffc900035e78a0 EFLAGS: 00010293 [ 92.631881][ T6008] RAX: ffffffff845a0f28 RBX: 0000000000002000 RCX: ffff888028121e00 [ 92.639840][ T6008] RDX: 0000000000000000 RSI: 0000000000000a00 RDI: 0000000000002000 [ 92.647799][ T6008] RBP: ffffc900035e7b90 R08: ffffffff845a07ab R09: 1ffffd400014c5d0 [ 92.655768][ T6008] R10: dffffc0000000000 R11: fffff9400014c5d1 R12: 1ffff1100e3380fd [ 92.663735][ T6008] R13: ffffc900035e7b20 R14: ffff8880719c07e8 R15: 0000000000000a00 [ 92.671708][ T6008] ? __bch2_truncate_folio+0x1b1b/0x26a0 [ 92.677331][ T6008] ? __bch2_truncate_folio+0x2298/0x26a0 [ 92.682971][ T6008] ? mark_lock+0x9a/0x360 [ 92.687298][ T6008] ? __pfx___bch2_truncate_folio+0x10/0x10 [ 92.693102][ T6008] ? __bch2_truncate_folio+0x39f/0x26a0 [ 92.698651][ T6008] bchfs_fpunch+0x15e/0x780 [ 92.703152][ T6008] ? file_modified_flags+0x43f/0x4e0 [ 92.708436][ T6008] ? current_time+0x279/0x3a0 [ 92.713108][ T6008] ? __pfx_bchfs_fpunch+0x10/0x10 [ 92.718128][ T6008] ? do_raw_spin_unlock+0x13c/0x8b0 [ 92.723317][ T6008] ? __mark_inode_dirty+0x69a/0xe90 [ 92.728510][ T6008] ? mnt_put_write_access_file+0xbf/0x100 [ 92.734235][ T6008] bch2_fallocate_dispatch+0x3e4/0x540 [ 92.739702][ T6008] ? __pfx_bch2_fallocate_dispatch+0x10/0x10 [ 92.745687][ T6008] ? __pfx_bch2_fallocate_dispatch+0x10/0x10 [ 92.751664][ T6008] vfs_fallocate+0x623/0x7a0 [ 92.756256][ T6008] ? __pfx_vfs_fallocate+0x10/0x10 [ 92.761368][ T6008] __x64_sys_fallocate+0xbc/0x110 [ 92.766386][ T6008] do_syscall_64+0xf3/0x230 [ 92.770885][ T6008] ? clear_bhb_loop+0x35/0x90 [ 92.775565][ T6008] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 92.781453][ T6008] RIP: 0033:0x7f39d157cc19 [ 92.785865][ T6008] Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 [ 92.805461][ T6008] RSP: 002b:00007f39d1512218 EFLAGS: 00000246 ORIG_RAX: 000000000000011d [ 92.813869][ T6008] RAX: ffffffffffffffda RBX: 00007f39d160a6d8 RCX: 00007f39d157cc19 [ 92.821831][ T6008] RDX: 0000000000000009 RSI: 0000000000000003 RDI: 0000000000000004 [ 92.829792][ T6008] RBP: 00007f39d160a6d0 R08: 00007ffca788e217 R09: 0000000000000000 [ 92.837754][ T6008] R10: 0000000000002328 R11: 0000000000000246 R12: 64656c6261736964 [ 92.845718][ T6008] R13: 0032656c69662f2e R14: 0030656c69662f2e R15: 7366656863616362 [ 92.853698][ T6008] [ 92.856962][ T6008] Kernel Offset: disabled [ 92.861313][ T6008] Rebooting in 86400 seconds..