./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3186711094 <...> Warning: Permanently added '10.128.1.56' (ED25519) to the list of known hosts. execve("./syz-executor3186711094", ["./syz-executor3186711094"], 0x7fffa16aab00 /* 10 vars */) = 0 brk(NULL) = 0x55555e217000 brk(0x55555e217d00) = 0x55555e217d00 arch_prctl(ARCH_SET_FS, 0x55555e217380) = 0 set_tid_address(0x55555e217650) = 5223 set_robust_list(0x55555e217660, 24) = 0 rseq(0x55555e217ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3186711094", 4096) = 28 getrandom("\xc9\xfb\x25\xd8\x76\xe9\x72\x66", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55555e217d00 brk(0x55555e238d00) = 0x55555e238d00 brk(0x55555e239000) = 0x55555e239000 mprotect(0x7f4ab06bb000, 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 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5224 attached [pid 5224] set_robust_list(0x55555e217660, 24 [pid 5223] <... clone resumed>, child_tidptr=0x55555e217650) = 5224 [pid 5224] <... set_robust_list resumed>) = 0 [pid 5224] mkdir("./syzkaller.YZGnzU", 0700 [pid 5223] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5225 attached , child_tidptr=0x55555e217650) = 5225 [pid 5225] set_robust_list(0x55555e217660, 24 [pid 5223] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] <... set_robust_list resumed>) = 0 [pid 5224] <... mkdir resumed>) = 0 ./strace-static-x86_64: Process 5226 attached [pid 5225] mkdir("./syzkaller.mz1aXY", 0700 [pid 5223] <... clone resumed>, child_tidptr=0x55555e217650) = 5226 [pid 5226] set_robust_list(0x55555e217660, 24 [pid 5224] chmod("./syzkaller.YZGnzU", 0777) = 0 [pid 5224] chdir("./syzkaller.YZGnzU") = 0 [pid 5225] <... mkdir resumed>) = 0 [pid 5223] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5226] <... set_robust_list resumed>) = 0 [pid 5225] chmod("./syzkaller.mz1aXY", 0777 [pid 5224] mkdir("./0", 0777 [pid 5226] mkdir("./syzkaller.EseoD1", 0700 [pid 5225] <... chmod resumed>) = 0 [pid 5224] <... mkdir resumed>) = 0 [pid 5225] chdir("./syzkaller.mz1aXY") = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR./strace-static-x86_64: Process 5227 attached [pid 5225] mkdir("./0", 0777 [pid 5224] <... openat resumed>) = 3 [pid 5223] <... clone resumed>, child_tidptr=0x55555e217650) = 5227 [pid 5227] set_robust_list(0x55555e217660, 24 [pid 5226] <... mkdir resumed>) = 0 [pid 5227] <... set_robust_list resumed>) = 0 [pid 5223] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] mkdir("./syzkaller.irdC4u", 0700 [pid 5226] chmod("./syzkaller.EseoD1", 0777 [pid 5225] <... mkdir resumed>) = 0 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) ./strace-static-x86_64: Process 5228 attached [pid 5224] close(3 [pid 5228] set_robust_list(0x55555e217660, 24 [pid 5227] <... mkdir resumed>) = 0 [pid 5226] <... chmod resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5224] <... close resumed>) = 0 [pid 5223] <... clone resumed>, child_tidptr=0x55555e217650) = 5228 [pid 5228] <... set_robust_list resumed>) = 0 [pid 5226] chdir("./syzkaller.EseoD1") = 0 [pid 5225] <... openat resumed>) = 3 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5228] getrandom( [pid 5227] chmod("./syzkaller.irdC4u", 0777 [pid 5226] mkdir("./0", 0777 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5227] <... chmod resumed>) = 0 ./strace-static-x86_64: Process 5229 attached [pid 5229] set_robust_list(0x55555e217660, 24 [pid 5227] chdir("./syzkaller.irdC4u") = 0 [pid 5229] <... set_robust_list resumed>) = 0 [pid 5228] <... getrandom resumed>"\x5b\xa0\xb4\x22\x71\xe0\xe4\x4e", 8, GRND_NONBLOCK) = 8 [pid 5227] mkdir("./0", 0777 [pid 5226] <... mkdir resumed>) = 0 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] chdir("./0" [pid 5228] mkdir("./syzkaller.HzJ6ZS", 0700 [pid 5225] close(3 [pid 5227] <... mkdir resumed>) = 0 [pid 5229] <... chdir resumed>) = 0 [pid 5228] <... mkdir resumed>) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5225] <... close resumed>) = 0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5229 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5226] <... openat resumed>) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5229] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5228] chmod("./syzkaller.HzJ6ZS", 0777 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] <... prctl resumed>) = 0 [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5231 attached [pid 5229] setpgid(0, 0 [pid 5228] <... chmod resumed>) = 0 ./strace-static-x86_64: Process 5232 attached [pid 5231] set_robust_list(0x55555e217660, 24 [pid 5229] <... setpgid resumed>) = 0 [pid 5228] chdir("./syzkaller.HzJ6ZS" [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5231 [pid 5231] <... set_robust_list resumed>) = 0 [pid 5229] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5231] chdir("./0" [pid 5228] <... chdir resumed>) = 0 [pid 5231] <... chdir resumed>) = 0 [pid 5228] mkdir("./0", 0777 [pid 5227] close(3 [pid 5231] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] <... close resumed>) = 0 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5232 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] <... prctl resumed>) = 0 [pid 5228] <... mkdir resumed>) = 0 [pid 5232] set_robust_list(0x55555e217660, 24 [pid 5229] <... openat resumed>) = 3 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5233 [pid 5231] setpgid(0, 0 [pid 5232] <... set_robust_list resumed>) = 0 [pid 5229] write(3, "1000", 4 [pid 5231] <... setpgid resumed>) = 0 ./strace-static-x86_64: Process 5233 attached [pid 5232] chdir("./0" [pid 5231] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5229] <... write resumed>) = 4 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5233] set_robust_list(0x55555e217660, 24 [pid 5231] <... openat resumed>) = 3 [pid 5229] close(3 [pid 5233] <... set_robust_list resumed>) = 0 [pid 5229] <... close resumed>) = 0 [pid 5228] <... openat resumed>) = 3 [pid 5232] <... chdir resumed>) = 0 [pid 5231] write(3, "1000", 4 [pid 5229] symlink("/dev/binderfs", "./binderfs" [pid 5232] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5231] <... write resumed>) = 4 [pid 5228] ioctl(3, LOOP_CLR_FDexecuting program [pid 5233] chdir("./0" [pid 5229] <... symlink resumed>) = 0 [pid 5233] <... chdir resumed>) = 0 [pid 5233] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5232] <... prctl resumed>) = 0 [pid 5231] close(3 [pid 5229] write(1, "executing program\n", 18 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] setpgid(0, 0 [pid 5232] setpgid(0, 0 [pid 5231] <... close resumed>) = 0 [pid 5232] <... setpgid resumed>) = 0 [pid 5231] symlink("/dev/binderfs", "./binderfs" [pid 5229] <... write resumed>) = 18 [pid 5228] close(3 [pid 5233] <... setpgid resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 5233] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5229] memfd_create("syzkaller", 0 [pid 5233] write(3, "1000", 4 [pid 5232] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5231] <... symlink resumed>) = 0 [pid 5229] <... memfd_create resumed>) = 3 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5233] <... write resumed>) = 4 [pid 5231] write(1, "executing program\n", 18 [pid 5229] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0executing program [pid 5233] close(3) = 0 ./strace-static-x86_64: Process 5234 attached [pid 5233] symlink("/dev/binderfs", "./binderfs" [pid 5234] set_robust_list(0x55555e217660, 24 [pid 5233] <... symlink resumed>) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5231] <... write resumed>) = 18 [pid 5229] <... mmap resumed>) = 0x7f4aa8000000 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5234 executing program [pid 5234] <... set_robust_list resumed>) = 0 [pid 5233] write(1, "executing program\n", 18 [pid 5232] write(3, "1000", 4 [pid 5231] memfd_create("syzkaller", 0 [pid 5232] <... write resumed>) = 4 [pid 5232] close(3 [pid 5233] <... write resumed>) = 18 [pid 5232] <... close resumed>) = 0 [pid 5233] memfd_create("syzkaller", 0 [pid 5232] symlink("/dev/binderfs", "./binderfs" [pid 5233] <... memfd_create resumed>) = 3 [pid 5232] <... symlink resumed>) = 0 executing program [pid 5234] chdir("./0" [pid 5233] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] write(1, "executing program\n", 18 [pid 5231] <... memfd_create resumed>) = 3 [pid 5233] <... mmap resumed>) = 0x7f4aa8000000 [pid 5232] <... write resumed>) = 18 [pid 5231] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5234] <... chdir resumed>) = 0 [pid 5232] memfd_create("syzkaller", 0 [pid 5231] <... mmap resumed>) = 0x7f4aa8000000 [pid 5234] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5234] setpgid(0, 0 [pid 5232] <... memfd_create resumed>) = 3 [pid 5234] <... setpgid resumed>) = 0 [pid 5232] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5234] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] <... mmap resumed>) = 0x7f4aa8000000 [pid 5234] <... openat resumed>) = 3 [pid 5234] write(3, "1000", 4) = 4 [pid 5234] close(3) = 0 [pid 5234] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5234] write(1, "executing program\n", 18executing program ) = 18 [pid 5234] memfd_create("syzkaller", 0) = 3 [pid 5234] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5233] 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 [pid 5231] 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 [pid 5232] 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 [pid 5229] 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 [pid 5234] 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 [pid 5231] <... write resumed>) = 16777216 [pid 5233] <... write resumed>) = 16777216 [pid 5231] munmap(0x7f4aa8000000, 138412032 [pid 5234] <... write resumed>) = 16777216 [pid 5231] <... munmap resumed>) = 0 [pid 5234] munmap(0x7f4aa8000000, 138412032 [pid 5233] munmap(0x7f4aa8000000, 138412032 [pid 5232] <... write resumed>) = 16777216 [pid 5229] <... write resumed>) = 16777216 [pid 5232] munmap(0x7f4aa8000000, 138412032 [pid 5233] <... munmap resumed>) = 0 [pid 5229] munmap(0x7f4aa8000000, 138412032 [pid 5234] <... munmap resumed>) = 0 [pid 5232] <... munmap resumed>) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5232] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5231] <... openat resumed>) = 4 [pid 5232] <... openat resumed>) = 4 [pid 5234] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5233] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5232] ioctl(4, LOOP_SET_FD, 3 [pid 5231] ioctl(4, LOOP_SET_FD, 3 [pid 5234] <... openat resumed>) = 4 [pid 5233] <... openat resumed>) = 4 [pid 5232] <... ioctl resumed>) = 0 [pid 5229] <... munmap resumed>) = 0 [pid 5232] close(3) = 0 [pid 5232] close(4) = 0 [pid 5234] ioctl(4, LOOP_SET_FD, 3 [pid 5233] ioctl(4, LOOP_SET_FD, 3 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5232] mkdir("./file0", 0777) = 0 [pid 5232] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5234] <... ioctl resumed>) = 0 [pid 5233] <... ioctl resumed>) = 0 [pid 5231] <... ioctl resumed>) = 0 [pid 5229] <... openat resumed>) = 4 [pid 5231] close(3 [pid 5229] ioctl(4, LOOP_SET_FD, 3 [pid 5234] close(3 [ 69.313298][ T5232] loop2: detected capacity change from 0 to 32768 [ 69.317121][ T5231] loop1: detected capacity change from 0 to 32768 [ 69.338442][ T5234] loop4: detected capacity change from 0 to 32768 [ 69.345912][ T5233] loop3: detected capacity change from 0 to 32768 [pid 5233] close(3 [pid 5231] <... close resumed>) = 0 [pid 5231] close(4 [pid 5234] <... close resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5231] <... close resumed>) = 0 [pid 5234] close(4 [pid 5233] close(4 [pid 5234] <... close resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5234] mkdir("./file0", 0777 [pid 5231] mkdir("./file0", 0777 [pid 5234] <... mkdir resumed>) = 0 [pid 5231] <... mkdir resumed>) = 0 [pid 5233] mkdir("./file0", 0777 [pid 5231] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5233] <... mkdir resumed>) = 0 [pid 5234] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5233] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5229] <... ioctl resumed>) = 0 [pid 5229] close(3) = 0 [pid 5229] close(4) = 0 [pid 5229] mkdir("./file0", 0777) = 0 [ 69.357472][ T5229] loop0: detected capacity change from 0 to 32768 [ 69.503182][ T5232] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 69.526124][ T5232] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 69.534901][ T5232] bcachefs (loop2): Version upgrade required: [ 69.534901][ T5232] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 69.534901][ T5232] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 69.534901][ T5232] 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 [ 69.609427][ T5232] bcachefs (loop2): dropping and reconstructing all alloc info [ 69.631635][ T5231] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 69.641116][ T5231] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 69.646597][ T5232] bcachefs (loop2): check_topology... done [ 69.655287][ T5232] bcachefs (loop2): accounting_read... done [ 69.662799][ T5232] bcachefs (loop2): alloc_read... done [ 69.668372][ T5232] bcachefs (loop2): stripes_read... done [ 69.674378][ T5232] bcachefs (loop2): snapshots_read... done [ 69.688805][ T5232] bcachefs (loop2): check_allocations... [ 69.691779][ T5234] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 69.707916][ T5234] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 69.723193][ T5229] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 69.742356][ T5232] done [ 69.747598][ T5232] bcachefs (loop2): going read-write [pid 5229] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5232] <... mount resumed>) = 0 [pid 5232] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5232] chdir("./file0") = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5232] ioctl(4, LOOP_CLR_FD) = 0 [pid 5232] close(4) = 0 [ 69.779853][ T5233] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 69.789173][ T5232] bcachefs (loop2): done starting filesystem [ 69.801350][ T5233] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 69.806138][ T5229] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 69.818917][ T5234] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5232] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5234] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5234] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5234] ioctl(3, LOOP_CLR_FD) = 0 [pid 5234] close(3 [pid 5232] <... openat resumed>) = 4 [pid 5232] exit_group(0 [pid 5231] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... exit_group resumed>) = ? [pid 5232] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5232, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=37 /* 0.37 s */} --- [pid 5226] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", [pid 5231] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] ioctl(3, LOOP_CLR_FD) = 0 [pid 5231] close(3 [pid 5226] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5226] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 69.889435][ T5231] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5226] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5233] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./0/binderfs") = 0 [pid 5226] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = 0 [ 69.943142][ T5233] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5233] close(3 [pid 5234] <... close resumed>) = 0 [pid 5234] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5229] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5234] <... openat resumed>) = 3 [pid 5229] <... ioctl resumed>) = 0 [ 70.028955][ T5226] bcachefs (loop2): shutting down [ 70.044596][ T5226] bcachefs (loop2): going read-only [ 70.051713][ T5226] bcachefs (loop2): finished waiting for writes to stop [ 70.061080][ T5229] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5229] close(3 [pid 5234] exit_group(0) = ? [pid 5234] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5234, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=38 /* 0.38 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 70.121911][ T5226] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./0/binderfs") = 0 [pid 5228] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./0/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./0/bus") = 0 [pid 5228] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./0/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] <... close resumed>) = 0 [pid 5231] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] <... openat resumed>) = 4 [pid 5228] newfstatat(4, "", [pid 5231] <... openat resumed>) = 3 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, [pid 5231] exit_group(0 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5231] <... exit_group resumed>) = ? [pid 5228] getdents64(4, [pid 5231] +++ exited with 0 +++ [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./0/file0" [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5231, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=41 /* 0.41 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5225] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... rmdir resumed>) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] close(3 [pid 5225] getdents64(3, [pid 5228] <... close resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] rmdir("./0" [pid 5225] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... rmdir resumed>) = 0 [pid 5225] unlink("./0/binderfs") = 0 [pid 5225] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] mkdir("./1", 0777 [pid 5225] newfstatat(AT_FDCWD, "./0/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./0/bus") = 0 [pid 5225] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./0/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5228] <... mkdir resumed>) = 0 [pid 5225] <... openat resumed>) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./0/file0") = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./0") = 0 [pid 5225] mkdir("./1", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5228] <... openat resumed>) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5225] <... close resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] <... close resumed>) = 0 ./strace-static-x86_64: Process 5275 attached ./strace-static-x86_64: Process 5276 attached [pid 5233] <... close resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5275 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5276 [pid 5276] set_robust_list(0x55555e217660, 24 [pid 5275] set_robust_list(0x55555e217660, 24 [pid 5229] <... openat resumed>) = 3 [pid 5275] <... set_robust_list resumed>) = 0 [pid 5275] chdir("./1" [ 70.290609][ T61] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 70.324406][ T61] bcachefs (loop2): fatal error - emergency read only [pid 5233] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5276] <... set_robust_list resumed>) = 0 [pid 5275] <... chdir resumed>) = 0 [pid 5233] exit_group(0 [pid 5229] exit_group(0 [pid 5275] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5233] <... exit_group resumed>) = ? [pid 5275] setpgid(0, 0 [pid 5233] +++ exited with 0 +++ [pid 5275] <... setpgid resumed>) = 0 [pid 5275] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5275] write(3, "1000", 4 [pid 5276] chdir("./1" [pid 5229] <... exit_group resumed>) = ? [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5233, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=41 /* 0.41 s */} --- [pid 5275] <... write resumed>) = 4 [pid 5275] close(3) = 0 [pid 5275] symlink("/dev/binderfs", "./binderfs" [pid 5276] <... chdir resumed>) = 0 executing program [pid 5276] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5229] +++ exited with 0 +++ [pid 5227] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5276] <... prctl resumed>) = 0 [pid 5275] <... symlink resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5229, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=48 /* 0.48 s */} --- [pid 5227] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5276] setpgid(0, 0 [pid 5275] write(1, "executing program\n", 18 [pid 5276] <... setpgid resumed>) = 0 [pid 5275] <... write resumed>) = 18 [pid 5227] <... openat resumed>) = 3 [pid 5224] <... restart_syscall resumed>) = 0 [pid 5227] newfstatat(3, "", [pid 5276] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] getdents64(3, [pid 5224] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5276] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5224] getdents64(3, [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./0/binderfs") = 0 [pid 5224] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5275] memfd_create("syzkaller", 0 [pid 5224] newfstatat(AT_FDCWD, "./0/bus", [pid 5275] <... memfd_create resumed>) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5275] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5224] unlink("./0/bus" [pid 5275] <... mmap resumed>) = 0x7f4aa8000000 [pid 5224] <... unlink resumed>) = 0 [pid 5224] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./0/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] unlink("./0/binderfs" [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5276] write(3, "1000", 4) = 4 [pid 5227] <... unlink resumed>) = 0 [pid 5224] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4 [pid 5276] close(3 [pid 5227] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... close resumed>) = 0 [pid 5276] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5276] symlink("/dev/binderfs", "./binderfs" [pid 5227] newfstatat(AT_FDCWD, "./0/bus", [pid 5276] <... symlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] rmdir("./0/file0"executing program [pid 5276] write(1, "executing program\n", 18 [pid 5227] unlink("./0/bus" [pid 5276] <... write resumed>) = 18 [pid 5227] <... unlink resumed>) = 0 [pid 5224] <... rmdir resumed>) = 0 [pid 5227] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3 [pid 5276] memfd_create("syzkaller", 0 [pid 5224] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] rmdir("./0" [pid 5276] <... memfd_create resumed>) = 3 [pid 5227] newfstatat(AT_FDCWD, "./0/file0", [pid 5224] <... rmdir resumed>) = 0 [pid 5224] mkdir("./1", 0777 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 70.347571][ T5226] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 14 [ 70.359246][ T5226] bcachefs (loop2): unshutdown complete, journal seq 14 [ 70.381355][ T5226] bcachefs (loop2): done going read-only, filesystem not clean [pid 5276] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... mkdir resumed>) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", [pid 5224] <... openat resumed>) = 3 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] ioctl(3, LOOP_CLR_FD [pid 5227] getdents64(4, [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] close(3 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, [pid 5224] <... close resumed>) = 0 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] <... close resumed>) = 0 [pid 5227] rmdir("./0/file0" [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5278 ./strace-static-x86_64: Process 5278 attached [pid 5227] <... rmdir resumed>) = 0 [pid 5278] set_robust_list(0x55555e217660, 24 [pid 5227] getdents64(3, [pid 5278] <... set_robust_list resumed>) = 0 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5278] chdir("./1" [pid 5227] close(3 [pid 5278] <... chdir resumed>) = 0 [pid 5227] <... close resumed>) = 0 [pid 5227] rmdir("./0" [pid 5278] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5227] <... rmdir resumed>) = 0 [pid 5278] setpgid(0, 0 [pid 5227] mkdir("./1", 0777 [pid 5278] <... setpgid resumed>) = 0 [pid 5227] <... mkdir resumed>) = 0 [pid 5278] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5278] <... openat resumed>) = 3 [pid 5227] <... openat resumed>) = 3 [pid 5278] write(3, "1000", 4 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5278] <... write resumed>) = 4 [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5278] close(3 [pid 5227] close(3 [pid 5278] <... close resumed>) = 0 [pid 5227] <... close resumed>) = 0 [pid 5278] symlink("/dev/binderfs", "./binderfs" [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5279 attached [pid 5278] <... symlink resumed>) = 0 executing program [pid 5279] set_robust_list(0x55555e217660, 24 [pid 5278] write(1, "executing program\n", 18 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5279 [pid 5278] <... write resumed>) = 18 [pid 5279] <... set_robust_list resumed>) = 0 [pid 5278] memfd_create("syzkaller", 0) = 3 [pid 5279] chdir("./1" [pid 5278] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5279] <... chdir resumed>) = 0 [pid 5279] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5279] setpgid(0, 0) = 0 [pid 5279] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5279] write(3, "1000", 4) = 4 [pid 5279] close(3) = 0 [pid 5279] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5279] write(1, "executing program\n", 18) = 18 [pid 5279] memfd_create("syzkaller", 0) = 3 [pid 5279] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 70.546564][ T5226] bcachefs (loop2): shutdown complete [pid 5275] 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 [pid 5276] 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 [pid 5278] 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 [pid 5279] 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 [pid 5275] <... write resumed>) = 16777216 [pid 5275] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5275] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5275] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5275] close(3) = 0 [pid 5275] close(4) = 0 [pid 5275] mkdir("./file0", 0777) = 0 [ 71.020796][ T5275] loop1: detected capacity change from 0 to 32768 [pid 5275] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5276] <... write resumed>) = 16777216 [pid 5276] munmap(0x7f4aa8000000, 138412032 [pid 5278] <... write resumed>) = 16777216 [pid 5276] <... munmap resumed>) = 0 [pid 5278] munmap(0x7f4aa8000000, 138412032 [pid 5276] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5276] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5278] <... munmap resumed>) = 0 [pid 5276] close(3) = 0 [pid 5276] close(4) = 0 [pid 5276] mkdir("./file0", 0777 [pid 5278] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5276] <... mkdir resumed>) = 0 [pid 5278] <... openat resumed>) = 4 [pid 5278] ioctl(4, LOOP_SET_FD, 3 [pid 5276] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5278] <... ioctl resumed>) = 0 [pid 5278] close(3) = 0 [pid 5278] close(4 [pid 5279] <... write resumed>) = 16777216 [pid 5278] <... close resumed>) = 0 [pid 5278] mkdir("./file0", 0777) = 0 [pid 5278] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 71.151279][ T5276] loop4: detected capacity change from 0 to 32768 [ 71.184604][ T5278] loop0: detected capacity change from 0 to 32768 [pid 5279] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5279] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5279] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5279] close(3) = 0 [pid 5279] close(4) = 0 [pid 5279] mkdir("./file0", 0777) = 0 [ 71.252660][ T5279] loop3: detected capacity change from 0 to 32768 [ 71.529075][ T5275] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 71.538824][ T5275] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 71.539135][ T5276] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 71.548798][ T5278] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 71.579603][ T5276] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 71.594897][ T5276] bcachefs (loop4): Version upgrade required: [ 71.594897][ T5276] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 71.594897][ T5276] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 71.594897][ T5276] 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.666530][ T5278] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 71.699103][ T5279] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 71.708247][ T5279] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 71.738625][ T5276] bcachefs (loop4): dropping and reconstructing all alloc info [ 71.783772][ T5276] bcachefs (loop4): check_topology... done [ 71.797439][ T5276] bcachefs (loop4): accounting_read... done [ 71.833621][ T5278] bcachefs: bch2_fs_get_tree() error: EINVAL [ 71.834354][ T5276] bcachefs (loop4): alloc_read... [ 71.849176][ T5275] bcachefs: bch2_fs_get_tree() error: EINVAL [ 71.866838][ T5276] done [pid 5279] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5278] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5278] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5278] ioctl(3, LOOP_CLR_FD) = 0 [pid 5278] close(3 [pid 5275] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5275] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5275] ioctl(3, LOOP_CLR_FD) = 0 [ 71.880196][ T5276] bcachefs (loop4): stripes_read... done [ 71.902137][ T5276] bcachefs (loop4): snapshots_read... done [ 71.938766][ T5276] bcachefs (loop4): check_allocations... [ 71.971470][ T5279] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5275] close(3 [pid 5279] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... umount2 resumed>) = 0 [pid 5279] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5279] ioctl(3, LOOP_CLR_FD) = 0 [ 72.024438][ T5276] done [pid 5279] close(3 [pid 5226] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./0/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./0/file0") = 0 [pid 5226] getdents64(3, [pid 5276] <... mount resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5276] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5226] close(3) = 0 [pid 5276] <... openat resumed>) = 3 [pid 5226] rmdir("./0") = 0 [ 72.079920][ T5276] bcachefs (loop4): going read-write [ 72.110787][ T5276] bcachefs (loop4): done starting filesystem [pid 5226] mkdir("./1", 0777 [pid 5276] chdir("./file0" [pid 5226] <... mkdir resumed>) = 0 [pid 5276] <... chdir resumed>) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5276] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5226] <... openat resumed>) = 3 [pid 5278] <... close resumed>) = 0 [pid 5276] <... openat resumed>) = 4 [pid 5276] ioctl(4, LOOP_CLR_FD [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5278] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5276] <... ioctl resumed>) = 0 [pid 5226] close(3 [pid 5278] <... openat resumed>) = 3 [pid 5276] close(4 [pid 5226] <... close resumed>) = 0 [pid 5276] <... close resumed>) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5311 attached [pid 5278] exit_group(0 [pid 5276] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5278] <... exit_group resumed>) = ? [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5311 [pid 5276] <... openat resumed>) = 4 [pid 5311] set_robust_list(0x55555e217660, 24) = 0 [pid 5276] exit_group(0 [pid 5311] chdir("./1" [pid 5278] +++ exited with 0 +++ [pid 5276] <... exit_group resumed>) = ? [pid 5311] <... chdir resumed>) = 0 [pid 5276] +++ exited with 0 +++ [pid 5275] <... close resumed>) = 0 [pid 5311] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5275] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5278, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=50 /* 0.50 s */} --- [pid 5311] <... prctl resumed>) = 0 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5276, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=42 /* 0.42 s */} --- [pid 5228] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5311] setpgid(0, 0 [pid 5275] <... openat resumed>) = 3 [pid 5228] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5311] <... setpgid resumed>) = 0 [pid 5275] exit_group(0 [pid 5228] <... openat resumed>) = 3 [pid 5224] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] newfstatat(3, "", [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5228] getdents64(3, [pid 5224] <... openat resumed>) = 3 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5224] newfstatat(3, "", [pid 5228] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] getdents64(3, [pid 5228] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5275] <... exit_group resumed>) = ? [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5311] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5228] unlink("./1/binderfs" [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... unlink resumed>) = 0 [pid 5224] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5228] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5275] +++ exited with 0 +++ [pid 5224] unlink("./1/binderfs" [pid 5311] <... openat resumed>) = 3 [pid 5224] <... unlink resumed>) = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5275, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=48 /* 0.48 s */} --- [pid 5224] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./1/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./1/bus") = 0 [pid 5224] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... restart_syscall resumed>) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(4, "", [pid 5311] write(3, "1000", 4 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] getdents64(4, [pid 5311] <... write resumed>) = 4 [pid 5225] <... openat resumed>) = 3 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5311] close(3 [pid 5225] newfstatat(3, "", [pid 5224] getdents64(4, [pid 5311] <... close resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5311] symlink("/dev/binderfs", "./binderfs" [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5311] <... symlink resumed>) = 0 [pid 5225] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] close(4 [pid 5225] newfstatat(AT_FDCWD, "./1/binderfs", executing program [pid 5224] <... close resumed>) = 0 [pid 5311] write(1, "executing program\n", 18 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5311] <... write resumed>) = 18 [pid 5311] memfd_create("syzkaller", 0 [pid 5225] unlink("./1/binderfs" [ 72.239959][ T5228] bcachefs (loop4): shutting down [pid 5224] rmdir("./1/file0" [pid 5311] <... memfd_create resumed>) = 3 [pid 5225] <... unlink resumed>) = 0 [pid 5224] <... rmdir resumed>) = 0 [pid 5225] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5311] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5279] <... close resumed>) = 0 [pid 5224] getdents64(3, [pid 5311] <... mmap resumed>) = 0x7f4aa8000000 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5279] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] newfstatat(AT_FDCWD, "./1/bus", [pid 5224] rmdir("./1") = 0 [pid 5224] mkdir("./2", 0777) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5225] unlink("./1/bus" [pid 5224] <... openat resumed>) = 3 [pid 5225] <... unlink resumed>) = 0 [pid 5224] ioctl(3, LOOP_CLR_FD [pid 5279] <... openat resumed>) = 3 [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5225] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5279] exit_group(0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 5313 attached [pid 5225] newfstatat(AT_FDCWD, "./1/file0", [pid 5279] <... exit_group resumed>) = ? [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5313] set_robust_list(0x55555e217660, 24 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5313 [pid 5313] <... set_robust_list resumed>) = 0 [pid 5313] chdir("./2" [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5313] <... chdir resumed>) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5279] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5279, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=37 /* 0.37 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5227] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./1/binderfs") = 0 [pid 5227] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./1/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./1/bus") = 0 [pid 5227] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5313] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] close(4 [pid 5227] newfstatat(AT_FDCWD, "./1/file0", [pid 5313] <... prctl resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... close resumed>) = 0 [pid 5227] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] rmdir("./1/file0" [pid 5313] setpgid(0, 0 [pid 5227] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", [pid 5313] <... setpgid resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] <... rmdir resumed>) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./1/file0" [pid 5313] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... rmdir resumed>) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5313] <... openat resumed>) = 3 [pid 5227] close(3 [pid 5313] write(3, "1000", 4 [pid 5225] getdents64(3, [pid 5313] <... write resumed>) = 4 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5313] close(3 [pid 5225] close(3 [pid 5227] <... close resumed>) = 0 [pid 5313] <... close resumed>) = 0 [pid 5225] <... close resumed>) = 0 [ 72.270795][ T5228] bcachefs (loop4): going read-only [ 72.277540][ T5228] bcachefs (loop4): finished waiting for writes to stop [ 72.289562][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 11 [pid 5313] symlink("/dev/binderfs", "./binderfs"executing program [pid 5225] rmdir("./1" [pid 5313] <... symlink resumed>) = 0 [pid 5227] rmdir("./1") = 0 [pid 5313] write(1, "executing program\n", 18 [pid 5225] <... rmdir resumed>) = 0 [pid 5313] <... write resumed>) = 18 [pid 5313] memfd_create("syzkaller", 0 [pid 5227] mkdir("./2", 0777 [pid 5313] <... memfd_create resumed>) = 3 [pid 5227] <... mkdir resumed>) = 0 [pid 5225] mkdir("./2", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5313] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5225] <... openat resumed>) = 3 [pid 5227] <... openat resumed>) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] close(3 [ 72.352783][ T52] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 72.372538][ T52] bcachefs (loop4): fatal error - emergency read only [ 72.383007][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [pid 5227] close(3) = 0 [pid 5225] <... close resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5314 attached executing program ./strace-static-x86_64: Process 5315 attached , child_tidptr=0x55555e217650) = 5315 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5314 [pid 5314] set_robust_list(0x55555e217660, 24) = 0 [pid 5314] chdir("./2") = 0 [pid 5314] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5314] setpgid(0, 0) = 0 [pid 5314] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5314] write(3, "1000", 4) = 4 [pid 5314] close(3) = 0 [pid 5314] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5314] write(1, "executing program\n", 18) = 18 [pid 5314] memfd_create("syzkaller", 0) = 3 [pid 5314] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5315] set_robust_list(0x55555e217660, 24) = 0 [pid 5315] chdir("./2") = 0 [pid 5315] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5314] <... mmap resumed>) = 0x7f4aa8000000 [pid 5315] <... prctl resumed>) = 0 [pid 5315] setpgid(0, 0) = 0 [pid 5315] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5315] write(3, "1000", 4) = 4 [pid 5315] close(3) = 0 [ 72.405635][ T5228] bcachefs (loop4): unshutdown complete, journal seq 14 [ 72.425703][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [pid 5315] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5315] write(1, "executing program\n", 18executing program ) = 18 [pid 5315] memfd_create("syzkaller", 0) = 3 [pid 5315] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 72.473481][ T5228] bcachefs (loop4): shutdown complete [pid 5311] 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 [pid 5315] 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 [pid 5313] 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 [pid 5314] 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 [pid 5315] <... write resumed>) = 16777216 [pid 5315] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5315] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5315] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5315] close(3 [pid 5311] <... write resumed>) = 16777216 [pid 5315] <... close resumed>) = 0 [pid 5315] close(4) = 0 [pid 5315] mkdir("./file0", 0777) = 0 [ 72.951938][ T5315] loop3: detected capacity change from 0 to 32768 [pid 5315] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5311] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5311] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5311] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5311] close(3) = 0 [pid 5311] close(4) = 0 [pid 5311] mkdir("./file0", 0777) = 0 [ 73.035634][ T5311] loop2: detected capacity change from 0 to 32768 [pid 5311] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5313] <... write resumed>) = 16777216 [pid 5313] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5313] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5313] ioctl(4, LOOP_SET_FD, 3 [pid 5314] <... write resumed>) = 16777216 [pid 5313] <... ioctl resumed>) = 0 [pid 5313] close(3 [pid 5314] munmap(0x7f4aa8000000, 138412032 [pid 5313] <... close resumed>) = 0 [pid 5314] <... munmap resumed>) = 0 [pid 5313] close(4 [pid 5314] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5313] <... close resumed>) = 0 [pid 5314] <... openat resumed>) = 4 [pid 5314] ioctl(4, LOOP_SET_FD, 3 [pid 5313] mkdir("./file0", 0777 [pid 5314] <... ioctl resumed>) = 0 [pid 5313] <... mkdir resumed>) = 0 [pid 5314] close(3) = 0 [pid 5313] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5314] close(4) = 0 [pid 5314] mkdir("./file0", 0777) = 0 [ 73.150442][ T5313] loop0: detected capacity change from 0 to 32768 [ 73.177833][ T5314] loop1: detected capacity change from 0 to 32768 [ 73.436644][ T5315] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 73.459046][ T5315] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 73.469918][ T5315] bcachefs (loop3): Version upgrade required: [ 73.469918][ T5315] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 73.469918][ T5315] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 73.469918][ T5315] 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.488756][ T5311] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 73.550744][ T5311] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 73.562101][ T5315] bcachefs (loop3): dropping and reconstructing all alloc info [ 73.603668][ T5313] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 73.639625][ T5315] bcachefs (loop3): check_topology... done [ 73.653500][ T5315] bcachefs (loop3): accounting_read... [ 73.655817][ T5314] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 73.655864][ T5313] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 73.662071][ T5314] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 73.687552][ T5315] done [ 73.696639][ T5315] bcachefs (loop3): alloc_read... done [pid 5314] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5311] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5311] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5311] ioctl(3, LOOP_CLR_FD) = 0 [ 73.709155][ T5315] bcachefs (loop3): stripes_read... done [ 73.718903][ T5311] bcachefs: bch2_fs_get_tree() error: EINVAL [ 73.720617][ T5315] bcachefs (loop3): snapshots_read... done [pid 5311] close(3 [pid 5228] <... umount2 resumed>) = 0 [pid 5228] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4 [pid 5314] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... close resumed>) = 0 [pid 5228] rmdir("./1/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [ 73.788703][ T5315] bcachefs (loop3): check_allocations... done [ 73.879498][ T5314] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5228] rmdir("./1" [pid 5314] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5228] <... rmdir resumed>) = 0 [pid 5228] mkdir("./2", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5314] <... openat resumed>) = 3 [pid 5228] <... openat resumed>) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5314] ioctl(3, LOOP_CLR_FD [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5228] close(3 [pid 5314] <... ioctl resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 5314] close(3 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5346 attached , child_tidptr=0x55555e217650) = 5346 [pid 5346] set_robust_list(0x55555e217660, 24) = 0 [pid 5346] chdir("./2") = 0 [pid 5346] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5346] setpgid(0, 0) = 0 [pid 5346] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 73.896561][ T5315] bcachefs (loop3): going read-write [pid 5346] write(3, "1000", 4) = 4 [pid 5346] close(3) = 0 executing program [pid 5346] symlink("/dev/binderfs", "./binderfs" [pid 5313] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5313] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5346] <... symlink resumed>) = 0 [pid 5313] ioctl(3, LOOP_CLR_FD [pid 5346] write(1, "executing program\n", 18 [pid 5313] <... ioctl resumed>) = 0 [pid 5346] <... write resumed>) = 18 [pid 5313] close(3 [pid 5346] memfd_create("syzkaller", 0) = 3 [ 73.939667][ T5313] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5346] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5315] <... mount resumed>) = 0 [pid 5311] <... close resumed>) = 0 [pid 5315] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5315] chdir("./file0") = 0 [pid 5315] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5311] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5315] ioctl(4, LOOP_CLR_FD [pid 5311] <... openat resumed>) = 3 [pid 5315] <... ioctl resumed>) = 0 [pid 5311] exit_group(0 [pid 5315] close(4) = 0 [pid 5315] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5311] <... exit_group resumed>) = ? [ 73.986246][ T5315] bcachefs (loop3): done starting filesystem [pid 5311] +++ exited with 0 +++ [pid 5315] <... openat resumed>) = 4 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5311, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=40 /* 0.40 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5226] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5315] exit_group(0) = ? [pid 5315] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5315, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=36 /* 0.36 s */} --- [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", [pid 5227] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] getdents64(3, [pid 5227] <... openat resumed>) = 3 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] newfstatat(3, "", [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5227] getdents64(3, [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5226] unlink("./1/binderfs" [pid 5227] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] <... unlink resumed>) = 0 [pid 5227] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5226] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./1/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./1/bus") = 0 [pid 5226] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] unlink("./2/binderfs" [pid 5226] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5314] <... close resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5226] <... openat resumed>) = 4 [pid 5227] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5314] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] getdents64(4, [pid 5314] <... openat resumed>) = 3 [pid 5314] exit_group(0 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4 [pid 5314] <... exit_group resumed>) = ? [pid 5314] +++ exited with 0 +++ [pid 5226] <... close resumed>) = 0 [pid 5226] rmdir("./1/file0" [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5314, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=39 /* 0.39 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5226] <... rmdir resumed>) = 0 [pid 5225] <... restart_syscall resumed>) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./1") = 0 [pid 5225] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5313] <... close resumed>) = 0 [pid 5225] newfstatat(AT_FDCWD, "./2/binderfs", [ 74.200194][ T5227] bcachefs (loop3): shutting down [ 74.205293][ T5227] bcachefs (loop3): going read-only [ 74.219141][ T5227] bcachefs (loop3): finished waiting for writes to stop [pid 5226] mkdir("./2", 0777 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./2/binderfs") = 0 [pid 5225] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./2/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./2/bus") = 0 [pid 5225] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./2/file0", [pid 5313] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5313] exit_group(0 [pid 5226] <... mkdir resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5313] <... exit_group resumed>) = ? [pid 5313] +++ exited with 0 +++ [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5225] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... openat resumed>) = 3 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5225] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5313, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] <... openat resumed>) = 4 [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5226] close(3 [pid 5225] newfstatat(4, "", [pid 5226] <... close resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] getdents64(4, ./strace-static-x86_64: Process 5349 attached 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] <... restart_syscall resumed>) = 0 [pid 5349] set_robust_list(0x55555e217660, 24 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4 [pid 5224] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5349] <... set_robust_list resumed>) = 0 [pid 5225] <... close resumed>) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] rmdir("./2/file0" [pid 5224] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 5225] getdents64(3, [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] getdents64(3, [pid 5349] chdir("./2" [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5349 [pid 5349] <... chdir resumed>) = 0 [pid 5349] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5349] setpgid(0, 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5349] <... setpgid resumed>) = 0 [pid 5224] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] close(3 [pid 5224] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5349] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] <... close resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5349] <... openat resumed>) = 3 [pid 5225] rmdir("./2" [pid 5224] unlink("./2/binderfs" [pid 5349] write(3, "1000", 4 [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... unlink resumed>) = 0 [pid 5349] <... write resumed>) = 4 [ 74.249721][ T5227] bcachefs (loop3): flushing journal and stopping allocators, journal seq 11 [pid 5224] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5349] close(3 [pid 5225] mkdir("./3", 0777 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5349] <... close resumed>) = 0 [pid 5346] 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 [pid 5225] <... mkdir resumed>) = 0 [pid 5224] newfstatat(AT_FDCWD, "./2/bus", [pid 5349] symlink("/dev/binderfs", "./binderfs" [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5349] <... symlink resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWRexecuting program [pid 5224] unlink("./2/bus" [pid 5349] write(1, "executing program\n", 18 [pid 5225] <... openat resumed>) = 3 [pid 5224] <... unlink resumed>) = 0 [pid 5349] <... write resumed>) = 18 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5224] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5349] memfd_create("syzkaller", 0 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5349] <... memfd_create resumed>) = 3 [pid 5225] close(3 [pid 5224] newfstatat(AT_FDCWD, "./2/file0", [pid 5349] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] <... close resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5349] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5224] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5350 attached ) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5350] set_robust_list(0x55555e217660, 24 [pid 5224] <... openat resumed>) = 4 [pid 5350] <... set_robust_list resumed>) = 0 [pid 5224] newfstatat(4, "", [pid 5350] chdir("./3" [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5350 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5350] <... chdir resumed>) = 0 [pid 5350] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5350] setpgid(0, 0) = 0 [pid 5350] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5350] write(3, "1000", 4) = 4 [pid 5350] close(3) = 0 [pid 5224] getdents64(4, [pid 5350] symlink("/dev/binderfs", "./binderfs" [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, [pid 5350] <... symlink resumed>) = 0 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 executing program [pid 5350] write(1, "executing program\n", 18 [pid 5224] close(4 [pid 5350] <... write resumed>) = 18 [pid 5350] memfd_create("syzkaller", 0) = 3 [pid 5350] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5224] <... close resumed>) = 0 [pid 5224] rmdir("./2/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./2") = 0 [pid 5224] mkdir("./3", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5351 attached , child_tidptr=0x55555e217650) = 5351 [pid 5351] set_robust_list(0x55555e217660, 24) = 0 [pid 5351] chdir("./3") = 0 [pid 5351] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5351] setpgid(0, 0) = 0 [ 74.331337][ T5227] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 17 [ 74.345104][ T5227] bcachefs (loop3): unshutdown complete, journal seq 18 [ 74.355542][ T5227] bcachefs (loop3): done going read-only, filesystem not clean [pid 5351] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5351] write(3, "1000", 4) = 4 [pid 5351] close(3) = 0 [pid 5351] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5351] write(1, "executing program\n", 18) = 18 [pid 5351] memfd_create("syzkaller", 0) = 3 [pid 5351] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 74.471289][ T5227] bcachefs (loop3): shutdown complete [pid 5346] <... write resumed>) = 16777216 [pid 5346] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5346] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5346] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5346] close(3) = 0 [pid 5346] close(4) = 0 [pid 5346] mkdir("./file0", 0777) = 0 [pid 5346] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 74.659830][ T5346] loop4: detected capacity change from 0 to 32768 [pid 5351] 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 [pid 5349] 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 [pid 5350] 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 [pid 5349] <... write resumed>) = 16777216 [pid 5349] munmap(0x7f4aa8000000, 138412032 [pid 5351] <... write resumed>) = 16777216 [pid 5349] <... munmap resumed>) = 0 [pid 5351] munmap(0x7f4aa8000000, 138412032 [pid 5349] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5349] ioctl(4, LOOP_SET_FD, 3 [pid 5351] <... munmap resumed>) = 0 [pid 5349] <... ioctl resumed>) = 0 [pid 5349] close(3) = 0 [pid 5349] close(4) = 0 [pid 5349] mkdir("./file0", 0777) = 0 [pid 5349] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5351] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5351] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5350] <... write resumed>) = 16777216 [pid 5351] close(3) = 0 [pid 5351] close(4) = 0 [pid 5350] munmap(0x7f4aa8000000, 138412032 [pid 5351] mkdir("./file0", 0777) = 0 [pid 5350] <... munmap resumed>) = 0 [ 74.977944][ T5349] loop2: detected capacity change from 0 to 32768 [ 75.014638][ T5351] loop0: detected capacity change from 0 to 32768 [pid 5351] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5350] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5350] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5350] close(3) = 0 [pid 5350] close(4) = 0 [pid 5350] mkdir("./file0", 0777) = 0 [ 75.054421][ T5350] loop1: detected capacity change from 0 to 32768 [ 75.232398][ T5346] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 75.254939][ T5346] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 75.264093][ T5346] bcachefs (loop4): Version upgrade required: [ 75.264093][ T5346] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 75.264093][ T5346] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 75.264093][ T5346] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 75.291386][ T5349] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 75.345923][ T5346] bcachefs (loop4): dropping and reconstructing all alloc info [ 75.354681][ T5349] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 75.354826][ T5350] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 75.396381][ T5346] bcachefs (loop4): check_topology... done [ 75.406702][ T5346] bcachefs (loop4): accounting_read... [ 75.406869][ T5350] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 75.421217][ T5351] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 75.430519][ T5351] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 75.438736][ T5346] done [ 75.441558][ T5346] bcachefs (loop4): alloc_read... done [ 75.447110][ T5346] bcachefs (loop4): stripes_read... done [ 75.468959][ T5346] bcachefs (loop4): snapshots_read... done [pid 5350] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5349] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5349] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5349] ioctl(3, LOOP_CLR_FD) = 0 [ 75.474958][ T5346] bcachefs (loop4): check_allocations... done [ 75.540570][ T5349] bcachefs: bch2_fs_get_tree() error: EINVAL [ 75.564005][ T5346] bcachefs (loop4): going read-write [pid 5349] close(3 [pid 5346] <... mount resumed>) = 0 [pid 5346] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5346] chdir("./file0") = 0 [pid 5346] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5346] ioctl(4, LOOP_CLR_FD) = 0 [pid 5346] close(4) = 0 [pid 5346] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5346] exit_group(0) = ? [pid 5346] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5346, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=33 /* 0.33 s */} --- [ 75.608932][ T5346] bcachefs (loop4): done starting filesystem [ 75.642195][ T5351] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5351] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... openat resumed>) = 3 [pid 5350] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(3, "", [pid 5351] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5351] <... openat resumed>) = 3 [pid 5228] getdents64(3, [pid 5351] ioctl(3, LOOP_CLR_FD [pid 5350] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5351] <... ioctl resumed>) = 0 [pid 5228] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5351] close(3 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5350] <... openat resumed>) = 3 [pid 5228] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5350] ioctl(3, LOOP_CLR_FD) = 0 [pid 5350] close(3 [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./2/binderfs") = 0 [ 75.663991][ T5350] bcachefs: bch2_fs_get_tree() error: EINVAL [ 75.759477][ T5228] bcachefs (loop4): shutting down [ 75.765055][ T5228] bcachefs (loop4): going read-only [pid 5228] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... umount2 resumed>) = 0 [pid 5227] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./2/file0") = 0 [pid 5349] <... close resumed>) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./2" [pid 5349] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... rmdir resumed>) = 0 [pid 5349] <... openat resumed>) = 3 [pid 5227] mkdir("./3", 0777) = 0 [pid 5349] exit_group(0) = ? [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5349] +++ exited with 0 +++ [pid 5227] <... openat resumed>) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5349, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=47 /* 0.47 s */} --- [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [ 75.819198][ T5228] bcachefs (loop4): finished waiting for writes to stop [ 75.840763][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5227] close(3) = 0 [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5384 attached [pid 5384] set_robust_list(0x55555e217660, 24 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5384 [pid 5384] <... set_robust_list resumed>) = 0 [pid 5384] chdir("./3") = 0 [pid 5226] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5384] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5226] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5384] <... prctl resumed>) = 0 [pid 5226] <... openat resumed>) = 3 [pid 5384] setpgid(0, 0) = 0 [pid 5384] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5226] newfstatat(3, "", [pid 5384] <... openat resumed>) = 3 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, [pid 5384] write(3, "1000", 4 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5384] <... write resumed>) = 4 [pid 5226] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5384] close(3 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5351] <... close resumed>) = 0 [pid 5384] <... close resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5384] symlink("/dev/binderfs", "./binderfs" [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5384] <... symlink resumed>) = 0 [pid 5226] unlink("./2/binderfs" [pid 5384] write(1, "executing program\n", 18executing program ) = 18 [pid 5226] <... unlink resumed>) = 0 [ 75.898073][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 17 [ 75.910289][ T5228] bcachefs (loop4): unshutdown complete, journal seq 18 [ 75.918298][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [pid 5384] memfd_create("syzkaller", 0 [pid 5226] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5384] <... memfd_create resumed>) = 3 [pid 5384] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5384] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] newfstatat(AT_FDCWD, "./2/bus", [pid 5351] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./2/bus") = 0 [pid 5226] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5351] <... openat resumed>) = 3 [pid 5226] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5351] exit_group(0 [pid 5226] <... openat resumed>) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5351] <... exit_group resumed>) = ? [pid 5351] +++ exited with 0 +++ [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5351, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] close(4) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] rmdir("./2/file0" [pid 5224] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] <... rmdir resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, [pid 5226] getdents64(3, [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] close(3 [pid 5224] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] <... close resumed>) = 0 [pid 5224] unlink("./3/binderfs" [pid 5226] rmdir("./2" [pid 5224] <... unlink resumed>) = 0 [pid 5224] umount2("./3/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... rmdir resumed>) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] mkdir("./3", 0777 [pid 5224] newfstatat(AT_FDCWD, "./3/bus", [pid 5226] <... mkdir resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./3/bus") = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5224] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... openat resumed>) = 3 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5224] newfstatat(AT_FDCWD, "./3/file0", [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5224] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5385 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 5385 attached [pid 5224] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5385] set_robust_list(0x55555e217660, 24) = 0 [pid 5385] chdir("./3" [pid 5224] <... openat resumed>) = 4 [pid 5385] <... chdir resumed>) = 0 [pid 5385] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5385] setpgid(0, 0) = 0 [pid 5385] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5385] write(3, "1000", 4) = 4 [pid 5385] close(3) = 0 [pid 5385] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5224] newfstatat(4, "", [pid 5385] write(1, "executing program\n", 18 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 executing program [pid 5385] <... write resumed>) = 18 [ 76.017386][ T5228] bcachefs (loop4): shutdown complete [pid 5385] memfd_create("syzkaller", 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5385] <... memfd_create resumed>) = 3 [pid 5224] rmdir("./3/file0" [pid 5385] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5224] <... rmdir resumed>) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5350] <... close resumed>) = 0 [pid 5224] close(3 [pid 5350] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5224] <... close resumed>) = 0 [pid 5350] <... openat resumed>) = 3 [pid 5224] rmdir("./3" [pid 5350] exit_group(0) = ? [pid 5224] <... rmdir resumed>) = 0 [pid 5350] +++ exited with 0 +++ [pid 5224] mkdir("./4", 0777) = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5350, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=41 /* 0.41 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] <... restart_syscall resumed>) = 0 ./strace-static-x86_64: Process 5386 attached [pid 5225] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5386] set_robust_list(0x55555e217660, 24 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5386] <... set_robust_list resumed>) = 0 [pid 5225] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5386] chdir("./4" [pid 5225] <... openat resumed>) = 3 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5386 [pid 5386] <... chdir resumed>) = 0 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, [pid 5386] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5386] setpgid(0, 0) = 0 [pid 5386] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5386] write(3, "1000", 4) = 4 [pid 5386] close(3) = 0 [pid 5386] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./3/binderfs", [pid 5386] write(1, "executing program\n", 18 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./3/binderfs"executing program ) = 0 [pid 5386] <... write resumed>) = 18 [pid 5386] memfd_create("syzkaller", 0 [pid 5225] umount2("./3/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5386] <... memfd_create resumed>) = 3 [pid 5386] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] newfstatat(AT_FDCWD, "./3/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./3/bus") = 0 [pid 5225] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./3/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./3") = 0 [pid 5225] mkdir("./4", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5384] 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 [pid 5225] <... openat resumed>) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5387 ./strace-static-x86_64: Process 5387 attached [pid 5387] set_robust_list(0x55555e217660, 24) = 0 [pid 5387] chdir("./4") = 0 [pid 5387] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5387] setpgid(0, 0) = 0 [pid 5387] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5387] write(3, "1000", 4) = 4 [pid 5387] close(3) = 0 [pid 5387] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5387] write(1, "executing program\n", 18) = 18 [pid 5387] memfd_create("syzkaller", 0) = 3 [pid 5387] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5385] 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 [pid 5386] 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 [pid 5384] <... write resumed>) = 16777216 [pid 5384] munmap(0x7f4aa8000000, 138412032 [pid 5387] 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 [pid 5384] <... munmap resumed>) = 0 [pid 5384] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5384] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5384] close(3) = 0 [pid 5384] close(4) = 0 [pid 5384] mkdir("./file0", 0777) = 0 [ 76.648973][ T5384] loop3: detected capacity change from 0 to 32768 [pid 5384] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5385] <... write resumed>) = 16777216 [pid 5385] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5385] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5385] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5385] close(3) = 0 [pid 5385] close(4) = 0 [pid 5385] mkdir("./file0", 0777) = 0 [ 76.732556][ T5385] loop2: detected capacity change from 0 to 32768 [pid 5385] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5386] <... write resumed>) = 16777216 [pid 5386] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5386] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5386] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5386] close(3) = 0 [pid 5386] close(4) = 0 [pid 5387] <... write resumed>) = 16777216 [pid 5386] mkdir("./file0", 0777 [pid 5387] munmap(0x7f4aa8000000, 138412032 [pid 5386] <... mkdir resumed>) = 0 [ 76.820377][ T5386] loop0: detected capacity change from 0 to 32768 [pid 5386] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5387] <... munmap resumed>) = 0 [pid 5387] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5387] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5387] close(3) = 0 [pid 5387] close(4) = 0 [pid 5387] mkdir("./file0", 0777) = 0 [ 76.909805][ T5387] loop1: detected capacity change from 0 to 32768 [ 76.965973][ T5384] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 76.990145][ T5384] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 76.996727][ T5385] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 76.998382][ T5384] bcachefs (loop3): Version upgrade required: [ 76.998382][ T5384] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 76.998382][ T5384] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 76.998382][ T5384] 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 [ 77.089250][ T5385] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 77.110807][ T5386] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 77.132030][ T5384] bcachefs (loop3): dropping and reconstructing all alloc info [ 77.145559][ T5386] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 77.167454][ T5384] bcachefs (loop3): check_topology... done [ 77.187553][ T5387] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [pid 5387] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5386] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5386] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 77.200970][ T5384] bcachefs (loop3): accounting_read... done [ 77.246355][ T5386] bcachefs: bch2_fs_get_tree() error: EINVAL [ 77.246584][ T5384] bcachefs (loop3): alloc_read... done [ 77.258916][ T5387] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 77.266000][ T5384] bcachefs (loop3): stripes_read... done [ 77.274947][ T5384] bcachefs (loop3): snapshots_read... done [pid 5386] ioctl(3, LOOP_CLR_FD) = 0 [ 77.281308][ T5384] bcachefs (loop3): check_allocations... done [pid 5386] close(3 [pid 5228] <... umount2 resumed>) = 0 [pid 5228] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5385] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... openat resumed>) = 4 [pid 5385] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5228] newfstatat(4, "", [pid 5385] ioctl(3, LOOP_CLR_FD [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5385] <... ioctl resumed>) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5385] close(3 [ 77.361335][ T5385] bcachefs: bch2_fs_get_tree() error: EINVAL [ 77.379598][ T5384] bcachefs (loop3): going read-write [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./2/file0" [pid 5384] <... mount resumed>) = 0 [pid 5384] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5228] <... rmdir resumed>) = 0 [pid 5384] chdir("./file0") = 0 [pid 5384] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5384] ioctl(4, LOOP_CLR_FD) = 0 [pid 5384] close(4) = 0 [pid 5384] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] getdents64(3, [pid 5384] <... openat resumed>) = 4 [pid 5384] exit_group(0) = ? [pid 5384] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5384, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=39 /* 0.39 s */} --- [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [ 77.407209][ T5384] bcachefs (loop3): done starting filesystem [pid 5228] rmdir("./2") = 0 [pid 5228] mkdir("./3", 0777) = 0 [pid 5227] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] <... openat resumed>) = 3 [pid 5227] getdents64(3, [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5227] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] close(3 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... close resumed>) = 0 [pid 5227] newfstatat(AT_FDCWD, "./3/binderfs", [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5419 ./strace-static-x86_64: Process 5419 attached [pid 5227] unlink("./3/binderfs") = 0 [pid 5419] set_robust_list(0x55555e217660, 24) = 0 [pid 5419] chdir("./3" [pid 5227] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5419] <... chdir resumed>) = 0 [pid 5419] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5419] setpgid(0, 0) = 0 [pid 5419] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5387] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5387] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5419] write(3, "1000", 4) = 4 executing program [pid 5419] close(3) = 0 [pid 5419] symlink("/dev/binderfs", "./binderfs" [pid 5387] <... openat resumed>) = 3 [pid 5387] ioctl(3, LOOP_CLR_FD [pid 5419] <... symlink resumed>) = 0 [pid 5387] <... ioctl resumed>) = 0 [pid 5419] write(1, "executing program\n", 18 [pid 5387] close(3 [pid 5419] <... write resumed>) = 18 [pid 5419] memfd_create("syzkaller", 0) = 3 [pid 5419] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 77.528649][ T5387] bcachefs: bch2_fs_get_tree() error: EINVAL [ 77.538207][ T5227] bcachefs (loop3): shutting down [ 77.547425][ T5227] bcachefs (loop3): going read-only [ 77.553795][ T5227] bcachefs (loop3): finished waiting for writes to stop [ 77.599160][ T5227] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5386] <... close resumed>) = 0 [pid 5387] <... close resumed>) = 0 [pid 5386] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5387] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5386] <... openat resumed>) = 3 [pid 5386] exit_group(0 [pid 5387] <... openat resumed>) = 3 [pid 5386] <... exit_group resumed>) = ? [pid 5387] exit_group(0 [pid 5386] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5386, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=44 /* 0.44 s */} --- [pid 5224] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5387] <... exit_group resumed>) = ? [pid 5387] +++ exited with 0 +++ [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5387, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=36 /* 0.36 s */} --- [pid 5224] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] newfstatat(AT_FDCWD, "./4/binderfs", [pid 5225] <... openat resumed>) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] newfstatat(3, "", [pid 5224] unlink("./4/binderfs" [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... unlink resumed>) = 0 [pid 5225] getdents64(3, [pid 5224] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5385] <... close resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 77.711401][ T2994] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [ 77.749948][ T2994] bcachefs (loop3): fatal error - emergency read only [pid 5385] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(AT_FDCWD, "./4/bus", [pid 5385] <... openat resumed>) = 3 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] newfstatat(AT_FDCWD, "./4/binderfs", [pid 5385] exit_group(0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./4/bus" [pid 5225] unlink("./4/binderfs" [pid 5224] <... unlink resumed>) = 0 [pid 5385] <... exit_group resumed>) = ? [pid 5225] <... unlink resumed>) = 0 [pid 5224] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5385] +++ exited with 0 +++ [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5385, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5224] newfstatat(AT_FDCWD, "./4/file0", [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] newfstatat(AT_FDCWD, "./4/bus", [pid 5224] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] unlink("./4/bus" [pid 5224] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] <... unlink resumed>) = 0 [pid 5224] <... openat resumed>) = 4 [pid 5225] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(4, "", [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] newfstatat(AT_FDCWD, "./4/file0", [pid 5224] getdents64(4, [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5225] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] close(4) = 0 [pid 5226] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] rmdir("./4/file0" [pid 5226] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] <... rmdir resumed>) = 0 [pid 5226] <... openat resumed>) = 3 [pid 5224] getdents64(3, [pid 5226] newfstatat(3, "", [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] close(3 [pid 5226] getdents64(3, [pid 5224] <... close resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] rmdir("./4" [pid 5226] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] <... openat resumed>) = 4 [pid 5224] <... rmdir resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./3/binderfs", [pid 5225] newfstatat(4, "", [pid 5224] mkdir("./5", 0777 [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] unlink("./3/binderfs" [pid 5225] getdents64(4, [pid 5224] <... mkdir resumed>) = 0 [pid 5226] <... unlink resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5225] getdents64(4, [pid 5224] ioctl(3, LOOP_CLR_FD [pid 5226] umount2("./3/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] close(4 [pid 5224] close(3 [pid 5226] newfstatat(AT_FDCWD, "./3/bus", [pid 5225] <... close resumed>) = 0 [pid 5224] <... close resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] rmdir("./4/file0" [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5420 attached [pid 5226] unlink("./3/bus" [pid 5225] <... rmdir resumed>) = 0 [pid 5226] <... unlink resumed>) = 0 [ 77.757144][ T5227] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 14 [ 77.771653][ T5227] bcachefs (loop3): unshutdown complete, journal seq 14 [ 77.780610][ T5227] bcachefs (loop3): done going read-only, filesystem not clean [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5420 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5420] set_robust_list(0x55555e217660, 24 [pid 5226] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5420] <... set_robust_list resumed>) = 0 [pid 5225] close(3) = 0 [pid 5420] chdir("./5" [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] rmdir("./4" [pid 5420] <... chdir resumed>) = 0 [pid 5225] <... rmdir resumed>) = 0 [pid 5420] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5226] newfstatat(AT_FDCWD, "./3/file0", [pid 5225] mkdir("./5", 0777) = 0 [pid 5420] <... prctl resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5420] setpgid(0, 0 [pid 5226] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... openat resumed>) = 3 [pid 5226] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5420] <... setpgid resumed>) = 0 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5420] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] <... openat resumed>) = 4 [pid 5225] close(3 [pid 5420] <... openat resumed>) = 3 [pid 5225] <... close resumed>) = 0 [pid 5420] write(3, "1000", 4 [pid 5226] newfstatat(4, "", [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5421 [pid 5226] getdents64(4, ./strace-static-x86_64: Process 5421 attached [pid 5420] <... write resumed>) = 4 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5420] close(3 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5420] <... close resumed>) = 0 [pid 5226] close(4 [pid 5420] symlink("/dev/binderfs", "./binderfs" [pid 5226] <... close resumed>) = 0 [pid 5421] set_robust_list(0x55555e217660, 24 [pid 5226] rmdir("./3/file0"executing program [pid 5421] <... set_robust_list resumed>) = 0 [pid 5420] <... symlink resumed>) = 0 [pid 5226] <... rmdir resumed>) = 0 [pid 5421] chdir("./5") = 0 [pid 5421] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5421] setpgid(0, 0) = 0 [pid 5421] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5421] write(3, "1000", 4) = 4 [pid 5421] close(3) = 0 [pid 5421] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5421] write(1, "executing program\n", 18) = 18 [pid 5421] memfd_create("syzkaller", 0) = 3 [pid 5421] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5420] write(1, "executing program\n", 18 [pid 5226] getdents64(3, executing program [pid 5420] <... write resumed>) = 18 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5420] memfd_create("syzkaller", 0 [pid 5419] 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 [pid 5226] close(3 [pid 5420] <... memfd_create resumed>) = 3 [pid 5226] <... close resumed>) = 0 [pid 5226] rmdir("./3" [pid 5420] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] <... rmdir resumed>) = 0 [pid 5420] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] mkdir("./4", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5422 attached , child_tidptr=0x55555e217650) = 5422 [pid 5422] set_robust_list(0x55555e217660, 24) = 0 [pid 5422] chdir("./4") = 0 [pid 5422] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5422] setpgid(0, 0) = 0 [pid 5422] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 77.879493][ T5227] bcachefs (loop3): shutdown complete [pid 5422] write(3, "1000", 4) = 4 [pid 5422] close(3) = 0 [pid 5422] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5422] write(1, "executing program\n", 18) = 18 [pid 5422] memfd_create("syzkaller", 0) = 3 [pid 5422] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5420] 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 [pid 5421] 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 [pid 5422] 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 [pid 5419] <... write resumed>) = 16777216 [pid 5419] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5419] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5419] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5419] close(3) = 0 [pid 5419] close(4) = 0 [pid 5419] mkdir("./file0", 0777) = 0 [ 78.343304][ T5419] loop4: detected capacity change from 0 to 32768 [pid 5419] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5420] <... write resumed>) = 16777216 [pid 5420] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5421] <... write resumed>) = 16777216 [pid 5421] munmap(0x7f4aa8000000, 138412032 [pid 5420] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5420] ioctl(4, LOOP_SET_FD, 3 [pid 5421] <... munmap resumed>) = 0 [pid 5420] <... ioctl resumed>) = 0 [pid 5421] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5421] ioctl(4, LOOP_SET_FD, 3 [pid 5422] <... write resumed>) = 16777216 [pid 5420] close(3 [pid 5421] <... ioctl resumed>) = 0 [pid 5422] munmap(0x7f4aa8000000, 138412032 [pid 5421] close(3 [pid 5420] <... close resumed>) = 0 [pid 5422] <... munmap resumed>) = 0 [pid 5421] <... close resumed>) = 0 [pid 5420] close(4 [pid 5422] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5421] close(4 [pid 5420] <... close resumed>) = 0 [pid 5421] <... close resumed>) = 0 [pid 5420] mkdir("./file0", 0777 [ 78.549799][ T5420] loop0: detected capacity change from 0 to 32768 [ 78.565291][ T5421] loop1: detected capacity change from 0 to 32768 [pid 5421] mkdir("./file0", 0777 [pid 5422] <... openat resumed>) = 4 [pid 5421] <... mkdir resumed>) = 0 [pid 5420] <... mkdir resumed>) = 0 [pid 5422] ioctl(4, LOOP_SET_FD, 3 [pid 5421] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5420] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5422] <... ioctl resumed>) = 0 [pid 5422] close(3) = 0 [pid 5422] close(4) = 0 [pid 5422] mkdir("./file0", 0777) = 0 [ 78.615243][ T5422] loop2: detected capacity change from 0 to 32768 [ 78.784364][ T5419] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 78.805782][ T5422] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 78.807832][ T5419] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 78.825423][ T5419] bcachefs (loop4): Version upgrade required: [ 78.825423][ T5419] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.825423][ T5419] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 78.825423][ T5419] 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.847811][ T5422] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 78.896850][ T5421] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 78.913893][ T5421] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 78.917591][ T5420] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [pid 5422] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5421] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5421] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [ 78.957762][ T5420] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 78.969038][ T5419] bcachefs (loop4): dropping and reconstructing all alloc info [ 78.992280][ T5421] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5421] ioctl(3, LOOP_CLR_FD) = 0 [ 79.048860][ T5419] bcachefs (loop4): check_topology... done [ 79.054773][ T5419] bcachefs (loop4): accounting_read... done [pid 5421] close(3 [pid 5227] <... umount2 resumed>) = 0 [pid 5227] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [ 79.099447][ T5419] bcachefs (loop4): alloc_read... done [ 79.115693][ T5419] bcachefs (loop4): stripes_read... done [ 79.138676][ T5419] bcachefs (loop4): snapshots_read... done [pid 5227] rmdir("./3/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./3") = 0 [pid 5227] mkdir("./4", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5452 attached , child_tidptr=0x55555e217650) = 5452 [pid 5452] set_robust_list(0x55555e217660, 24) = 0 [pid 5452] chdir("./4") = 0 [pid 5452] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5452] setpgid(0, 0) = 0 [pid 5452] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5452] write(3, "1000", 4) = 4 [pid 5452] close(3) = 0 [pid 5452] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5452] write(1, "executing program\n", 18executing program ) = 18 [pid 5452] memfd_create("syzkaller", 0) = 3 [pid 5452] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5422] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5420] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5422] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5420] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5422] <... openat resumed>) = 3 [pid 5420] <... openat resumed>) = 3 [pid 5422] ioctl(3, LOOP_CLR_FD [pid 5420] ioctl(3, LOOP_CLR_FD [pid 5422] <... ioctl resumed>) = 0 [pid 5420] <... ioctl resumed>) = 0 [pid 5422] close(3 [ 79.144820][ T5419] bcachefs (loop4): check_allocations... [ 79.216207][ T5420] bcachefs: bch2_fs_get_tree() error: EINVAL [ 79.234442][ T5422] bcachefs: bch2_fs_get_tree() error: EINVAL [ 79.270649][ T5419] done [ 79.300648][ T5419] bcachefs (loop4): going read-write [pid 5420] close(3 [pid 5421] <... close resumed>) = 0 [pid 5421] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5421] exit_group(0) = ? [pid 5419] <... mount resumed>) = 0 [pid 5419] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5421] +++ exited with 0 +++ [pid 5419] <... openat resumed>) = 3 [pid 5419] chdir("./file0" [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5421, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=38 /* 0.38 s */} --- [pid 5419] <... chdir resumed>) = 0 [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5419] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5225] <... restart_syscall resumed>) = 0 [pid 5419] <... openat resumed>) = 4 [pid 5419] ioctl(4, LOOP_CLR_FD [pid 5225] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5419] <... ioctl resumed>) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5419] close(4 [pid 5225] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5419] <... close resumed>) = 0 [pid 5419] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... openat resumed>) = 3 [pid 5419] <... openat resumed>) = 4 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5419] exit_group(0 [pid 5225] getdents64(3, [pid 5419] <... exit_group resumed>) = ? [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5419] +++ exited with 0 +++ [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5419, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5225] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./5/binderfs") = 0 [pid 5225] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./5/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 79.380786][ T5419] bcachefs (loop4): done starting filesystem [pid 5225] unlink("./5/bus") = 0 [pid 5225] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./5/file0", [pid 5228] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... openat resumed>) = 3 [pid 5225] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] newfstatat(3, "", [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", [pid 5228] getdents64(3, [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4 [pid 5228] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... close resumed>) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] rmdir("./5/file0" [pid 5228] newfstatat(AT_FDCWD, "./3/binderfs", [pid 5225] <... rmdir resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] getdents64(3, [pid 5228] unlink("./3/binderfs" [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] <... unlink resumed>) = 0 [pid 5228] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] close(3) = 0 [pid 5225] rmdir("./5") = 0 [pid 5225] mkdir("./6", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5455 attached , child_tidptr=0x55555e217650) = 5455 [pid 5455] set_robust_list(0x55555e217660, 24) = 0 [pid 5455] chdir("./6") = 0 [pid 5455] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5455] setpgid(0, 0) = 0 [ 79.509804][ T5228] bcachefs (loop4): shutting down [ 79.523027][ T5228] bcachefs (loop4): going read-only [pid 5455] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5455] write(3, "1000", 4) = 4 [pid 5455] close(3) = 0 [pid 5455] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5455] write(1, "executing program\n", 18) = 18 [pid 5455] memfd_create("syzkaller", 0) = 3 [pid 5455] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5452] 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 [pid 5422] <... close resumed>) = 0 [ 79.555066][ T5228] bcachefs (loop4): finished waiting for writes to stop [pid 5420] <... close resumed>) = 0 [pid 5422] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5422] exit_group(0) = ? [pid 5422] +++ exited with 0 +++ [pid 5420] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5422, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=51 /* 0.51 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5226] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5420] <... openat resumed>) = 3 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5420] exit_group(0 [pid 5226] <... openat resumed>) = 3 [pid 5420] <... exit_group resumed>) = ? [pid 5226] newfstatat(3, "", [pid 5420] +++ exited with 0 +++ [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5420, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=42 /* 0.42 s */} --- [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./4/binderfs" [pid 5224] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] <... unlink resumed>) = 0 [pid 5226] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./4/bus", [pid 5224] <... openat resumed>) = 3 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./4/bus" [pid 5224] newfstatat(3, "", [pid 5226] <... unlink resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] getdents64(3, [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./5/binderfs", [pid 5226] <... openat resumed>) = 4 [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 79.609463][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5226] newfstatat(4, "", [pid 5224] unlink("./5/binderfs" [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, [pid 5224] <... unlink resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] getdents64(4, [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4 [pid 5224] newfstatat(AT_FDCWD, "./5/bus", [pid 5226] <... close resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] rmdir("./4/file0" [pid 5224] unlink("./5/bus" [pid 5226] <... rmdir resumed>) = 0 [pid 5226] getdents64(3, [pid 5224] <... unlink resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./5/file0", [pid 5226] close(3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] <... close resumed>) = 0 [pid 5224] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] rmdir("./4" [pid 5224] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./5/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./5") = 0 [pid 5224] mkdir("./6", 0777) = 0 [pid 5226] <... rmdir resumed>) = 0 [pid 5226] mkdir("./5", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 79.694846][ T1064] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 79.730917][ T1064] bcachefs (loop4): fatal error - emergency read only [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5224] <... openat resumed>) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5456 ./strace-static-x86_64: Process 5456 attached [pid 5456] set_robust_list(0x55555e217660, 24) = 0 [pid 5456] chdir("./6") = 0 [pid 5456] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5456] setpgid(0, 0) = 0 [pid 5456] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5456] write(3, "1000", 4) = 4 [pid 5456] close(3) = 0 [pid 5456] symlink("/dev/binderfs", "./binderfs") = 0 ./strace-static-x86_64: Process 5457 attached [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5457 [pid 5457] set_robust_list(0x55555e217660, 24) = 0 executing program [pid 5457] chdir("./5" [pid 5456] write(1, "executing program\n", 18 [pid 5457] <... chdir resumed>) = 0 [pid 5457] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5456] <... write resumed>) = 18 [pid 5457] <... prctl resumed>) = 0 [pid 5457] setpgid(0, 0 [pid 5456] memfd_create("syzkaller", 0 [pid 5457] <... setpgid resumed>) = 0 [pid 5456] <... memfd_create resumed>) = 3 [pid 5456] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5457] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5457] write(3, "1000", 4) = 4 [pid 5457] close(3) = 0 [pid 5457] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5457] write(1, "executing program\n", 18) = 18 [ 79.738524][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [ 79.759703][ T5228] bcachefs (loop4): unshutdown complete, journal seq 14 [pid 5457] memfd_create("syzkaller", 0) = 3 [pid 5457] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 79.788509][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [ 79.860860][ T5228] bcachefs (loop4): shutdown complete [pid 5455] 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 [pid 5452] <... write resumed>) = 16777216 [pid 5452] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5452] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5452] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5452] close(3) = 0 [pid 5452] close(4 [pid 5456] 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 [pid 5457] 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 [pid 5452] <... close resumed>) = 0 [ 80.018872][ T5452] loop3: detected capacity change from 0 to 32768 [pid 5452] mkdir("./file0", 0777) = 0 [pid 5452] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5455] <... write resumed>) = 16777216 [pid 5455] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5455] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5455] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5455] close(3) = 0 [pid 5455] close(4) = 0 [pid 5455] mkdir("./file0", 0777) = 0 [pid 5455] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5457] <... write resumed>) = 16777216 [ 80.270677][ T5455] loop1: detected capacity change from 0 to 32768 [pid 5457] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5457] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5457] ioctl(4, LOOP_SET_FD, 3 [pid 5456] <... write resumed>) = 16777216 [pid 5457] <... ioctl resumed>) = 0 [pid 5457] close(3 [pid 5456] munmap(0x7f4aa8000000, 138412032 [pid 5457] <... close resumed>) = 0 [pid 5457] close(4) = 0 [pid 5457] mkdir("./file0", 0777) = 0 [pid 5456] <... munmap resumed>) = 0 [pid 5457] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5456] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5456] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5456] close(3) = 0 [pid 5456] close(4) = 0 [pid 5456] mkdir("./file0", 0777) = 0 [ 80.337484][ T5457] loop2: detected capacity change from 0 to 32768 [ 80.375150][ T5456] loop0: detected capacity change from 0 to 32768 [ 80.747058][ T5456] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 80.769601][ T5455] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 80.778816][ T5455] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 80.785531][ T5456] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 80.787198][ T5457] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 80.801259][ T5456] bcachefs (loop0): Version upgrade required: [ 80.801259][ T5456] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 80.801259][ T5456] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 80.801259][ T5456] 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 [ 80.807369][ T5452] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 80.891159][ T5457] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 80.901390][ T5452] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 80.924910][ T5456] bcachefs (loop0): dropping and reconstructing all alloc info [ 80.945267][ T5456] bcachefs (loop0): check_topology... done [pid 5456] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5455] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5455] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5455] ioctl(3, LOOP_CLR_FD) = 0 [ 80.951539][ T5456] bcachefs (loop0): accounting_read... done [ 81.005896][ T5456] bcachefs (loop0): alloc_read... done [ 81.018171][ T5455] bcachefs: bch2_fs_get_tree() error: EINVAL [ 81.033364][ T5456] bcachefs (loop0): stripes_read... done [pid 5455] close(3 [pid 5228] <... umount2 resumed>) = 0 [pid 5228] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, [pid 5457] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./3/file0") = 0 [ 81.064454][ T5456] bcachefs (loop0): snapshots_read... done [ 81.088962][ T5456] bcachefs (loop0): check_allocations... [ 81.099947][ T5457] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5457] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5457] <... openat resumed>) = 3 [pid 5228] close(3 [pid 5457] ioctl(3, LOOP_CLR_FD [pid 5228] <... close resumed>) = 0 [pid 5228] rmdir("./3" [pid 5457] <... ioctl resumed>) = 0 [pid 5457] close(3 [pid 5228] <... rmdir resumed>) = 0 [pid 5228] mkdir("./4", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3 [pid 5452] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5452] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5452] ioctl(3, LOOP_CLR_FD) = 0 [pid 5452] close(3 [pid 5228] <... close resumed>) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5487 attached [pid 5487] set_robust_list(0x55555e217660, 24) = 0 [pid 5487] chdir("./4" [ 81.174242][ T5456] done [ 81.187623][ T5452] bcachefs: bch2_fs_get_tree() error: EINVAL [ 81.196457][ T5456] bcachefs (loop0): going read-write [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5487 [pid 5487] <... chdir resumed>) = 0 [pid 5487] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5487] setpgid(0, 0) = 0 [pid 5487] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5487] write(3, "1000", 4) = 4 [pid 5487] close(3) = 0 [pid 5487] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5487] write(1, "executing program\n", 18) = 18 [pid 5487] memfd_create("syzkaller", 0) = 3 [pid 5487] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5456] <... mount resumed>) = 0 [pid 5456] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5456] chdir("./file0") = 0 [pid 5456] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5456] ioctl(4, LOOP_CLR_FD) = 0 [pid 5456] close(4) = 0 [ 81.249377][ T5456] bcachefs (loop0): done starting filesystem [pid 5456] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5456] exit_group(0) = ? [pid 5455] <... close resumed>) = 0 [pid 5456] +++ exited with 0 +++ [pid 5455] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5456, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=36 /* 0.36 s */} --- [pid 5455] exit_group(0 [pid 5224] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5455] <... exit_group resumed>) = ? [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5455] +++ exited with 0 +++ [pid 5224] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5455, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=49 /* 0.49 s */} --- [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5224] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5225] <... restart_syscall resumed>) = 0 [pid 5224] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./6/binderfs", [pid 5225] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./6/binderfs" [pid 5225] <... openat resumed>) = 3 [pid 5224] <... unlink resumed>) = 0 [pid 5224] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./6/binderfs") = 0 [pid 5225] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./6/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5457] <... close resumed>) = 0 [pid 5225] unlink("./6/bus") = 0 [pid 5225] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 81.447615][ T5224] bcachefs (loop0): shutting down [pid 5225] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5457] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5457] <... openat resumed>) = 3 [pid 5225] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5457] exit_group(0 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, [pid 5457] <... exit_group resumed>) = ? [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5457] +++ exited with 0 +++ [pid 5225] getdents64(4, [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5457, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=38 /* 0.38 s */} --- [ 81.474785][ T5224] bcachefs (loop0): going read-only [pid 5226] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] close(4) = 0 [pid 5226] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] rmdir("./6/file0") = 0 [pid 5226] newfstatat(3, "", [pid 5225] getdents64(3, [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] getdents64(3, [pid 5225] close(3 [pid 5452] <... close resumed>) = 0 [pid 5225] <... close resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] rmdir("./6" [pid 5226] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./5/binderfs") = 0 [pid 5226] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./5/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./5/bus") = 0 [pid 5226] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./5/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5452] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... rmdir resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./5/file0") = 0 [pid 5225] mkdir("./7", 0777 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./5") = 0 [pid 5226] mkdir("./6", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5225] <... mkdir resumed>) = 0 [pid 5452] <... openat resumed>) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5452] exit_group(0 [pid 5225] <... openat resumed>) = 3 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5452] <... exit_group resumed>) = ? [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5452] +++ exited with 0 +++ [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5491 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5452, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=43 /* 0.43 s */} --- [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] close(3./strace-static-x86_64: Process 5491 attached ) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5492 ./strace-static-x86_64: Process 5492 attached [pid 5492] set_robust_list(0x55555e217660, 24) = 0 [ 81.497646][ T5224] bcachefs (loop0): finished waiting for writes to stop [ 81.534983][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 11 [pid 5492] chdir("./7" [pid 5491] set_robust_list(0x55555e217660, 24) = 0 [pid 5227] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5491] chdir("./6" [pid 5227] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5492] <... chdir resumed>) = 0 [pid 5227] <... openat resumed>) = 3 [pid 5492] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5491] <... chdir resumed>) = 0 [pid 5227] newfstatat(3, "", [pid 5492] <... prctl resumed>) = 0 [pid 5492] setpgid(0, 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5492] <... setpgid resumed>) = 0 [pid 5492] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] getdents64(3, [pid 5492] <... openat resumed>) = 3 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5492] write(3, "1000", 4 [pid 5491] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5492] <... write resumed>) = 4 [pid 5227] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5491] <... prctl resumed>) = 0 [pid 5492] close(3 [pid 5491] setpgid(0, 0 [pid 5492] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5492] symlink("/dev/binderfs", "./binderfs" [pid 5491] <... setpgid resumed>) = 0 [pid 5227] newfstatat(AT_FDCWD, "./4/binderfs", [pid 5492] <... symlink resumed>) = 0 [pid 5491] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5492] write(1, "executing program\n", 18 [pid 5491] <... openat resumed>) = 3 executing program [pid 5227] unlink("./4/binderfs" [pid 5492] <... write resumed>) = 18 [pid 5491] write(3, "1000", 4 [pid 5227] <... unlink resumed>) = 0 [pid 5492] memfd_create("syzkaller", 0 [pid 5491] <... write resumed>) = 4 [pid 5491] close(3 [pid 5492] <... memfd_create resumed>) = 3 [pid 5227] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5492] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5491] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5491] symlink("/dev/binderfs", "./binderfs" [pid 5492] <... mmap resumed>) = 0x7f4aa8000000 executing program [pid 5491] <... symlink resumed>) = 0 [pid 5227] newfstatat(AT_FDCWD, "./4/bus", [pid 5491] write(1, "executing program\n", 18 [pid 5487] 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 [pid 5491] <... write resumed>) = 18 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5491] memfd_create("syzkaller", 0 [pid 5227] unlink("./4/bus" [pid 5491] <... memfd_create resumed>) = 3 [pid 5491] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./4/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./4") = 0 [pid 5227] mkdir("./5", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5493 ./strace-static-x86_64: Process 5493 attached [pid 5493] set_robust_list(0x55555e217660, 24) = 0 [pid 5493] chdir("./5") = 0 [pid 5493] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5493] setpgid(0, 0) = 0 [pid 5493] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5493] write(3, "1000", 4) = 4 [pid 5493] close(3) = 0 [pid 5493] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5493] write(1, "executing program\n", 18) = 18 [ 81.639222][ T52] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [pid 5493] memfd_create("syzkaller", 0) = 3 [pid 5493] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 81.690897][ T52] bcachefs (loop0): fatal error - emergency read only [ 81.727667][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 13 [ 81.768852][ T5224] bcachefs (loop0): unshutdown complete, journal seq 13 [ 81.789691][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [ 81.830516][ T9] cfg80211: failed to load regulatory.db [ 81.909507][ T5224] bcachefs (loop0): shutdown complete [pid 5492] 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 [pid 5487] <... write resumed>) = 16777216 [pid 5487] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5487] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5487] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5487] close(3) = 0 [pid 5487] close(4) = 0 [pid 5491] 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 [pid 5487] mkdir("./file0", 0777) = 0 [ 82.037465][ T5487] loop4: detected capacity change from 0 to 32768 [pid 5487] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5493] 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 5492] <... write resumed>) = 16777216 [pid 5493] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5492] munmap(0x7f4aa8000000, 138412032 [pid 5493] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5493] ioctl(4, LOOP_SET_FD, 3 [pid 5492] <... munmap resumed>) = 0 [pid 5493] <... ioctl resumed>) = 0 [pid 5492] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5491] <... write resumed>) = 16777216 [pid 5493] close(3 [pid 5492] <... openat resumed>) = 4 [pid 5493] <... close resumed>) = 0 [pid 5492] ioctl(4, LOOP_SET_FD, 3 [pid 5491] munmap(0x7f4aa8000000, 138412032 [pid 5493] close(4 [pid 5492] <... ioctl resumed>) = 0 [pid 5492] close(3) = 0 [pid 5492] close(4) = 0 [pid 5492] mkdir("./file0", 0777 [pid 5493] <... close resumed>) = 0 [pid 5492] <... mkdir resumed>) = 0 [pid 5493] mkdir("./file0", 0777) = 0 [pid 5492] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5493] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5491] <... munmap resumed>) = 0 [pid 5491] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 82.389937][ T5493] loop3: detected capacity change from 0 to 32768 [ 82.423966][ T5492] loop1: detected capacity change from 0 to 32768 [pid 5491] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5491] close(3) = 0 [pid 5491] close(4) = 0 [pid 5491] mkdir("./file0", 0777) = 0 [ 82.464665][ T5491] loop2: detected capacity change from 0 to 32768 [ 82.710381][ T5487] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 82.718724][ T5492] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 82.732925][ T5487] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 82.744333][ T5492] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 82.750045][ T5487] bcachefs (loop4): Version upgrade required: [ 82.750045][ T5487] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 82.750045][ T5487] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 82.750045][ T5487] 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 [ 82.830246][ T5493] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 82.839636][ T5493] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 82.848618][ T5491] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 82.857738][ T5491] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 82.880929][ T5487] bcachefs (loop4): dropping and reconstructing all alloc info [ 82.989477][ T5487] bcachefs (loop4): check_topology... done [ 82.995387][ T5487] bcachefs (loop4): accounting_read... [ 83.011143][ T5493] bcachefs: bch2_fs_get_tree() error: EINVAL [ 83.027262][ T5487] done [pid 5491] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5493] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5493] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5493] ioctl(3, LOOP_CLR_FD) = 0 [ 83.038766][ T5487] bcachefs (loop4): alloc_read... done [ 83.044939][ T5487] bcachefs (loop4): stripes_read... done [ 83.059748][ T5492] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5493] close(3 [pid 5492] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5491] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5492] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5491] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5491] ioctl(3, LOOP_CLR_FD) = 0 [pid 5491] close(3 [pid 5492] <... openat resumed>) = 3 [pid 5492] ioctl(3, LOOP_CLR_FD) = 0 [ 83.089123][ T5487] bcachefs (loop4): snapshots_read... done [ 83.095134][ T5487] bcachefs (loop4): check_allocations... [ 83.107667][ T5491] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5492] close(3 [pid 5224] <... umount2 resumed>) = 0 [pid 5224] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./6/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./6") = 0 [pid 5224] mkdir("./7", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5493] <... close resumed>) = 0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5523 [pid 5493] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000./strace-static-x86_64: Process 5523 attached [pid 5523] set_robust_list(0x55555e217660, 24 [pid 5493] <... openat resumed>) = 3 [pid 5523] <... set_robust_list resumed>) = 0 [pid 5523] chdir("./7" [pid 5493] exit_group(0 [pid 5523] <... chdir resumed>) = 0 [pid 5493] <... exit_group resumed>) = ? [pid 5523] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5493] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5493, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=35 /* 0.35 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5227] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5523] <... prctl resumed>) = 0 [pid 5227] <... openat resumed>) = 3 [pid 5227] newfstatat(3, "", [pid 5523] setpgid(0, 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5523] <... setpgid resumed>) = 0 [pid 5227] getdents64(3, [pid 5523] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5523] <... openat resumed>) = 3 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5523] write(3, "1000", 4) = 4 [pid 5227] newfstatat(AT_FDCWD, "./5/binderfs", [pid 5523] close(3) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5523] symlink("/dev/binderfs", "./binderfs" [pid 5227] unlink("./5/binderfs" [pid 5523] <... symlink resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 83.311266][ T5487] done [pid 5227] newfstatat(AT_FDCWD, "./5/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./5/bus") = 0 [pid 5227] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./5/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 executing program [pid 5523] write(1, "executing program\n", 18 [pid 5227] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5523] <... write resumed>) = 18 [pid 5227] <... openat resumed>) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5523] memfd_create("syzkaller", 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./5/file0" [pid 5523] <... memfd_create resumed>) = 3 [pid 5227] <... rmdir resumed>) = 0 [pid 5523] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] getdents64(3, [pid 5523] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./5") = 0 [pid 5227] mkdir("./6", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5524 attached [pid 5524] set_robust_list(0x55555e217660, 24) = 0 [pid 5524] chdir("./6") = 0 [pid 5524] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 83.334718][ T5487] bcachefs (loop4): going read-write [pid 5524] setpgid(0, 0) = 0 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5524 [pid 5524] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5524] write(3, "1000", 4) = 4 [pid 5524] close(3) = 0 [pid 5524] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5524] write(1, "executing program\n", 18) = 18 [pid 5524] memfd_create("syzkaller", 0 [pid 5487] <... mount resumed>) = 0 [pid 5524] <... memfd_create resumed>) = 3 [pid 5524] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5487] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5524] <... mmap resumed>) = 0x7f4aa8000000 [pid 5487] <... openat resumed>) = 3 [pid 5487] chdir("./file0") = 0 [pid 5487] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5487] ioctl(4, LOOP_CLR_FD) = 0 [pid 5487] close(4) = 0 [ 83.369943][ T5487] bcachefs (loop4): done starting filesystem [pid 5487] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5487] exit_group(0) = ? [pid 5491] <... close resumed>) = 0 [pid 5487] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5487, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=39 /* 0.39 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...> [pid 5491] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] <... restart_syscall resumed>) = 0 [pid 5491] <... openat resumed>) = 3 [pid 5228] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5228] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./4/binderfs") = 0 [pid 5228] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5491] exit_group(0) = ? [pid 5491] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5491, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=37 /* 0.37 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5492] <... close resumed>) = 0 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5492] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", [pid 5492] <... openat resumed>) = 3 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5492] exit_group(0 [pid 5226] getdents64(3, [pid 5492] <... exit_group resumed>) = ? [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./6/binderfs") = 0 [pid 5226] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./6/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./6/bus" [pid 5492] +++ exited with 0 +++ [pid 5226] <... unlink resumed>) = 0 [pid 5226] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5492, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=43 /* 0.43 s */} --- [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5226] newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./6/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./6") = 0 [pid 5226] mkdir("./7", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5225] <... restart_syscall resumed>) = 0 [pid 5226] <... openat resumed>) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5225] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", ./strace-static-x86_64: Process 5527 attached {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, [pid 5527] set_robust_list(0x55555e217660, 24 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5527 [pid 5527] <... set_robust_list resumed>) = 0 [ 83.474055][ T5228] bcachefs (loop4): shutting down [ 83.479748][ T5228] bcachefs (loop4): going read-only [ 83.506922][ T5228] bcachefs (loop4): finished waiting for writes to stop [pid 5225] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5527] chdir("./7" [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5527] <... chdir resumed>) = 0 [pid 5225] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5527] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5527] <... prctl resumed>) = 0 [pid 5225] unlink("./7/binderfs" [pid 5527] setpgid(0, 0 [pid 5225] <... unlink resumed>) = 0 [pid 5527] <... setpgid resumed>) = 0 [pid 5527] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5527] <... openat resumed>) = 3 [pid 5225] newfstatat(AT_FDCWD, "./7/bus", [pid 5527] write(3, "1000", 4 [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./7/bus" [pid 5527] <... write resumed>) = 4 [pid 5527] close(3 [pid 5225] <... unlink resumed>) = 0 [pid 5527] <... close resumed>) = 0 [pid 5527] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5527] write(1, "executing program\n", 18executing program ) = 18 [pid 5527] memfd_create("syzkaller", 0 [pid 5225] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5527] <... memfd_create resumed>) = 3 [pid 5225] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5527] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./7/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [ 83.561841][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5225] close(3) = 0 [pid 5225] rmdir("./7") = 0 [pid 5225] mkdir("./8", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5528 ./strace-static-x86_64: Process 5528 attached [pid 5528] set_robust_list(0x55555e217660, 24) = 0 [pid 5528] chdir("./8"executing program ) = 0 [pid 5528] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5528] setpgid(0, 0) = 0 [pid 5528] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5528] write(3, "1000", 4) = 4 [pid 5528] close(3) = 0 [pid 5528] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5528] write(1, "executing program\n", 18) = 18 [pid 5528] memfd_create("syzkaller", 0) = 3 [pid 5528] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 83.641062][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 15 [ 83.679809][ T5228] bcachefs (loop4): unshutdown complete, journal seq 16 [ 83.699960][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [ 83.744951][ T5228] bcachefs (loop4): shutdown complete [pid 5523] 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 [pid 5524] 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 [pid 5528] 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 [pid 5527] 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 [pid 5523] <... write resumed>) = 16777216 [pid 5523] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5523] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5523] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5523] close(3) = 0 [pid 5523] close(4) = 0 [pid 5523] mkdir("./file0", 0777) = 0 [pid 5523] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5524] <... write resumed>) = 16777216 [ 84.122038][ T5523] loop0: detected capacity change from 0 to 32768 [pid 5524] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5524] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5524] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5524] close(3) = 0 [pid 5524] close(4) = 0 [pid 5524] mkdir("./file0", 0777) = 0 [ 84.206165][ T5524] loop3: detected capacity change from 0 to 32768 [pid 5524] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5528] <... write resumed>) = 16777216 [pid 5528] munmap(0x7f4aa8000000, 138412032 [pid 5527] <... write resumed>) = 16777216 [pid 5527] munmap(0x7f4aa8000000, 138412032 [pid 5528] <... munmap resumed>) = 0 [pid 5528] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5528] ioctl(4, LOOP_SET_FD, 3 [pid 5527] <... munmap resumed>) = 0 [pid 5527] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5528] <... ioctl resumed>) = 0 [pid 5528] close(3) = 0 [pid 5527] <... openat resumed>) = 4 [pid 5528] close(4 [pid 5527] ioctl(4, LOOP_SET_FD, 3 [pid 5528] <... close resumed>) = 0 [pid 5527] <... ioctl resumed>) = 0 [pid 5528] mkdir("./file0", 0777 [pid 5527] close(3 [pid 5528] <... mkdir resumed>) = 0 [pid 5527] <... close resumed>) = 0 [pid 5527] close(4) = 0 [pid 5527] mkdir("./file0", 0777) = 0 [pid 5528] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 84.304774][ T5528] loop1: detected capacity change from 0 to 32768 [ 84.314311][ T5527] loop2: detected capacity change from 0 to 32768 [ 84.632746][ T5523] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 84.642360][ T5528] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 84.662869][ T5523] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 84.665018][ T5527] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 84.675759][ T5528] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 84.691469][ T5524] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 84.702128][ T5527] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 84.718712][ T5524] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 84.728553][ T5528] bcachefs (loop1): Version upgrade required: [ 84.728553][ T5528] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 84.728553][ T5528] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 84.728553][ T5528] 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 [pid 5527] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5523] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5523] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5523] ioctl(3, LOOP_CLR_FD) = 0 [ 84.843229][ T5528] bcachefs (loop1): dropping and reconstructing all alloc info [ 84.859348][ T5523] bcachefs: bch2_fs_get_tree() error: EINVAL [ 84.917339][ T5528] bcachefs (loop1): check_topology... done [ 84.923808][ T5528] bcachefs (loop1): accounting_read... done [ 84.952827][ T5528] bcachefs (loop1): alloc_read... done [ 84.959579][ T5527] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5523] close(3 [pid 5527] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5527] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5527] ioctl(3, LOOP_CLR_FD) = 0 [ 84.959615][ T5528] bcachefs (loop1): stripes_read... done [ 84.988315][ T5528] bcachefs (loop1): snapshots_read... done [ 84.996434][ T5524] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5527] close(3 [pid 5524] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... umount2 resumed>) = 0 [pid 5524] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5524] ioctl(3, LOOP_CLR_FD) = 0 [pid 5524] close(3 [pid 5228] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 85.018876][ T5528] bcachefs (loop1): check_allocations... done [ 85.084536][ T5528] bcachefs (loop1): going read-write [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4 [pid 5528] <... mount resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 5528] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5228] rmdir("./4/file0") = 0 [pid 5528] <... openat resumed>) = 3 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5528] chdir("./file0" [ 85.110571][ T5528] bcachefs (loop1): done starting filesystem [pid 5228] close(3 [pid 5528] <... chdir resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 5528] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5228] rmdir("./4" [pid 5528] <... openat resumed>) = 4 [pid 5228] <... rmdir resumed>) = 0 [pid 5528] ioctl(4, LOOP_CLR_FD) = 0 [pid 5228] mkdir("./5", 0777 [pid 5528] close(4 [pid 5228] <... mkdir resumed>) = 0 [pid 5528] <... close resumed>) = 0 [pid 5528] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5528] exit_group(0) = ? [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5528] +++ exited with 0 +++ [pid 5228] close(3 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5528, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=38 /* 0.38 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5523] <... close resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 5225] <... restart_syscall resumed>) = 0 [pid 5523] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5225] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./8/binderfs") = 0 [pid 5225] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5560 [pid 5523] <... openat resumed>) = 3 ./strace-static-x86_64: Process 5560 attached [pid 5523] exit_group(0 [pid 5560] set_robust_list(0x55555e217660, 24 [pid 5527] <... close resumed>) = 0 [pid 5523] <... exit_group resumed>) = ? [pid 5527] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5560] <... set_robust_list resumed>) = 0 [pid 5560] chdir("./5") = 0 [pid 5560] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5560] setpgid(0, 0) = 0 [pid 5523] +++ exited with 0 +++ [pid 5560] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5527] <... openat resumed>) = 3 [pid 5527] exit_group(0 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5523, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=34 /* 0.34 s */} --- [pid 5560] write(3, "1000", 4 [pid 5527] <... exit_group resumed>) = ? [pid 5224] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5560] <... write resumed>) = 4 [pid 5527] +++ exited with 0 +++ [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5527, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=47 /* 0.47 s */} --- [pid 5224] unlink("./7/binderfs" [pid 5560] close(3 [pid 5224] <... unlink resumed>) = 0 [pid 5560] <... close resumed>) = 0 [pid 5224] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5560] symlink("/dev/binderfs", "./binderfs" [pid 5226] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./7/bus", [pid 5560] <... symlink resumed>) = 0 [pid 5226] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5560] write(1, "executing program\n", 18executing program [pid 5226] <... openat resumed>) = 3 [pid 5224] unlink("./7/bus" [pid 5560] <... write resumed>) = 18 [pid 5226] newfstatat(3, "", [pid 5224] <... unlink resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5560] memfd_create("syzkaller", 0 [pid 5226] getdents64(3, [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5560] <... memfd_create resumed>) = 3 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] newfstatat(AT_FDCWD, "./7/file0", [pid 5560] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5560] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] unlink("./7/binderfs" [pid 5224] <... openat resumed>) = 4 [pid 5224] newfstatat(4, "", [pid 5226] <... unlink resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./7/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./7" [pid 5226] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... rmdir resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] mkdir("./8", 0777 [pid 5226] newfstatat(AT_FDCWD, "./7/bus", [pid 5224] <... mkdir resumed>) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 85.228162][ T5225] bcachefs (loop1): shutting down [ 85.245654][ T5225] bcachefs (loop1): going read-only [ 85.251764][ T5225] bcachefs (loop1): finished waiting for writes to stop [ 85.265382][ T5225] bcachefs (loop1): flushing journal and stopping allocators, journal seq 11 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5561 ./strace-static-x86_64: Process 5561 attached [pid 5226] unlink("./7/bus") = 0 [pid 5561] set_robust_list(0x55555e217660, 24 [pid 5226] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, [pid 5561] <... set_robust_list resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./7/file0") = 0 [pid 5561] chdir("./8" [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./7") = 0 [pid 5226] mkdir("./8", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5561] <... chdir resumed>) = 0 ./strace-static-x86_64: Process 5562 attached [pid 5561] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5562] set_robust_list(0x55555e217660, 24 [pid 5561] setpgid(0, 0) = 0 [pid 5561] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5562 [pid 5561] write(3, "1000", 4 [pid 5562] <... set_robust_list resumed>) = 0 [pid 5561] <... write resumed>) = 4 [pid 5562] chdir("./8" [pid 5561] close(3 [pid 5562] <... chdir resumed>) = 0 [pid 5562] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5561] <... close resumed>) = 0 [pid 5561] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5561] write(1, "executing program\n", 18 [pid 5562] setpgid(0, 0 [pid 5561] <... write resumed>) = 18 [pid 5562] <... setpgid resumed>) = 0 [pid 5562] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5561] memfd_create("syzkaller", 0 [pid 5524] <... close resumed>) = 0 [pid 5562] <... openat resumed>) = 3 [pid 5524] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5562] write(3, "1000", 4) = 4 [pid 5561] <... memfd_create resumed>) = 3 [pid 5562] close(3) = 0 [pid 5561] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5562] symlink("/dev/binderfs", "./binderfs" [pid 5524] <... openat resumed>) = 3 executing program [pid 5562] <... symlink resumed>) = 0 [pid 5561] <... mmap resumed>) = 0x7f4aa8000000 [pid 5562] write(1, "executing program\n", 18 [pid 5524] exit_group(0 [pid 5562] <... write resumed>) = 18 [pid 5524] <... exit_group resumed>) = ? [pid 5562] memfd_create("syzkaller", 0 [pid 5524] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5524, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5562] <... memfd_create resumed>) = 3 [pid 5562] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5562] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./6/binderfs") = 0 [pid 5227] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./6/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./6/bus") = 0 [pid 5227] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 85.382984][ T5225] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 16 [ 85.409656][ T5225] bcachefs (loop1): unshutdown complete, journal seq 17 [pid 5227] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./6/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./6") = 0 [pid 5227] mkdir("./7", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5563 attached , child_tidptr=0x55555e217650) = 5563 [pid 5563] set_robust_list(0x55555e217660, 24) = 0 [ 85.451895][ T5225] bcachefs (loop1): done going read-only, filesystem not clean [pid 5563] chdir("./7") = 0 [pid 5563] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5563] setpgid(0, 0) = 0 [pid 5563] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5563] write(3, "1000", 4) = 4 [pid 5563] close(3) = 0 [pid 5563] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5563] write(1, "executing program\n", 18 [pid 5560] 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"..., 16777216executing program [pid 5563] <... write resumed>) = 18 [pid 5563] memfd_create("syzkaller", 0) = 3 [pid 5563] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 85.535491][ T5225] bcachefs (loop1): shutdown complete [pid 5561] 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 [pid 5562] 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 [pid 5560] <... write resumed>) = 16777216 [pid 5560] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5560] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5560] ioctl(4, LOOP_SET_FD, 3 [pid 5563] 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 [pid 5560] <... ioctl resumed>) = 0 [pid 5560] close(3) = 0 [pid 5560] close(4) = 0 [pid 5560] mkdir("./file0", 0777) = 0 [ 85.893240][ T5560] loop4: detected capacity change from 0 to 32768 [pid 5560] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5561] <... write resumed>) = 16777216 [pid 5561] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5561] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5562] <... write resumed>) = 16777216 [pid 5561] ioctl(4, LOOP_SET_FD, 3 [pid 5562] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5562] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5562] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5561] <... ioctl resumed>) = 0 [pid 5561] close(3) = 0 [pid 5562] close(3 [pid 5561] close(4) = 0 [pid 5562] <... close resumed>) = 0 [ 86.102376][ T5561] loop0: detected capacity change from 0 to 32768 [ 86.129756][ T5562] loop2: detected capacity change from 0 to 32768 [pid 5561] mkdir("./file0", 0777 [pid 5562] close(4 [pid 5561] <... mkdir resumed>) = 0 [pid 5562] <... close resumed>) = 0 [pid 5562] mkdir("./file0", 0777 [pid 5561] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5562] <... mkdir resumed>) = 0 [pid 5562] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5563] <... write resumed>) = 16777216 [pid 5563] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5563] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5563] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5563] close(3) = 0 [pid 5563] close(4) = 0 [pid 5563] mkdir("./file0", 0777) = 0 [ 86.268949][ T5563] loop3: detected capacity change from 0 to 32768 [ 86.632616][ T5562] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 86.633357][ T5561] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 86.655101][ T5562] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 86.655310][ T5562] bcachefs (loop2): Version upgrade required: [ 86.655310][ T5562] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 86.655310][ T5562] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 86.655310][ T5562] 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.753578][ T5562] bcachefs (loop2): dropping and reconstructing all alloc info [ 86.758997][ T5561] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 86.774444][ T5560] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 86.806574][ T5562] bcachefs (loop2): check_topology... done [ 86.815627][ T5563] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 86.815671][ T5560] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 86.829751][ T5563] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 86.848525][ T5562] bcachefs (loop2): accounting_read... done [ 86.888973][ T5562] bcachefs (loop2): alloc_read... done [ 86.906826][ T5562] bcachefs (loop2): stripes_read... done [ 86.923596][ T5562] bcachefs (loop2): snapshots_read... done [pid 5563] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5561] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5561] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5561] ioctl(3, LOOP_CLR_FD) = 0 [ 86.942227][ T5562] bcachefs (loop2): check_allocations... [ 86.969184][ T5561] bcachefs: bch2_fs_get_tree() error: EINVAL [ 87.001235][ T5562] done [pid 5561] close(3 [pid 5225] <... umount2 resumed>) = 0 [pid 5225] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./8/file0", [pid 5563] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", [pid 5560] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, [pid 5563] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5563] ioctl(3, LOOP_CLR_FD) = 0 [pid 5563] close(3 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, [pid 5560] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5560] <... openat resumed>) = 3 [ 87.030365][ T5562] bcachefs (loop2): going read-write [ 87.039039][ T5563] bcachefs: bch2_fs_get_tree() error: EINVAL [ 87.046881][ T5560] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5225] close(4 [pid 5560] ioctl(3, LOOP_CLR_FD [pid 5225] <... close resumed>) = 0 [pid 5560] <... ioctl resumed>) = 0 [pid 5225] rmdir("./8/file0" [pid 5560] close(3 [pid 5225] <... rmdir resumed>) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./8") = 0 [pid 5225] mkdir("./9", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5595 attached , child_tidptr=0x55555e217650) = 5595 [pid 5595] set_robust_list(0x55555e217660, 24) = 0 [pid 5595] chdir("./9") = 0 [pid 5595] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5595] setpgid(0, 0 [pid 5562] <... mount resumed>) = 0 [pid 5595] <... setpgid resumed>) = 0 [pid 5562] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5595] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5562] chdir("./file0" [pid 5595] <... openat resumed>) = 3 [pid 5562] <... chdir resumed>) = 0 [pid 5562] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5562] ioctl(4, LOOP_CLR_FD) = 0 [pid 5562] close(4) = 0 [pid 5562] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5595] write(3, "1000", 4) = 4 [pid 5595] close(3 [pid 5562] <... openat resumed>) = 4 [pid 5595] <... close resumed>) = 0 [pid 5595] symlink("/dev/binderfs", "./binderfs" [pid 5562] exit_group(0) = ? [ 87.111463][ T5562] bcachefs (loop2): done starting filesystem [pid 5595] <... symlink resumed>) = 0 executing program [pid 5595] write(1, "executing program\n", 18) = 18 [pid 5595] memfd_create("syzkaller", 0 [pid 5562] +++ exited with 0 +++ [pid 5595] <... memfd_create resumed>) = 3 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5562, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=32 /* 0.32 s */} --- [pid 5595] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5595] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5226] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5226] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./8/binderfs") = 0 [ 87.222496][ T5226] bcachefs (loop2): shutting down [ 87.228149][ T5226] bcachefs (loop2): going read-only [ 87.267352][ T5226] bcachefs (loop2): finished waiting for writes to stop [pid 5226] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5561] <... close resumed>) = 0 [pid 5561] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5561] exit_group(0 [pid 5563] <... close resumed>) = 0 [pid 5561] <... exit_group resumed>) = ? [ 87.338890][ T5226] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5561] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5561, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=48 /* 0.48 s */} --- [pid 5224] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5224] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./8/binderfs") = 0 [pid 5224] umount2("./8/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./8/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./8/bus") = 0 [pid 5224] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./8/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./8") = 0 [pid 5224] mkdir("./9", 0777) = 0 [pid 5563] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3 [pid 5595] 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 [pid 5563] exit_group(0 [pid 5224] <... close resumed>) = 0 [pid 5563] <... exit_group resumed>) = ? [pid 5563] +++ exited with 0 +++ [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5563, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=36 /* 0.36 s */} --- ./strace-static-x86_64: Process 5596 attached [pid 5560] <... close resumed>) = 0 [pid 5560] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5596] set_robust_list(0x55555e217660, 24 [pid 5560] exit_group(0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5596 [pid 5596] <... set_robust_list resumed>) = 0 [pid 5560] <... exit_group resumed>) = ? [pid 5596] chdir("./9" [pid 5560] +++ exited with 0 +++ [pid 5596] <... chdir resumed>) = 0 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5560, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=43 /* 0.43 s */} --- [pid 5227] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5596] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5596] <... prctl resumed>) = 0 [pid 5596] setpgid(0, 0 [pid 5227] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5596] <... setpgid resumed>) = 0 [pid 5596] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... openat resumed>) = 3 [pid 5228] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [ 87.399966][ T2994] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 87.436036][ T2994] bcachefs (loop2): fatal error - emergency read only [pid 5227] newfstatat(3, "", [pid 5596] <... openat resumed>) = 3 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5596] write(3, "1000", 4 [pid 5228] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] getdents64(3, [pid 5228] <... openat resumed>) = 3 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] newfstatat(3, "", [pid 5227] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] getdents64(3, [pid 5227] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] unlink("./7/binderfs" [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... unlink resumed>) = 0 [pid 5228] newfstatat(AT_FDCWD, "./5/binderfs", [pid 5227] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] unlink("./5/binderfs" [pid 5227] newfstatat(AT_FDCWD, "./7/bus", [pid 5228] <... unlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] unlink("./7/bus" [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... unlink resumed>) = 0 [pid 5228] newfstatat(AT_FDCWD, "./5/bus", [pid 5227] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] unlink("./5/bus" [pid 5227] newfstatat(AT_FDCWD, "./7/file0", [pid 5228] <... unlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./5/file0", [pid 5227] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... openat resumed>) = 4 [pid 5228] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] newfstatat(4, "", [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5596] <... write resumed>) = 4 [pid 5228] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] <... openat resumed>) = 4 [pid 5227] close(4 [pid 5228] newfstatat(4, "", [pid 5227] <... close resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] rmdir("./7/file0" [pid 5228] getdents64(4, [pid 5227] <... rmdir resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5596] close(3 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(3 [pid 5596] <... close resumed>) = 0 [pid 5228] close(4 [pid 5227] <... close resumed>) = 0 [pid 5596] symlink("/dev/binderfs", "./binderfs" [pid 5228] <... close resumed>) = 0 [pid 5227] rmdir("./7" [pid 5596] <... symlink resumed>) = 0 [pid 5228] rmdir("./5/file0" [pid 5227] <... rmdir resumed>) = 0 [pid 5596] write(1, "executing program\n", 18 [pid 5228] <... rmdir resumed>) = 0 executing program [ 87.476818][ T5226] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [ 87.506675][ T5226] bcachefs (loop2): unshutdown complete, journal seq 13 [pid 5596] <... write resumed>) = 18 [pid 5228] getdents64(3, [pid 5227] mkdir("./8", 0777 [pid 5596] memfd_create("syzkaller", 0 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] <... mkdir resumed>) = 0 [pid 5596] <... memfd_create resumed>) = 3 [pid 5596] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5228] close(3 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5596] <... mmap resumed>) = 0x7f4aa8000000 [pid 5228] <... close resumed>) = 0 [pid 5227] <... openat resumed>) = 3 [pid 5228] rmdir("./5" [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5228] <... rmdir resumed>) = 0 [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5228] mkdir("./6", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5598 attached [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5597 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5598 [pid 5598] set_robust_list(0x55555e217660, 24) = 0 [pid 5598] chdir("./6") = 0 [pid 5598] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5598] setpgid(0, 0) = 0 [pid 5598] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 ./strace-static-x86_64: Process 5597 attached [pid 5597] set_robust_list(0x55555e217660, 24) = 0 [pid 5597] chdir("./8") = 0 [pid 5597] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5597] setpgid(0, 0) = 0 [pid 5597] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5598] write(3, "1000", 4 [pid 5597] <... openat resumed>) = 3 [pid 5597] write(3, "1000", 4) = 4 [pid 5597] close(3) = 0 [pid 5598] <... write resumed>) = 4 [pid 5597] symlink("/dev/binderfs", "./binderfs" [pid 5598] close(3executing program ) = 0 [pid 5597] <... symlink resumed>) = 0 [pid 5598] symlink("/dev/binderfs", "./binderfs" [pid 5597] write(1, "executing program\n", 18 [pid 5598] <... symlink resumed>) = 0 [pid 5597] <... write resumed>) = 18 [pid 5598] write(1, "executing program\n", 18 [pid 5597] memfd_create("syzkaller", 0executing program [pid 5598] <... write resumed>) = 18 [pid 5597] <... memfd_create resumed>) = 3 [pid 5597] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [ 87.544646][ T5226] bcachefs (loop2): done going read-only, filesystem not clean [pid 5598] memfd_create("syzkaller", 0) = 3 [pid 5597] <... mmap resumed>) = 0x7f4aa8000000 [pid 5598] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 87.650455][ T5226] bcachefs (loop2): shutdown complete [pid 5595] <... write resumed>) = 16777216 [pid 5595] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5595] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5595] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5595] close(3) = 0 [pid 5595] close(4 [pid 5598] 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 [pid 5595] <... close resumed>) = 0 [pid 5595] mkdir("./file0", 0777) = 0 [ 87.809651][ T5595] loop1: detected capacity change from 0 to 32768 [pid 5595] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5596] 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 [pid 5597] 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 [pid 5598] <... write resumed>) = 16777216 [pid 5598] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5598] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5598] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5598] close(3) = 0 [pid 5598] close(4) = 0 [pid 5598] mkdir("./file0", 0777) = 0 [ 88.085424][ T5598] loop4: detected capacity change from 0 to 32768 [pid 5598] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5596] <... write resumed>) = 16777216 [pid 5596] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5596] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5597] <... write resumed>) = 16777216 [pid 5596] <... openat resumed>) = 4 [pid 5597] munmap(0x7f4aa8000000, 138412032 [pid 5596] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5596] close(3 [pid 5597] <... munmap resumed>) = 0 [pid 5597] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5597] ioctl(4, LOOP_SET_FD, 3 [pid 5596] <... close resumed>) = 0 [pid 5596] close(4) = 0 [pid 5596] mkdir("./file0", 0777) = 0 [pid 5596] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5597] <... ioctl resumed>) = 0 [pid 5597] close(3) = 0 [pid 5597] close(4) = 0 [pid 5597] mkdir("./file0", 0777) = 0 [ 88.219564][ T5596] loop0: detected capacity change from 0 to 32768 [ 88.238217][ T5597] loop3: detected capacity change from 0 to 32768 [ 88.379186][ T5598] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 88.398974][ T5595] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 88.399267][ T5598] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 88.441352][ T5596] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 88.457315][ T5595] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 88.473767][ T5595] bcachefs (loop1): Version upgrade required: [ 88.473767][ T5595] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 88.473767][ T5595] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 88.473767][ T5595] 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.473838][ T5596] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 88.553188][ T5597] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 88.562400][ T5597] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5597] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5598] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 88.599447][ T5595] bcachefs (loop1): dropping and reconstructing all alloc info [ 88.618287][ T5598] bcachefs: bch2_fs_get_tree() error: EINVAL [ 88.638329][ T5595] bcachefs (loop1): check_topology... done [pid 5598] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5598] ioctl(3, LOOP_CLR_FD) = 0 [ 88.648236][ T5595] bcachefs (loop1): accounting_read... done [ 88.656468][ T5595] bcachefs (loop1): alloc_read... done [ 88.699211][ T5595] bcachefs (loop1): stripes_read... done [ 88.726101][ T5595] bcachefs (loop1): snapshots_read... done [pid 5598] close(3 [pid 5597] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5597] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [ 88.742608][ T5595] bcachefs (loop1): check_allocations... [ 88.792940][ T5597] bcachefs: bch2_fs_get_tree() error: EINVAL [ 88.817768][ T5595] done [ 88.825454][ T5595] bcachefs (loop1): going read-write [ 88.832005][ T5596] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5597] ioctl(3, LOOP_CLR_FD) = 0 [pid 5597] close(3 [pid 5596] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5596] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5596] ioctl(3, LOOP_CLR_FD) = 0 [ 88.840847][ T5595] bcachefs (loop1): done starting filesystem [pid 5596] close(3 [pid 5595] <... mount resumed>) = 0 [pid 5595] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5226] <... umount2 resumed>) = 0 [pid 5595] <... openat resumed>) = 3 [pid 5595] chdir("./file0") = 0 [pid 5226] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5595] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5595] <... openat resumed>) = 4 [pid 5226] newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5595] ioctl(4, LOOP_CLR_FD [pid 5226] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5595] <... ioctl resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5595] close(4 [pid 5226] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5595] <... close resumed>) = 0 [pid 5595] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] <... openat resumed>) = 4 [pid 5226] newfstatat(4, "", [pid 5595] <... openat resumed>) = 4 [pid 5595] exit_group(0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, [pid 5595] <... exit_group resumed>) = ? [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5595] +++ exited with 0 +++ [pid 5226] rmdir("./8/file0") = 0 [pid 5226] getdents64(3, [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5595, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=36 /* 0.36 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5225] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] close(3) = 0 [pid 5225] <... openat resumed>) = 3 [pid 5598] <... close resumed>) = 0 [pid 5226] rmdir("./8" [pid 5225] newfstatat(3, "", [pid 5226] <... rmdir resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] mkdir("./9", 0777 [pid 5225] getdents64(3, [pid 5598] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] <... mkdir resumed>) = 0 [pid 5598] <... openat resumed>) = 3 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5598] exit_group(0) = ? [pid 5598] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5598, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=37 /* 0.37 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...> [pid 5226] <... openat resumed>) = 3 [pid 5225] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... restart_syscall resumed>) = 0 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5226] close(3 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... close resumed>) = 0 [pid 5225] unlink("./9/binderfs" [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] <... unlink resumed>) = 0 [pid 5228] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5630 attached [pid 5228] <... openat resumed>) = 3 [pid 5630] set_robust_list(0x55555e217660, 24 [pid 5228] newfstatat(3, "", [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5630 [pid 5630] <... set_robust_list resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5630] chdir("./9" [pid 5228] getdents64(3, [pid 5630] <... chdir resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./6/binderfs") = 0 [pid 5228] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./6/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./6/bus" [pid 5630] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5228] <... unlink resumed>) = 0 [pid 5228] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./6/file0", [pid 5630] <... prctl resumed>) = 0 [pid 5630] setpgid(0, 0 [pid 5597] <... close resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5630] <... setpgid resumed>) = 0 [pid 5630] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5630] write(3, "1000", 4 [pid 5228] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5630] <... write resumed>) = 4 [pid 5630] close(3 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5630] <... close resumed>) = 0 [pid 5630] symlink("/dev/binderfs", "./binderfs" [pid 5228] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", [pid 5630] <... symlink resumed>) = 0 executing program [pid 5630] write(1, "executing program\n", 18 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5630] <... write resumed>) = 18 [pid 5630] memfd_create("syzkaller", 0 [pid 5228] getdents64(4, [pid 5630] <... memfd_create resumed>) = 3 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5630] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5228] getdents64(4, [pid 5630] <... mmap resumed>) = 0x7f4aa8000000 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./6/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./6") = 0 [pid 5228] mkdir("./7", 0777) = 0 [ 89.042709][ T5225] bcachefs (loop1): shutting down [ 89.047793][ T5225] bcachefs (loop1): going read-only [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5597] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5596] <... close resumed>) = 0 [pid 5228] <... openat resumed>) = 3 [pid 5596] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5597] <... openat resumed>) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5597] exit_group(0 [pid 5596] <... openat resumed>) = 3 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5597] <... exit_group resumed>) = ? [pid 5228] close(3 [pid 5597] +++ exited with 0 +++ [pid 5596] exit_group(0 [pid 5228] <... close resumed>) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5596] <... exit_group resumed>) = ? [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5597, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=51 /* 0.51 s */} --- ./strace-static-x86_64: Process 5631 attached [pid 5631] set_robust_list(0x55555e217660, 24 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5631 [pid 5227] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5631] <... set_robust_list resumed>) = 0 [pid 5631] chdir("./7" [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5596] +++ exited with 0 +++ [pid 5227] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5631] <... chdir resumed>) = 0 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5596, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=42 /* 0.42 s */} --- [pid 5227] <... openat resumed>) = 3 [pid 5631] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5227] newfstatat(3, "", [pid 5631] <... prctl resumed>) = 0 [pid 5631] setpgid(0, 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... restart_syscall resumed>) = 0 [pid 5631] <... setpgid resumed>) = 0 [pid 5227] getdents64(3, [pid 5631] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./8/binderfs", [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] unlink("./8/binderfs" [pid 5224] <... openat resumed>) = 3 [pid 5227] <... unlink resumed>) = 0 [pid 5224] newfstatat(3, "", [pid 5227] umount2("./8/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5631] <... openat resumed>) = 3 [pid 5227] newfstatat(AT_FDCWD, "./8/bus", [pid 5224] getdents64(3, [pid 5631] write(3, "1000", 4) = 4 [pid 5631] close(3executing program ) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5631] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5631] write(1, "executing program\n", 18) = 18 [pid 5631] memfd_create("syzkaller", 0) = 3 [pid 5227] unlink("./8/bus" [pid 5224] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5631] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] <... unlink resumed>) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./9/binderfs" [ 89.095615][ T5225] bcachefs (loop1): finished waiting for writes to stop [ 89.132833][ T5225] bcachefs (loop1): flushing journal and stopping allocators, journal seq 12 [pid 5227] newfstatat(AT_FDCWD, "./8/file0", [pid 5224] <... unlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./9/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(AT_FDCWD, "./9/bus", [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] unlink("./9/bus" [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] <... unlink resumed>) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./8/file0") = 0 [pid 5227] getdents64(3, [pid 5224] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] close(3 [pid 5224] newfstatat(AT_FDCWD, "./9/file0", [pid 5227] <... close resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] rmdir("./8") = 0 [pid 5224] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] mkdir("./9", 0777) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5224] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", [pid 5227] <... openat resumed>) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5224] getdents64(4, [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] close(3 [pid 5224] getdents64(4, [pid 5227] <... close resumed>) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5632 [pid 5224] rmdir("./9/file0") = 0 [pid 5224] getdents64(3, ./strace-static-x86_64: Process 5632 attached 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5632] set_robust_list(0x55555e217660, 24 [pid 5224] close(3) = 0 [pid 5224] rmdir("./9" [pid 5632] <... set_robust_list resumed>) = 0 [pid 5632] chdir("./9" [pid 5224] <... rmdir resumed>) = 0 [pid 5632] <... chdir resumed>) = 0 [pid 5632] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5632] setpgid(0, 0) = 0 [pid 5632] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5224] mkdir("./10", 0777 [pid 5632] <... openat resumed>) = 3 [pid 5224] <... mkdir resumed>) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5632] write(3, "1000", 4 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5632] <... write resumed>) = 4 [pid 5632] close(3) = 0 [pid 5632] symlink("/dev/binderfs", "./binderfs"./strace-static-x86_64: Process 5633 attached ) = 0 executing program [pid 5633] set_robust_list(0x55555e217660, 24 [pid 5632] write(1, "executing program\n", 18 [pid 5633] <... set_robust_list resumed>) = 0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5633 [pid 5633] chdir("./10" [pid 5632] <... write resumed>) = 18 [pid 5633] <... chdir resumed>) = 0 [pid 5632] memfd_create("syzkaller", 0 [pid 5633] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5632] <... memfd_create resumed>) = 3 [pid 5632] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5633] <... prctl resumed>) = 0 [pid 5633] setpgid(0, 0) = 0 [pid 5633] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5633] write(3, "1000", 4) = 4 [pid 5633] close(3) = 0 [ 89.237447][ T5225] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 15 [pid 5633] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5633] write(1, "executing program\n", 18executing program ) = 18 [pid 5633] memfd_create("syzkaller", 0) = 3 [pid 5633] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 89.290422][ T5225] bcachefs (loop1): unshutdown complete, journal seq 16 [ 89.299522][ T5225] bcachefs (loop1): done going read-only, filesystem not clean [pid 5631] 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 [ 89.379345][ T5225] bcachefs (loop1): shutdown complete [pid 5630] 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 [pid 5632] 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 [pid 5633] 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 [pid 5631] <... write resumed>) = 16777216 [pid 5631] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5631] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5631] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5631] close(3) = 0 [pid 5631] close(4) = 0 [pid 5631] mkdir("./file0", 0777) = 0 [pid 5631] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5630] <... write resumed>) = 16777216 [ 89.696733][ T5631] loop4: detected capacity change from 0 to 32768 [pid 5630] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5630] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5630] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5630] close(3) = 0 [pid 5630] close(4) = 0 [pid 5630] mkdir("./file0", 0777) = 0 [ 89.804247][ T5630] loop2: detected capacity change from 0 to 32768 [pid 5630] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5632] <... write resumed>) = 16777216 [pid 5632] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5632] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5632] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5633] <... write resumed>) = 16777216 [pid 5632] close(3 [pid 5633] munmap(0x7f4aa8000000, 138412032 [pid 5632] <... close resumed>) = 0 [pid 5632] close(4 [pid 5633] <... munmap resumed>) = 0 [pid 5632] <... close resumed>) = 0 [pid 5633] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5632] mkdir("./file0", 0777 [pid 5633] <... openat resumed>) = 4 [pid 5633] ioctl(4, LOOP_SET_FD, 3 [pid 5632] <... mkdir resumed>) = 0 [ 89.908067][ T5632] loop3: detected capacity change from 0 to 32768 [pid 5632] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5633] <... ioctl resumed>) = 0 [pid 5633] close(3) = 0 [pid 5633] close(4) = 0 [pid 5633] mkdir("./file0", 0777) = 0 [ 89.958370][ T5633] loop0: detected capacity change from 0 to 32768 [ 90.116446][ T5630] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 90.116822][ T5631] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 90.125669][ T5632] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 90.149925][ T5631] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 90.165066][ T5631] bcachefs (loop4): Version upgrade required: [ 90.165066][ T5631] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 90.165066][ T5631] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 90.165066][ T5631] 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 [ 90.239284][ T5630] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 90.240588][ T5633] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 90.256683][ T5633] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 90.262537][ T5632] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 90.278024][ T5631] bcachefs (loop4): dropping and reconstructing all alloc info [ 90.353062][ T5631] bcachefs (loop4): check_topology... done [ 90.373771][ T5631] bcachefs (loop4): accounting_read... [ 90.375619][ T5633] bcachefs: bch2_fs_get_tree() error: EINVAL [ 90.391937][ T5631] done [ 90.392589][ T5630] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5633] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5630] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5633] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5630] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5633] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5630] <... openat resumed>) = 3 [pid 5633] <... openat resumed>) = 3 [pid 5630] ioctl(3, LOOP_CLR_FD [pid 5633] ioctl(3, LOOP_CLR_FD [pid 5630] <... ioctl resumed>) = 0 [pid 5633] <... ioctl resumed>) = 0 [pid 5630] close(3 [ 90.394730][ T5631] bcachefs (loop4): alloc_read... done [ 90.407611][ T5631] bcachefs (loop4): stripes_read... done [ 90.413470][ T5631] bcachefs (loop4): snapshots_read... done [pid 5633] close(3 [pid 5632] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5632] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5632] ioctl(3, LOOP_CLR_FD) = 0 [ 90.438699][ T5631] bcachefs (loop4): check_allocations... [ 90.471712][ T5632] bcachefs: bch2_fs_get_tree() error: EINVAL [ 90.596573][ T5631] done [ 90.635818][ T5631] bcachefs (loop4): going read-write [pid 5632] close(3 [pid 5225] <... umount2 resumed>) = 0 [pid 5225] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5631] <... mount resumed>) = 0 [pid 5631] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5225] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5631] <... openat resumed>) = 3 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5631] chdir("./file0") = 0 [pid 5225] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5631] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5225] <... openat resumed>) = 4 [pid 5631] <... openat resumed>) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5631] ioctl(4, LOOP_CLR_FD [pid 5225] getdents64(4, [pid 5631] <... ioctl resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [ 90.660256][ T5631] bcachefs (loop4): done starting filesystem [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./9/file0" [pid 5631] close(4 [pid 5225] <... rmdir resumed>) = 0 [pid 5631] <... close resumed>) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5631] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] close(3) = 0 [pid 5225] rmdir("./9") = 0 [pid 5225] mkdir("./10", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3 [pid 5631] <... openat resumed>) = 4 [pid 5225] <... close resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5665 [pid 5631] exit_group(0./strace-static-x86_64: Process 5665 attached ) = ? [pid 5665] set_robust_list(0x55555e217660, 24 [pid 5633] <... close resumed>) = 0 [pid 5631] +++ exited with 0 +++ [pid 5665] <... set_robust_list resumed>) = 0 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5631, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5665] chdir("./10" [pid 5228] restart_syscall(<... resuming interrupted clone ...> [pid 5665] <... chdir resumed>) = 0 [pid 5228] <... restart_syscall resumed>) = 0 [pid 5665] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5665] setpgid(0, 0) = 0 [pid 5228] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5665] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5630] <... close resumed>) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5665] write(3, "1000", 4 [pid 5633] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] <... openat resumed>) = 3 [pid 5665] <... write resumed>) = 4 [pid 5633] <... openat resumed>) = 3 [pid 5228] newfstatat(3, "", executing program [pid 5665] close(3 [pid 5633] exit_group(0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5665] <... close resumed>) = 0 [pid 5633] <... exit_group resumed>) = ? [pid 5665] symlink("/dev/binderfs", "./binderfs" [pid 5228] getdents64(3, [pid 5665] <... symlink resumed>) = 0 [pid 5665] write(1, "executing program\n", 18) = 18 [pid 5665] memfd_create("syzkaller", 0) = 3 [pid 5665] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5633] +++ exited with 0 +++ [pid 5630] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5633, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=41 /* 0.41 s */} --- [pid 5228] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5665] <... mmap resumed>) = 0x7f4aa8000000 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] newfstatat(AT_FDCWD, "./10/binderfs", [pid 5228] unlink("./7/binderfs" [pid 5630] <... openat resumed>) = 3 [pid 5228] <... unlink resumed>) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] unlink("./10/binderfs") = 0 [pid 5224] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5632] <... close resumed>) = 0 [pid 5632] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./10/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./10/bus") = 0 [pid 5224] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5632] <... openat resumed>) = 3 [pid 5630] exit_group(0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5630] <... exit_group resumed>) = ? [pid 5224] <... openat resumed>) = 4 [pid 5632] exit_group(0 [pid 5630] +++ exited with 0 +++ [pid 5224] newfstatat(4, "", [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5630, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=44 /* 0.44 s */} --- [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, [pid 5632] <... exit_group resumed>) = ? [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] getdents64(4, [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] close(4 [pid 5226] <... openat resumed>) = 3 [pid 5224] <... close resumed>) = 0 [pid 5226] newfstatat(3, "", [pid 5224] rmdir("./10/file0" [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... rmdir resumed>) = 0 [pid 5226] getdents64(3, [pid 5224] getdents64(3, [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] close(3 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... close resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5224] rmdir("./10" [pid 5632] +++ exited with 0 +++ [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... rmdir resumed>) = 0 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5632, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=44 /* 0.44 s */} --- [pid 5227] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] unlink("./9/binderfs" [pid 5227] newfstatat(3, "", [pid 5226] <... unlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] umount2("./9/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] getdents64(3, [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] newfstatat(AT_FDCWD, "./9/bus", [pid 5224] mkdir("./11", 0777 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... mkdir resumed>) = 0 [pid 5226] unlink("./9/bus" [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5226] <... unlink resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5226] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] ioctl(3, LOOP_CLR_FD [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] newfstatat(AT_FDCWD, "./9/file0", [pid 5224] close(3 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... close resumed>) = 0 [pid 5226] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY./strace-static-x86_64: Process 5666 attached [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... openat resumed>) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5666] set_robust_list(0x55555e217660, 24 [pid 5226] getdents64(4, [pid 5666] <... set_robust_list resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5666] chdir("./11" [pid 5226] close(4 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5666 [pid 5226] <... close resumed>) = 0 [pid 5226] rmdir("./9/file0" [pid 5227] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5226] <... rmdir resumed>) = 0 [pid 5666] <... chdir resumed>) = 0 [pid 5226] getdents64(3, [pid 5666] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5666] <... prctl resumed>) = 0 [pid 5226] close(3 [pid 5666] setpgid(0, 0 [pid 5226] <... close resumed>) = 0 [pid 5226] rmdir("./9" [pid 5666] <... setpgid resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] <... rmdir resumed>) = 0 [pid 5666] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5226] mkdir("./10", 0777 [pid 5666] <... openat resumed>) = 3 [pid 5227] unlink("./9/binderfs" [pid 5226] <... mkdir resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./9/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5666] write(3, "1000", 4 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5666] <... write resumed>) = 4 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5666] close(3 [pid 5226] <... openat resumed>) = 3 [pid 5666] <... close resumed>) = 0 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5666] symlink("/dev/binderfs", "./binderfs" [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5666] <... symlink resumed>) = 0 [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDexecuting program [pid 5666] write(1, "executing program\n", 18 [pid 5227] newfstatat(AT_FDCWD, "./9/bus", ./strace-static-x86_64: Process 5667 attached [pid 5666] <... write resumed>) = 18 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5666] memfd_create("syzkaller", 0 [pid 5227] unlink("./9/bus" [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5667 [pid 5666] <... memfd_create resumed>) = 3 [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5667] set_robust_list(0x55555e217660, 24 [pid 5666] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5667] <... set_robust_list resumed>) = 0 [pid 5666] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] newfstatat(AT_FDCWD, "./9/file0", executing program [pid 5667] chdir("./10" [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5667] <... chdir resumed>) = 0 [pid 5227] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5667] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5667] <... prctl resumed>) = 0 [pid 5227] <... openat resumed>) = 4 [pid 5667] setpgid(0, 0) = 0 [pid 5667] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5667] write(3, "1000", 4) = 4 [pid 5667] close(3) = 0 [pid 5667] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5667] write(1, "executing program\n", 18) = 18 [pid 5667] memfd_create("syzkaller", 0) = 3 [pid 5667] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 90.817256][ T5228] bcachefs (loop4): shutting down [ 90.831793][ T5228] bcachefs (loop4): going read-only [ 90.850910][ T5228] bcachefs (loop4): finished waiting for writes to stop [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./9/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./9") = 0 [pid 5227] mkdir("./10", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 90.892413][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5668 ./strace-static-x86_64: Process 5668 attached [pid 5668] set_robust_list(0x55555e217660, 24) = 0 [pid 5668] chdir("./10") = 0 [pid 5668] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5668] setpgid(0, 0) = 0 [pid 5668] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5668] write(3, "1000", 4) = 4 [pid 5668] close(3executing program ) = 0 [pid 5668] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5668] write(1, "executing program\n", 18) = 18 [pid 5668] memfd_create("syzkaller", 0) = 3 [pid 5668] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 90.994939][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 15 [ 91.070483][ T5228] bcachefs (loop4): unshutdown complete, journal seq 16 [ 91.078494][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [ 91.178216][ T5228] bcachefs (loop4): shutdown complete [pid 5666] 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 [pid 5665] 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 [pid 5668] 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 [pid 5667] 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 [pid 5666] <... write resumed>) = 16777216 [pid 5666] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5666] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5666] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5666] close(3) = 0 [pid 5666] close(4) = 0 [pid 5666] mkdir("./file0", 0777) = 0 [pid 5666] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5668] <... write resumed>) = 16777216 [ 91.573901][ T5666] loop0: detected capacity change from 0 to 32768 [pid 5668] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5665] <... write resumed>) = 16777216 [pid 5665] munmap(0x7f4aa8000000, 138412032 [pid 5668] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5668] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5668] close(3) = 0 [pid 5668] close(4) = 0 [pid 5668] mkdir("./file0", 0777) = 0 [pid 5668] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5665] <... munmap resumed>) = 0 [pid 5665] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5665] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5667] <... write resumed>) = 16777216 [pid 5667] munmap(0x7f4aa8000000, 138412032 [ 91.661657][ T5668] loop3: detected capacity change from 0 to 32768 [ 91.699082][ T5665] loop1: detected capacity change from 0 to 32768 [pid 5665] close(3) = 0 [pid 5665] close(4 [pid 5667] <... munmap resumed>) = 0 [pid 5665] <... close resumed>) = 0 [pid 5667] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5665] mkdir("./file0", 0777) = 0 [pid 5667] <... openat resumed>) = 4 [pid 5665] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5667] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5667] close(3) = 0 [pid 5667] close(4) = 0 [pid 5667] mkdir("./file0", 0777) = 0 [ 91.739295][ T5667] loop2: detected capacity change from 0 to 32768 [ 92.005959][ T5666] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 92.015036][ T5668] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 92.028940][ T5666] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 92.045802][ T5666] bcachefs (loop0): Version upgrade required: [ 92.045802][ T5666] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 92.045802][ T5666] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 92.045802][ T5666] 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 [ 92.071723][ T5665] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 92.126413][ T5665] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 92.134688][ T5667] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 92.145345][ T5666] bcachefs (loop0): dropping and reconstructing all alloc info [ 92.153162][ T5667] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 92.162428][ T5668] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 92.269372][ T5666] bcachefs (loop0): check_topology... done [ 92.275285][ T5666] bcachefs (loop0): accounting_read... [ 92.294299][ T5667] bcachefs: bch2_fs_get_tree() error: EINVAL [ 92.306364][ T5666] done [pid 5667] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"...) = -1 EINVAL (Invalid argument) [pid 5667] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5667] ioctl(3, LOOP_CLR_FD) = 0 [ 92.323645][ T5666] bcachefs (loop0): alloc_read... done [ 92.338712][ T5666] bcachefs (loop0): stripes_read... done [pid 5667] close(3 [pid 5665] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5665] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5665] ioctl(3, LOOP_CLR_FD) = 0 [ 92.370203][ T5665] bcachefs: bch2_fs_get_tree() error: EINVAL [ 92.376331][ T5666] bcachefs (loop0): snapshots_read... done [pid 5665] close(3 [pid 5668] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5668] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [ 92.385749][ T5666] bcachefs (loop0): check_allocations... [ 92.429947][ T5668] bcachefs: bch2_fs_get_tree() error: EINVAL [ 92.464655][ T5666] done [pid 5668] ioctl(3, LOOP_CLR_FD) = 0 [pid 5668] close(3 [pid 5228] <... umount2 resumed>) = 0 [ 92.486380][ T5666] bcachefs (loop0): going read-write [pid 5228] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./7/file0") = 0 [pid 5666] <... mount resumed>) = 0 [pid 5666] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5228] getdents64(3, [pid 5666] chdir("./file0" [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5666] <... chdir resumed>) = 0 [pid 5228] close(3 [pid 5666] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5228] <... close resumed>) = 0 [pid 5228] rmdir("./7" [pid 5666] <... openat resumed>) = 4 [pid 5228] <... rmdir resumed>) = 0 [pid 5666] ioctl(4, LOOP_CLR_FD [pid 5228] mkdir("./8", 0777 [pid 5666] <... ioctl resumed>) = 0 [pid 5666] close(4) = 0 [pid 5228] <... mkdir resumed>) = 0 [pid 5666] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5666] <... openat resumed>) = 4 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5666] exit_group(0) = ? [pid 5228] close(3 [pid 5666] +++ exited with 0 +++ [pid 5228] <... close resumed>) = 0 [ 92.531869][ T5666] bcachefs (loop0): done starting filesystem [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5666, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=40 /* 0.40 s */} --- ./strace-static-x86_64: Process 5700 attached [pid 5700] set_robust_list(0x55555e217660, 24 [pid 5667] <... close resumed>) = 0 [pid 5700] <... set_robust_list resumed>) = 0 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5700 [pid 5700] chdir("./8" [pid 5667] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5700] <... chdir resumed>) = 0 [pid 5667] <... openat resumed>) = 3 [pid 5700] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5667] exit_group(0 [pid 5224] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5700] <... prctl resumed>) = 0 [pid 5667] <... exit_group resumed>) = ? [pid 5700] setpgid(0, 0 [pid 5667] +++ exited with 0 +++ [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5700] <... setpgid resumed>) = 0 [pid 5224] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5667, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=46 /* 0.46 s */} --- [pid 5700] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5224] <... openat resumed>) = 3 [pid 5700] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 5700] write(3, "1000", 4 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5700] <... write resumed>) = 4 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5224] getdents64(3, [pid 5700] close(3) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5700] symlink("/dev/binderfs", "./binderfs" [pid 5226] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5700] <... symlink resumed>) = 0 [pid 5226] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5700] write(1, "executing program\n", 18executing program [pid 5226] <... openat resumed>) = 3 [pid 5224] unlink("./11/binderfs" [pid 5700] <... write resumed>) = 18 [pid 5226] newfstatat(3, "", [pid 5700] memfd_create("syzkaller", 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... unlink resumed>) = 0 [pid 5224] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] getdents64(3, [pid 5700] <... memfd_create resumed>) = 3 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5700] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5700] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5665] <... close resumed>) = 0 [pid 5665] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5665] exit_group(0) = ? [pid 5665] +++ exited with 0 +++ [ 92.688105][ T5224] bcachefs (loop0): shutting down [pid 5226] newfstatat(AT_FDCWD, "./10/binderfs", [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5665, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5225] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./10/binderfs") = 0 [pid 5225] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./10/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./10/bus" [pid 5226] unlink("./10/binderfs") = 0 [pid 5226] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] <... unlink resumed>) = 0 [pid 5225] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./10/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./10" [pid 5668] <... close resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./10/bus", [pid 5668] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5225] <... rmdir resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] mkdir("./11", 0777 [pid 5668] exit_group(0 [pid 5226] unlink("./10/bus" [pid 5225] <... mkdir resumed>) = 0 [pid 5668] <... exit_group resumed>) = ? [pid 5226] <... unlink resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5668] +++ exited with 0 +++ [pid 5225] <... openat resumed>) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5701 attached [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5668, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=45 /* 0.45 s */} --- [pid 5226] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5701] set_robust_list(0x55555e217660, 24 [pid 5226] newfstatat(AT_FDCWD, "./10/file0", [pid 5701] <... set_robust_list resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5701 [pid 5701] chdir("./11" [pid 5226] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5701] <... chdir resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5701] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5226] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5701] <... prctl resumed>) = 0 [pid 5226] newfstatat(4, "", [pid 5701] setpgid(0, 0) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, [pid 5701] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5701] <... openat resumed>) = 3 [pid 5227] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] getdents64(4, [pid 5227] <... openat resumed>) = 3 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] newfstatat(3, "", [pid 5226] close(4) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 92.708887][ T5224] bcachefs (loop0): going read-only [ 92.714356][ T5224] bcachefs (loop0): finished waiting for writes to stop [ 92.743643][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [pid 5701] write(3, "1000", 4 [pid 5226] rmdir("./10/file0") = 0 [pid 5227] getdents64(3, [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] close(3 [pid 5701] <... write resumed>) = 4 [pid 5227] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5701] close(3 [pid 5226] <... close resumed>) = 0 [pid 5701] <... close resumed>) = 0 [pid 5226] rmdir("./10" [pid 5701] symlink("/dev/binderfs", "./binderfs" [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... rmdir resumed>) = 0 [pid 5701] <... symlink resumed>) = 0 [pid 5226] mkdir("./11", 0777 [pid 5701] write(1, "executing program\n", 18 [pid 5227] newfstatat(AT_FDCWD, "./10/binderfs", [pid 5226] <... mkdir resumed>) = 0 executing program [pid 5701] <... write resumed>) = 18 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5701] memfd_create("syzkaller", 0 [pid 5227] unlink("./10/binderfs" [pid 5226] <... openat resumed>) = 3 [pid 5227] <... unlink resumed>) = 0 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5701] <... memfd_create resumed>) = 3 [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5701] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] close(3 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... close resumed>) = 0 [pid 5227] newfstatat(AT_FDCWD, "./10/bus", [pid 5701] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 ./strace-static-x86_64: Process 5702 attached [pid 5227] unlink("./10/bus" [pid 5702] set_robust_list(0x55555e217660, 24) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5702 [pid 5227] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5702] chdir("./11" [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5702] <... chdir resumed>) = 0 [pid 5227] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5702] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5702] <... prctl resumed>) = 0 [pid 5702] setpgid(0, 0 [pid 5227] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5702] <... setpgid resumed>) = 0 [pid 5702] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... openat resumed>) = 4 [pid 5702] <... openat resumed>) = 3 [pid 5227] newfstatat(4, "", [pid 5702] write(3, "1000", 4 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5702] <... write resumed>) = 4 [pid 5227] getdents64(4, [pid 5702] close(3) = 0 [pid 5702] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5702] write(1, "executing program\n", 18) = 18 [pid 5702] memfd_create("syzkaller", 0) = 3 [pid 5702] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./10/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [ 92.822290][ T1064] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [ 92.856940][ T1064] bcachefs (loop0): fatal error - emergency read only [pid 5227] close(3) = 0 [pid 5227] rmdir("./10") = 0 [pid 5227] mkdir("./11", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5703 attached , child_tidptr=0x55555e217650) = 5703 [pid 5703] set_robust_list(0x55555e217660, 24) = 0 [pid 5703] chdir("./11") = 0 [ 92.867323][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 14 [ 92.891933][ T5224] bcachefs (loop0): unshutdown complete, journal seq 14 [ 92.900260][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [pid 5703] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5703] setpgid(0, 0) = 0 [pid 5703] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5703] write(3, "1000", 4) = 4 [pid 5703] close(3) = 0 [pid 5703] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5703] write(1, "executing program\n", 18) = 18 [ 92.951375][ T5224] bcachefs (loop0): shutdown complete [pid 5703] memfd_create("syzkaller", 0) = 3 [pid 5703] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5700] 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 [pid 5701] 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 [pid 5702] 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 [pid 5703] 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 [pid 5700] <... write resumed>) = 16777216 [pid 5700] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5701] <... write resumed>) = 16777216 [pid 5701] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5700] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5700] ioctl(4, LOOP_SET_FD, 3 [pid 5701] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5700] <... ioctl resumed>) = 0 [pid 5701] ioctl(4, LOOP_SET_FD, 3 [pid 5700] close(3 [pid 5701] <... ioctl resumed>) = 0 [pid 5700] <... close resumed>) = 0 [pid 5702] <... write resumed>) = 16777216 [pid 5701] close(3 [pid 5700] close(4 [pid 5701] <... close resumed>) = 0 [pid 5700] <... close resumed>) = 0 [pid 5700] mkdir("./file0", 0777 [pid 5702] munmap(0x7f4aa8000000, 138412032 [pid 5701] close(4 [pid 5700] <... mkdir resumed>) = 0 [pid 5701] <... close resumed>) = 0 [pid 5701] mkdir("./file0", 0777 [pid 5700] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5702] <... munmap resumed>) = 0 [pid 5701] <... mkdir resumed>) = 0 [ 93.423444][ T5700] loop4: detected capacity change from 0 to 32768 [ 93.441323][ T5701] loop1: detected capacity change from 0 to 32768 [pid 5701] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5702] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5702] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5702] close(3) = 0 [pid 5702] close(4) = 0 [pid 5702] mkdir("./file0", 0777) = 0 [ 93.503676][ T5702] loop2: detected capacity change from 0 to 32768 [pid 5702] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5703] <... write resumed>) = 16777216 [pid 5703] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5703] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5703] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5703] close(3) = 0 [pid 5703] close(4) = 0 [pid 5703] mkdir("./file0", 0777) = 0 [ 93.627767][ T5703] loop3: detected capacity change from 0 to 32768 [ 93.881108][ T5701] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 93.881380][ T5700] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 93.895744][ T5701] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 93.913432][ T5700] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 93.951458][ T5702] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 93.965199][ T5702] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 93.976530][ T5703] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 93.988810][ T5700] bcachefs (loop4): Version upgrade required: [ 93.988810][ T5700] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 93.988810][ T5700] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 93.988810][ T5700] 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 [ 94.012331][ T5703] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 94.095228][ T5700] bcachefs (loop4): dropping and reconstructing all alloc info [pid 5703] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5701] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5701] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5701] ioctl(3, LOOP_CLR_FD) = 0 [ 94.152752][ T5701] bcachefs: bch2_fs_get_tree() error: EINVAL [ 94.236912][ T5700] bcachefs (loop4): check_topology... done [ 94.249380][ T5702] bcachefs: bch2_fs_get_tree() error: EINVAL [ 94.262035][ T5700] bcachefs (loop4): accounting_read... [ 94.270702][ T5703] bcachefs: bch2_fs_get_tree() error: EINVAL [ 94.283311][ T5700] done [pid 5701] close(3 [pid 5702] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5703] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5702] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5703] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5702] <... openat resumed>) = 3 [pid 5703] <... openat resumed>) = 3 [pid 5703] ioctl(3, LOOP_CLR_FD) = 0 [ 94.286121][ T5700] bcachefs (loop4): alloc_read... done [pid 5703] close(3 [pid 5702] ioctl(3, LOOP_CLR_FD) = 0 [pid 5702] close(3 [pid 5224] <... umount2 resumed>) = 0 [pid 5224] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./11/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./11") = 0 [ 94.315857][ T5700] bcachefs (loop4): stripes_read... done [ 94.340164][ T5700] bcachefs (loop4): snapshots_read... done [pid 5224] mkdir("./12", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5733 attached [pid 5733] set_robust_list(0x55555e217660, 24 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5733 [pid 5733] <... set_robust_list resumed>) = 0 [pid 5733] chdir("./12") = 0 [pid 5733] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5733] setpgid(0, 0) = 0 [pid 5733] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5701] <... close resumed>) = 0 [pid 5733] <... openat resumed>) = 3 [pid 5733] write(3, "1000", 4) = 4 [pid 5733] close(3) = 0 [pid 5733] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5701] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000executing program [ 94.346282][ T5700] bcachefs (loop4): check_allocations... done [pid 5733] write(1, "executing program\n", 18) = 18 [pid 5701] <... openat resumed>) = 3 [pid 5733] memfd_create("syzkaller", 0 [pid 5701] exit_group(0 [pid 5733] <... memfd_create resumed>) = 3 [pid 5701] <... exit_group resumed>) = ? [pid 5733] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5701] +++ exited with 0 +++ [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5701, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=40 /* 0.40 s */} --- [pid 5733] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./11/binderfs") = 0 [pid 5225] umount2("./11/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./11/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./11/bus") = 0 [pid 5225] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 94.513250][ T5700] bcachefs (loop4): going read-write [pid 5225] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./11/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./11" [pid 5700] <... mount resumed>) = 0 [pid 5225] <... rmdir resumed>) = 0 [pid 5700] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5700] chdir("./file0") = 0 [pid 5700] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5700] ioctl(4, LOOP_CLR_FD) = 0 [pid 5700] close(4) = 0 [pid 5700] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5702] <... close resumed>) = 0 [pid 5225] mkdir("./12", 0777 [pid 5700] exit_group(0 [pid 5225] <... mkdir resumed>) = 0 [pid 5700] <... exit_group resumed>) = ? [pid 5703] <... close resumed>) = 0 [pid 5702] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5700] +++ exited with 0 +++ [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5703] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5702] <... openat resumed>) = 3 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5700, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=40 /* 0.40 s */} --- [pid 5225] <... openat resumed>) = 3 [pid 5228] restart_syscall(<... resuming interrupted clone ...> [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5703] exit_group(0 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5703] <... exit_group resumed>) = ? [pid 5225] close(3 [pid 5703] +++ exited with 0 +++ [pid 5702] exit_group(0 [pid 5228] <... restart_syscall resumed>) = 0 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5703, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=42 /* 0.42 s */} --- [pid 5225] <... close resumed>) = 0 [pid 5702] <... exit_group resumed>) = ? [pid 5227] restart_syscall(<... resuming interrupted clone ...> [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] <... restart_syscall resumed>) = 0 [pid 5228] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 94.547724][ T5700] bcachefs (loop4): done starting filesystem ./strace-static-x86_64: Process 5736 attached [pid 5702] +++ exited with 0 +++ [pid 5228] newfstatat(3, "", [pid 5227] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5736] set_robust_list(0x55555e217660, 24 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5736] <... set_robust_list resumed>) = 0 [pid 5228] getdents64(3, [pid 5227] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5702, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=39 /* 0.39 s */} --- [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5736 [pid 5736] chdir("./12" [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5228] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... openat resumed>) = 3 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(3, "", [pid 5736] <... chdir resumed>) = 0 [pid 5228] newfstatat(AT_FDCWD, "./8/binderfs", [pid 5736] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5736] <... prctl resumed>) = 0 [pid 5228] unlink("./8/binderfs" [pid 5736] setpgid(0, 0 [pid 5228] <... unlink resumed>) = 0 [pid 5227] getdents64(3, [pid 5736] <... setpgid resumed>) = 0 [pid 5228] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5736] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5736] <... openat resumed>) = 3 [pid 5227] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5736] write(3, "1000", 4 [pid 5226] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./11/binderfs", [pid 5736] <... write resumed>) = 4 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5736] close(3 [pid 5226] unlink("./11/binderfs" [pid 5736] <... close resumed>) = 0 [pid 5736] symlink("/dev/binderfs", "./binderfs" [pid 5227] newfstatat(AT_FDCWD, "./11/binderfs", [pid 5226] <... unlink resumed>) = 0 executing program [pid 5736] <... symlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./11/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5736] write(1, "executing program\n", 18 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5736] <... write resumed>) = 18 [pid 5226] newfstatat(AT_FDCWD, "./11/bus", [pid 5227] unlink("./11/binderfs" [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5736] memfd_create("syzkaller", 0 [pid 5227] <... unlink resumed>) = 0 [pid 5226] unlink("./11/bus" [pid 5736] <... memfd_create resumed>) = 3 [pid 5736] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] umount2("./11/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... unlink resumed>) = 0 [pid 5736] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./11/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./11/bus") = 0 [pid 5227] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [ 94.625541][ T5228] bcachefs (loop4): shutting down [pid 5227] rmdir("./11/file0") = 0 [pid 5226] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] getdents64(3, [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] newfstatat(AT_FDCWD, "./11/file0", [pid 5227] close(3 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... close resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] rmdir("./11" [pid 5226] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] <... rmdir resumed>) = 0 [pid 5226] <... openat resumed>) = 4 [pid 5227] mkdir("./12", 0777 [pid 5226] newfstatat(4, "", [pid 5227] <... mkdir resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5226] getdents64(4, [pid 5227] <... openat resumed>) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5227] close(3) = 0 [ 94.656904][ T5228] bcachefs (loop4): going read-only [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5737 attached [pid 5226] rmdir("./11/file0" [pid 5737] set_robust_list(0x55555e217660, 24 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5737 [pid 5226] <... rmdir resumed>) = 0 [pid 5737] <... set_robust_list resumed>) = 0 [pid 5226] getdents64(3, [pid 5737] chdir("./12" [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5737] <... chdir resumed>) = 0 [pid 5737] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5226] close(3 [pid 5737] <... prctl resumed>) = 0 [pid 5226] <... close resumed>) = 0 [pid 5737] setpgid(0, 0 [pid 5226] rmdir("./11" [pid 5737] <... setpgid resumed>) = 0 [pid 5737] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5226] <... rmdir resumed>) = 0 [pid 5737] <... openat resumed>) = 3 [pid 5226] mkdir("./12", 0777 [pid 5737] write(3, "1000", 4) = 4 [pid 5737] close(3 [pid 5226] <... mkdir resumed>) = 0 [pid 5737] <... close resumed>) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5737] symlink("/dev/binderfs", "./binderfs"executing program [pid 5226] <... openat resumed>) = 3 [pid 5737] <... symlink resumed>) = 0 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5737] write(1, "executing program\n", 18 [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5737] <... write resumed>) = 18 [pid 5226] close(3 [pid 5737] memfd_create("syzkaller", 0 [pid 5226] <... close resumed>) = 0 [pid 5737] <... memfd_create resumed>) = 3 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5737] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 ./strace-static-x86_64: Process 5738 attached [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5738 [pid 5738] set_robust_list(0x55555e217660, 24) = 0 [pid 5738] chdir("./12") = 0 [ 94.691196][ T5228] bcachefs (loop4): finished waiting for writes to stop [ 94.723203][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5738] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5738] setpgid(0, 0) = 0 [pid 5738] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5738] write(3, "1000", 4) = 4 [pid 5738] close(3) = 0 [pid 5738] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5738] write(1, "executing program\n", 18executing program ) = 18 [pid 5738] memfd_create("syzkaller", 0) = 3 [pid 5738] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 94.800895][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 16 [ 94.841520][ T5228] bcachefs (loop4): unshutdown complete, journal seq 17 [ 94.849659][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [ 94.913133][ T5228] bcachefs (loop4): shutdown complete [pid 5733] 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 [pid 5736] 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 [pid 5737] 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 [pid 5738] 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 [pid 5733] <... write resumed>) = 16777216 [pid 5733] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5733] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5733] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5733] close(3) = 0 [pid 5733] close(4) = 0 [pid 5733] mkdir("./file0", 0777) = 0 [ 95.180046][ T5733] loop0: detected capacity change from 0 to 32768 [pid 5733] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5736] <... write resumed>) = 16777216 [pid 5738] <... write resumed>) = 16777216 [pid 5736] munmap(0x7f4aa8000000, 138412032 [pid 5738] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5738] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5738] ioctl(4, LOOP_SET_FD, 3 [pid 5736] <... munmap resumed>) = 0 [pid 5738] <... ioctl resumed>) = 0 [pid 5738] close(3) = 0 [pid 5736] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5738] close(4 [pid 5736] <... openat resumed>) = 4 [pid 5738] <... close resumed>) = 0 [pid 5738] mkdir("./file0", 0777) = 0 [pid 5737] <... write resumed>) = 16777216 [pid 5736] ioctl(4, LOOP_SET_FD, 3 [pid 5738] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5737] munmap(0x7f4aa8000000, 138412032 [pid 5736] <... ioctl resumed>) = 0 [pid 5736] close(3) = 0 [pid 5736] close(4) = 0 [pid 5736] mkdir("./file0", 0777) = 0 [pid 5736] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5737] <... munmap resumed>) = 0 [pid 5737] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 95.390336][ T5738] loop2: detected capacity change from 0 to 32768 [ 95.418760][ T5736] loop1: detected capacity change from 0 to 32768 [pid 5737] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5737] close(3) = 0 [pid 5737] close(4) = 0 [pid 5737] mkdir("./file0", 0777) = 0 [ 95.448098][ T5737] loop3: detected capacity change from 0 to 32768 [ 95.777060][ T5736] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 95.798832][ T5736] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 95.798998][ T5738] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 95.828532][ T5737] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 95.846504][ T5733] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 95.869040][ T5738] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 95.888405][ T5733] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 95.903193][ T5737] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 95.914335][ T5736] bcachefs: bch2_fs_get_tree() error: EINVAL [ 95.920922][ T5738] bcachefs (loop2): Version upgrade required: [ 95.920922][ T5738] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 95.920922][ T5738] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [pid 5737] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5736] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5736] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5736] ioctl(3, LOOP_CLR_FD) = 0 [ 95.920922][ T5738] 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 [pid 5736] close(3 [pid 5228] <... umount2 resumed>) = 0 [pid 5228] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 96.059625][ T5738] bcachefs (loop2): dropping and reconstructing all alloc info [pid 5228] newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", [pid 5733] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5733] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5228] getdents64(4, [pid 5733] <... openat resumed>) = 3 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5733] ioctl(3, LOOP_CLR_FD [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [ 96.117627][ T5738] bcachefs (loop2): check_topology... done [ 96.124859][ T5738] bcachefs (loop2): accounting_read... done [ 96.131473][ T5738] bcachefs (loop2): alloc_read... done [ 96.140323][ T5733] bcachefs: bch2_fs_get_tree() error: EINVAL [ 96.155832][ T5738] bcachefs (loop2): stripes_read... done [pid 5228] close(4) = 0 [pid 5733] <... ioctl resumed>) = 0 [pid 5228] rmdir("./8/file0" [pid 5737] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5733] close(3 [pid 5228] <... rmdir resumed>) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5737] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5228] close(3 [pid 5737] <... openat resumed>) = 3 [pid 5228] <... close resumed>) = 0 [pid 5737] ioctl(3, LOOP_CLR_FD [pid 5228] rmdir("./8") = 0 [pid 5737] <... ioctl resumed>) = 0 [pid 5228] mkdir("./9", 0777 [pid 5737] close(3 [pid 5228] <... mkdir resumed>) = 0 [ 96.165260][ T5738] bcachefs (loop2): snapshots_read... done [ 96.177029][ T5738] bcachefs (loop2): check_allocations... [ 96.178460][ T5737] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5768 attached [pid 5768] set_robust_list(0x55555e217660, 24 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5768 [pid 5736] <... close resumed>) = 0 [pid 5768] <... set_robust_list resumed>) = 0 [pid 5736] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5768] chdir("./9" [pid 5736] <... openat resumed>) = 3 [pid 5768] <... chdir resumed>) = 0 [pid 5736] exit_group(0 [pid 5768] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5768] setpgid(0, 0 [pid 5736] <... exit_group resumed>) = ? [pid 5768] <... setpgid resumed>) = 0 [pid 5768] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5768] write(3, "1000", 4) = 4 [pid 5768] close(3) = 0 [pid 5736] +++ exited with 0 +++ [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5736, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=45 /* 0.45 s */} --- [pid 5768] symlink("/dev/binderfs", "./binderfs" [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5768] <... symlink resumed>) = 0 executing program [pid 5225] <... restart_syscall resumed>) = 0 [pid 5768] write(1, "executing program\n", 18) = 18 [pid 5225] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5768] memfd_create("syzkaller", 0 [pid 5225] <... openat resumed>) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./12/binderfs") = 0 [pid 5225] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./12/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./12/bus") = 0 [pid 5225] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5768] <... memfd_create resumed>) = 3 [pid 5225] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5768] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5768] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 96.266196][ T5738] done [ 96.275479][ T5738] bcachefs (loop2): going read-write [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./12/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./12") = 0 [pid 5225] mkdir("./13", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5771 attached , child_tidptr=0x55555e217650) = 5771 [pid 5771] set_robust_list(0x55555e217660, 24) = 0 [pid 5771] chdir("./13" [pid 5738] <... mount resumed>) = 0 [pid 5771] <... chdir resumed>) = 0 [pid 5738] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5771] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5738] chdir("./file0" [pid 5771] setpgid(0, 0 [pid 5738] <... chdir resumed>) = 0 [ 96.341133][ T5738] bcachefs (loop2): done starting filesystem [pid 5771] <... setpgid resumed>) = 0 [pid 5738] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5771] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5738] <... openat resumed>) = 4 [pid 5738] ioctl(4, LOOP_CLR_FD) = 0 [pid 5738] close(4) = 0 [pid 5738] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5771] <... openat resumed>) = 3 [pid 5738] <... openat resumed>) = 4 [pid 5771] write(3, "1000", 4 [pid 5738] exit_group(0 [pid 5771] <... write resumed>) = 4 [pid 5738] <... exit_group resumed>) = ? [pid 5738] +++ exited with 0 +++ [pid 5771] close(3 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5738, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=36 /* 0.36 s */} --- [pid 5226] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 executing program [pid 5226] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./12/binderfs" [pid 5771] <... close resumed>) = 0 [pid 5226] <... unlink resumed>) = 0 [pid 5771] symlink("/dev/binderfs", "./binderfs" [pid 5226] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5771] <... symlink resumed>) = 0 [pid 5771] write(1, "executing program\n", 18) = 18 [pid 5771] memfd_create("syzkaller", 0) = 3 [pid 5771] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 96.445403][ T5226] bcachefs (loop2): shutting down [ 96.459821][ T5226] bcachefs (loop2): going read-only [ 96.465600][ T5226] bcachefs (loop2): finished waiting for writes to stop [pid 5737] <... close resumed>) = 0 [pid 5733] <... close resumed>) = 0 [pid 5733] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5737] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5733] exit_group(0 [pid 5737] <... openat resumed>) = 3 [pid 5733] <... exit_group resumed>) = ? [pid 5737] exit_group(0) = ? [pid 5733] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5733, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=34 /* 0.34 s */} --- [pid 5737] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5737, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=42 /* 0.42 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...> [pid 5224] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] <... restart_syscall resumed>) = 0 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] getdents64(3, [pid 5227] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(AT_FDCWD, "./12/binderfs", [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] newfstatat(AT_FDCWD, "./12/binderfs", [pid 5224] unlink("./12/binderfs" [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./12/binderfs") = 0 [pid 5224] <... unlink resumed>) = 0 [pid 5227] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] newfstatat(AT_FDCWD, "./12/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./12/bus", [pid 5227] unlink("./12/bus") = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] unlink("./12/bus" [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... unlink resumed>) = 0 [ 96.500577][ T5226] bcachefs (loop2): flushing journal and stopping allocators, journal seq 11 [pid 5227] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./12/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] close(3) = 0 [pid 5224] rmdir("./12") = 0 [pid 5224] mkdir("./13", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] <... openat resumed>) = 4 ./strace-static-x86_64: Process 5772 attached [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5772 [pid 5772] set_robust_list(0x55555e217660, 24 [pid 5227] newfstatat(4, "", [pid 5772] <... set_robust_list resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5772] chdir("./13" [pid 5227] getdents64(4, [pid 5772] <... chdir resumed>) = 0 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5772] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] getdents64(4, [pid 5772] <... prctl resumed>) = 0 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5772] setpgid(0, 0) = 0 [pid 5772] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] close(4 [pid 5772] <... openat resumed>) = 3 [pid 5227] <... close resumed>) = 0 [pid 5772] write(3, "1000", 4) = 4 [pid 5227] rmdir("./12/file0" [pid 5772] close(3) = 0 [pid 5772] symlink("/dev/binderfs", "./binderfs" [pid 5227] <... rmdir resumed>) = 0 [pid 5772] <... symlink resumed>) = 0 executing program [pid 5772] write(1, "executing program\n", 18) = 18 [ 96.563316][ T52] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 96.577006][ T52] bcachefs (loop2): fatal error - emergency read only [ 96.601430][ T5226] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 12 [pid 5772] memfd_create("syzkaller", 0 [pid 5227] getdents64(3, [pid 5772] <... memfd_create resumed>) = 3 [pid 5772] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./12") = 0 [pid 5227] mkdir("./13", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [ 96.620102][ T5226] bcachefs (loop2): unshutdown complete, journal seq 12 [ 96.628373][ T5226] bcachefs (loop2): done going read-only, filesystem not clean [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5773 attached , child_tidptr=0x55555e217650) = 5773 [pid 5773] set_robust_list(0x55555e217660, 24) = 0 [pid 5773] chdir("./13") = 0 [pid 5773] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5773] setpgid(0, 0) = 0 [pid 5773] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5773] write(3, "1000", 4) = 4 [pid 5773] close(3) = 0 [pid 5773] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5773] write(1, "executing program\n", 18) = 18 [pid 5773] memfd_create("syzkaller", 0) = 3 [pid 5773] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 96.665896][ T5226] bcachefs (loop2): shutdown complete [pid 5768] 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 [pid 5771] 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 [pid 5772] 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 [pid 5773] 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 [pid 5768] <... write resumed>) = 16777216 [pid 5768] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5768] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5768] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5768] close(3) = 0 [pid 5768] close(4) = 0 [pid 5768] mkdir("./file0", 0777) = 0 [pid 5768] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5771] <... write resumed>) = 16777216 [ 97.132898][ T5768] loop4: detected capacity change from 0 to 32768 [pid 5771] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5771] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5771] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5771] close(3) = 0 [pid 5771] close(4) = 0 [pid 5771] mkdir("./file0", 0777) = 0 [pid 5771] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5772] <... write resumed>) = 16777216 [ 97.220524][ T5771] loop1: detected capacity change from 0 to 32768 [pid 5772] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5772] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5772] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5772] close(3 [pid 5773] <... write resumed>) = 16777216 [pid 5772] <... close resumed>) = 0 [pid 5772] close(4 [pid 5773] munmap(0x7f4aa8000000, 138412032 [pid 5772] <... close resumed>) = 0 [pid 5772] mkdir("./file0", 0777) = 0 [pid 5772] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5773] <... munmap resumed>) = 0 [ 97.285833][ T5772] loop0: detected capacity change from 0 to 32768 [pid 5773] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5773] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5773] close(3) = 0 [pid 5773] close(4) = 0 [pid 5773] mkdir("./file0", 0777) = 0 [ 97.337214][ T5773] loop3: detected capacity change from 0 to 32768 [ 97.556117][ T5772] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 97.565763][ T5768] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 97.588656][ T5772] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 97.588965][ T5768] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 97.605099][ T5773] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 97.605299][ T5768] bcachefs (loop4): Version upgrade required: [ 97.605299][ T5768] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 97.605299][ T5768] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 97.605299][ T5768] 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 [ 97.685398][ T5773] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 97.688136][ T5771] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 97.718196][ T5771] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5773] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"...) = -1 EINVAL (Invalid argument) [pid 5773] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5773] ioctl(3, LOOP_CLR_FD) = 0 [ 97.801905][ T5773] bcachefs: bch2_fs_get_tree() error: EINVAL [ 97.814709][ T5768] bcachefs (loop4): dropping and reconstructing all alloc info [ 97.866830][ T5768] bcachefs (loop4): check_topology... done [ 97.878640][ T5768] bcachefs (loop4): accounting_read... done [ 97.910197][ T5768] bcachefs (loop4): alloc_read... done [ 97.919285][ T5768] bcachefs (loop4): stripes_read... done [ 97.925018][ T5768] bcachefs (loop4): snapshots_read... done [ 97.947734][ T5772] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5773] close(3 [pid 5772] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5772] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5772] ioctl(3, LOOP_CLR_FD) = 0 [pid 5772] close(3 [pid 5771] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 97.960908][ T5768] bcachefs (loop4): check_allocations... [ 97.979286][ T5771] bcachefs: bch2_fs_get_tree() error: EINVAL [ 98.012502][ T5768] done [pid 5771] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5771] ioctl(3, LOOP_CLR_FD) = 0 [pid 5771] close(3 [pid 5768] <... mount resumed>) = 0 [pid 5773] <... close resumed>) = 0 [ 98.037027][ T5768] bcachefs (loop4): going read-write [ 98.054667][ T5768] bcachefs (loop4): done starting filesystem [pid 5768] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5226] <... umount2 resumed>) = 0 [pid 5773] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5768] chdir("./file0" [pid 5773] <... openat resumed>) = 3 [pid 5768] <... chdir resumed>) = 0 [pid 5768] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5773] exit_group(0 [pid 5768] <... openat resumed>) = 4 [pid 5768] ioctl(4, LOOP_CLR_FD [pid 5773] <... exit_group resumed>) = ? [pid 5768] <... ioctl resumed>) = 0 [pid 5768] close(4) = 0 [pid 5768] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5773] +++ exited with 0 +++ [pid 5226] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, [pid 5768] <... openat resumed>) = 4 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5773, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=44 /* 0.44 s */} --- [pid 5226] close(4 [pid 5768] exit_group(0 [pid 5226] <... close resumed>) = 0 [pid 5227] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] rmdir("./12/file0") = 0 [pid 5768] <... exit_group resumed>) = ? [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5768] +++ exited with 0 +++ [pid 5227] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./12") = 0 [pid 5227] <... openat resumed>) = 3 [pid 5226] mkdir("./13", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5805 attached [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5768, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=35 /* 0.35 s */} --- [pid 5227] newfstatat(3, "", [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5805 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5805] set_robust_list(0x55555e217660, 24 [pid 5227] getdents64(3, [pid 5805] <... set_robust_list resumed>) = 0 [pid 5805] chdir("./13") = 0 [pid 5805] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5228] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./13/binderfs", [pid 5228] <... openat resumed>) = 3 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] newfstatat(3, "", [pid 5227] unlink("./13/binderfs" [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5805] setpgid(0, 0 [pid 5228] getdents64(3, [pid 5227] <... unlink resumed>) = 0 [pid 5805] <... setpgid resumed>) = 0 [pid 5805] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5805] write(3, "1000", 4) = 4 [pid 5805] close(3 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5227] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./13/bus", [ 98.142407][ T5768] syz-executor318 (5768) used greatest stack depth: 17968 bytes left [pid 5228] newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./9/binderfs" [pid 5227] unlink("./13/bus" [pid 5805] <... close resumed>) = 0 [pid 5228] <... unlink resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5805] symlink("/dev/binderfs", "./binderfs" [pid 5228] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5805] <... symlink resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./13/file0", [pid 5805] write(1, "executing program\n", 18 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 executing program [pid 5227] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5805] <... write resumed>) = 18 [pid 5805] memfd_create("syzkaller", 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5805] <... memfd_create resumed>) = 3 [pid 5227] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5805] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5227] <... openat resumed>) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./13/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./13") = 0 [pid 5771] <... close resumed>) = 0 [pid 5227] mkdir("./14", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [ 98.248118][ T5228] bcachefs (loop4): shutting down [ 98.258695][ T5228] bcachefs (loop4): going read-only [ 98.265178][ T5228] bcachefs (loop4): finished waiting for writes to stop [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5772] <... close resumed>) = 0 [pid 5771] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5772] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5771] <... openat resumed>) = 3 ./strace-static-x86_64: Process 5806 attached [pid 5772] <... openat resumed>) = 3 [pid 5772] exit_group(0 [pid 5771] exit_group(0 [pid 5806] set_robust_list(0x55555e217660, 24 [pid 5771] <... exit_group resumed>) = ? [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5806 [pid 5806] <... set_robust_list resumed>) = 0 [pid 5772] <... exit_group resumed>) = ? [pid 5806] chdir("./14" [pid 5771] +++ exited with 0 +++ [pid 5772] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5772, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=44 /* 0.44 s */} --- [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5771, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=50 /* 0.50 s */} --- [pid 5806] <... chdir resumed>) = 0 [ 98.295760][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 11 [ 98.329706][ T52] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [pid 5225] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5806] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5806] setpgid(0, 0 [pid 5224] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5806] <... setpgid resumed>) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... openat resumed>) = 3 [pid 5806] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] newfstatat(3, "", [pid 5806] <... openat resumed>) = 3 [pid 5806] write(3, "1000", 4 [pid 5225] <... openat resumed>) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5806] <... write resumed>) = 4 [pid 5225] newfstatat(3, "", [pid 5806] close(3 [pid 5224] getdents64(3, [pid 5806] <... close resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] getdents64(3, [pid 5806] symlink("/dev/binderfs", "./binderfs" [pid 5224] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5806] <... symlink resumed>) = 0 [pid 5225] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5806] write(1, "executing program\n", 18 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./13/binderfs", [pid 5225] newfstatat(AT_FDCWD, "./13/binderfs", [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./13/binderfs" [pid 5225] unlink("./13/binderfs" [pid 5224] <... unlink resumed>) = 0 [pid 5225] <... unlink resumed>) = 0 [pid 5224] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./13/bus", [pid 5225] newfstatat(AT_FDCWD, "./13/bus", executing program [pid 5806] <... write resumed>) = 18 [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./13/bus") = 0 [pid 5224] unlink("./13/bus" [pid 5225] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5806] memfd_create("syzkaller", 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... unlink resumed>) = 0 [pid 5225] newfstatat(AT_FDCWD, "./13/file0", [pid 5224] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5806] <... memfd_create resumed>) = 3 [pid 5225] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./13/file0", [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5806] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] <... openat resumed>) = 4 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5806] <... mmap resumed>) = 0x7f4aa8000000 [pid 5224] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, [pid 5225] newfstatat(4, "", [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4 [pid 5225] getdents64(4, [pid 5224] <... close resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] rmdir("./13/file0" [pid 5225] getdents64(4, [pid 5224] <... rmdir resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] getdents64(3, [pid 5225] close(4) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] rmdir("./13/file0" [pid 5224] close(3 [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... close resumed>) = 0 [pid 5225] getdents64(3, [pid 5224] rmdir("./13" [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3 [pid 5224] <... rmdir resumed>) = 0 [pid 5225] <... close resumed>) = 0 [pid 5225] rmdir("./13" [pid 5224] mkdir("./14", 0777 [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... mkdir resumed>) = 0 [pid 5225] mkdir("./14", 0777 [ 98.350185][ T52] bcachefs (loop4): fatal error - emergency read only [ 98.365183][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 13 [ 98.378179][ T5228] bcachefs (loop4): unshutdown complete, journal seq 13 [ 98.387926][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5225] <... mkdir resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5224] close(3 [pid 5225] <... openat resumed>) = 3 [pid 5224] <... close resumed>) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5807 attached [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5807 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5807] set_robust_list(0x55555e217660, 24 [pid 5805] 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 [pid 5225] close(3 [pid 5807] <... set_robust_list resumed>) = 0 [pid 5807] chdir("./14" [pid 5225] <... close resumed>) = 0 [pid 5807] <... chdir resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5807] prctl(PR_SET_PDEATHSIG, SIGKILL./strace-static-x86_64: Process 5808 attached ) = 0 [pid 5808] set_robust_list(0x55555e217660, 24 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5808 [pid 5808] <... set_robust_list resumed>) = 0 [pid 5807] setpgid(0, 0 [pid 5808] chdir("./14" [pid 5807] <... setpgid resumed>) = 0 [pid 5808] <... chdir resumed>) = 0 [pid 5808] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5807] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5808] <... prctl resumed>) = 0 [pid 5808] setpgid(0, 0) = 0 [pid 5807] <... openat resumed>) = 3 [pid 5808] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5807] write(3, "1000", 4 [pid 5808] <... openat resumed>) = 3 [pid 5807] <... write resumed>) = 4 [pid 5808] write(3, "1000", 4 [pid 5807] close(3 [pid 5808] <... write resumed>) = 4 [pid 5808] close(3 [pid 5807] <... close resumed>) = 0 [pid 5807] symlink("/dev/binderfs", "./binderfs" [pid 5808] <... close resumed>) = 0 [pid 5808] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5808] write(1, "executing program\n", 18 [pid 5807] <... symlink resumed>) = 0 [pid 5808] <... write resumed>) = 18 [pid 5807] write(1, "executing program\n", 18executing program [pid 5808] memfd_create("syzkaller", 0 [pid 5807] <... write resumed>) = 18 [pid 5807] memfd_create("syzkaller", 0 [pid 5808] <... memfd_create resumed>) = 3 [pid 5807] <... memfd_create resumed>) = 3 [pid 5808] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5807] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5808] <... mmap resumed>) = 0x7f4aa8000000 [pid 5807] <... mmap resumed>) = 0x7f4aa8000000 [ 98.461286][ T5228] bcachefs (loop4): shutdown complete [pid 5806] 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 [pid 5807] 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 [pid 5805] <... write resumed>) = 16777216 [pid 5808] 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 [pid 5805] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5805] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5805] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5805] close(3) = 0 [pid 5805] close(4) = 0 [ 98.842729][ T5805] loop2: detected capacity change from 0 to 32768 [pid 5805] mkdir("./file0", 0777) = 0 [pid 5805] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5807] <... write resumed>) = 16777216 [pid 5807] munmap(0x7f4aa8000000, 138412032 [pid 5806] <... write resumed>) = 16777216 [pid 5807] <... munmap resumed>) = 0 [pid 5806] munmap(0x7f4aa8000000, 138412032 [pid 5807] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5807] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5806] <... munmap resumed>) = 0 [pid 5807] close(3) = 0 [pid 5807] close(4) = 0 [pid 5806] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5807] mkdir("./file0", 0777 [pid 5806] <... openat resumed>) = 4 [pid 5807] <... mkdir resumed>) = 0 [pid 5806] ioctl(4, LOOP_SET_FD, 3 [pid 5807] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5806] <... ioctl resumed>) = 0 [pid 5806] close(3) = 0 [pid 5806] close(4) = 0 [pid 5806] mkdir("./file0", 0777) = 0 [ 99.019973][ T5807] loop0: detected capacity change from 0 to 32768 [ 99.050588][ T5806] loop3: detected capacity change from 0 to 32768 [pid 5806] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5808] <... write resumed>) = 16777216 [pid 5808] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5808] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5808] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5808] close(3) = 0 [pid 5808] close(4) = 0 [pid 5808] mkdir("./file0", 0777) = 0 [ 99.120244][ T5808] loop1: detected capacity change from 0 to 32768 [ 99.278167][ T5805] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 99.300527][ T5805] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 99.308539][ T5805] bcachefs (loop2): Version upgrade required: [ 99.308539][ T5805] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 99.308539][ T5805] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 99.308539][ T5805] 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 [ 99.389195][ T5806] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 99.398414][ T5806] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 99.401332][ T5808] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 99.427276][ T5805] bcachefs (loop2): dropping and reconstructing all alloc info [ 99.435876][ T5808] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 99.444051][ T5807] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 99.453258][ T5807] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 99.481880][ T5805] bcachefs (loop2): check_topology... done [ 99.489943][ T5805] bcachefs (loop2): accounting_read... done [ 99.559194][ T5805] bcachefs (loop2): alloc_read... done [ 99.564779][ T5805] bcachefs (loop2): stripes_read... done [pid 5808] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"...) = -1 EINVAL (Invalid argument) [pid 5808] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5808] ioctl(3, LOOP_CLR_FD) = 0 [ 99.590432][ T5808] bcachefs: bch2_fs_get_tree() error: EINVAL [ 99.602346][ T5805] bcachefs (loop2): snapshots_read... done [pid 5808] close(3 [pid 5806] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 99.608344][ T5805] bcachefs (loop2): check_allocations... [ 99.631031][ T5806] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5806] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5806] ioctl(3, LOOP_CLR_FD) = 0 [pid 5806] close(3 [pid 5807] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5807] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5807] ioctl(3, LOOP_CLR_FD) = 0 [ 99.690194][ T5807] bcachefs: bch2_fs_get_tree() error: EINVAL [ 99.690430][ T5805] done [ 99.719379][ T5805] bcachefs (loop2): going read-write [pid 5807] close(3 [pid 5805] <... mount resumed>) = 0 [pid 5228] <... umount2 resumed>) = 0 [pid 5805] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5228] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5805] <... openat resumed>) = 3 [pid 5805] chdir("./file0" [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, [pid 5805] <... chdir resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5805] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./9/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5805] <... openat resumed>) = 4 [pid 5228] rmdir("./9" [pid 5805] ioctl(4, LOOP_CLR_FD [pid 5228] <... rmdir resumed>) = 0 [pid 5805] <... ioctl resumed>) = 0 [ 99.754523][ T5805] bcachefs (loop2): done starting filesystem [pid 5228] mkdir("./10", 0777 [pid 5805] close(4 [pid 5228] <... mkdir resumed>) = 0 [pid 5805] <... close resumed>) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5805] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5805] <... openat resumed>) = 4 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5805] exit_group(0 [pid 5228] close(3 [pid 5805] <... exit_group resumed>) = ? [pid 5228] <... close resumed>) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5805] +++ exited with 0 +++ [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5840 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5805, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=34 /* 0.34 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5226] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY./strace-static-x86_64: Process 5840 attached ) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5840] set_robust_list(0x55555e217660, 24 [pid 5226] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./13/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./13/binderfs" [pid 5840] <... set_robust_list resumed>) = 0 [pid 5226] <... unlink resumed>) = 0 [pid 5226] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] chdir("./10" [pid 5808] <... close resumed>) = 0 [pid 5840] <... chdir resumed>) = 0 [pid 5840] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5840] setpgid(0, 0) = 0 [pid 5840] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5808] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5840] write(3, "1000", 4 [pid 5808] <... openat resumed>) = 3 [pid 5840] <... write resumed>) = 4 [pid 5840] close(3 [pid 5808] exit_group(0 [pid 5840] <... close resumed>) = 0 [pid 5840] symlink("/dev/binderfs", "./binderfs" [pid 5808] <... exit_group resumed>) = ? [pid 5840] <... symlink resumed>) = 0 [pid 5808] +++ exited with 0 +++ executing program [pid 5840] write(1, "executing program\n", 18) = 18 [pid 5840] memfd_create("syzkaller", 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5808, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=39 /* 0.39 s */} --- [pid 5840] <... memfd_create resumed>) = 3 [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5840] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] <... restart_syscall resumed>) = 0 [pid 5840] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./14/binderfs") = 0 [pid 5225] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./14/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./14/bus") = 0 [pid 5225] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./14/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./14/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./14") = 0 [ 99.877424][ T5226] bcachefs (loop2): shutting down [ 99.892494][ T5226] bcachefs (loop2): going read-only [ 99.915217][ T5226] bcachefs (loop2): finished waiting for writes to stop [pid 5225] mkdir("./15", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5841 attached [pid 5806] <... close resumed>) = 0 [pid 5806] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5841 [pid 5806] <... openat resumed>) = 3 [pid 5806] exit_group(0) = ? [pid 5806] +++ exited with 0 +++ [pid 5841] set_robust_list(0x55555e217660, 24 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5806, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=46 /* 0.46 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5227] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5841] <... set_robust_list resumed>) = 0 [pid 5227] <... openat resumed>) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] chdir("./15") = 0 [pid 5227] getdents64(3, [pid 5841] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5841] setpgid(0, 0 [pid 5227] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] <... setpgid resumed>) = 0 [pid 5841] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./14/binderfs", [pid 5841] <... openat resumed>) = 3 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] write(3, "1000", 4) = 4 [pid 5227] unlink("./14/binderfs" [pid 5841] close(3 [pid 5227] <... unlink resumed>) = 0 [pid 5841] <... close resumed>) = 0 [pid 5227] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] symlink("/dev/binderfs", "./binderfs" [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./14/bus", [pid 5841] <... symlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 executing program [pid 5841] write(1, "executing program\n", 18 [pid 5227] unlink("./14/bus" [pid 5841] <... write resumed>) = 18 [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] memfd_create("syzkaller", 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5841] <... memfd_create resumed>) = 3 [pid 5227] newfstatat(AT_FDCWD, "./14/file0", [pid 5841] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./14/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./14") = 0 [pid 5227] mkdir("./15", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 99.995787][ T5226] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5842 ./strace-static-x86_64: Process 5842 attached [pid 5842] set_robust_list(0x55555e217660, 24) = 0 [pid 5842] chdir("./15") = 0 [pid 5807] <... close resumed>) = 0 [pid 5807] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5842] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5842] setpgid(0, 0) = 0 [pid 5842] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5842] write(3, "1000", 4) = 4 [pid 5842] close(3) = 0 [pid 5842] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5842] write(1, "executing program\n", 18) = 18 [pid 5842] memfd_create("syzkaller", 0 [pid 5807] exit_group(0) = ? [pid 5842] <... memfd_create resumed>) = 3 [pid 5842] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5807] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5807, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=40 /* 0.40 s */} --- [pid 5224] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5224] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./14/binderfs") = 0 [pid 5224] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./14/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./14/bus") = 0 [ 100.069016][ T52] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [pid 5224] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./14/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./14/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./14") = 0 [pid 5224] mkdir("./15", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5843 attached , child_tidptr=0x55555e217650) = 5843 [pid 5840] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5843] set_robust_list(0x55555e217660, 24) = 0 [pid 5843] chdir("./15") = 0 [pid 5843] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5843] setpgid(0, 0) = 0 [pid 5843] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5843] write(3, "1000", 4) = 4 [pid 5843] close(3) = 0 [pid 5843] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5843] write(1, "executing program\n", 18) = 18 [pid 5843] memfd_create("syzkaller", 0) = 3 [pid 5843] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 100.159191][ T52] bcachefs (loop2): fatal error - emergency read only [ 100.166356][ T5226] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 14 [ 100.202270][ T5226] bcachefs (loop2): unshutdown complete, journal seq 14 [ 100.234814][ T5226] bcachefs (loop2): done going read-only, filesystem not clean [ 100.319841][ T5226] bcachefs (loop2): shutdown complete [pid 5841] 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 [pid 5842] 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 [pid 5840] <... write resumed>) = 16777216 [pid 5840] munmap(0x7f4aa8000000, 138412032 [pid 5843] 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 [pid 5840] <... munmap resumed>) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5840] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5840] close(3) = 0 [pid 5840] close(4) = 0 [pid 5840] mkdir("./file0", 0777) = 0 [ 100.560715][ T5840] loop4: detected capacity change from 0 to 32768 [pid 5840] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5842] <... write resumed>) = 16777216 [pid 5842] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5841] <... write resumed>) = 16777216 [pid 5842] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5841] munmap(0x7f4aa8000000, 138412032 [pid 5842] <... openat resumed>) = 4 [pid 5842] ioctl(4, LOOP_SET_FD, 3 [pid 5841] <... munmap resumed>) = 0 [pid 5842] <... ioctl resumed>) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5842] close(3 [pid 5841] <... openat resumed>) = 4 [pid 5842] <... close resumed>) = 0 [pid 5842] close(4 [pid 5841] ioctl(4, LOOP_SET_FD, 3 [pid 5842] <... close resumed>) = 0 [pid 5842] mkdir("./file0", 0777) = 0 [pid 5842] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5841] <... ioctl resumed>) = 0 [pid 5841] close(3) = 0 [pid 5841] close(4) = 0 [pid 5841] mkdir("./file0", 0777) = 0 [pid 5841] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5843] <... write resumed>) = 16777216 [ 100.778380][ T5842] loop3: detected capacity change from 0 to 32768 [ 100.800260][ T5841] loop1: detected capacity change from 0 to 32768 [pid 5843] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5843] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5843] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5843] close(3) = 0 [pid 5843] close(4) = 0 [pid 5843] mkdir("./file0", 0777) = 0 [ 100.879249][ T5843] loop0: detected capacity change from 0 to 32768 [ 100.918704][ T5840] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 100.942255][ T5840] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 100.949845][ T5842] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 100.951198][ T5840] bcachefs (loop4): Version upgrade required: [ 100.951198][ T5840] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 100.951198][ T5840] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 100.951198][ T5840] 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 [ 100.966306][ T5841] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 101.040758][ T5841] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 101.040766][ T5842] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 101.060671][ T5840] bcachefs (loop4): dropping and reconstructing all alloc info [ 101.118328][ T5840] bcachefs (loop4): check_topology... done [ 101.128687][ T5840] bcachefs (loop4): accounting_read... done [ 101.134820][ T5840] bcachefs (loop4): alloc_read... done [ 101.178951][ T5840] bcachefs (loop4): stripes_read... done [ 101.184727][ T5840] bcachefs (loop4): snapshots_read... done [ 101.193684][ T5843] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 101.195528][ T5842] bcachefs: bch2_fs_get_tree() error: EINVAL [ 101.217831][ T5840] bcachefs (loop4): check_allocations... [pid 5843] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5842] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5842] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5842] ioctl(3, LOOP_CLR_FD) = 0 [ 101.223630][ T5841] bcachefs: bch2_fs_get_tree() error: EINVAL [ 101.258315][ T5843] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5842] close(3 [pid 5841] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = 0 [ 101.297125][ T5840] done [pid 5841] close(3 [pid 5842] <... close resumed>) = 0 [pid 5842] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5842] exit_group(0) = ? [pid 5842] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5842, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5840] <... mount resumed>) = 0 [pid 5227] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./15/binderfs") = 0 [pid 5227] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./15/bus") = 0 [pid 5840] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5227] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... openat resumed>) = 3 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] chdir("./file0" [pid 5227] newfstatat(AT_FDCWD, "./15/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... chdir resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5227] newfstatat(4, "", [pid 5840] <... openat resumed>) = 4 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] ioctl(4, LOOP_CLR_FD [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [ 101.339333][ T5840] bcachefs (loop4): going read-write [ 101.349354][ T5840] bcachefs (loop4): done starting filesystem [pid 5227] close(4 [pid 5840] <... ioctl resumed>) = 0 [pid 5227] <... close resumed>) = 0 [pid 5227] rmdir("./15/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./15") = 0 [pid 5840] close(4 [pid 5227] mkdir("./16", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5875 attached [pid 5875] set_robust_list(0x55555e217660, 24 [pid 5840] <... close resumed>) = 0 [pid 5875] <... set_robust_list resumed>) = 0 [pid 5875] chdir("./16") = 0 [pid 5875] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5840] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5875 [pid 5875] <... prctl resumed>) = 0 [pid 5875] setpgid(0, 0) = 0 [pid 5875] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5875] write(3, "1000", 4 [pid 5840] <... openat resumed>) = 4 [pid 5875] <... write resumed>) = 4 [pid 5840] exit_group(0 [pid 5875] close(3 [pid 5840] <... exit_group resumed>) = ? [pid 5875] <... close resumed>) = 0 [pid 5875] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5875] write(1, "executing program\n", 18) = 18 [pid 5875] memfd_create("syzkaller", 0 [pid 5840] +++ exited with 0 +++ [pid 5875] <... memfd_create resumed>) = 3 [pid 5875] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5840, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=42 /* 0.42 s */} --- [pid 5875] <... mmap resumed>) = 0x7f4aa8000000 [pid 5228] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5228] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./10/binderfs", [pid 5226] <... umount2 resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./10/binderfs") = 0 [pid 5228] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./13/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 101.504508][ T5228] bcachefs (loop4): shutting down [pid 5226] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4 [pid 5843] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... close resumed>) = 0 [pid 5226] rmdir("./13/file0" [pid 5843] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5226] <... rmdir resumed>) = 0 [pid 5843] ioctl(3, LOOP_CLR_FD [pid 5226] getdents64(3, [pid 5843] <... ioctl resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5843] close(3 [pid 5226] close(3) = 0 [pid 5226] rmdir("./13") = 0 [pid 5226] mkdir("./14", 0777) = 0 [ 101.525171][ T5228] bcachefs (loop4): going read-only [ 101.539315][ T5843] bcachefs: bch2_fs_get_tree() error: EINVAL [ 101.545741][ T5228] bcachefs (loop4): finished waiting for writes to stop [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5876 attached [pid 5876] set_robust_list(0x55555e217660, 24 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5876 [pid 5876] <... set_robust_list resumed>) = 0 [pid 5876] chdir("./14") = 0 [ 101.613879][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5876] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5876] setpgid(0, 0) = 0 [pid 5876] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5841] <... close resumed>) = 0 [pid 5876] write(3, "1000", 4) = 4 [pid 5876] close(3) = 0 [pid 5876] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5876] write(1, "executing program\n", 18) = 18 [pid 5876] memfd_create("syzkaller", 0) = 3 [pid 5875] 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 [pid 5876] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5841] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5841] exit_group(0) = ? [pid 5841] +++ exited with 0 +++ [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5841, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=44 /* 0.44 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5225] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./15/binderfs") = 0 [pid 5225] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./15/bus") = 0 [pid 5225] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./15/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./15/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [ 101.717650][ T35] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [pid 5225] rmdir("./15") = 0 [pid 5225] mkdir("./16", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5877 ./strace-static-x86_64: Process 5877 attached [pid 5877] set_robust_list(0x55555e217660, 24 [pid 5843] <... close resumed>) = 0 [pid 5877] <... set_robust_list resumed>) = 0 [pid 5877] chdir("./16") = 0 [pid 5843] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5843] exit_group(0) = ? [ 101.777429][ T35] bcachefs (loop4): fatal error - emergency read only [ 101.799955][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [pid 5877] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5843] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5843, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=41 /* 0.41 s */} --- [pid 5224] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5877] <... prctl resumed>) = 0 [pid 5224] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5877] setpgid(0, 0 [pid 5224] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5877] <... setpgid resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 5877] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5877] write(3, "1000", 4executing program ) = 4 [pid 5224] getdents64(3, [pid 5877] close(3) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5877] symlink("/dev/binderfs", "./binderfs" [pid 5224] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5877] <... symlink resumed>) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5877] write(1, "executing program\n", 18) = 18 [pid 5224] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./15/binderfs" [pid 5877] memfd_create("syzkaller", 0 [pid 5224] <... unlink resumed>) = 0 [pid 5877] <... memfd_create resumed>) = 3 [pid 5224] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5877] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./15/bus") = 0 [pid 5224] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./15/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./15/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./15") = 0 [pid 5224] mkdir("./16", 0777) = 0 [ 101.839138][ T5228] bcachefs (loop4): unshutdown complete, journal seq 14 [ 101.855651][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5878 attached [pid 5878] set_robust_list(0x55555e217660, 24 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5878 [pid 5878] <... set_robust_list resumed>) = 0 [pid 5878] chdir("./16") = 0 [pid 5878] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5878] setpgid(0, 0) = 0 [pid 5878] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5878] write(3, "1000", 4) = 4 [pid 5878] close(3) = 0 [pid 5878] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5878] write(1, "executing program\n", 18) = 18 [pid 5878] memfd_create("syzkaller", 0) = 3 [pid 5878] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 101.960422][ T5228] bcachefs (loop4): shutdown complete [pid 5876] 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 [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 [pid 5875] <... write resumed>) = 16777216 [pid 5875] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5875] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5875] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5875] close(3) = 0 [pid 5875] close(4 [pid 5877] 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 [pid 5875] <... close resumed>) = 0 [pid 5875] mkdir("./file0", 0777) = 0 [ 102.209048][ T5875] loop3: detected capacity change from 0 to 32768 [pid 5875] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5876] <... write resumed>) = 16777216 [pid 5876] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5876] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5876] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5876] close(3) = 0 [pid 5876] close(4) = 0 [pid 5876] mkdir("./file0", 0777) = 0 [pid 5876] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5877] <... write resumed>) = 16777216 [pid 5877] munmap(0x7f4aa8000000, 138412032) = 0 [ 102.412121][ T5876] loop2: detected capacity change from 0 to 32768 [pid 5877] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5877] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5877] close(3) = 0 [pid 5877] close(4) = 0 [pid 5877] mkdir("./file0", 0777 [pid 5878] <... write resumed>) = 16777216 [pid 5878] munmap(0x7f4aa8000000, 138412032 [pid 5877] <... mkdir resumed>) = 0 [pid 5877] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5878] <... munmap resumed>) = 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 [ 102.476677][ T5877] loop1: detected capacity change from 0 to 32768 [ 102.514558][ T5878] loop0: detected capacity change from 0 to 32768 [ 102.840630][ T5876] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 102.850089][ T5877] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 102.873372][ T5876] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 102.878752][ T5875] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 102.889321][ T5877] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 102.896941][ T5875] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 102.912397][ T5877] bcachefs (loop1): Version upgrade required: [ 102.912397][ T5877] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 102.912397][ T5877] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 102.912397][ T5877] 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 [ 102.983647][ T5878] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 103.002820][ T5878] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5878] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5876] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5876] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5876] ioctl(3, LOOP_CLR_FD) = 0 [ 103.073855][ T5877] bcachefs (loop1): dropping and reconstructing all alloc info [ 103.090609][ T5876] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5876] close(3 [pid 5228] <... umount2 resumed>) = 0 [pid 5228] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./10/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./10") = 0 [pid 5228] mkdir("./11", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5909 attached [pid 5909] set_robust_list(0x55555e217660, 24 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 5909 [pid 5909] <... set_robust_list resumed>) = 0 [pid 5909] chdir("./11") = 0 [pid 5909] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5909] setpgid(0, 0) = 0 [pid 5909] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXECexecuting program ) = 3 [pid 5909] write(3, "1000", 4) = 4 [pid 5909] close(3) = 0 [pid 5909] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5909] write(1, "executing program\n", 18) = 18 [ 103.173598][ T5877] bcachefs (loop1): check_topology... done [ 103.204656][ T5877] bcachefs (loop1): accounting_read... [ 103.209873][ T5875] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5909] memfd_create("syzkaller", 0) = 3 [pid 5909] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5875] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 103.232396][ T5877] done [ 103.235242][ T5877] bcachefs (loop1): alloc_read... done [ 103.271986][ T5878] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5875] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5878] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5875] <... openat resumed>) = 3 [pid 5878] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5875] ioctl(3, LOOP_CLR_FD [pid 5878] <... openat resumed>) = 3 [pid 5875] <... ioctl resumed>) = 0 [pid 5878] ioctl(3, LOOP_CLR_FD [pid 5875] close(3 [pid 5878] <... ioctl resumed>) = 0 [ 103.272663][ T5877] bcachefs (loop1): stripes_read... done [ 103.299210][ T5877] bcachefs (loop1): snapshots_read... done [pid 5878] close(3 [pid 5876] <... close resumed>) = 0 [pid 5876] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5876] exit_group(0) = ? [pid 5876] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5876, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=46 /* 0.46 s */} --- [pid 5226] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./14/binderfs") = 0 [pid 5226] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./14/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./14/bus") = 0 [pid 5226] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./14/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./14/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./14") = 0 [pid 5226] mkdir("./15", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5910 attached , child_tidptr=0x55555e217650) = 5910 [pid 5910] set_robust_list(0x55555e217660, 24) = 0 [ 103.318256][ T5877] bcachefs (loop1): check_allocations... done [ 103.474156][ T5877] bcachefs (loop1): going read-write [pid 5910] chdir("./15") = 0 [pid 5910] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5910] setpgid(0, 0 [pid 5877] <... mount resumed>) = 0 [pid 5910] <... setpgid resumed>) = 0 [pid 5877] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5910] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5877] <... openat resumed>) = 3 [pid 5877] chdir("./file0" [pid 5910] <... openat resumed>) = 3 [pid 5877] <... chdir resumed>) = 0 [pid 5910] write(3, "1000", 4 [pid 5877] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5910] <... write resumed>) = 4 [pid 5877] <... openat resumed>) = 4 [pid 5877] ioctl(4, LOOP_CLR_FD [pid 5910] close(3 [pid 5877] <... ioctl resumed>) = 0 [pid 5877] close(4) = 0 [pid 5877] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5910] <... close resumed>) = 0 [pid 5877] <... openat resumed>) = 4 [pid 5877] exit_group(0) = ? [pid 5877] +++ exited with 0 +++ [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5877, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=37 /* 0.37 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [ 103.499410][ T5877] bcachefs (loop1): done starting filesystem [pid 5910] symlink("/dev/binderfs", "./binderfs" [pid 5225] <... restart_syscall resumed>) = 0 [pid 5225] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5910] <... symlink resumed>) = 0 [pid 5225] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5910] write(1, "executing program\n", 18 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./16/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./16/binderfs") = 0 [pid 5225] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [pid 5910] <... write resumed>) = 18 [pid 5910] memfd_create("syzkaller", 0) = 3 [pid 5910] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 103.576916][ T5225] bcachefs (loop1): shutting down [ 103.588923][ T5225] bcachefs (loop1): going read-only [ 103.609081][ T5225] bcachefs (loop1): finished waiting for writes to stop [pid 5875] <... close resumed>) = 0 [pid 5875] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5875] exit_group(0) = ? [pid 5875] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5875, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=38 /* 0.38 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5227] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./16/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./16/binderfs") = 0 [pid 5227] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./16/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./16/bus") = 0 [pid 5227] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./16/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5878] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./16/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./16") = 0 [pid 5227] mkdir("./17", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5915 [ 103.632050][ T5225] bcachefs (loop1): flushing journal and stopping allocators, journal seq 11 [pid 5909] 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./strace-static-x86_64: Process 5915 attached [pid 5878] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5915] set_robust_list(0x55555e217660, 24 [pid 5878] <... openat resumed>) = 3 [pid 5915] <... set_robust_list resumed>) = 0 [pid 5878] exit_group(0 [pid 5915] chdir("./17" [pid 5878] <... exit_group resumed>) = ? [pid 5878] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5878, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=46 /* 0.46 s */} --- [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5915] <... chdir resumed>) = 0 [pid 5224] <... restart_syscall resumed>) = 0 [pid 5915] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5224] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5915] setpgid(0, 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5915] <... setpgid resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5915] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5224] newfstatat(3, "", [pid 5915] <... openat resumed>) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, [pid 5915] write(3, "1000", 4 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5915] <... write resumed>) = 4 [pid 5224] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5915] close(3 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5915] <... close resumed>) = 0 [pid 5224] newfstatat(AT_FDCWD, "./16/binderfs", [pid 5915] symlink("/dev/binderfs", "./binderfs" [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 executing program [pid 5915] <... symlink resumed>) = 0 [pid 5224] unlink("./16/binderfs" [pid 5915] write(1, "executing program\n", 18 [pid 5224] <... unlink resumed>) = 0 [pid 5915] <... write resumed>) = 18 [ 103.724022][ T61] bcachefs (loop1): bch2_write_super(): fatal error loop1: Superblock write was silently dropped! (seq 0 expected 54) [pid 5224] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5915] memfd_create("syzkaller", 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5915] <... memfd_create resumed>) = 3 [pid 5224] newfstatat(AT_FDCWD, "./16/bus", [pid 5915] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5915] <... mmap resumed>) = 0x7f4aa8000000 [pid 5224] unlink("./16/bus") = 0 [pid 5224] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./16/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./16/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./16") = 0 [pid 5224] mkdir("./17", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 103.765614][ T61] bcachefs (loop1): fatal error - emergency read only [ 103.793136][ T5225] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 14 [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 5916 ./strace-static-x86_64: Process 5916 attached [pid 5916] set_robust_list(0x55555e217660, 24) = 0 [pid 5916] chdir("./17") = 0 [pid 5916] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5916] setpgid(0, 0) = 0 [pid 5916] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5916] write(3, "1000", 4) = 4 [pid 5916] close(3) = 0 [pid 5916] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5916] write(1, "executing program\n", 18) = 18 [pid 5916] memfd_create("syzkaller", 0) = 3 [ 103.815795][ T5225] bcachefs (loop1): unshutdown complete, journal seq 14 [ 103.837709][ T5225] bcachefs (loop1): done going read-only, filesystem not clean [pid 5916] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 103.893533][ T5225] bcachefs (loop1): shutdown complete [pid 5910] 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 [pid 5909] <... write resumed>) = 16777216 [pid 5909] munmap(0x7f4aa8000000, 138412032 [pid 5915] 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 [pid 5909] <... munmap resumed>) = 0 [pid 5909] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5909] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5909] close(3) = 0 [pid 5909] close(4) = 0 [pid 5909] mkdir("./file0", 0777) = 0 [ 104.104669][ T5909] loop4: detected capacity change from 0 to 32768 [pid 5909] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5916] 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 [pid 5910] <... write resumed>) = 16777216 [pid 5910] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5910] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5910] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5910] close(3) = 0 [pid 5910] close(4) = 0 [pid 5910] mkdir("./file0", 0777) = 0 [ 104.315575][ T5910] loop2: detected capacity change from 0 to 32768 [pid 5910] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5916] <... write resumed>) = 16777216 [pid 5916] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5916] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5915] <... write resumed>) = 16777216 [pid 5916] <... openat resumed>) = 4 [pid 5915] munmap(0x7f4aa8000000, 138412032 [pid 5916] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5916] close(3 [pid 5915] <... munmap resumed>) = 0 [pid 5916] <... close resumed>) = 0 [pid 5915] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5916] close(4 [pid 5915] <... openat resumed>) = 4 [pid 5916] <... close resumed>) = 0 [pid 5916] mkdir("./file0", 0777 [pid 5915] ioctl(4, LOOP_SET_FD, 3 [pid 5916] <... mkdir resumed>) = 0 [pid 5916] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5915] <... ioctl resumed>) = 0 [pid 5915] close(3) = 0 [pid 5915] close(4) = 0 [pid 5915] mkdir("./file0", 0777) = 0 [ 104.449885][ T5916] loop0: detected capacity change from 0 to 32768 [ 104.482928][ T5915] loop3: detected capacity change from 0 to 32768 [ 104.557226][ T5910] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 104.557461][ T5909] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 104.566597][ T5910] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 104.592363][ T5909] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 104.608276][ T5909] bcachefs (loop4): Version upgrade required: [ 104.608276][ T5909] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 104.608276][ T5909] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 104.608276][ T5909] 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 [ 104.674398][ T5915] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 104.688441][ T5915] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 104.702077][ T5916] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [pid 5915] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5910] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5910] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5910] ioctl(3, LOOP_CLR_FD) = 0 [ 104.740243][ T5916] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 104.751018][ T5909] bcachefs (loop4): dropping and reconstructing all alloc info [ 104.768910][ T5910] bcachefs: bch2_fs_get_tree() error: EINVAL [ 104.832319][ T5909] bcachefs (loop4): check_topology... done [ 104.850495][ T5909] bcachefs (loop4): accounting_read... done [ 104.883698][ T5909] bcachefs (loop4): alloc_read... done [ 104.890795][ T5909] bcachefs (loop4): stripes_read... done [ 104.895776][ T5915] bcachefs: bch2_fs_get_tree() error: EINVAL [ 104.900703][ T5909] bcachefs (loop4): snapshots_read... done [pid 5910] close(3 [pid 5915] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5915] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5915] ioctl(3, LOOP_CLR_FD) = 0 [pid 5915] close(3 [pid 5916] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5916] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 104.918619][ T5909] bcachefs (loop4): check_allocations... done [ 104.996814][ T5916] bcachefs: bch2_fs_get_tree() error: EINVAL [ 105.007700][ T5909] bcachefs (loop4): going read-write [pid 5916] ioctl(3, LOOP_CLR_FD) = 0 [pid 5916] close(3 [pid 5909] <... mount resumed>) = 0 [pid 5909] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5909] chdir("./file0") = 0 [ 105.035872][ T5909] bcachefs (loop4): done starting filesystem [pid 5909] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5909] ioctl(4, LOOP_CLR_FD) = 0 [pid 5909] close(4) = 0 [pid 5909] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5909] exit_group(0) = ? [pid 5909] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5909, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=37 /* 0.37 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, [pid 5910] <... close resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5228] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./11/binderfs") = 0 [pid 5228] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5910] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5910] exit_group(0) = ? [pid 5910] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5910, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=43 /* 0.43 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5226] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./15/binderfs", [pid 5225] <... umount2 resumed>) = 0 [ 105.163989][ T5228] bcachefs (loop4): shutting down [pid 5225] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./16/file0", [pid 5226] unlink("./15/binderfs") = 0 [pid 5226] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./15/bus") = 0 [pid 5226] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] newfstatat(AT_FDCWD, "./15/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./15/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./15") = 0 [pid 5226] mkdir("./16", 0777 [pid 5225] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... mkdir resumed>) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5225] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5225] <... openat resumed>) = 4 [ 105.184506][ T5228] bcachefs (loop4): going read-only [ 105.199175][ T5228] bcachefs (loop4): finished waiting for writes to stop [pid 5225] newfstatat(4, "", [pid 5916] <... close resumed>) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5951 ./strace-static-x86_64: Process 5951 attached [pid 5951] set_robust_list(0x55555e217660, 24 [pid 5916] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] getdents64(4, [pid 5951] <... set_robust_list resumed>) = 0 [pid 5916] <... openat resumed>) = 3 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5951] chdir("./16" [pid 5225] getdents64(4, [pid 5916] exit_group(0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5951] <... chdir resumed>) = 0 [pid 5915] <... close resumed>) = 0 [pid 5951] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5916] <... exit_group resumed>) = ? [pid 5225] close(4) = 0 [pid 5225] rmdir("./16/file0" [pid 5951] <... prctl resumed>) = 0 [pid 5916] +++ exited with 0 +++ [pid 5915] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... rmdir resumed>) = 0 [pid 5951] setpgid(0, 0 [pid 5915] <... openat resumed>) = 3 [pid 5951] <... setpgid resumed>) = 0 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5916, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=37 /* 0.37 s */} --- [pid 5951] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] getdents64(3, [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5951] <... openat resumed>) = 3 [pid 5915] exit_group(0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5951] write(3, "1000", 4 [pid 5915] <... exit_group resumed>) = ? [pid 5225] rmdir("./16" [pid 5951] <... write resumed>) = 4 [pid 5951] close(3 [pid 5915] +++ exited with 0 +++ [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... restart_syscall resumed>) = 0 [pid 5951] <... close resumed>) = 0 [pid 5951] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5915, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=43 /* 0.43 s */} --- [pid 5225] mkdir("./17", 0777executing program [pid 5224] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5951] write(1, "executing program\n", 18 [pid 5225] <... mkdir resumed>) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5951] <... write resumed>) = 18 [pid 5951] memfd_create("syzkaller", 0 [pid 5224] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5224] newfstatat(3, "", [pid 5951] <... memfd_create resumed>) = 3 [pid 5225] <... openat resumed>) = 3 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5951] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5224] getdents64(3, [pid 5951] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] close(3 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [ 105.255894][ T5228] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5225] <... close resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5224] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./17/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./17/binderfs") = 0 [pid 5224] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5952 [pid 5224] newfstatat(AT_FDCWD, "./17/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./17/bus") = 0 [pid 5224] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./17/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5952 attached [pid 5952] set_robust_list(0x55555e217660, 24 [pid 5227] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5952] <... set_robust_list resumed>) = 0 [pid 5952] chdir("./17" [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5952] <... chdir resumed>) = 0 [pid 5224] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5952] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5224] newfstatat(4, "", [pid 5952] setpgid(0, 0 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5952] <... setpgid resumed>) = 0 [pid 5224] getdents64(4, [pid 5952] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5952] <... openat resumed>) = 3 [pid 5224] getdents64(4, [pid 5952] write(3, "1000", 4 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5952] <... write resumed>) = 4 [pid 5224] close(4 [pid 5952] close(3 [pid 5224] <... close resumed>) = 0 [pid 5952] <... close resumed>) = 0 [pid 5224] rmdir("./17/file0" [pid 5952] symlink("/dev/binderfs", "./binderfs" [pid 5224] <... rmdir resumed>) = 0 [pid 5952] <... symlink resumed>) = 0 [pid 5227] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] getdents64(3, executing program [pid 5952] write(1, "executing program\n", 18 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5952] <... write resumed>) = 18 [pid 5224] close(3 [pid 5952] memfd_create("syzkaller", 0 [pid 5224] <... close resumed>) = 0 [pid 5224] rmdir("./17" [pid 5952] <... memfd_create resumed>) = 3 [pid 5227] <... openat resumed>) = 3 [pid 5224] <... rmdir resumed>) = 0 [pid 5952] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] newfstatat(3, "", [pid 5224] mkdir("./18", 0777 [pid 5952] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... mkdir resumed>) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./17/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./17/binderfs") = 0 [pid 5227] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./17/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5227] unlink("./17/bus") = 0 [pid 5224] <... openat resumed>) = 3 [pid 5227] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] ioctl(3, LOOP_CLR_FD [pid 5227] newfstatat(AT_FDCWD, "./17/file0", [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] close(3 [pid 5227] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 105.302843][ T61] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 105.316451][ T61] bcachefs (loop4): fatal error - emergency read only [ 105.324650][ T5228] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 13 [ 105.334664][ T5228] bcachefs (loop4): unshutdown complete, journal seq 13 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5227] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY./strace-static-x86_64: Process 5953 attached [pid 5953] set_robust_list(0x55555e217660, 24 [pid 5227] <... openat resumed>) = 4 [pid 5953] <... set_robust_list resumed>) = 0 [pid 5227] newfstatat(4, "", [pid 5953] chdir("./18" [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5953] <... chdir resumed>) = 0 [pid 5227] getdents64(4, [pid 5953] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5953] <... prctl resumed>) = 0 [pid 5227] getdents64(4, [pid 5953] setpgid(0, 0 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 5953 [pid 5953] <... setpgid resumed>) = 0 [pid 5227] close(4 [pid 5953] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] <... close resumed>) = 0 [pid 5227] rmdir("./17/file0" [pid 5953] <... openat resumed>) = 3 [pid 5227] <... rmdir resumed>) = 0 [pid 5953] write(3, "1000", 4 [pid 5227] getdents64(3, [pid 5953] <... write resumed>) = 4 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5953] close(3 [pid 5227] close(3 [pid 5953] <... close resumed>) = 0 [pid 5227] <... close resumed>) = 0 [pid 5953] symlink("/dev/binderfs", "./binderfs" [pid 5227] rmdir("./17" [pid 5953] <... symlink resumed>) = 0 [pid 5227] <... rmdir resumed>) = 0 executing program [pid 5953] write(1, "executing program\n", 18 [pid 5227] mkdir("./18", 0777 [pid 5953] <... write resumed>) = 18 [pid 5227] <... mkdir resumed>) = 0 [pid 5953] memfd_create("syzkaller", 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5953] <... memfd_create resumed>) = 3 [pid 5953] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5954 [pid 5953] <... mmap resumed>) = 0x7f4aa8000000 ./strace-static-x86_64: Process 5954 attached [pid 5954] set_robust_list(0x55555e217660, 24) = 0 [pid 5954] chdir("./18") = 0 [ 105.369799][ T5228] bcachefs (loop4): done going read-only, filesystem not clean [pid 5954] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5954] setpgid(0, 0) = 0 [pid 5954] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5954] write(3, "1000", 4) = 4 [pid 5954] close(3) = 0 [pid 5954] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5954] write(1, "executing program\n", 18) = 18 [pid 5954] memfd_create("syzkaller", 0) = 3 [pid 5954] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 105.465248][ T5228] bcachefs (loop4): shutdown complete [pid 5953] 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 [pid 5951] 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 [pid 5952] 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 [pid 5954] 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 [pid 5953] <... write resumed>) = 16777216 [pid 5953] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5953] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5953] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5953] close(3) = 0 [pid 5953] close(4) = 0 [pid 5953] mkdir("./file0", 0777) = 0 [ 105.931310][ T5953] loop0: detected capacity change from 0 to 32768 [pid 5953] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5952] <... write resumed>) = 16777216 [pid 5952] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5952] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5952] ioctl(4, LOOP_SET_FD, 3 [pid 5951] <... write resumed>) = 16777216 [pid 5952] <... ioctl resumed>) = 0 [pid 5952] close(3 [pid 5951] munmap(0x7f4aa8000000, 138412032 [pid 5952] <... close resumed>) = 0 [pid 5951] <... munmap resumed>) = 0 [pid 5954] <... write resumed>) = 16777216 [pid 5952] close(4 [pid 5954] munmap(0x7f4aa8000000, 138412032 [pid 5952] <... close resumed>) = 0 [ 106.067018][ T5952] loop1: detected capacity change from 0 to 32768 [pid 5952] mkdir("./file0", 0777 [pid 5954] <... munmap resumed>) = 0 [pid 5952] <... mkdir resumed>) = 0 [pid 5951] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5954] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5952] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5951] <... openat resumed>) = 4 [pid 5954] <... openat resumed>) = 4 [pid 5954] ioctl(4, LOOP_SET_FD, 3 [pid 5951] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5954] <... ioctl resumed>) = 0 [pid 5951] close(3) = 0 [pid 5951] close(4) = 0 [pid 5951] mkdir("./file0", 0777 [pid 5954] close(3 [pid 5951] <... mkdir resumed>) = 0 [pid 5954] <... close resumed>) = 0 [pid 5954] close(4 [pid 5951] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5954] <... close resumed>) = 0 [pid 5954] mkdir("./file0", 0777) = 0 [ 106.133840][ T5951] loop2: detected capacity change from 0 to 32768 [ 106.140994][ T5954] loop3: detected capacity change from 0 to 32768 [ 106.306108][ T5953] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 106.329364][ T5953] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 106.337436][ T5953] bcachefs (loop0): Version upgrade required: [ 106.337436][ T5953] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 106.337436][ T5953] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 106.337436][ T5953] 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 [ 106.379782][ T5954] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 106.422075][ T5954] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 106.440987][ T5952] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 106.469994][ T5952] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 106.498791][ T5951] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 106.512410][ T5951] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 106.549292][ T5953] bcachefs (loop0): dropping and reconstructing all alloc info [pid 5954] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"...) = -1 EINVAL (Invalid argument) [pid 5954] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5954] ioctl(3, LOOP_CLR_FD) = 0 [ 106.593124][ T5954] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5954] close(3 [pid 5952] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5952] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5952] ioctl(3, LOOP_CLR_FD) = 0 [ 106.686797][ T5952] bcachefs: bch2_fs_get_tree() error: EINVAL [ 106.694462][ T5953] bcachefs (loop0): check_topology... done [ 106.704318][ T5953] bcachefs (loop0): accounting_read... done [ 106.767752][ T5953] bcachefs (loop0): alloc_read... done [pid 5952] close(3 [pid 5951] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... umount2 resumed>) = 0 [pid 5951] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5951] ioctl(3, LOOP_CLR_FD) = 0 [pid 5951] close(3 [pid 5228] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./11/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [ 106.808140][ T5953] bcachefs (loop0): stripes_read... done [ 106.809586][ T5951] bcachefs: bch2_fs_get_tree() error: EINVAL [ 106.833160][ T5953] bcachefs (loop0): snapshots_read... done [pid 5228] close(3) = 0 [pid 5228] rmdir("./11") = 0 [pid 5228] mkdir("./12", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5984 attached , child_tidptr=0x55555e217650) = 5984 [pid 5954] <... close resumed>) = 0 [pid 5984] set_robust_list(0x55555e217660, 24) = 0 [pid 5984] chdir("./12") = 0 [pid 5984] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5984] setpgid(0, 0) = 0 [pid 5984] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5984] write(3, "1000", 4) = 4 [pid 5984] close(3) = 0 [pid 5984] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5984] write(1, "executing program\n", 18) = 18 [pid 5954] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5984] memfd_create("syzkaller", 0 [pid 5954] exit_group(0) = ? [pid 5984] <... memfd_create resumed>) = 3 [pid 5984] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5954] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5954, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=43 /* 0.43 s */} --- [pid 5227] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 106.855385][ T5953] bcachefs (loop0): check_allocations... done [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [ 106.952064][ T5953] bcachefs (loop0): going read-write [pid 5227] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./18/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./18/binderfs" [pid 5952] <... close resumed>) = 0 [pid 5953] <... mount resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5952] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5952] exit_group(0) = ? [pid 5953] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5952] +++ exited with 0 +++ [pid 5227] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5952, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=42 /* 0.42 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./18/bus", [pid 5953] <... openat resumed>) = 3 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5953] chdir("./file0" [pid 5227] unlink("./18/bus" [pid 5953] <... chdir resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5953] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5227] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5953] <... openat resumed>) = 4 [pid 5953] ioctl(4, LOOP_CLR_FD [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5953] <... ioctl resumed>) = 0 [pid 5227] newfstatat(AT_FDCWD, "./18/file0", [pid 5953] close(4 [ 106.990374][ T5953] bcachefs (loop0): done starting filesystem [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5953] <... close resumed>) = 0 [pid 5227] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... restart_syscall resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5953] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5953] <... openat resumed>) = 4 [pid 5227] newfstatat(4, "", [pid 5225] newfstatat(AT_FDCWD, "./17/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./17/binderfs") = 0 [pid 5225] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./17/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./17/bus") = 0 [pid 5225] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./17/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5951] <... close resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./17/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./17" [pid 5227] getdents64(4, [pid 5225] <... rmdir resumed>) = 0 [pid 5225] mkdir("./18", 0777 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] <... mkdir resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5227] getdents64(4, [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5987 attached [pid 5227] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5953] exit_group(0 [pid 5227] close(4 [pid 5953] <... exit_group resumed>) = ? [pid 5987] set_robust_list(0x55555e217660, 24) = 0 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 5987 [pid 5987] chdir("./18") = 0 [pid 5227] <... close resumed>) = 0 [pid 5987] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5987] setpgid(0, 0) = 0 [pid 5987] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5953] +++ exited with 0 +++ [pid 5227] rmdir("./18/file0" [pid 5987] <... openat resumed>) = 3 [pid 5227] <... rmdir resumed>) = 0 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5953, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=32 /* 0.32 s */} --- [pid 5227] getdents64(3, [pid 5224] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5987] write(3, "1000", 4 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] close(3 [pid 5224] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] <... close resumed>) = 0 [pid 5987] <... write resumed>) = 4 [pid 5951] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] rmdir("./18" [pid 5224] <... openat resumed>) = 3 [pid 5987] close(3 [pid 5227] <... rmdir resumed>) = 0 [pid 5951] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 5987] <... close resumed>) = 0 [pid 5951] exit_group(0 [pid 5227] mkdir("./19", 0777 [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5987] symlink("/dev/binderfs", "./binderfs" [pid 5951] <... exit_group resumed>) = ? [pid 5224] getdents64(3, [pid 5987] <... symlink resumed>) = 0 executing program [pid 5227] <... mkdir resumed>) = 0 [pid 5987] write(1, "executing program\n", 18 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5987] <... write resumed>) = 18 [pid 5987] memfd_create("syzkaller", 0 [pid 5951] +++ exited with 0 +++ [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5224] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5987] <... memfd_create resumed>) = 3 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5951, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=41 /* 0.41 s */} --- [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5987] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5227] <... openat resumed>) = 3 [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5224] newfstatat(AT_FDCWD, "./18/binderfs", [pid 5987] <... mmap resumed>) = 0x7f4aa8000000 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] unlink("./18/binderfs" [pid 5227] close(3) = 0 [pid 5224] <... unlink resumed>) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5226] <... restart_syscall resumed>) = 0 [pid 5224] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5988 attached [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 5988 [pid 5226] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5988] set_robust_list(0x55555e217660, 24) = 0 [pid 5988] chdir("./19" [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5988] <... chdir resumed>) = 0 [pid 5226] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5988] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5226] <... openat resumed>) = 3 [pid 5988] <... prctl resumed>) = 0 [pid 5988] setpgid(0, 0) = 0 [pid 5988] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./16/binderfs", [pid 5988] write(3, "1000", 4 [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5988] <... write resumed>) = 4 [pid 5226] unlink("./16/binderfs" [pid 5988] close(3) = 0 [pid 5988] symlink("/dev/binderfs", "./binderfs" [pid 5226] <... unlink resumed>) = 0 [pid 5988] <... symlink resumed>) = 0 [pid 5226] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [pid 5988] write(1, "executing program\n", 18 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5988] <... write resumed>) = 18 [pid 5226] newfstatat(AT_FDCWD, "./16/bus", [pid 5988] memfd_create("syzkaller", 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./16/bus" [pid 5988] <... memfd_create resumed>) = 3 [pid 5226] <... unlink resumed>) = 0 [pid 5226] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5988] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5988] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] newfstatat(AT_FDCWD, "./16/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./16/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./16") = 0 [pid 5226] mkdir("./17", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [ 107.132725][ T5224] bcachefs (loop0): shutting down [ 107.137816][ T5224] bcachefs (loop0): going read-only [ 107.160201][ T5224] bcachefs (loop0): finished waiting for writes to stop [ 107.169002][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 11 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5989 attached [pid 5989] set_robust_list(0x55555e217660, 24 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 5989 [pid 5989] <... set_robust_list resumed>) = 0 [pid 5989] chdir("./17") = 0 [pid 5989] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5989] setpgid(0, 0) = 0 [pid 5989] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5989] write(3, "1000", 4) = 4 [pid 5989] close(3) = 0 [pid 5989] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5989] write(1, "executing program\n", 18) = 18 [pid 5989] memfd_create("syzkaller", 0) = 3 [pid 5989] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 107.231666][ T61] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [ 107.268050][ T61] bcachefs (loop0): fatal error - emergency read only [ 107.288721][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 13 [ 107.318992][ T5224] bcachefs (loop0): unshutdown complete, journal seq 13 [ 107.348654][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [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 [pid 5988] 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 [ 107.459935][ T5224] bcachefs (loop0): shutdown complete [pid 5987] 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 [pid 5989] 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 [pid 5984] <... write resumed>) = 16777216 [pid 5984] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5984] openat(AT_FDCWD, "/dev/loop4", 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 [ 107.722055][ T5984] loop4: detected capacity change from 0 to 32768 [pid 5984] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5987] <... write resumed>) = 16777216 [pid 5987] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5988] <... write resumed>) = 16777216 [pid 5987] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5988] munmap(0x7f4aa8000000, 138412032 [pid 5987] <... openat resumed>) = 4 [pid 5987] ioctl(4, LOOP_SET_FD, 3 [pid 5988] <... munmap resumed>) = 0 [pid 5987] <... ioctl resumed>) = 0 [pid 5988] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5988] ioctl(4, LOOP_SET_FD, 3 [pid 5987] close(3 [pid 5988] <... ioctl resumed>) = 0 [pid 5987] <... close resumed>) = 0 [pid 5988] close(3 [pid 5987] close(4 [pid 5988] <... close resumed>) = 0 [pid 5987] <... close resumed>) = 0 [pid 5988] close(4 [pid 5987] mkdir("./file0", 0777 [pid 5988] <... close resumed>) = 0 [pid 5987] <... mkdir resumed>) = 0 [pid 5988] mkdir("./file0", 0777) = 0 [pid 5988] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 107.840136][ T5987] loop1: detected capacity change from 0 to 32768 [ 107.854455][ T5988] loop3: detected capacity change from 0 to 32768 [pid 5987] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5989] <... write resumed>) = 16777216 [pid 5989] munmap(0x7f4aa8000000, 138412032) = 0 [pid 5989] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5989] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5989] close(3) = 0 [pid 5989] close(4) = 0 [pid 5989] mkdir("./file0", 0777) = 0 [ 107.947224][ T5989] loop2: detected capacity change from 0 to 32768 [ 108.238448][ T5988] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 108.238837][ T5984] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 108.260915][ T5988] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 108.278344][ T5988] bcachefs (loop3): Version upgrade required: [ 108.278344][ T5988] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 108.278344][ T5988] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 108.278344][ T5988] 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 [ 108.307570][ T5984] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 108.350039][ T5987] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 108.366889][ T5987] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 108.366963][ T5989] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 108.389390][ T5988] bcachefs (loop3): dropping and reconstructing all alloc info [ 108.407612][ T5989] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 108.501681][ T5988] bcachefs (loop3): check_topology... done [ 108.507624][ T5988] bcachefs (loop3): accounting_read... [ 108.524225][ T5984] bcachefs: bch2_fs_get_tree() error: EINVAL [ 108.537173][ T5988] done [ 108.540723][ T5988] bcachefs (loop3): alloc_read... [ 108.541071][ T5987] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5989] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5987] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5984] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5987] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5984] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5987] <... openat resumed>) = 3 [pid 5984] ioctl(3, LOOP_CLR_FD [pid 5987] ioctl(3, LOOP_CLR_FD [pid 5984] <... ioctl resumed>) = 0 [pid 5987] <... ioctl resumed>) = 0 [pid 5984] close(3 [ 108.552242][ T5988] done [ 108.555056][ T5988] bcachefs (loop3): stripes_read... done [ 108.571599][ T5988] bcachefs (loop3): snapshots_read... done [pid 5987] close(3 [pid 5224] <... umount2 resumed>) = 0 [pid 5224] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./18/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./18/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./18") = 0 [pid 5224] mkdir("./19", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [ 108.577677][ T5988] bcachefs (loop3): check_allocations... [ 108.609653][ T5989] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5989] <... mount resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 6019 attached [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 6019 [pid 6019] set_robust_list(0x55555e217660, 24 [pid 5989] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6019] <... set_robust_list resumed>) = 0 [pid 5989] <... openat resumed>) = 3 [pid 6019] chdir("./19" [pid 5989] ioctl(3, LOOP_CLR_FD [pid 6019] <... chdir resumed>) = 0 [pid 5989] <... ioctl resumed>) = 0 [pid 6019] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5989] close(3 [pid 6019] <... prctl resumed>) = 0 [pid 6019] setpgid(0, 0) = 0 [pid 6019] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6019] write(3, "1000", 4) = 4 [pid 6019] close(3) = 0 [pid 6019] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6019] write(1, "executing program\n", 18) = 18 [pid 6019] memfd_create("syzkaller", 0) = 3 [pid 6019] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 108.699295][ T5988] done [ 108.725296][ T5988] bcachefs (loop3): going read-write [pid 5988] <... mount resumed>) = 0 [pid 5988] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5988] chdir("./file0") = 0 [pid 5988] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5988] ioctl(4, LOOP_CLR_FD) = 0 [pid 5988] close(4) = 0 [ 108.758881][ T5988] bcachefs (loop3): done starting filesystem [pid 5988] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5988] exit_group(0 [pid 5987] <... close resumed>) = 0 [pid 5988] <... exit_group resumed>) = ? [pid 5988] +++ exited with 0 +++ [pid 5987] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5988, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=38 /* 0.38 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...> [pid 5987] <... openat resumed>) = 3 [pid 5227] <... restart_syscall resumed>) = 0 [pid 5987] exit_group(0) = ? [pid 5227] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5987] +++ exited with 0 +++ [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5987, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=45 /* 0.45 s */} --- [pid 5227] getdents64(3, [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5227] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./19/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./19/binderfs") = 0 [pid 5227] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... restart_syscall resumed>) = 0 [pid 5225] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./18/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./18/binderfs") = 0 [pid 5225] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 108.898207][ T5227] bcachefs (loop3): shutting down [ 108.915642][ T5227] bcachefs (loop3): going read-only [pid 5225] newfstatat(AT_FDCWD, "./18/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./18/bus") = 0 [pid 5225] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./18/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./18/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./18") = 0 [pid 5225] mkdir("./19", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6022 attached [pid 6022] set_robust_list(0x55555e217660, 24 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6022 [pid 6022] <... set_robust_list resumed>) = 0 [pid 6022] chdir("./19") = 0 [pid 6022] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6022] setpgid(0, 0) = 0 [pid 6022] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6022] write(3, "1000", 4) = 4 [pid 6022] close(3) = 0 [pid 6022] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6022] write(1, "executing program\n", 18) = 18 [pid 6022] memfd_create("syzkaller", 0) = 3 [pid 5984] <... close resumed>) = 0 [pid 6022] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5984] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5984] exit_group(0) = ? [pid 5984] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5984, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=42 /* 0.42 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 108.938627][ T5227] bcachefs (loop3): finished waiting for writes to stop [ 108.978044][ T5227] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5228] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./12/binderfs") = 0 [pid 5228] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./12/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./12/bus") = 0 [pid 5228] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./12/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./12") = 0 [pid 5228] mkdir("./13", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6019] 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 [pid 5989] <... close resumed>) = 0 [pid 5989] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] <... openat resumed>) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5989] <... openat resumed>) = 3 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5228] close(3 [pid 5989] exit_group(0 [pid 5228] <... close resumed>) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6023 attached , child_tidptr=0x55555e217650) = 6023 [pid 6023] set_robust_list(0x55555e217660, 24) = 0 [pid 6023] chdir("./13") = 0 [pid 6023] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5989] <... exit_group resumed>) = ? [pid 5989] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5989, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=42 /* 0.42 s */} --- [pid 5226] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6023] setpgid(0, 0 [pid 5226] <... openat resumed>) = 3 [pid 5226] newfstatat(3, "", [pid 6023] <... setpgid resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6023] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6023] <... openat resumed>) = 3 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./17/binderfs", [pid 6023] write(3, "1000", 4 [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6023] <... write resumed>) = 4 [pid 5226] unlink("./17/binderfs" [pid 6023] close(3 [pid 5226] <... unlink resumed>) = 0 [pid 6023] <... close resumed>) = 0 [pid 6023] symlink("/dev/binderfs", "./binderfs" [pid 5226] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6023] <... symlink resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./17/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./17/bus") = 0 executing program [pid 6023] write(1, "executing program\n", 18 [pid 5226] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6023] <... write resumed>) = 18 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6023] memfd_create("syzkaller", 0 [pid 5226] newfstatat(AT_FDCWD, "./17/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6023] <... memfd_create resumed>) = 3 [pid 5226] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 6023] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6023] <... mmap resumed>) = 0x7f4aa8000000 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./17/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [ 109.081046][ T52] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [pid 5226] close(3) = 0 [pid 5226] rmdir("./17") = 0 [pid 5226] mkdir("./18", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6024 attached , child_tidptr=0x55555e217650) = 6024 [ 109.137630][ T52] bcachefs (loop3): fatal error - emergency read only [pid 6024] set_robust_list(0x55555e217660, 24) = 0 [pid 6024] chdir("./18") = 0 [pid 6024] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6024] setpgid(0, 0) = 0 [pid 6024] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 executing program [pid 6024] write(3, "1000", 4) = 4 [pid 6024] close(3) = 0 [pid 6024] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6024] write(1, "executing program\n", 18) = 18 [pid 6024] memfd_create("syzkaller", 0) = 3 [pid 6024] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 109.179641][ T5227] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 14 [ 109.228779][ T5227] bcachefs (loop3): unshutdown complete, journal seq 14 [ 109.236717][ T5227] bcachefs (loop3): done going read-only, filesystem not clean [ 109.303254][ T5227] bcachefs (loop3): shutdown complete [pid 6022] 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 [pid 6023] 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 [pid 6019] <... write resumed>) = 16777216 [pid 6019] munmap(0x7f4aa8000000, 138412032 [pid 6024] 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 [pid 6019] <... munmap resumed>) = 0 [pid 6019] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6019] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6019] close(3) = 0 [pid 6019] close(4) = 0 [pid 6019] mkdir("./file0", 0777) = 0 [ 109.550802][ T6019] loop0: detected capacity change from 0 to 32768 [pid 6019] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6022] <... write resumed>) = 16777216 [pid 6022] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6022] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6022] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6022] close(3) = 0 [pid 6022] close(4) = 0 [pid 6022] mkdir("./file0", 0777) = 0 [ 109.693703][ T6022] loop1: detected capacity change from 0 to 32768 [pid 6022] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6023] <... write resumed>) = 16777216 [pid 6023] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6023] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6023] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6023] close(3) = 0 [pid 6023] close(4 [pid 6024] <... write resumed>) = 16777216 [pid 6023] <... close resumed>) = 0 [pid 6023] mkdir("./file0", 0777 [pid 6024] munmap(0x7f4aa8000000, 138412032 [pid 6023] <... mkdir resumed>) = 0 [pid 6023] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6024] <... munmap resumed>) = 0 [pid 6024] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 109.780837][ T6023] loop4: detected capacity change from 0 to 32768 [pid 6024] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6024] close(3) = 0 [pid 6024] close(4) = 0 [pid 6024] mkdir("./file0", 0777) = 0 [ 109.836527][ T6024] loop2: detected capacity change from 0 to 32768 [ 109.945912][ T6022] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 109.946201][ T6019] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 109.955267][ T6022] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 109.980633][ T6019] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 110.006103][ T6019] bcachefs (loop0): Version upgrade required: [ 110.006103][ T6019] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 110.006103][ T6019] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 110.006103][ T6019] 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 [ 110.016408][ T6023] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 110.086484][ T6023] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 110.101200][ T6024] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 110.110861][ T6024] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 110.143525][ T6019] bcachefs (loop0): dropping and reconstructing all alloc info [pid 6024] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6022] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6022] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 6022] ioctl(3, LOOP_CLR_FD) = 0 [ 110.235010][ T6022] bcachefs: bch2_fs_get_tree() error: EINVAL [ 110.247585][ T6019] bcachefs (loop0): check_topology... done [pid 6022] close(3 [pid 6024] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6024] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 6024] ioctl(3, LOOP_CLR_FD) = 0 [ 110.295049][ T6024] bcachefs: bch2_fs_get_tree() error: EINVAL [ 110.305904][ T6019] bcachefs (loop0): accounting_read... done [ 110.326515][ T6019] bcachefs (loop0): alloc_read... done [pid 6024] close(3 [pid 6023] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6023] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 6023] ioctl(3, LOOP_CLR_FD) = 0 [ 110.355116][ T6019] bcachefs (loop0): stripes_read... done [ 110.369987][ T6023] bcachefs: bch2_fs_get_tree() error: EINVAL [ 110.376637][ T6019] bcachefs (loop0): snapshots_read... done [pid 6023] close(3 [pid 6022] <... close resumed>) = 0 [pid 6022] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5227] <... umount2 resumed>) = 0 [pid 5227] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 110.418628][ T6019] bcachefs (loop0): check_allocations... done [pid 5227] newfstatat(AT_FDCWD, "./19/file0", [pid 6022] exit_group(0) = ? [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 6022] +++ exited with 0 +++ [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6022, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=41 /* 0.41 s */} --- [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./19/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./19") = 0 [pid 5227] mkdir("./20", 0777) = 0 [pid 5225] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... openat resumed>) = 3 [pid 5225] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 5225] newfstatat(3, "", [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6054 attached [pid 6054] set_robust_list(0x55555e217660, 24 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 6054 [ 110.544244][ T6019] bcachefs (loop0): going read-write [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6054] <... set_robust_list resumed>) = 0 [pid 6054] chdir("./20" [pid 5225] getdents64(3, [pid 6054] <... chdir resumed>) = 0 [pid 6054] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 6054] setpgid(0, 0) = 0 [pid 6054] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6054] <... openat resumed>) = 3 [pid 6054] write(3, "1000", 4) = 4 [pid 6054] close(3) = 0 [pid 6054] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6054] write(1, "executing program\n", 18 [pid 5225] newfstatat(AT_FDCWD, "./19/binderfs", [pid 6054] <... write resumed>) = 18 [pid 6054] memfd_create("syzkaller", 0) = 3 [pid 6054] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./19/binderfs") = 0 [pid 5225] umount2("./19/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./19/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./19/bus" [pid 6024] <... close resumed>) = 0 [pid 5225] <... unlink resumed>) = 0 [pid 5225] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6024] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6024] exit_group(0) = ? [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6019] <... mount resumed>) = 0 [pid 5225] newfstatat(AT_FDCWD, "./19/file0", [pid 6019] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6024] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6024, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=46 /* 0.46 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 6019] <... openat resumed>) = 3 [pid 6019] chdir("./file0") = 0 [pid 6019] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5226] <... restart_syscall resumed>) = 0 [pid 5225] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] newfstatat(3, "", [pid 6019] ioctl(4, LOOP_CLR_FD [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6019] <... ioctl resumed>) = 0 [pid 5226] getdents64(3, [pid 6019] close(4 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 6019] <... close resumed>) = 0 [pid 5226] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6019] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... openat resumed>) = 4 [pid 5226] newfstatat(AT_FDCWD, "./18/binderfs", [pid 5225] newfstatat(4, "", [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./18/binderfs" [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] <... unlink resumed>) = 0 [pid 6019] <... openat resumed>) = 4 [pid 5226] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./18/bus", [pid 6019] exit_group(0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] getdents64(4, [pid 5226] unlink("./18/bus") = 0 [pid 5226] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./18/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6019] <... exit_group resumed>) = ? [pid 5226] getdents64(4, [pid 6019] +++ exited with 0 +++ [ 110.603350][ T6019] bcachefs (loop0): done starting filesystem [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6019, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=35 /* 0.35 s */} --- [pid 5226] close(4) = 0 [pid 5225] close(4 [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5226] rmdir("./18/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./18") = 0 [pid 5225] <... close resumed>) = 0 [pid 5224] <... restart_syscall resumed>) = 0 [pid 5225] rmdir("./19/file0" [pid 5226] mkdir("./19", 0777) = 0 [pid 5225] <... rmdir resumed>) = 0 [pid 5224] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] getdents64(3, [pid 5226] <... openat resumed>) = 3 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] close(3 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5225] <... close resumed>) = 0 [pid 5224] newfstatat(3, "", [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] rmdir("./19" [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] close(3 [pid 5224] getdents64(3, [pid 5226] <... close resumed>) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6057 attached [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 6057 [pid 5224] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] mkdir("./20", 0777executing program ) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./19/binderfs", [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... openat resumed>) = 3 [pid 5224] unlink("./19/binderfs" [pid 6057] set_robust_list(0x55555e217660, 24) = 0 [pid 6057] chdir("./19" [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5224] <... unlink resumed>) = 0 [pid 6057] <... chdir resumed>) = 0 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5224] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6057] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6057] setpgid(0, 0) = 0 [pid 6057] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6057] write(3, "1000", 4) = 4 [pid 6057] close(3) = 0 [pid 6057] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6057] write(1, "executing program\n", 18) = 18 [pid 6057] memfd_create("syzkaller", 0 [pid 5225] close(3 [pid 6057] <... memfd_create resumed>) = 3 [pid 6057] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] <... close resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 6058 ./strace-static-x86_64: Process 6058 attached [pid 6058] set_robust_list(0x55555e217660, 24) = 0 [pid 6058] chdir("./20") = 0 [pid 6058] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6058] setpgid(0, 0) = 0 executing program [pid 6058] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6058] write(3, "1000", 4) = 4 [pid 6058] close(3) = 0 [pid 6058] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6058] write(1, "executing program\n", 18) = 18 [pid 6058] memfd_create("syzkaller", 0) = 3 [pid 6058] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6023] <... close resumed>) = 0 [pid 6023] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6023] exit_group(0) = ? [ 110.705755][ T5224] bcachefs (loop0): shutting down [ 110.723193][ T5224] bcachefs (loop0): going read-only [ 110.728525][ T5224] bcachefs (loop0): finished waiting for writes to stop [pid 6023] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6023, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=40 /* 0.40 s */} --- [pid 5228] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./13/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./13/binderfs") = 0 [pid 5228] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./13/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./13/bus") = 0 [ 110.769399][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [pid 5228] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./13/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./13/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./13") = 0 [pid 5228] mkdir("./14", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [ 110.836371][ T61] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [ 110.872520][ T61] bcachefs (loop0): fatal error - emergency read only [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6059 attached , child_tidptr=0x55555e217650) = 6059 [pid 6059] set_robust_list(0x55555e217660, 24) = 0 [pid 6059] chdir("./14") = 0 [pid 6059] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6059] setpgid(0, 0) = 0 [pid 6059] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6059] write(3, "1000", 4) = 4 [ 110.899144][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 14 [ 110.928013][ T5224] bcachefs (loop0): unshutdown complete, journal seq 14 [pid 6059] close(3) = 0 [pid 6059] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6059] write(1, "executing program\n", 18) = 18 [pid 6057] 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 [pid 6059] memfd_create("syzkaller", 0) = 3 [pid 6059] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 110.960961][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [ 111.009395][ T5224] bcachefs (loop0): shutdown complete [pid 6054] 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 [pid 6058] 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 [pid 6059] 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 [pid 6057] <... write resumed>) = 16777216 [pid 6057] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6057] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6057] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6057] close(3) = 0 [pid 6057] close(4) = 0 [pid 6057] mkdir("./file0", 0777 [pid 6054] <... write resumed>) = 16777216 [pid 6057] <... mkdir resumed>) = 0 [pid 6054] munmap(0x7f4aa8000000, 138412032 [pid 6057] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6054] <... munmap resumed>) = 0 [ 111.382352][ T6057] loop2: detected capacity change from 0 to 32768 [pid 6054] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6054] ioctl(4, LOOP_SET_FD, 3 [pid 6058] <... write resumed>) = 16777216 [pid 6058] munmap(0x7f4aa8000000, 138412032 [pid 6054] <... ioctl resumed>) = 0 [pid 6054] close(3) = 0 [pid 6054] close(4) = 0 [pid 6054] mkdir("./file0", 0777) = 0 [pid 6058] <... munmap resumed>) = 0 [pid 6054] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6058] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [ 111.453076][ T6054] loop3: detected capacity change from 0 to 32768 [pid 6058] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6058] close(3) = 0 [pid 6058] close(4 [pid 6059] <... write resumed>) = 16777216 [pid 6058] <... close resumed>) = 0 [pid 6059] munmap(0x7f4aa8000000, 138412032 [pid 6058] mkdir("./file0", 0777) = 0 [pid 6059] <... munmap resumed>) = 0 [ 111.497914][ T6058] loop1: detected capacity change from 0 to 32768 [pid 6058] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6059] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6059] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6059] close(3) = 0 [pid 6059] close(4) = 0 [pid 6059] mkdir("./file0", 0777) = 0 [ 111.568629][ T6059] loop4: detected capacity change from 0 to 32768 [ 111.823935][ T6054] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 111.824311][ T6057] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 111.854980][ T6054] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 111.857290][ T6057] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 111.877229][ T6058] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 111.883680][ T6057] bcachefs (loop2): Version upgrade required: [ 111.883680][ T6057] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 111.883680][ T6057] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 111.883680][ T6057] 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 [ 111.900656][ T6058] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 111.965562][ T6059] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 111.989037][ T6059] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 112.021743][ T6057] bcachefs (loop2): dropping and reconstructing all alloc info [pid 6059] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6054] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6054] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 6054] ioctl(3, LOOP_CLR_FD) = 0 [ 112.080676][ T6054] bcachefs: bch2_fs_get_tree() error: EINVAL [ 112.092009][ T6057] bcachefs (loop2): check_topology... done [ 112.104572][ T6057] bcachefs (loop2): accounting_read... done [ 112.147598][ T6057] bcachefs (loop2): alloc_read... done [ 112.165737][ T6057] bcachefs (loop2): stripes_read... done [pid 6054] close(3 [pid 6059] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6059] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [ 112.193932][ T6059] bcachefs: bch2_fs_get_tree() error: EINVAL [ 112.200625][ T6057] bcachefs (loop2): snapshots_read... done [pid 6059] ioctl(3, LOOP_CLR_FD) = 0 [pid 6059] close(3 [pid 6058] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6058] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 6058] ioctl(3, LOOP_CLR_FD) = 0 [ 112.206621][ T6057] bcachefs (loop2): check_allocations... [ 112.249333][ T6058] bcachefs: bch2_fs_get_tree() error: EINVAL [ 112.286242][ T6057] done [pid 6058] close(3 [pid 5224] <... umount2 resumed>) = 0 [pid 5224] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./19/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./19/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./19") = 0 [ 112.324253][ T6057] bcachefs (loop2): going read-write [pid 5224] mkdir("./20", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6089 attached , child_tidptr=0x55555e217650) = 6089 [pid 6089] set_robust_list(0x55555e217660, 24) = 0 [pid 6089] chdir("./20") = 0 [pid 6057] <... mount resumed>) = 0 [pid 6089] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6089] setpgid(0, 0 [pid 6057] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 6089] <... setpgid resumed>) = 0 [pid 6089] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6057] <... openat resumed>) = 3 [pid 6089] <... openat resumed>) = 3 [pid 6089] write(3, "1000", 4 [pid 6057] chdir("./file0" [pid 6089] <... write resumed>) = 4 [pid 6089] close(3 [pid 6057] <... chdir resumed>) = 0 [pid 6089] <... close resumed>) = 0 [pid 6057] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6089] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6089] write(1, "executing program\n", 18 [pid 6057] <... openat resumed>) = 4 [pid 6089] <... write resumed>) = 18 [ 112.374710][ T6057] bcachefs (loop2): done starting filesystem [pid 6089] memfd_create("syzkaller", 0 [pid 6057] ioctl(4, LOOP_CLR_FD [pid 6054] <... close resumed>) = 0 [pid 6089] <... memfd_create resumed>) = 3 [pid 6057] <... ioctl resumed>) = 0 [pid 6054] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6089] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6057] close(4 [pid 6089] <... mmap resumed>) = 0x7f4aa8000000 [pid 6057] <... close resumed>) = 0 [pid 6057] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 6057] exit_group(0 [pid 6054] <... openat resumed>) = 3 [pid 6057] <... exit_group resumed>) = ? [pid 6054] exit_group(0 [pid 6057] +++ exited with 0 +++ [pid 6054] <... exit_group resumed>) = ? [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6057, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=33 /* 0.33 s */} --- [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 6054] +++ exited with 0 +++ [pid 5226] <... restart_syscall resumed>) = 0 [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6054, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=39 /* 0.39 s */} --- [pid 5226] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] <... openat resumed>) = 3 [pid 5227] <... openat resumed>) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] newfstatat(3, "", [pid 5227] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] getdents64(3, [pid 5227] newfstatat(AT_FDCWD, "./20/binderfs", [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] unlink("./20/binderfs" [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... unlink resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./19/binderfs", [pid 5227] umount2("./20/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] unlink("./19/binderfs" [pid 5227] newfstatat(AT_FDCWD, "./20/bus", [pid 5226] <... unlink resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] unlink("./20/bus") = 0 [pid 5227] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./20/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4 [pid 6059] <... close resumed>) = 0 [pid 5227] <... close resumed>) = 0 [pid 5227] rmdir("./20/file0" [pid 6059] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... rmdir resumed>) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./20") = 0 [pid 5227] mkdir("./21", 0777 [pid 6059] <... openat resumed>) = 3 [pid 5227] <... mkdir resumed>) = 0 [pid 6059] exit_group(0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 6059] <... exit_group resumed>) = ? [pid 6059] +++ exited with 0 +++ [pid 5227] <... openat resumed>) = 3 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6059, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=43 /* 0.43 s */} --- [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5227] close(3 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] <... close resumed>) = 0 [pid 5228] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5228] <... openat resumed>) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, ./strace-static-x86_64: Process 6092 attached 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 6092 [pid 5228] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6092] set_robust_list(0x55555e217660, 24 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 112.529722][ T5226] bcachefs (loop2): shutting down [ 112.534821][ T5226] bcachefs (loop2): going read-only [ 112.556920][ T5226] bcachefs (loop2): finished waiting for writes to stop [pid 5228] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./14/binderfs" [pid 6092] <... set_robust_list resumed>) = 0 [pid 6092] chdir("./21") = 0 [pid 6092] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6092] setpgid(0, 0) = 0 [pid 6092] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6092] write(3, "1000", 4) = 4 [pid 6092] close(3) = 0 [pid 6092] symlink("/dev/binderfs", "./binderfs" [pid 5228] <... unlink resumed>) = 0 [pid 6092] <... symlink resumed>) = 0 [pid 5228] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./14/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./14/bus") = 0 [pid 5228] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6092] write(1, "executing program\n", 18executing program [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6092] <... write resumed>) = 18 [pid 6092] memfd_create("syzkaller", 0 [pid 5228] newfstatat(AT_FDCWD, "./14/file0", [pid 6092] <... memfd_create resumed>) = 3 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6092] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6058] <... close resumed>) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6058] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6092] <... mmap resumed>) = 0x7f4aa8000000 [pid 6058] exit_group(0 [pid 5228] <... openat resumed>) = 4 [pid 6058] <... exit_group resumed>) = ? [ 112.589510][ T5226] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 6058] +++ exited with 0 +++ [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6058, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=46 /* 0.46 s */} --- [pid 5228] getdents64(4, [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] <... restart_syscall resumed>) = 0 [pid 5225] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] close(4) = 0 [pid 5228] rmdir("./14/file0") = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] getdents64(3, [pid 5225] newfstatat(3, "", [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] close(3 [pid 5225] getdents64(3, [pid 5228] <... close resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] rmdir("./14" [pid 5225] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... rmdir resumed>) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] mkdir("./15", 0777 [pid 5225] newfstatat(AT_FDCWD, "./20/binderfs", [pid 5228] <... mkdir resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5225] unlink("./20/binderfs" [pid 5228] <... openat resumed>) = 3 [pid 5225] <... unlink resumed>) = 0 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5225] umount2("./20/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] close(3 [pid 5225] newfstatat(AT_FDCWD, "./20/bus", [pid 5228] <... close resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] unlink("./20/bus") = 0 [pid 5225] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 6093 attached [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 6093 [pid 5225] newfstatat(AT_FDCWD, "./20/file0", [pid 6093] set_robust_list(0x55555e217660, 24 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6093] <... set_robust_list resumed>) = 0 [pid 5225] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6093] chdir("./15" [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6093] <... chdir resumed>) = 0 [pid 6093] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6093] setpgid(0, 0) = 0 [pid 6093] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] <... openat resumed>) = 4 [pid 5225] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, executing program [pid 6093] <... openat resumed>) = 3 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./20/file0") = 0 [pid 6093] write(3, "1000", 4) = 4 [pid 6093] close(3) = 0 [pid 6093] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6093] write(1, "executing program\n", 18) = 18 [pid 6093] memfd_create("syzkaller", 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 6093] <... memfd_create resumed>) = 3 [pid 5225] close(3) = 0 [pid 6093] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] rmdir("./20") = 0 [pid 5225] mkdir("./21", 0777) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6094 attached [pid 6089] 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 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6094 [ 112.669624][ T52] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 112.708813][ T52] bcachefs (loop2): fatal error - emergency read only [pid 6094] set_robust_list(0x55555e217660, 24) = 0 [pid 6094] chdir("./21") = 0 [pid 6094] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6094] setpgid(0, 0) = 0 [pid 6094] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6094] write(3, "1000", 4) = 4 [pid 6094] close(3) = 0 [pid 6094] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6094] write(1, "executing program\n", 18) = 18 [pid 6094] memfd_create("syzkaller", 0) = 3 [pid 6094] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 112.756701][ T5226] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [ 112.788640][ T5226] bcachefs (loop2): unshutdown complete, journal seq 13 [ 112.819548][ T5226] bcachefs (loop2): done going read-only, filesystem not clean [ 112.881554][ T5226] bcachefs (loop2): shutdown complete [pid 6092] 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 [pid 6094] 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 [pid 6093] 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 [pid 6089] <... write resumed>) = 16777216 [pid 6089] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6089] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6089] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6089] close(3) = 0 [pid 6089] close(4) = 0 [pid 6089] mkdir("./file0", 0777) = 0 [ 113.175210][ T6089] loop0: detected capacity change from 0 to 32768 [pid 6089] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6092] <... write resumed>) = 16777216 [pid 6092] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6092] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6092] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6092] close(3) = 0 [pid 6092] close(4) = 0 [pid 6094] <... write resumed>) = 16777216 [pid 6092] mkdir("./file0", 0777 [pid 6094] munmap(0x7f4aa8000000, 138412032 [pid 6092] <... mkdir resumed>) = 0 [ 113.349923][ T6092] loop3: detected capacity change from 0 to 32768 [pid 6092] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6094] <... munmap resumed>) = 0 [pid 6094] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6094] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6093] <... write resumed>) = 16777216 [pid 6094] close(3 [pid 6093] munmap(0x7f4aa8000000, 138412032 [pid 6094] <... close resumed>) = 0 [pid 6094] close(4 [pid 6093] <... munmap resumed>) = 0 [pid 6094] <... close resumed>) = 0 [pid 6094] mkdir("./file0", 0777) = 0 [pid 6094] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 113.419776][ T6094] loop1: detected capacity change from 0 to 32768 [pid 6093] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6093] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6093] close(3) = 0 [pid 6093] close(4) = 0 [pid 6093] mkdir("./file0", 0777) = 0 [ 113.477369][ T6093] loop4: detected capacity change from 0 to 32768 [ 113.597544][ T6089] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 113.620218][ T6089] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 113.628376][ T6089] bcachefs (loop0): Version upgrade required: [ 113.628376][ T6089] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 113.628376][ T6089] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 113.628376][ T6089] 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 [ 113.694014][ T6092] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 113.709155][ T6092] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 113.711189][ T6093] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 113.743373][ T6094] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 113.745659][ T6089] bcachefs (loop0): dropping and reconstructing all alloc info [ 113.754466][ T6094] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 113.778716][ T6093] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 113.833248][ T6089] bcachefs (loop0): check_topology... done [ 113.854222][ T6089] bcachefs (loop0): accounting_read... done [ 113.895048][ T6092] bcachefs: bch2_fs_get_tree() error: EINVAL [ 113.907238][ T6089] bcachefs (loop0): alloc_read... done [pid 6093] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6092] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6092] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 6094] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6092] <... openat resumed>) = 3 [pid 6092] ioctl(3, LOOP_CLR_FD) = 0 [ 113.928662][ T6089] bcachefs (loop0): stripes_read... done [ 113.934432][ T6089] bcachefs (loop0): snapshots_read... done [ 113.948651][ T6094] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6094] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6092] close(3 [pid 6094] <... openat resumed>) = 3 [pid 6094] ioctl(3, LOOP_CLR_FD) = 0 [pid 6094] close(3 [pid 6093] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6093] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 6093] ioctl(3, LOOP_CLR_FD) = 0 [ 113.967231][ T6089] bcachefs (loop0): check_allocations... [ 113.974198][ T6093] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6093] close(3 [pid 5226] <... umount2 resumed>) = 0 [pid 5226] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./19/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./19/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./19") = 0 [ 114.081621][ T6089] done [ 114.100006][ T6089] bcachefs (loop0): going read-write [pid 5226] mkdir("./20", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6126 attached , child_tidptr=0x55555e217650) = 6126 [pid 6126] set_robust_list(0x55555e217660, 24) = 0 [pid 6126] chdir("./20") = 0 [pid 6126] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6126] setpgid(0, 0) = 0 [pid 6126] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6126] write(3, "1000", 4) = 4 [pid 6126] close(3) = 0 [pid 6126] symlink("/dev/binderfs", "./binderfs" [pid 6089] <... mount resumed>) = 0 [pid 6126] <... symlink resumed>) = 0 executing program [pid 6126] write(1, "executing program\n", 18) = 18 [pid 6126] memfd_create("syzkaller", 0 [pid 6089] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6126] <... memfd_create resumed>) = 3 [pid 6126] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6089] chdir("./file0") = 0 [pid 6089] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6089] ioctl(4, LOOP_CLR_FD) = 0 [pid 6089] close(4) = 0 [pid 6089] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [ 114.139619][ T6089] bcachefs (loop0): done starting filesystem [pid 6089] exit_group(0) = ? [pid 6089] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6089, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=35 /* 0.35 s */} --- [pid 5224] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5224] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5224] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./20/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] unlink("./20/binderfs") = 0 [ 114.215984][ T5224] bcachefs (loop0): shutting down [ 114.234238][ T5224] bcachefs (loop0): going read-only [pid 5224] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6093] <... close resumed>) = 0 [pid 6093] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6093] exit_group(0) = ? [pid 6093] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6093, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=42 /* 0.42 s */} --- [ 114.259068][ T5224] bcachefs (loop0): finished waiting for writes to stop [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./15/binderfs") = 0 [pid 5228] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./15/bus") = 0 [pid 5228] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./15/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./15/file0") = 0 [pid 6092] <... close resumed>) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./15") = 0 [pid 5228] mkdir("./16", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6092] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 ./strace-static-x86_64: Process 6127 attached [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 6127 [pid 6092] exit_group(0 [pid 6127] set_robust_list(0x55555e217660, 24 [pid 6092] <... exit_group resumed>) = ? [pid 6092] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6092, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=46 /* 0.46 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...> [pid 6127] <... set_robust_list resumed>) = 0 [pid 5227] <... restart_syscall resumed>) = 0 [pid 6127] chdir("./16" [pid 5227] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 114.303495][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [pid 5227] newfstatat(AT_FDCWD, "./21/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./21/binderfs") = 0 [pid 5227] umount2("./21/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./21/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./21/bus" [pid 6127] <... chdir resumed>) = 0 [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6127] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6127] setpgid(0, 0 [pid 5227] newfstatat(AT_FDCWD, "./21/file0", [pid 6127] <... setpgid resumed>) = 0 [pid 5227] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6127] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5227] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6127] <... openat resumed>) = 3 [pid 6094] <... close resumed>) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6127] write(3, "1000", 4) = 4 [pid 6094] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6127] close(3) = 0 [pid 6127] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5227] openat(AT_FDCWD, "./21/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORYexecuting program [pid 6127] write(1, "executing program\n", 18 [pid 5227] <... openat resumed>) = 4 [pid 6127] <... write resumed>) = 18 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, [pid 6127] memfd_create("syzkaller", 0 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 6127] <... memfd_create resumed>) = 3 [pid 6094] <... openat resumed>) = 3 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./21/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./21") = 0 [pid 5227] mkdir("./22", 0777 [pid 6127] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6094] exit_group(0 [pid 6127] <... mmap resumed>) = 0x7f4aa8000000 [pid 6094] <... exit_group resumed>) = ? [pid 5227] <... mkdir resumed>) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 6128 [pid 6094] +++ exited with 0 +++ ./strace-static-x86_64: Process 6128 attached [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6094, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=45 /* 0.45 s */} --- [ 114.398990][ T61] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [pid 6128] set_robust_list(0x55555e217660, 24 [pid 6126] 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 [pid 6128] <... set_robust_list resumed>) = 0 [pid 6128] chdir("./22" [pid 5225] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6128] <... chdir resumed>) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6128] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5225] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6128] <... prctl resumed>) = 0 [pid 5225] <... openat resumed>) = 3 [pid 6128] setpgid(0, 0 [pid 5225] newfstatat(3, "", [pid 6128] <... setpgid resumed>) = 0 [pid 6128] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6128] <... openat resumed>) = 3 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./21/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./21/binderfs") = 0 [pid 5225] umount2("./21/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./21/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./21/bus") = 0 [pid 5225] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./21/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./21/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6128] write(3, "1000", 4 [pid 5225] <... openat resumed>) = 4 [pid 5225] newfstatat(4, "", [pid 6128] <... write resumed>) = 4 [pid 6128] close(3 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, [pid 6128] <... close resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 6128] symlink("/dev/binderfs", "./binderfs" [pid 5225] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4) = 0 [pid 5225] rmdir("./21/file0") = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3) = 0 [pid 5225] rmdir("./21") = 0 [pid 5225] mkdir("./22", 0777 [pid 6128] <... symlink resumed>) = 0 [pid 5225] <... mkdir resumed>) = 0 executing program [pid 6128] write(1, "executing program\n", 18 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6128] <... write resumed>) = 18 [pid 5225] <... openat resumed>) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 6128] memfd_create("syzkaller", 0 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 6128] <... memfd_create resumed>) = 3 [pid 5225] close(3 [pid 6128] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] <... close resumed>) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6129 attached [pid 6129] set_robust_list(0x55555e217660, 24 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6129 [ 114.456201][ T61] bcachefs (loop0): fatal error - emergency read only [ 114.492981][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 14 [pid 6129] <... set_robust_list resumed>) = 0 [pid 6129] chdir("./22") = 0 [pid 6129] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6129] setpgid(0, 0) = 0 [pid 6129] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6129] write(3, "1000", 4) = 4 [pid 6129] close(3) = 0 executing program [pid 6129] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6129] write(1, "executing program\n", 18) = 18 [pid 6129] memfd_create("syzkaller", 0) = 3 [pid 6129] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 114.542904][ T5224] bcachefs (loop0): unshutdown complete, journal seq 14 [ 114.569741][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [ 114.640289][ T5224] bcachefs (loop0): shutdown complete [pid 6127] 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 [pid 6128] 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 [pid 6126] <... write resumed>) = 16777216 [pid 6126] munmap(0x7f4aa8000000, 138412032 [pid 6129] 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 [pid 6126] <... munmap resumed>) = 0 [pid 6126] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6126] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6126] close(3) = 0 [pid 6126] close(4) = 0 [pid 6126] mkdir("./file0", 0777) = 0 [ 114.909469][ T6126] loop2: detected capacity change from 0 to 32768 [pid 6126] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6128] <... write resumed>) = 16777216 [pid 6129] <... write resumed>) = 16777216 [pid 6128] munmap(0x7f4aa8000000, 138412032 [pid 6127] <... write resumed>) = 16777216 [pid 6129] munmap(0x7f4aa8000000, 138412032 [pid 6127] munmap(0x7f4aa8000000, 138412032 [pid 6129] <... munmap resumed>) = 0 [pid 6128] <... munmap resumed>) = 0 [pid 6127] <... munmap resumed>) = 0 [pid 6129] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6128] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 6127] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6129] <... openat resumed>) = 4 [pid 6128] <... openat resumed>) = 4 [pid 6129] ioctl(4, LOOP_SET_FD, 3 [pid 6127] <... openat resumed>) = 4 [pid 6129] <... ioctl resumed>) = 0 [pid 6128] ioctl(4, LOOP_SET_FD, 3 [pid 6127] ioctl(4, LOOP_SET_FD, 3 [pid 6129] close(3 [pid 6128] <... ioctl resumed>) = 0 [pid 6127] <... ioctl resumed>) = 0 [pid 6129] <... close resumed>) = 0 [pid 6129] close(4 [pid 6128] close(3 [pid 6127] close(3 [pid 6129] <... close resumed>) = 0 [pid 6128] <... close resumed>) = 0 [pid 6127] <... close resumed>) = 0 [pid 6129] mkdir("./file0", 0777 [pid 6128] close(4 [pid 6127] close(4 [pid 6129] <... mkdir resumed>) = 0 [pid 6128] <... close resumed>) = 0 [pid 6127] <... close resumed>) = 0 [pid 6129] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6128] mkdir("./file0", 0777 [pid 6127] mkdir("./file0", 0777 [pid 6128] <... mkdir resumed>) = 0 [pid 6127] <... mkdir resumed>) = 0 [pid 6128] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 115.170174][ T6129] loop1: detected capacity change from 0 to 32768 [ 115.177478][ T6127] loop4: detected capacity change from 0 to 32768 [ 115.184979][ T6128] loop3: detected capacity change from 0 to 32768 [ 115.327572][ T6126] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 115.350095][ T6126] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 115.358163][ T6126] bcachefs (loop2): Version upgrade required: [ 115.358163][ T6126] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 115.358163][ T6126] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 115.358163][ T6126] 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 [ 115.396721][ T6128] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 115.438276][ T6128] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 115.493520][ T6129] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 115.508702][ T6127] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 115.512872][ T6129] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 115.529814][ T6126] bcachefs (loop2): dropping and reconstructing all alloc info [ 115.548376][ T6127] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 115.598744][ T6126] bcachefs (loop2): check_topology... done [ 115.604654][ T6126] bcachefs (loop2): accounting_read... done [ 115.622182][ T6126] bcachefs (loop2): alloc_read... done [ 115.627846][ T6126] bcachefs (loop2): stripes_read... done [pid 6127] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6128] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 115.654052][ T6128] bcachefs: bch2_fs_get_tree() error: EINVAL [ 115.658676][ T6126] bcachefs (loop2): snapshots_read... done [ 115.666321][ T6126] bcachefs (loop2): check_allocations... [pid 6128] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 6128] ioctl(3, LOOP_CLR_FD) = 0 [pid 6128] close(3 [pid 6127] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6129] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6127] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6129] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6127] <... openat resumed>) = 3 [ 115.693654][ T6129] bcachefs: bch2_fs_get_tree() error: EINVAL [ 115.713903][ T6126] done [ 115.718467][ T6126] bcachefs (loop2): going read-write [ 115.737292][ T6127] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6127] ioctl(3, LOOP_CLR_FD [pid 6129] <... openat resumed>) = 3 [pid 6127] <... ioctl resumed>) = 0 [pid 6129] ioctl(3, LOOP_CLR_FD) = 0 [pid 6129] close(3 [pid 6127] close(3 [pid 6126] <... mount resumed>) = 0 [pid 6126] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5224] <... umount2 resumed>) = 0 [pid 6126] chdir("./file0" [pid 5224] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./20/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6126] <... chdir resumed>) = 0 [pid 6126] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5224] getdents64(4, [pid 6126] <... openat resumed>) = 4 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [ 115.801577][ T6126] bcachefs (loop2): done starting filesystem [pid 6126] ioctl(4, LOOP_CLR_FD [pid 5224] getdents64(4, [pid 6126] <... ioctl resumed>) = 0 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 6126] close(4 [pid 5224] close(4 [pid 6126] <... close resumed>) = 0 [pid 5224] <... close resumed>) = 0 [pid 6126] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5224] rmdir("./20/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./20") = 0 [pid 5224] mkdir("./21", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3 [pid 6126] <... openat resumed>) = 4 [pid 5224] <... close resumed>) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6161 attached , child_tidptr=0x55555e217650) = 6161 [pid 6161] set_robust_list(0x55555e217660, 24) = 0 [pid 6161] chdir("./21") = 0 [pid 6161] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6161] setpgid(0, 0) = 0 [pid 6161] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6161] write(3, "1000", 4) = 4 [pid 6161] close(3) = 0 [pid 6161] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6161] write(1, "executing program\n", 18executing program ) = 18 [pid 6161] memfd_create("syzkaller", 0) = 3 [pid 6126] exit_group(0) = ? [pid 6161] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6126] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6126, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=30 /* 0.30 s */} --- [pid 5226] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5226] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./20/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./20/binderfs") = 0 [pid 5226] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6128] <... close resumed>) = 0 [pid 6128] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6128] exit_group(0) = ? [pid 6128] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6128, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=51 /* 0.51 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5227] umount2("./22", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./22", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5227] umount2("./22/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./22/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./22/binderfs") = 0 [pid 5227] umount2("./22/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./22/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./22/bus") = 0 [pid 5227] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./22/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./22/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4) = 0 [pid 5227] rmdir("./22/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./22") = 0 [pid 6129] <... close resumed>) = 0 [pid 5227] mkdir("./23", 0777 [pid 6129] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... mkdir resumed>) = 0 [ 115.994786][ T5226] bcachefs (loop2): shutting down [ 116.009543][ T5226] bcachefs (loop2): going read-only [pid 6129] <... openat resumed>) = 3 [pid 6127] <... close resumed>) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 6129] exit_group(0 [pid 6127] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... openat resumed>) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3 [pid 6129] <... exit_group resumed>) = ? [pid 5227] <... close resumed>) = 0 [pid 6127] <... openat resumed>) = 3 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6129] +++ exited with 0 +++ [pid 6127] exit_group(0 [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 6162 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6129, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=40 /* 0.40 s */} --- [pid 6127] <... exit_group resumed>) = ? [pid 5225] restart_syscall(<... resuming interrupted clone ...>./strace-static-x86_64: Process 6162 attached [pid 6162] set_robust_list(0x55555e217660, 24 [pid 6127] +++ exited with 0 +++ [pid 6162] <... set_robust_list resumed>) = 0 [pid 6162] chdir("./23") = 0 [pid 6162] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6127, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=36 /* 0.36 s */} --- [pid 5225] <... restart_syscall resumed>) = 0 [pid 6162] setpgid(0, 0 [pid 5228] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6162] <... setpgid resumed>) = 0 [pid 6162] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6162] <... openat resumed>) = 3 [pid 5228] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] umount2("./22", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6162] write(3, "1000", 4 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6162] <... write resumed>) = 4 [pid 5225] openat(AT_FDCWD, "./22", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6162] close(3 [pid 5228] <... openat resumed>) = 3 [pid 5225] <... openat resumed>) = 3 [pid 5228] newfstatat(3, "", [pid 5225] newfstatat(3, "", [pid 6162] <... close resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, [pid 6162] symlink("/dev/binderfs", "./binderfs" [pid 5225] getdents64(3, [pid 6162] <... symlink resumed>) = 0 [ 116.054425][ T5226] bcachefs (loop2): finished waiting for writes to stop [ 116.076373][ T5226] bcachefs (loop2): flushing journal and stopping allocators, journal seq 11 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 6162] write(1, "executing program\n", 18 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./22/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./22/binderfs", [pid 5228] newfstatat(AT_FDCWD, "./16/binderfs", executing program [pid 6162] <... write resumed>) = 18 [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./16/binderfs" [pid 5225] unlink("./22/binderfs" [pid 6162] memfd_create("syzkaller", 0 [pid 5228] <... unlink resumed>) = 0 [pid 5225] <... unlink resumed>) = 0 [pid 6162] <... memfd_create resumed>) = 3 [pid 5228] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] umount2("./22/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./16/bus", [pid 5225] newfstatat(AT_FDCWD, "./22/bus", [pid 6162] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./16/bus" [pid 5225] unlink("./22/bus" [pid 6162] <... mmap resumed>) = 0x7f4aa8000000 [pid 5228] <... unlink resumed>) = 0 [pid 5225] <... unlink resumed>) = 0 [pid 5228] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./16/file0", [pid 5225] newfstatat(AT_FDCWD, "./22/file0", [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] openat(AT_FDCWD, "./22/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] <... openat resumed>) = 4 [pid 5225] newfstatat(4, "", [pid 5228] newfstatat(4, "", [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(4, [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, [pid 5225] getdents64(4, [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [ 116.136609][ T35] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [pid 5228] close(4 [pid 5225] close(4 [pid 5228] <... close resumed>) = 0 [pid 5225] <... close resumed>) = 0 [pid 5228] rmdir("./16/file0" [pid 5225] rmdir("./22/file0") = 0 [pid 5225] getdents64(3, [pid 5228] <... rmdir resumed>) = 0 [pid 5228] getdents64(3, [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] close(3 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] <... close resumed>) = 0 [pid 6161] 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 [pid 5228] close(3 [pid 5225] rmdir("./22" [pid 5228] <... close resumed>) = 0 [pid 5228] rmdir("./16" [pid 5225] <... rmdir resumed>) = 0 [pid 5228] <... rmdir resumed>) = 0 [pid 5225] mkdir("./23", 0777 [pid 5228] mkdir("./17", 0777 [pid 5225] <... mkdir resumed>) = 0 [pid 5228] <... mkdir resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5225] <... openat resumed>) = 3 [pid 5228] <... openat resumed>) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] close(3 [pid 5228] close(3) = 0 [pid 5225] <... close resumed>) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6164 attached ./strace-static-x86_64: Process 6163 attached [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 6163 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6164 [ 116.180417][ T35] bcachefs (loop2): fatal error - emergency read only [ 116.193369][ T5226] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 15 [ 116.204047][ T5226] bcachefs (loop2): unshutdown complete, journal seq 15 [ 116.213124][ T5226] bcachefs (loop2): done going read-only, filesystem not clean [pid 6164] set_robust_list(0x55555e217660, 24 [pid 6163] set_robust_list(0x55555e217660, 24 [pid 6164] <... set_robust_list resumed>) = 0 [pid 6163] <... set_robust_list resumed>) = 0 [pid 6164] chdir("./23" [pid 6163] chdir("./17" [pid 6164] <... chdir resumed>) = 0 [pid 6164] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6163] <... chdir resumed>) = 0 [pid 6164] setpgid(0, 0 [pid 6163] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6164] <... setpgid resumed>) = 0 [pid 6163] <... prctl resumed>) = 0 [pid 6164] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6163] setpgid(0, 0 [pid 6164] <... openat resumed>) = 3 [pid 6163] <... setpgid resumed>) = 0 [pid 6163] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6164] write(3, "1000", 4) = 4 [pid 6163] <... openat resumed>) = 3 [pid 6164] close(3 [pid 6163] write(3, "1000", 4 [pid 6164] <... close resumed>) = 0 [pid 6163] <... write resumed>) = 4 [pid 6164] symlink("/dev/binderfs", "./binderfs" [pid 6163] close(3) = 0 [pid 6164] <... symlink resumed>) = 0 [pid 6163] symlink("/dev/binderfs", "./binderfs"executing program [pid 6164] write(1, "executing program\n", 18 [pid 6163] <... symlink resumed>) = 0 [pid 6164] <... write resumed>) = 18 [pid 6163] write(1, "executing program\n", 18executing program [pid 6164] memfd_create("syzkaller", 0 [pid 6163] <... write resumed>) = 18 [pid 6163] memfd_create("syzkaller", 0) = 3 [pid 6164] <... memfd_create resumed>) = 3 [pid 6163] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6164] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6163] <... mmap resumed>) = 0x7f4aa8000000 [pid 6164] <... mmap resumed>) = 0x7f4aa8000000 [ 116.312903][ T5226] bcachefs (loop2): shutdown complete [pid 6162] 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 [pid 6161] <... write resumed>) = 16777216 [pid 6161] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6161] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6161] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6161] close(3) = 0 [pid 6161] close(4) = 0 [pid 6161] mkdir("./file0", 0777) = 0 [pid 6161] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 116.580588][ T6161] loop0: detected capacity change from 0 to 32768 [pid 6163] 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 [pid 6164] 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 [pid 6162] <... write resumed>) = 16777216 [pid 6162] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6162] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6162] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6162] close(3) = 0 [pid 6162] close(4) = 0 [pid 6162] mkdir("./file0", 0777) = 0 [ 116.752612][ T6162] loop3: detected capacity change from 0 to 32768 [pid 6162] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6164] <... write resumed>) = 16777216 [pid 6164] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6164] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6164] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6164] close(3) = 0 [pid 6164] close(4 [pid 6163] <... write resumed>) = 16777216 [pid 6163] munmap(0x7f4aa8000000, 138412032 [pid 6164] <... close resumed>) = 0 [pid 6164] mkdir("./file0", 0777 [pid 6163] <... munmap resumed>) = 0 [pid 6164] <... mkdir resumed>) = 0 [pid 6164] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6163] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [ 116.890638][ T6164] loop1: detected capacity change from 0 to 32768 [pid 6163] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6163] close(3) = 0 [pid 6163] close(4) = 0 [pid 6163] mkdir("./file0", 0777) = 0 [ 116.933593][ T6163] loop4: detected capacity change from 0 to 32768 [ 117.114427][ T6161] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 117.123989][ T6162] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 117.136295][ T6161] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 117.151497][ T6162] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 117.165128][ T6162] bcachefs (loop3): Version upgrade required: [ 117.165128][ T6162] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 117.165128][ T6162] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 117.165128][ T6162] 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 [ 117.199161][ T6163] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 117.254618][ T6164] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 117.305242][ T6164] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 117.313537][ T6163] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 117.319765][ T6162] bcachefs (loop3): dropping and reconstructing all alloc info [pid 6163] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6161] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 117.379234][ T6162] bcachefs (loop3): check_topology... done [ 117.385242][ T6162] bcachefs (loop3): accounting_read... done [ 117.396216][ T6162] bcachefs (loop3): alloc_read... done [ 117.413374][ T6162] bcachefs (loop3): stripes_read... done [ 117.413810][ T6161] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6161] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 6161] ioctl(3, LOOP_CLR_FD) = 0 [pid 6161] close(3 [pid 5226] <... umount2 resumed>) = 0 [pid 5226] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./20/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./20/file0") = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3) = 0 [pid 5226] rmdir("./20") = 0 [pid 5226] mkdir("./21", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 117.438627][ T6162] bcachefs (loop3): snapshots_read... done [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 6194 ./strace-static-x86_64: Process 6194 attached [pid 6194] set_robust_list(0x55555e217660, 24) = 0 [pid 6163] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6194] chdir("./21" [pid 6163] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6194] <... chdir resumed>) = 0 [pid 6163] <... openat resumed>) = 3 [pid 6163] ioctl(3, LOOP_CLR_FD [pid 6194] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6163] <... ioctl resumed>) = 0 [pid 6194] <... prctl resumed>) = 0 [pid 6163] close(3 [pid 6194] setpgid(0, 0) = 0 [pid 6194] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6194] write(3, "1000", 4) = 4 [pid 6194] close(3) = 0 [pid 6194] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6194] write(1, "executing program\n", 18executing program ) = 18 [ 117.460496][ T6162] bcachefs (loop3): check_allocations... [ 117.535472][ T6163] bcachefs: bch2_fs_get_tree() error: EINVAL [ 117.537535][ T6162] done [pid 6194] memfd_create("syzkaller", 0) = 3 [pid 6194] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6164] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6164] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 6164] ioctl(3, LOOP_CLR_FD) = 0 [ 117.591994][ T6164] bcachefs: bch2_fs_get_tree() error: EINVAL [ 117.615218][ T6162] bcachefs (loop3): going read-write [pid 6164] close(3 [pid 6162] <... mount resumed>) = 0 [pid 6162] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6162] chdir("./file0") = 0 [pid 6162] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6162] ioctl(4, LOOP_CLR_FD) = 0 [pid 6162] close(4) = 0 [ 117.658751][ T6162] bcachefs (loop3): done starting filesystem [pid 6162] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 6162] exit_group(0) = ? [pid 6162] +++ exited with 0 +++ [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6162, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=39 /* 0.39 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 6161] <... close resumed>) = 0 [pid 5227] umount2("./23", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./23", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, [pid 6161] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5227] umount2("./23/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6161] <... openat resumed>) = 3 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6161] exit_group(0 [pid 5227] newfstatat(AT_FDCWD, "./23/binderfs", [pid 6161] <... exit_group resumed>) = ? [pid 5227] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6161] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6161, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=46 /* 0.46 s */} --- [pid 5227] unlink("./23/binderfs" [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5227] <... unlink resumed>) = 0 [pid 5227] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... restart_syscall resumed>) = 0 [pid 6164] <... close resumed>) = 0 [pid 6164] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5224] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6164] <... openat resumed>) = 3 [pid 6164] exit_group(0) = ? [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", [pid 6164] +++ exited with 0 +++ [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6164, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=40 /* 0.40 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5224] getdents64(3, [pid 5225] <... restart_syscall resumed>) = 0 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] umount2("./23", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(AT_FDCWD, "./21/binderfs", [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] openat(AT_FDCWD, "./23", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5224] unlink("./21/binderfs" [pid 6163] <... close resumed>) = 0 [pid 5225] <... openat resumed>) = 3 [pid 5224] <... unlink resumed>) = 0 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] umount2("./21/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] getdents64(3, [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5224] newfstatat(AT_FDCWD, "./21/bus", [pid 5225] umount2("./23/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] unlink("./21/bus" [pid 6163] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] newfstatat(AT_FDCWD, "./23/binderfs", [pid 5224] <... unlink resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] unlink("./23/binderfs" [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... unlink resumed>) = 0 [pid 5224] newfstatat(AT_FDCWD, "./21/file0", [pid 5225] umount2("./23/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6163] <... openat resumed>) = 3 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./23/bus", [pid 5224] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6163] exit_group(0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6163] <... exit_group resumed>) = ? [pid 5225] unlink("./23/bus" [pid 5224] openat(AT_FDCWD, "./21/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] <... unlink resumed>) = 0 [pid 5224] <... openat resumed>) = 4 [pid 5225] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] newfstatat(4, "", [pid 6163] +++ exited with 0 +++ [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] newfstatat(AT_FDCWD, "./23/file0", [pid 5224] getdents64(4, [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6163, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=44 /* 0.44 s */} --- [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] restart_syscall(<... resuming interrupted clone ...> [pid 5225] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5224] getdents64(4, [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5224] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5225] openat(AT_FDCWD, "./23/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] rmdir("./21/file0" [pid 5228] <... restart_syscall resumed>) = 0 [pid 5228] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] newfstatat(4, "", [pid 5224] <... rmdir resumed>) = 0 [pid 5228] getdents64(3, [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] getdents64(4, [pid 5228] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] getdents64(4, [pid 5224] close(3 [pid 5228] newfstatat(AT_FDCWD, "./17/binderfs", [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] <... close resumed>) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 117.824377][ T5227] bcachefs (loop3): shutting down [ 117.829723][ T5227] bcachefs (loop3): going read-only [ 117.835102][ T5227] bcachefs (loop3): finished waiting for writes to stop [ 117.849748][ T5227] bcachefs (loop3): flushing journal and stopping allocators, journal seq 11 [pid 5225] close(4 [pid 5224] rmdir("./21" [pid 5228] unlink("./17/binderfs" [pid 5225] <... close resumed>) = 0 [pid 5224] <... rmdir resumed>) = 0 [pid 5228] <... unlink resumed>) = 0 [pid 5225] rmdir("./23/file0" [pid 5224] mkdir("./22", 0777 [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... mkdir resumed>) = 0 [pid 5225] getdents64(3, [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5225] close(3 [pid 5224] ioctl(3, LOOP_CLR_FD [pid 5225] <... close resumed>) = 0 [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] rmdir("./23" [pid 5224] close(3 [pid 5225] <... rmdir resumed>) = 0 [pid 5224] <... close resumed>) = 0 [pid 5228] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] mkdir("./24", 0777 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6197 attached [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... mkdir resumed>) = 0 [pid 5228] newfstatat(AT_FDCWD, "./17/bus", [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 6197 [pid 5228] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... openat resumed>) = 3 [pid 5228] unlink("./17/bus" [pid 5225] ioctl(3, LOOP_CLR_FD [pid 6197] set_robust_list(0x55555e217660, 24 [pid 5228] <... unlink resumed>) = 0 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 6197] <... set_robust_list resumed>) = 0 [pid 5228] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] close(3 [pid 6197] chdir("./22" [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... close resumed>) = 0 [pid 6197] <... chdir resumed>) = 0 [pid 5228] newfstatat(AT_FDCWD, "./17/file0", [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6197] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 ./strace-static-x86_64: Process 6198 attached [pid 6197] <... prctl resumed>) = 0 [pid 5228] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6197] setpgid(0, 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6198] set_robust_list(0x55555e217660, 24 [pid 6197] <... setpgid resumed>) = 0 [pid 5228] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6198] <... set_robust_list resumed>) = 0 [pid 6197] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6198 [pid 6198] chdir("./24" [pid 6197] <... openat resumed>) = 3 [pid 6198] <... chdir resumed>) = 0 [pid 6198] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6198] setpgid(0, 0 [pid 6197] write(3, "1000", 4 [pid 6198] <... setpgid resumed>) = 0 [pid 6198] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6197] <... write resumed>) = 4 [pid 5228] <... openat resumed>) = 4 [pid 5228] newfstatat(4, "", [pid 6198] <... openat resumed>) = 3 [pid 6198] write(3, "1000", 4 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6198] <... write resumed>) = 4 [pid 6198] close(3 [pid 5228] getdents64(4, [pid 6198] <... close resumed>) = 0 [pid 6198] symlink("/dev/binderfs", "./binderfs" [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 6198] <... symlink resumed>) = 0 executing program [pid 6198] write(1, "executing program\n", 18 [pid 6197] close(3 [pid 6194] 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 [pid 5228] getdents64(4, [pid 6198] <... write resumed>) = 18 [pid 6197] <... close resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 6197] symlink("/dev/binderfs", "./binderfs" [pid 5228] close(4 [pid 6197] <... symlink resumed>) = 0 [pid 5228] <... close resumed>) = 0 executing program [pid 6197] write(1, "executing program\n", 18 [pid 5228] rmdir("./17/file0" [pid 6197] <... write resumed>) = 18 [pid 5228] <... rmdir resumed>) = 0 [pid 6197] memfd_create("syzkaller", 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./17" [pid 6197] <... memfd_create resumed>) = 3 [pid 5228] <... rmdir resumed>) = 0 [pid 6197] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5228] mkdir("./18", 0777 [pid 6198] memfd_create("syzkaller", 0 [pid 6197] <... mmap resumed>) = 0x7f4aa8000000 [pid 5228] <... mkdir resumed>) = 0 [pid 6198] <... memfd_create resumed>) = 3 [ 117.939983][ T35] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [ 117.973411][ T35] bcachefs (loop3): fatal error - emergency read only [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6198] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5228] <... openat resumed>) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 6199 ./strace-static-x86_64: Process 6199 attached [pid 6199] set_robust_list(0x55555e217660, 24) = 0 [pid 6199] chdir("./18") = 0 [pid 6199] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6199] setpgid(0, 0) = 0 [pid 6199] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6199] write(3, "1000", 4) = 4 [pid 6199] close(3) = 0 [pid 6199] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6199] write(1, "executing program\n", 18executing program ) = 18 [pid 6199] memfd_create("syzkaller", 0) = 3 [pid 6199] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 117.990634][ T5227] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 12 [ 118.023178][ T5227] bcachefs (loop3): unshutdown complete, journal seq 12 [ 118.057904][ T5227] bcachefs (loop3): done going read-only, filesystem not clean [ 118.125862][ T5227] bcachefs (loop3): shutdown complete [pid 6198] 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 [pid 6197] 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 [pid 6199] 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 [pid 6194] <... write resumed>) = 16777216 [pid 6194] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6194] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6194] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6194] close(3) = 0 [pid 6194] close(4) = 0 [pid 6194] mkdir("./file0", 0777) = 0 [ 118.397434][ T6194] loop2: detected capacity change from 0 to 32768 [pid 6194] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6199] <... write resumed>) = 16777216 [pid 6199] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6198] <... write resumed>) = 16777216 [pid 6199] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6197] <... write resumed>) = 16777216 [pid 6198] munmap(0x7f4aa8000000, 138412032 [pid 6199] <... openat resumed>) = 4 [pid 6199] ioctl(4, LOOP_SET_FD, 3 [pid 6198] <... munmap resumed>) = 0 [pid 6197] munmap(0x7f4aa8000000, 138412032 [pid 6198] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6198] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6199] <... ioctl resumed>) = 0 [pid 6197] <... munmap resumed>) = 0 [pid 6198] close(3) = 0 [pid 6199] close(3 [pid 6198] close(4 [pid 6199] <... close resumed>) = 0 [pid 6199] close(4 [pid 6198] <... close resumed>) = 0 [pid 6197] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 6198] mkdir("./file0", 0777 [pid 6197] <... openat resumed>) = 4 [pid 6199] <... close resumed>) = 0 [ 118.641926][ T6199] loop4: detected capacity change from 0 to 32768 [ 118.644702][ T6198] loop1: detected capacity change from 0 to 32768 [pid 6197] ioctl(4, LOOP_SET_FD, 3 [pid 6199] mkdir("./file0", 0777 [pid 6198] <... mkdir resumed>) = 0 [pid 6199] <... mkdir resumed>) = 0 [pid 6198] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6199] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6197] <... ioctl resumed>) = 0 [pid 6197] close(3) = 0 [pid 6197] close(4) = 0 [pid 6197] mkdir("./file0", 0777) = 0 [ 118.682487][ T6197] loop0: detected capacity change from 0 to 32768 [ 118.953521][ T6194] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 118.963285][ T6197] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 118.990808][ T6194] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 118.999936][ T6198] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 119.025314][ T6198] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 119.039859][ T6197] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 119.048048][ T6197] bcachefs (loop0): Version upgrade required: [ 119.048048][ T6197] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 119.048048][ T6197] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 119.048048][ T6197] 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 [ 119.048135][ T6199] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 119.130325][ T6199] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 119.141501][ T6197] bcachefs (loop0): dropping and reconstructing all alloc info [pid 6197] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5227] <... umount2 resumed>) = 0 [pid 5227] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 119.211247][ T6197] bcachefs (loop0): check_topology... done [ 119.217173][ T6197] bcachefs (loop0): accounting_read... done [ 119.246161][ T6197] bcachefs (loop0): alloc_read... done [pid 5227] newfstatat(AT_FDCWD, "./23/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./23/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 119.270339][ T6197] bcachefs (loop0): stripes_read... done [ 119.276087][ T6197] bcachefs (loop0): snapshots_read... done [ 119.294395][ T6198] bcachefs: bch2_fs_get_tree() error: EINVAL [ 119.300240][ T6197] bcachefs (loop0): check_allocations... [ 119.301272][ T6194] bcachefs: bch2_fs_get_tree() error: EINVAL [ 119.313492][ T6199] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6198] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6199] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6194] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5227] getdents64(4, [pid 6199] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6194] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6199] <... openat resumed>) = 3 [pid 6194] <... openat resumed>) = 3 [pid 5227] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 6199] ioctl(3, LOOP_CLR_FD [pid 6194] ioctl(3, LOOP_CLR_FD [pid 6199] <... ioctl resumed>) = 0 [pid 6194] <... ioctl resumed>) = 0 [pid 6199] close(3 [pid 6194] close(3 [pid 5227] getdents64(4, [pid 6198] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5227] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5227] close(4 [pid 6198] <... openat resumed>) = 3 [pid 5227] <... close resumed>) = 0 [pid 5227] rmdir("./23/file0" [ 119.325646][ T6197] done [pid 6198] ioctl(3, LOOP_CLR_FD) = 0 [pid 6198] close(3 [pid 5227] <... rmdir resumed>) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./23") = 0 [pid 5227] mkdir("./24", 0777) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5227] close(3) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6229 attached [pid 6229] set_robust_list(0x55555e217660, 24) = 0 [ 119.367185][ T6197] bcachefs (loop0): going read-write [pid 6229] chdir("./24" [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 6229 [pid 6229] <... chdir resumed>) = 0 [pid 6229] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6229] setpgid(0, 0 [pid 6197] <... mount resumed>) = 0 [pid 6229] <... setpgid resumed>) = 0 [pid 6229] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6197] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6197] chdir("./file0") = 0 [pid 6197] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6197] ioctl(4, LOOP_CLR_FD) = 0 [pid 6197] close(4) = 0 [pid 6197] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6229] <... openat resumed>) = 3 [pid 6197] <... openat resumed>) = 4 [pid 6229] write(3, "1000", 4 [pid 6197] exit_group(0) = ? [pid 6229] <... write resumed>) = 4 [pid 6197] +++ exited with 0 +++ [pid 6229] close(3 [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6197, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=29 /* 0.29 s */} --- [pid 6229] <... close resumed>) = 0 [pid 6229] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6229] write(1, "executing program\n", 18 [pid 5224] umount2("./22", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [ 119.426891][ T6197] bcachefs (loop0): done starting filesystem [pid 6229] <... write resumed>) = 18 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6229] memfd_create("syzkaller", 0 [pid 5224] openat(AT_FDCWD, "./22", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5224] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5224] umount2("./22/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./22/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6229] <... memfd_create resumed>) = 3 [pid 5224] unlink("./22/binderfs") = 0 [pid 6229] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5224] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6229] <... mmap resumed>) = 0x7f4aa8000000 [ 119.550373][ T5224] bcachefs (loop0): shutting down [ 119.558684][ T5224] bcachefs (loop0): going read-only [ 119.578713][ T5224] bcachefs (loop0): finished waiting for writes to stop [pid 6199] <... close resumed>) = 0 [pid 6194] <... close resumed>) = 0 [pid 6199] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6194] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6199] exit_group(0 [pid 6194] <... openat resumed>) = 3 [pid 6199] <... exit_group resumed>) = ? [pid 6194] exit_group(0 [pid 6199] +++ exited with 0 +++ [pid 6194] <... exit_group resumed>) = ? [pid 6194] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6199, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=42 /* 0.42 s */} --- [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6194, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=45 /* 0.45 s */} --- [ 119.609736][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [pid 5228] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... restart_syscall resumed>) = 0 [pid 6198] <... close resumed>) = 0 [pid 5228] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6198] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] <... openat resumed>) = 3 [pid 6198] <... openat resumed>) = 3 [pid 6198] exit_group(0) = ? [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] getdents64(3, [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6198] +++ exited with 0 +++ [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5228] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... openat resumed>) = 3 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(3, "", [pid 5228] newfstatat(AT_FDCWD, "./18/binderfs", [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6198, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=45 /* 0.45 s */} --- [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5228] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] getdents64(3, [pid 5225] <... restart_syscall resumed>) = 0 [pid 5228] unlink("./18/binderfs") = 0 [pid 5228] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./24", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./18/bus", [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./24", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5228] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./18/bus" [pid 5226] newfstatat(AT_FDCWD, "./21/binderfs", [pid 5225] <... openat resumed>) = 3 [pid 5228] <... unlink resumed>) = 0 [pid 5225] newfstatat(3, "", [pid 5228] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] unlink("./21/binderfs" [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] newfstatat(AT_FDCWD, "./18/file0", [pid 5226] <... unlink resumed>) = 0 [pid 5225] getdents64(3, [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./21/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] newfstatat(AT_FDCWD, "./21/bus", [pid 5225] umount2("./24/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... openat resumed>) = 4 [pid 5228] newfstatat(4, "", [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] unlink("./21/bus" [pid 5225] newfstatat(AT_FDCWD, "./24/binderfs", [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] getdents64(4, [pid 5226] <... unlink resumed>) = 0 [pid 5225] unlink("./24/binderfs" [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] close(4 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... unlink resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 5226] newfstatat(AT_FDCWD, "./21/file0", [pid 5228] rmdir("./18/file0" [pid 5225] umount2("./24/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... rmdir resumed>) = 0 [pid 5228] getdents64(3, [pid 5226] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] newfstatat(AT_FDCWD, "./24/bus", [pid 5228] close(3 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... close resumed>) = 0 [pid 5226] openat(AT_FDCWD, "./21/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] unlink("./24/bus" [pid 5228] rmdir("./18" [pid 5225] <... unlink resumed>) = 0 [ 119.701256][ T2994] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [ 119.722563][ T2994] bcachefs (loop0): fatal error - emergency read only [ 119.732802][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 13 [pid 5228] <... rmdir resumed>) = 0 [pid 5226] <... openat resumed>) = 4 [pid 5225] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] mkdir("./19", 0777 [pid 5226] newfstatat(4, "", [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] newfstatat(AT_FDCWD, "./24/file0", [pid 5228] <... mkdir resumed>) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5226] getdents64(4, [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... openat resumed>) = 3 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] getdents64(4, [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] openat(AT_FDCWD, "./24/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] close(4) = 0 [pid 5225] <... openat resumed>) = 4 [pid 5226] rmdir("./21/file0" [pid 5225] newfstatat(4, "", [pid 5226] <... rmdir resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, [pid 5225] getdents64(4, [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] close(3 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5226] <... close resumed>) = 0 [pid 5225] getdents64(4, [pid 5226] rmdir("./21" [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] <... rmdir resumed>) = 0 [pid 5228] close(3 [pid 5225] close(4 [pid 5226] mkdir("./22", 0777 [pid 5228] <... close resumed>) = 0 [pid 5225] <... close resumed>) = 0 [pid 5226] <... mkdir resumed>) = 0 [pid 5225] rmdir("./24/file0" [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5225] <... rmdir resumed>) = 0 ./strace-static-x86_64: Process 6233 attached [pid 5226] <... openat resumed>) = 3 [pid 6233] set_robust_list(0x55555e217660, 24 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 6233 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 6233] <... set_robust_list resumed>) = 0 [pid 5225] getdents64(3, [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] close(3 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 6233] chdir("./19" [pid 5226] <... close resumed>) = 0 [pid 5225] close(3 [pid 6233] <... chdir resumed>) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6233] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5225] <... close resumed>) = 0 [pid 5225] rmdir("./24" [pid 6233] <... prctl resumed>) = 0 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 6234 ./strace-static-x86_64: Process 6234 attached [ 119.752865][ T5224] bcachefs (loop0): unshutdown complete, journal seq 13 [ 119.764069][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [pid 6233] setpgid(0, 0 [pid 5225] <... rmdir resumed>) = 0 [pid 6234] set_robust_list(0x55555e217660, 24) = 0 [pid 6233] <... setpgid resumed>) = 0 [pid 5225] mkdir("./25", 0777 [pid 6229] 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 [pid 5225] <... mkdir resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6233] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6234] chdir("./22") = 0 [pid 6234] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6233] <... openat resumed>) = 3 [pid 5225] <... openat resumed>) = 3 [pid 6233] write(3, "1000", 4 [pid 5225] ioctl(3, LOOP_CLR_FD [pid 6233] <... write resumed>) = 4 [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 6233] close(3 [pid 5225] close(3 [pid 6233] <... close resumed>) = 0 [pid 6234] setpgid(0, 0 [pid 6233] symlink("/dev/binderfs", "./binderfs" [pid 5225] <... close resumed>) = 0 [pid 6233] <... symlink resumed>) = 0 [pid 6233] write(1, "executing program\n", 18executing program [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6233] <... write resumed>) = 18 [pid 6234] <... setpgid resumed>) = 0 [pid 6233] memfd_create("syzkaller", 0) = 3 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6235 [pid 6234] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6233] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0./strace-static-x86_64: Process 6235 attached ) = 0x7f4aa8000000 [pid 6235] set_robust_list(0x55555e217660, 24 [pid 6234] <... openat resumed>) = 3 [ 119.801059][ T5224] bcachefs (loop0): shutdown complete [pid 6235] <... set_robust_list resumed>) = 0 [pid 6234] write(3, "1000", 4 [pid 6235] chdir("./25") = 0 [pid 6235] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6235] setpgid(0, 0) = 0 [pid 6235] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6235] write(3, "1000", 4) = 4 [pid 6235] close(3) = 0 [pid 6235] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6235] write(1, "executing program\n", 18executing program [pid 6234] <... write resumed>) = 4 [pid 6235] <... write resumed>) = 18 [pid 6235] memfd_create("syzkaller", 0 [pid 6234] close(3) = 0 [pid 6234] symlink("/dev/binderfs", "./binderfs" [pid 6235] <... memfd_create resumed>) = 3 [pid 6234] <... symlink resumed>) = 0 [pid 6235] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6234] write(1, "executing program\n", 18executing program [pid 6235] <... mmap resumed>) = 0x7f4aa8000000 [pid 6234] <... write resumed>) = 18 [pid 6234] memfd_create("syzkaller", 0) = 3 [pid 6234] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6234] 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 [pid 6233] 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 [pid 6235] 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 [pid 6229] <... write resumed>) = 16777216 [pid 6229] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6229] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6229] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6229] close(3) = 0 [pid 6229] close(4) = 0 [pid 6229] mkdir("./file0", 0777) = 0 [ 120.249120][ T6229] loop3: detected capacity change from 0 to 32768 [pid 6229] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6234] <... write resumed>) = 16777216 [pid 6234] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6234] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6234] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6234] close(3) = 0 [pid 6234] close(4) = 0 [pid 6234] mkdir("./file0", 0777) = 0 [pid 6234] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6233] <... write resumed>) = 16777216 [pid 6233] munmap(0x7f4aa8000000, 138412032 [pid 6235] <... write resumed>) = 16777216 [ 120.450101][ T6234] loop2: detected capacity change from 0 to 32768 [pid 6235] munmap(0x7f4aa8000000, 138412032 [pid 6233] <... munmap resumed>) = 0 [pid 6233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6233] ioctl(4, LOOP_SET_FD, 3 [pid 6235] <... munmap resumed>) = 0 [pid 6235] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6233] <... ioctl resumed>) = 0 [pid 6235] ioctl(4, LOOP_SET_FD, 3 [pid 6233] close(3) = 0 [pid 6233] close(4) = 0 [pid 6233] mkdir("./file0", 0777) = 0 [pid 6233] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6235] <... ioctl resumed>) = 0 [pid 6235] close(3) = 0 [pid 6235] close(4) = 0 [pid 6235] mkdir("./file0", 0777) = 0 [ 120.533572][ T6233] loop4: detected capacity change from 0 to 32768 [ 120.546745][ T6235] loop1: detected capacity change from 0 to 32768 [ 120.606215][ T6229] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 120.629610][ T6229] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 120.637883][ T6229] bcachefs (loop3): Version upgrade required: [ 120.637883][ T6229] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 120.637883][ T6229] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 120.637883][ T6229] 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 [ 120.686110][ T6233] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 120.711765][ T6229] bcachefs (loop3): dropping and reconstructing all alloc info [ 120.719452][ T6233] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 120.736809][ T6229] bcachefs (loop3): check_topology... done [ 120.750796][ T6229] bcachefs (loop3): accounting_read... done [ 120.757372][ T6229] bcachefs (loop3): alloc_read... done [ 120.783223][ T6229] bcachefs (loop3): stripes_read... done [ 120.788437][ T6234] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 120.789685][ T6229] bcachefs (loop3): snapshots_read... [ 120.799405][ T6234] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 120.816178][ T6229] done [ 120.836415][ T6229] bcachefs (loop3): check_allocations... [ 120.850710][ T6235] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [pid 6235] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6233] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 6233] ioctl(3, LOOP_CLR_FD) = 0 [ 120.892795][ T6235] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 120.906629][ T6233] bcachefs: bch2_fs_get_tree() error: EINVAL [ 120.957964][ T6229] done [pid 6233] close(3 [pid 6229] <... mount resumed>) = 0 [pid 6229] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6229] chdir("./file0") = 0 [pid 6229] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6229] ioctl(4, LOOP_CLR_FD) = 0 [pid 6229] close(4) = 0 [pid 6229] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6234] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6229] <... openat resumed>) = 4 [pid 6229] exit_group(0 [pid 6234] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6229] <... exit_group resumed>) = ? [pid 6234] <... openat resumed>) = 3 [pid 6229] +++ exited with 0 +++ [ 120.978683][ T6229] bcachefs (loop3): going read-write [ 120.997862][ T6229] bcachefs (loop3): done starting filesystem [ 121.018389][ T6234] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6234] ioctl(3, LOOP_CLR_FD [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6229, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=35 /* 0.35 s */} --- [pid 6234] <... ioctl resumed>) = 0 [pid 5227] umount2("./24", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6234] close(3 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./24", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5227] umount2("./24/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./24/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5227] unlink("./24/binderfs") = 0 [pid 5227] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6235] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6235] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 6235] ioctl(3, LOOP_CLR_FD) = 0 [ 121.111960][ T6235] bcachefs: bch2_fs_get_tree() error: EINVAL [ 121.140736][ T5227] bcachefs (loop3): shutting down [ 121.146061][ T5227] bcachefs (loop3): going read-only [pid 6235] close(3 [pid 5224] <... umount2 resumed>) = 0 [pid 5224] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] newfstatat(AT_FDCWD, "./22/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./22/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5224] close(4) = 0 [pid 5224] rmdir("./22/file0") = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [pid 5224] rmdir("./22") = 0 [pid 5224] mkdir("./23", 0777) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 121.177687][ T5227] bcachefs (loop3): finished waiting for writes to stop [pid 5224] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5224] close(3) = 0 [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6267 attached [pid 6233] <... close resumed>) = 0 [pid 6267] set_robust_list(0x55555e217660, 24 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 6267 [pid 6267] <... set_robust_list resumed>) = 0 [pid 6267] chdir("./23") = 0 [pid 6267] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6267] setpgid(0, 0) = 0 [pid 6267] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6267] write(3, "1000", 4) = 4 [pid 6267] close(3) = 0 executing program [pid 6267] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6267] write(1, "executing program\n", 18) = 18 [pid 6267] memfd_create("syzkaller", 0 [pid 6233] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6267] <... memfd_create resumed>) = 3 [pid 6267] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6233] exit_group(0 [pid 6267] <... mmap resumed>) = 0x7f4aa8000000 [pid 6233] <... exit_group resumed>) = ? [pid 6233] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6233, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=35 /* 0.35 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./19/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./19/binderfs") = 0 [pid 5228] umount2("./19/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./19/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./19/bus") = 0 [ 121.249685][ T5227] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5228] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./19/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5228] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5228] close(4) = 0 [pid 5228] rmdir("./19/file0") = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] close(3) = 0 [pid 5228] rmdir("./19") = 0 [pid 5228] mkdir("./20", 0777) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5228] close(3) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6268 attached , child_tidptr=0x55555e217650) = 6268 [pid 6268] set_robust_list(0x55555e217660, 24) = 0 [pid 6268] chdir("./20") = 0 [pid 6268] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6268] setpgid(0, 0) = 0 [pid 6268] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6268] write(3, "1000", 4) = 4 [pid 6268] close(3) = 0 [pid 6268] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6268] write(1, "executing program\n", 18) = 18 [pid 6235] <... close resumed>) = 0 [pid 6268] memfd_create("syzkaller", 0 [pid 6235] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6235] exit_group(0) = ? [pid 6268] <... memfd_create resumed>) = 3 [pid 6235] +++ exited with 0 +++ [pid 6268] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6235, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=46 /* 0.46 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5225] umount2("./25", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 121.344981][ T35] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [ 121.380419][ T35] bcachefs (loop3): fatal error - emergency read only [pid 5225] openat(AT_FDCWD, "./25", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./25/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./25/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./25/binderfs") = 0 [pid 6234] <... close resumed>) = 0 [pid 5225] umount2("./25/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6234] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6234] exit_group(0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6234] <... exit_group resumed>) = ? [pid 5225] newfstatat(AT_FDCWD, "./25/bus", [pid 6234] +++ exited with 0 +++ [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6234, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=44 /* 0.44 s */} --- [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./25/bus") = 0 [pid 5225] umount2("./25/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./25/file0", [pid 5226] umount2("./22", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./22", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5226] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] umount2("./22/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 121.401870][ T5227] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 14 [ 121.417112][ T5227] bcachefs (loop3): unshutdown complete, journal seq 14 [ 121.425353][ T5227] bcachefs (loop3): done going read-only, filesystem not clean [pid 5226] newfstatat(AT_FDCWD, "./22/binderfs", [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./25/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] unlink("./22/binderfs") = 0 [pid 5226] umount2("./22/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./22/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./22/bus") = 0 [pid 5226] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./25/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5225] newfstatat(4, "", [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] newfstatat(AT_FDCWD, "./22/file0", [pid 5225] getdents64(4, [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] getdents64(4, [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./22/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4) = 0 [pid 5226] rmdir("./22/file0") = 0 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] close(4 [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] <... close resumed>) = 0 [pid 5226] close(3 [pid 5225] rmdir("./25/file0" [pid 5226] <... close resumed>) = 0 [pid 5226] rmdir("./22") = 0 [pid 5225] <... rmdir resumed>) = 0 [pid 5226] mkdir("./23", 0777 [pid 5225] getdents64(3, [pid 5226] <... mkdir resumed>) = 0 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6269 attached , child_tidptr=0x55555e217650) = 6269 [pid 6269] set_robust_list(0x55555e217660, 24) = 0 [pid 6269] chdir("./23" [pid 5225] close(3) = 0 [pid 6269] <... chdir resumed>) = 0 [pid 6269] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6269] setpgid(0, 0) = 0 [pid 6269] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] rmdir("./25" [pid 6269] <... openat resumed>) = 3 [pid 6269] write(3, "1000", 4) = 4 [pid 6269] close(3) = 0 [pid 6269] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6269] write(1, "executing program\n", 18 [pid 5225] <... rmdir resumed>) = 0 executing program [pid 6269] <... write resumed>) = 18 [ 121.467199][ T5227] bcachefs (loop3): shutdown complete [pid 6269] memfd_create("syzkaller", 0) = 3 [pid 5225] mkdir("./26", 0777 [pid 6269] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5225] <... mkdir resumed>) = 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6270 attached , child_tidptr=0x55555e217650) = 6270 [pid 6270] set_robust_list(0x55555e217660, 24) = 0 [pid 6270] chdir("./26") = 0 [pid 6270] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6270] setpgid(0, 0) = 0 [pid 6270] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6270] write(3, "1000", 4 [pid 6267] 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 [pid 6270] <... write resumed>) = 4 [pid 6270] close(3) = 0 [pid 6270] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6270] write(1, "executing program\n", 18) = 18 [pid 6270] memfd_create("syzkaller", 0) = 3 [pid 6270] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6268] 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 [pid 6269] 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 [pid 6270] 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 [pid 6267] <... write resumed>) = 16777216 [pid 6267] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6267] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6267] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6267] close(3) = 0 [pid 6267] close(4) = 0 [pid 6267] mkdir("./file0", 0777) = 0 [ 122.013532][ T6267] loop0: detected capacity change from 0 to 32768 [pid 6267] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6268] <... write resumed>) = 16777216 [pid 6268] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6268] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6268] ioctl(4, LOOP_SET_FD, 3 [pid 6269] <... write resumed>) = 16777216 [pid 6268] <... ioctl resumed>) = 0 [pid 6269] munmap(0x7f4aa8000000, 138412032 [pid 6268] close(3) = 0 [pid 6268] close(4) = 0 [pid 6268] mkdir("./file0", 0777 [pid 6269] <... munmap resumed>) = 0 [pid 6269] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6269] ioctl(4, LOOP_SET_FD, 3 [pid 6268] <... mkdir resumed>) = 0 [ 122.120503][ T6268] loop4: detected capacity change from 0 to 32768 [pid 6268] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6269] <... ioctl resumed>) = 0 [pid 6269] close(3) = 0 [pid 6269] close(4) = 0 [pid 6269] mkdir("./file0", 0777) = 0 [ 122.168725][ T6269] loop2: detected capacity change from 0 to 32768 [pid 6269] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6270] <... write resumed>) = 16777216 [pid 6270] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6270] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6270] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6270] close(3) = 0 [pid 6270] close(4) = 0 [pid 6270] mkdir("./file0", 0777) = 0 [ 122.260872][ T6270] loop1: detected capacity change from 0 to 32768 [ 122.414706][ T6268] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 122.415044][ T6267] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 122.432629][ T6268] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 122.450357][ T6267] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 122.463128][ T6267] bcachefs (loop0): Version upgrade required: [ 122.463128][ T6267] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 122.463128][ T6267] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 122.463128][ T6267] 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 [ 122.487859][ T6269] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 122.543308][ T6269] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 122.587986][ T6267] bcachefs (loop0): dropping and reconstructing all alloc info [ 122.609743][ T6270] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 122.648846][ T6270] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 6270] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6269] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6269] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 6269] ioctl(3, LOOP_CLR_FD) = 0 [ 122.701474][ T6269] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6269] close(3 [pid 6268] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6268] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [ 122.750869][ T6268] bcachefs: bch2_fs_get_tree() error: EINVAL [ 122.790871][ T6267] bcachefs (loop0): check_topology... done [pid 6268] ioctl(3, LOOP_CLR_FD) = 0 [ 122.798829][ T6267] bcachefs (loop0): accounting_read... done [ 122.831752][ T6267] bcachefs (loop0): alloc_read... done [ 122.839052][ T6267] bcachefs (loop0): stripes_read... done [ 122.846522][ T6267] bcachefs (loop0): snapshots_read... done [pid 6268] close(3 [pid 5227] <... umount2 resumed>) = 0 [pid 6270] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5227] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6270] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 6270] ioctl(3, LOOP_CLR_FD) = 0 [pid 5227] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./24/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6270] close(3 [pid 5227] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./24/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5227] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5227] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5227] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [ 122.865048][ T6267] bcachefs (loop0): check_allocations... [ 122.867753][ T6270] bcachefs: bch2_fs_get_tree() error: EINVAL [ 122.907543][ T6267] done [pid 5227] close(4) = 0 [pid 5227] rmdir("./24/file0") = 0 [pid 5227] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5227] close(3) = 0 [pid 5227] rmdir("./24") = 0 [pid 5227] mkdir("./25", 0777 [pid 6267] <... mount resumed>) = 0 [pid 5227] <... mkdir resumed>) = 0 [pid 6267] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6267] chdir("./file0") = 0 [pid 6267] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6267] ioctl(4, LOOP_CLR_FD) = 0 [pid 6267] close(4) = 0 [pid 5227] openat(AT_FDCWD, "/dev/loop3", O_RDWR [ 122.950845][ T6267] bcachefs (loop0): going read-write [ 122.983614][ T6267] bcachefs (loop0): done starting filesystem [pid 6267] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5227] <... openat resumed>) = 3 [pid 5227] ioctl(3, LOOP_CLR_FD [pid 6269] <... close resumed>) = 0 [pid 6268] <... close resumed>) = 0 [pid 6267] exit_group(0 [pid 5227] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 6267] <... exit_group resumed>) = ? [pid 6267] +++ exited with 0 +++ [pid 5224] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6267, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=35 /* 0.35 s */} --- [pid 5227] close(3 [pid 5224] restart_syscall(<... resuming interrupted clone ...> [pid 5227] <... close resumed>) = 0 [pid 5227] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6268] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5224] <... restart_syscall resumed>) = 0 [pid 6268] exit_group(0./strace-static-x86_64: Process 6302 attached [pid 5227] <... clone resumed>, child_tidptr=0x55555e217650) = 6302 [pid 5224] umount2("./23", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6302] set_robust_list(0x55555e217660, 24 [pid 6269] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6268] <... exit_group resumed>) = ? [pid 5224] openat(AT_FDCWD, "./23", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6302] <... set_robust_list resumed>) = 0 [pid 5224] <... openat resumed>) = 3 [pid 5224] newfstatat(3, "", [pid 6302] chdir("./25" [pid 5224] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] getdents64(3, 0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 6302] <... chdir resumed>) = 0 [pid 5224] umount2("./23/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6302] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5224] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6302] <... prctl resumed>) = 0 [pid 5224] newfstatat(AT_FDCWD, "./23/binderfs", [pid 6302] setpgid(0, 0 [pid 6269] <... openat resumed>) = 3 [pid 6268] +++ exited with 0 +++ [pid 5224] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6268, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=48 /* 0.48 s */} --- [pid 5224] unlink("./23/binderfs") = 0 [pid 6269] exit_group(0 [pid 5224] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6302] <... setpgid resumed>) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6269] <... exit_group resumed>) = ? [pid 6302] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6302] write(3, "1000", 4) = 4 [pid 6302] close(3) = 0 [pid 6269] +++ exited with 0 +++ [pid 5228] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6302] symlink("/dev/binderfs", "./binderfs" [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6269, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5228] <... openat resumed>) = 3 [pid 5226] restart_syscall(<... resuming interrupted clone ...> [pid 6302] <... symlink resumed>) = 0 [pid 5228] newfstatat(3, "", executing program [pid 6302] write(1, "executing program\n", 18) = 18 [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6302] memfd_create("syzkaller", 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] <... restart_syscall resumed>) = 0 [pid 6302] <... memfd_create resumed>) = 3 [pid 6302] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 5228] newfstatat(AT_FDCWD, "./20/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./20/binderfs" [pid 5226] umount2("./23", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... unlink resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./23", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5228] umount2("./20/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] <... openat resumed>) = 3 [pid 5228] newfstatat(AT_FDCWD, "./20/bus", [pid 5226] newfstatat(3, "", [pid 5228] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] unlink("./20/bus" [pid 5226] getdents64(3, [pid 5228] <... unlink resumed>) = 0 [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] umount2("./23/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./23/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] unlink("./23/binderfs") = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] umount2("./23/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./20/file0", [ 123.089011][ T5224] bcachefs (loop0): shutting down [ 123.094956][ T5224] bcachefs (loop0): going read-only [ 123.110943][ T5224] bcachefs (loop0): finished waiting for writes to stop [pid 5226] newfstatat(AT_FDCWD, "./23/bus", [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6270] <... close resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6270] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5228] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] unlink("./23/bus" [pid 6270] <... openat resumed>) = 3 [pid 5228] <... openat resumed>) = 4 [pid 5226] <... unlink resumed>) = 0 [pid 5228] newfstatat(4, "", [pid 5226] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] newfstatat(AT_FDCWD, "./23/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./23/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5226] newfstatat(4, "", [pid 6270] exit_group(0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6270] <... exit_group resumed>) = ? [pid 5226] getdents64(4, [pid 6270] +++ exited with 0 +++ [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6270, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=42 /* 0.42 s */} --- [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] getdents64(4, [pid 5225] <... restart_syscall resumed>) = 0 [pid 5228] getdents64(4, [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5226] close(4 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] <... close resumed>) = 0 [pid 5228] getdents64(4, [pid 5226] rmdir("./23/file0" [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 5225] umount2("./26", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... rmdir resumed>) = 0 [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./26", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] <... openat resumed>) = 3 [pid 5225] newfstatat(3, "", [pid 5226] close(3 [pid 5228] close(4) = 0 [pid 5226] <... close resumed>) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] rmdir("./23" [pid 5225] getdents64(3, [pid 5226] <... rmdir resumed>) = 0 [pid 5228] rmdir("./20/file0" [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5226] mkdir("./24", 0777 [pid 5225] umount2("./26/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] <... rmdir resumed>) = 0 [pid 5228] getdents64(3, [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5225] newfstatat(AT_FDCWD, "./26/binderfs", [pid 5228] close(3 [pid 5225] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... close resumed>) = 0 [pid 5226] <... mkdir resumed>) = 0 [pid 5225] unlink("./26/binderfs" [pid 5228] rmdir("./20" [pid 5225] <... unlink resumed>) = 0 [pid 5228] <... rmdir resumed>) = 0 [pid 5225] umount2("./26/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] mkdir("./21", 0777 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] <... openat resumed>) = 3 [ 123.140107][ T5224] bcachefs (loop0): flushing journal and stopping allocators, journal seq 11 [pid 5225] newfstatat(AT_FDCWD, "./26/bus", [pid 5228] <... mkdir resumed>) = 0 [pid 5226] ioctl(3, LOOP_CLR_FD [pid 5225] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5226] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] unlink("./26/bus" [pid 5226] close(3 [pid 5228] <... openat resumed>) = 3 [pid 5226] <... close resumed>) = 0 [pid 5225] <... unlink resumed>) = 0 [pid 5225] umount2("./26/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5228] ioctl(3, LOOP_CLR_FD [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5225] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./26/file0", [pid 5228] close(3./strace-static-x86_64: Process 6303 attached ) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6303] set_robust_list(0x55555e217660, 24./strace-static-x86_64: Process 6304 attached ) = 0 [pid 5226] <... clone resumed>, child_tidptr=0x55555e217650) = 6303 [pid 5225] umount2("./26/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6304] set_robust_list(0x55555e217660, 24 [pid 6303] chdir("./24" [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 6304 [pid 5225] openat(AT_FDCWD, "./26/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6304] <... set_robust_list resumed>) = 0 [pid 6303] <... chdir resumed>) = 0 [pid 6304] chdir("./21" [pid 5225] <... openat resumed>) = 4 [pid 6303] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5225] newfstatat(4, "", [pid 6303] setpgid(0, 0) = 0 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6303] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5225] getdents64(4, [pid 6303] <... openat resumed>) = 3 [pid 6303] write(3, "1000", 4 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 6304] <... chdir resumed>) = 0 [pid 6303] <... write resumed>) = 4 [pid 5225] getdents64(4, [pid 6303] close(3 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 6304] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5225] close(4 [pid 6303] <... close resumed>) = 0 [pid 6304] setpgid(0, 0 [pid 5225] <... close resumed>) = 0 [pid 6304] <... setpgid resumed>) = 0 [pid 6303] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6304] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXECexecuting program [pid 6303] write(1, "executing program\n", 18 [pid 5225] rmdir("./26/file0" [pid 6304] <... openat resumed>) = 3 [pid 6303] <... write resumed>) = 18 [pid 5225] <... rmdir resumed>) = 0 [pid 6303] memfd_create("syzkaller", 0 [pid 5225] getdents64(3, [pid 6304] write(3, "1000", 4 [pid 6303] <... memfd_create resumed>) = 3 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 6304] <... write resumed>) = 4 [pid 6303] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] close(3 [pid 6304] close(3 [pid 6303] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] <... close resumed>) = 0 [pid 6304] <... close resumed>) = 0 [pid 5225] rmdir("./26") = 0 [pid 6304] symlink("/dev/binderfs", "./binderfs" [pid 5225] mkdir("./27", 0777 [pid 6304] <... symlink resumed>) = 0 [pid 5225] <... mkdir resumed>) = 0 [pid 6304] write(1, "executing program\n", 18executing program ) = 18 [ 123.220681][ T35] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [pid 6304] memfd_create("syzkaller", 0 [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5225] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5225] close(3) = 0 [pid 6304] <... memfd_create resumed>) = 3 [pid 6302] 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 [pid 6304] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6304] <... mmap resumed>) = 0x7f4aa8000000 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6305 [ 123.275183][ T35] bcachefs (loop0): fatal error - emergency read only [ 123.292137][ T5224] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 14 ./strace-static-x86_64: Process 6305 attached [pid 6305] set_robust_list(0x55555e217660, 24) = 0 [pid 6305] chdir("./27") = 0 [pid 6305] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6305] setpgid(0, 0) = 0 [ 123.318953][ T5224] bcachefs (loop0): unshutdown complete, journal seq 14 [pid 6305] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6305] write(3, "1000", 4) = 4 [pid 6305] close(3) = 0 [pid 6305] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6305] write(1, "executing program\n", 18) = 18 [pid 6305] memfd_create("syzkaller", 0) = 3 [pid 6305] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 123.351089][ T5224] bcachefs (loop0): done going read-only, filesystem not clean [ 123.417634][ T5224] bcachefs (loop0): shutdown complete [pid 6304] 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 [pid 6303] 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 [pid 6302] <... write resumed>) = 16777216 [pid 6302] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6305] 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 [pid 6302] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6302] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6302] close(3) = 0 [pid 6302] close(4) = 0 [pid 6302] mkdir("./file0", 0777) = 0 [ 123.753430][ T6302] loop3: detected capacity change from 0 to 32768 [pid 6302] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6303] <... write resumed>) = 16777216 [pid 6303] munmap(0x7f4aa8000000, 138412032 [pid 6304] <... write resumed>) = 16777216 [pid 6303] <... munmap resumed>) = 0 [pid 6303] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6303] ioctl(4, LOOP_SET_FD, 3 [pid 6304] munmap(0x7f4aa8000000, 138412032 [pid 6303] <... ioctl resumed>) = 0 [pid 6303] close(3) = 0 [pid 6304] <... munmap resumed>) = 0 [pid 6303] close(4 [pid 6304] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6303] <... close resumed>) = 0 [pid 6304] ioctl(4, LOOP_SET_FD, 3 [pid 6303] mkdir("./file0", 0777) = 0 [pid 6303] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6304] <... ioctl resumed>) = 0 [pid 6304] close(3) = 0 [pid 6304] close(4) = 0 [pid 6304] mkdir("./file0", 0777) = 0 [ 123.869594][ T6303] loop2: detected capacity change from 0 to 32768 [ 123.899550][ T6304] loop4: detected capacity change from 0 to 32768 [pid 6304] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6305] <... write resumed>) = 16777216 [pid 6305] munmap(0x7f4aa8000000, 138412032) = 0 [pid 6305] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6305] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6305] close(3) = 0 [pid 6305] close(4) = 0 [pid 6305] mkdir("./file0", 0777) = 0 [ 124.007402][ T6305] loop1: detected capacity change from 0 to 32768 [ 124.176149][ T6304] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 124.176503][ T6302] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,erasure_code,degraded,no_splitbrain_check,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc,nocow [ 124.204102][ T6303] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 124.217297][ T6303] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 124.220566][ T6305] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 124.233004][ T6302] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 124.254649][ T6302] bcachefs (loop3): Version upgrade required: [ 124.254649][ T6302] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 124.254649][ T6302] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 124.254649][ T6302] 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 [ 124.258911][ T6304] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 124.333901][ T6305] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 124.408935][ T6302] bcachefs (loop3): dropping and reconstructing all alloc info [pid 6305] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6303] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6303] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 6304] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 124.478324][ T6303] bcachefs: bch2_fs_get_tree() error: EINVAL [ 124.497752][ T6302] bcachefs (loop3): check_topology... done [ 124.512011][ T6304] bcachefs: bch2_fs_get_tree() error: EINVAL [ 124.513325][ T6305] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6303] ioctl(3, LOOP_CLR_FD [pid 6305] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6304] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6303] <... ioctl resumed>) = 0 [pid 6305] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 6305] ioctl(3, LOOP_CLR_FD) = 0 [pid 6305] close(3 [pid 6303] close(3 [pid 6304] <... openat resumed>) = 3 [pid 6304] ioctl(3, LOOP_CLR_FD) = 0 [ 124.529257][ T6302] bcachefs (loop3): accounting_read... done [ 124.564367][ T6302] bcachefs (loop3): alloc_read... done [ 124.578882][ T6302] bcachefs (loop3): stripes_read... done [ 124.595917][ T6302] bcachefs (loop3): snapshots_read... done [pid 6304] close(3 [pid 5224] <... umount2 resumed>) = 0 [pid 5224] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 124.620605][ T6302] bcachefs (loop3): check_allocations... done [ 124.735386][ T6302] bcachefs (loop3): going read-write [pid 5224] newfstatat(AT_FDCWD, "./23/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5224] umount2("./23/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5224] openat(AT_FDCWD, "./23/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 6302] <... mount resumed>) = 0 [pid 5224] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6302] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6302] chdir("./file0") = 0 [pid 6302] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6302] ioctl(4, LOOP_CLR_FD) = 0 [pid 6302] close(4) = 0 [pid 5224] getdents64(4, 0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5224] getdents64(4, 0x55555e220730 /* 0 entries */, 32768) = 0 [pid 6302] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5224] close(4 [pid 6302] exit_group(0 [pid 6305] <... close resumed>) = 0 [pid 6302] <... exit_group resumed>) = ? [pid 5224] <... close resumed>) = 0 [pid 6302] +++ exited with 0 +++ [pid 5224] rmdir("./23/file0" [pid 5227] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6302, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=33 /* 0.33 s */} --- [pid 5227] restart_syscall(<... resuming interrupted clone ...> [pid 6305] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5227] <... restart_syscall resumed>) = 0 [pid 6305] <... openat resumed>) = 3 [pid 5227] umount2("./25", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] openat(AT_FDCWD, "./25", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5227] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6305] exit_group(0 [pid 5227] getdents64(3, [pid 5224] <... rmdir resumed>) = 0 [pid 6305] <... exit_group resumed>) = ? [pid 5227] <... getdents64 resumed>0x55555e2186f0 /* 4 entries */, 32768) = 112 [pid 5227] umount2("./25/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5227] newfstatat(AT_FDCWD, "./25/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6305] +++ exited with 0 +++ [pid 5227] unlink("./25/binderfs") = 0 [pid 5225] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6305, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=48 /* 0.48 s */} --- [pid 5227] umount2("./25/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] restart_syscall(<... resuming interrupted clone ...> [pid 5224] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5224] close(3) = 0 [ 124.770199][ T6302] bcachefs (loop3): done starting filesystem [pid 5224] rmdir("./23" [pid 5225] <... restart_syscall resumed>) = 0 [pid 5225] umount2("./27", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./27", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5225] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5224] <... rmdir resumed>) = 0 [pid 5225] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] umount2("./27/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./27/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./27/binderfs") = 0 [pid 5224] mkdir("./24", 0777 [pid 5225] umount2("./27/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./27/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] unlink("./27/bus") = 0 [pid 5225] umount2("./27/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] newfstatat(AT_FDCWD, "./27/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] umount2("./27/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5225] openat(AT_FDCWD, "./27/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5224] <... mkdir resumed>) = 0 [pid 5225] newfstatat(4, "", [pid 6304] <... close resumed>) = 0 [pid 6303] <... close resumed>) = 0 [pid 5224] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 6304] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6304] <... openat resumed>) = 3 [pid 5225] getdents64(4, [pid 5224] <... openat resumed>) = 3 [pid 6303] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5225] getdents64(4, [pid 5224] ioctl(3, LOOP_CLR_FD [pid 6303] <... openat resumed>) = 3 [pid 5225] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 6304] exit_group(0) = ? [pid 6303] exit_group(0 [pid 5224] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 6303] <... exit_group resumed>) = ? [pid 5224] close(3 [pid 6304] +++ exited with 0 +++ [pid 5228] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6304, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=45 /* 0.45 s */} --- [pid 5228] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5228] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5228] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5228] getdents64(3, 0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5228] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./21/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] unlink("./21/binderfs" [pid 6303] +++ exited with 0 +++ [pid 5225] close(4 [pid 5224] <... close resumed>) = 0 [pid 5226] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6303, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=43 /* 0.43 s */} --- [ 124.838142][ T5227] bcachefs (loop3): shutting down [ 124.855617][ T5227] bcachefs (loop3): going read-only [ 124.869140][ T5227] bcachefs (loop3): finished waiting for writes to stop [pid 5224] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5228] <... unlink resumed>) = 0 [pid 5225] <... close resumed>) = 0 [pid 5225] rmdir("./27/file0" [pid 5226] umount2("./24", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... rmdir resumed>) = 0 [pid 5228] umount2("./21/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] openat(AT_FDCWD, "./24", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5225] getdents64(3, [pid 5228] newfstatat(AT_FDCWD, "./21/bus", [pid 5226] <... openat resumed>) = 3 [pid 5225] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5228] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5226] newfstatat(3, "", [pid 5225] close(3 [pid 5228] unlink("./21/bus" [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5225] <... close resumed>) = 0 [pid 5228] <... unlink resumed>) = 0 [pid 5226] getdents64(3, [pid 5225] rmdir("./27" [pid 5228] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... getdents64 resumed>0x55555e2186f0 /* 5 entries */, 32768) = 136 [pid 5225] <... rmdir resumed>) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] umount2("./24/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] newfstatat(AT_FDCWD, "./21/file0", [pid 5226] newfstatat(AT_FDCWD, "./24/binderfs", [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5226] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5228] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5226] unlink("./24/binderfs" [pid 5225] mkdir("./28", 0777./strace-static-x86_64: Process 6337 attached [pid 5228] openat(AT_FDCWD, "./21/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5226] <... unlink resumed>) = 0 [pid 5224] <... clone resumed>, child_tidptr=0x55555e217650) = 6337 [pid 6337] set_robust_list(0x55555e217660, 24 [pid 5228] <... openat resumed>) = 4 [pid 5226] umount2("./24/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] <... mkdir resumed>) = 0 [pid 6337] <... set_robust_list resumed>) = 0 [pid 5228] newfstatat(4, "", [pid 6337] chdir("./24" [pid 5228] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6337] <... chdir resumed>) = 0 [pid 6337] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5228] getdents64(4, [pid 5226] newfstatat(AT_FDCWD, "./24/bus", [pid 6337] <... prctl resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5226] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6337] setpgid(0, 0) = 0 [pid 5228] getdents64(4, [pid 5226] unlink("./24/bus" [pid 5225] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6337] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5228] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 [pid 6337] <... openat resumed>) = 3 [pid 5228] close(4 [pid 5226] <... unlink resumed>) = 0 [pid 5225] <... openat resumed>) = 3 [pid 6337] write(3, "1000", 4 [pid 5228] <... close resumed>) = 0 [pid 5226] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5225] ioctl(3, LOOP_CLR_FD [pid 5228] rmdir("./21/file0" [pid 5225] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5228] <... rmdir resumed>) = 0 [pid 5226] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5225] close(3 [pid 5228] getdents64(3, [pid 5226] newfstatat(AT_FDCWD, "./24/file0", [pid 5225] <... close resumed>) = 0 [pid 5228] <... getdents64 resumed>0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5225] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6337] <... write resumed>) = 4 [pid 5228] close(3./strace-static-x86_64: Process 6338 attached ) = 0 [pid 5226] umount2("./24/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5228] rmdir("./21" [pid 5226] openat(AT_FDCWD, "./24/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6338] set_robust_list(0x55555e217660, 24 [pid 5228] <... rmdir resumed>) = 0 [pid 6338] <... set_robust_list resumed>) = 0 [pid 6337] close(3 [pid 5226] <... openat resumed>) = 4 [pid 5225] <... clone resumed>, child_tidptr=0x55555e217650) = 6338 [pid 6338] chdir("./28" [pid 6337] <... close resumed>) = 0 executing program [pid 6338] <... chdir resumed>) = 0 [pid 6337] symlink("/dev/binderfs", "./binderfs" [pid 5228] mkdir("./22", 0777 [pid 5226] newfstatat(4, "", [pid 6337] <... symlink resumed>) = 0 [pid 6337] write(1, "executing program\n", 18) = 18 [pid 6338] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6337] memfd_create("syzkaller", 0 [pid 5228] <... mkdir resumed>) = 0 [pid 5226] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6337] <... memfd_create resumed>) = 3 [pid 6337] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 124.890441][ T5227] bcachefs (loop3): flushing journal and stopping allocators, journal seq 11 [pid 6338] <... prctl resumed>) = 0 [pid 5228] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5226] getdents64(4, [pid 5228] <... openat resumed>) = 3 [pid 5228] ioctl(3, LOOP_CLR_FD [pid 6338] setpgid(0, 0 [pid 5228] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5226] <... getdents64 resumed>0x55555e220730 /* 2 entries */, 32768) = 48 [pid 5228] close(3 [pid 6338] <... setpgid resumed>) = 0 [pid 5228] <... close resumed>) = 0 [pid 6338] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5226] getdents64(4, [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6338] <... openat resumed>) = 3 [pid 5226] <... getdents64 resumed>0x55555e220730 /* 0 entries */, 32768) = 0 ./strace-static-x86_64: Process 6339 attached [pid 6339] set_robust_list(0x55555e217660, 24) = 0 [pid 6339] chdir("./22" [pid 6338] write(3, "1000", 4 [pid 5228] <... clone resumed>, child_tidptr=0x55555e217650) = 6339 [pid 5226] close(4 [pid 6339] <... chdir resumed>) = 0 [pid 5226] <... close resumed>) = 0 [pid 6338] <... write resumed>) = 4 [pid 6339] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6338] close(3 [pid 5226] rmdir("./24/file0" [pid 6339] <... prctl resumed>) = 0 [pid 6339] setpgid(0, 0) = 0 [pid 6339] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6338] <... close resumed>) = 0 [pid 5226] <... rmdir resumed>) = 0 [pid 6338] symlink("/dev/binderfs", "./binderfs" [pid 5226] getdents64(3, 0x55555e2186f0 /* 0 entries */, 32768) = 0 [pid 6339] <... openat resumed>) = 3 [pid 6338] <... symlink resumed>) = 0 [pid 5226] close(3 [pid 6339] write(3, "1000", 4) = 4 [pid 5226] <... close resumed>) = 0 [pid 6339] close(3executing program executing program [pid 5226] rmdir("./24" [pid 6339] <... close resumed>) = 0 [pid 6338] write(1, "executing program\n", 18 [pid 6339] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6339] write(1, "executing program\n", 18) = 18 [pid 6339] memfd_create("syzkaller", 0) = 3 [pid 6339] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [pid 6338] <... write resumed>) = 18 [pid 5226] <... rmdir resumed>) = 0 [ 124.941038][ T5227] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 12 [ 124.971128][ T2994] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [pid 6338] memfd_create("syzkaller", 0 [pid 5226] mkdir("./25", 0777) = 0 [pid 5226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5226] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5226] close(3) = 0 [pid 5226] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555e217650) = 6340 [pid 6338] <... memfd_create resumed>) = 3 [pid 6338] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 ./strace-static-x86_64: Process 6340 attached [pid 6340] set_robust_list(0x55555e217660, 24) = 0 [ 124.990587][ T5227] bcachefs (loop3): unshutdown complete, journal seq 13 [pid 6340] chdir("./25") = 0 [pid 6340] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6340] setpgid(0, 0) = 0 [pid 6340] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6340] write(3, "1000", 4) = 4 [pid 6340] close(3) = 0 executing program [pid 6340] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6340] write(1, "executing program\n", 18) = 18 [pid 6340] memfd_create("syzkaller", 0) = 3 [pid 6340] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f4aa8000000 [ 125.040286][ T2994] bcachefs (loop3): fatal error - emergency read only [ 125.047921][ T2994] ------------[ cut here ]------------ [ 125.053615][ T2994] kernel BUG at fs/bcachefs/journal.h:375! [ 125.118663][ T2994] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 125.125671][ T2994] CPU: 1 UID: 0 PID: 2994 Comm: kworker/u8:9 Not tainted 6.12.0-rc4-syzkaller #0 [ 125.134805][ T2994] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 125.144879][ T2994] Workqueue: btree_update btree_interior_update_work [ 125.151596][ T2994] RIP: 0010:__bch2_trans_commit+0x9232/0x93c0 [ 125.157683][ T2994] Code: fd 90 0f 0b e8 df ba 78 fd 90 0f 0b e8 d7 ba 78 fd 90 0f 0b e8 cf ba 78 fd 90 0f 0b e8 c7 ba 78 fd 90 0f 0b e8 bf ba 78 fd 90 <0f> 0b e8 b7 ba 78 fd 90 0f 0b e8 af ba 78 fd 90 0f 0b e8 a7 ba 78 [ 125.177303][ T2994] RSP: 0018:ffffc90009ed76c0 EFLAGS: 00010293 [ 125.183390][ T2994] RAX: ffffffff841c2cd1 RBX: 0000000000000000 RCX: ffff88802ebf0000 [ 125.191378][ T2994] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 125.199360][ T2994] RBP: ffffc90009ed7890 R08: ffffffff841bd008 R09: 1ffff1100b9594a8 [ 125.207342][ T2994] R10: dffffc0000000000 R11: ffffed100b9594a9 R12: ffff88805ca80000 [ 125.215331][ T2994] R13: ffff88805caca500 R14: 0000000000000044 R15: ffff88802f49c0d0 [ 125.223316][ T2994] FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 125.232257][ T2994] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 125.238853][ T2994] CR2: 00007f4aa8488000 CR3: 000000007d5e0000 CR4: 00000000003526f0 [ 125.246845][ T2994] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 125.254833][ T2994] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 125.262815][ T2994] Call Trace: [ 125.266118][ T2994] [ 125.269060][ T2994] ? __die_body+0x5f/0xb0 [ 125.273416][ T2994] ? die+0x9e/0xc0 [ 125.277153][ T2994] ? do_trap+0x15a/0x3a0 [ 125.281427][ T2994] ? __bch2_trans_commit+0x9232/0x93c0 [ 125.286925][ T2994] ? do_error_trap+0x1dc/0x2c0 [ 125.291712][ T2994] ? __bch2_trans_commit+0x9232/0x93c0 [ 125.297198][ T2994] ? __pfx_do_error_trap+0x10/0x10 [ 125.302333][ T2994] ? report_bug+0x3e8/0x500 [ 125.306871][ T2994] ? handle_invalid_op+0x34/0x40 [ 125.311829][ T2994] ? __bch2_trans_commit+0x9232/0x93c0 [ 125.317313][ T2994] ? exc_invalid_op+0x38/0x50 [ 125.322020][ T2994] ? asm_exc_invalid_op+0x1a/0x20 [ 125.327071][ T2994] ? __bch2_trans_commit+0x3568/0x93c0 [ 125.332556][ T2994] ? __bch2_trans_commit+0x9231/0x93c0 [ 125.338055][ T2994] ? __bch2_trans_commit+0x9232/0x93c0 [ 125.343561][ T2994] ? __pfx___bch2_trans_commit+0x10/0x10 [ 125.349214][ T2994] ? bch2_dev_btree_bitmap_marked+0x2f/0xda0 [ 125.355210][ T2994] ? __bch2_trans_jset_entry_alloc+0x2c7/0x4b0 [ 125.361401][ T2994] ? btree_interior_update_work+0x117a/0x2b10 [ 125.367488][ T2994] btree_interior_update_work+0x1492/0x2b10 [ 125.373417][ T2994] ? __pfx_btree_interior_update_work+0x10/0x10 [ 125.379693][ T2994] ? __pfx_lock_acquire+0x10/0x10 [ 125.384752][ T2994] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 125.390769][ T2994] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 125.397132][ T2994] ? process_scheduled_works+0x976/0x1850 [ 125.402888][ T2994] process_scheduled_works+0xa63/0x1850 [ 125.408470][ T2994] ? __pfx_process_scheduled_works+0x10/0x10 [ 125.414478][ T2994] ? assign_work+0x364/0x3d0 [ 125.419110][ T2994] worker_thread+0x870/0xd30 [ 125.423732][ T2994] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 125.429654][ T2994] ? __kthread_parkme+0x169/0x1d0 [ 125.434719][ T2994] ? __pfx_worker_thread+0x10/0x10 [ 125.439869][ T2994] kthread+0x2f0/0x390 [ 125.443957][ T2994] ? __pfx_worker_thread+0x10/0x10 [ 125.449089][ T2994] ? __pfx_kthread+0x10/0x10 [ 125.453694][ T2994] ret_from_fork+0x4b/0x80 [ 125.458142][ T2994] ? __pfx_kthread+0x10/0x10 [ 125.462762][ T2994] ret_from_fork_asm+0x1a/0x30 [pid 6340] 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 [pid 6339] 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 [pid 6338] 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 [ 125.467579][ T2994] [ 125.470609][ T2994] Modules linked in: [ 125.474766][ T2994] ---[ end trace 0000000000000000 ]--- [pid 6337] 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 [pid 6340] <... write resumed>) = 16777216 [pid 6340] munmap(0x7f4aa8000000, 138412032) = 0 [ 125.558600][ T2994] RIP: 0010:__bch2_trans_commit+0x9232/0x93c0 [ 125.568591][ T2994] Code: fd 90 0f 0b e8 df ba 78 fd 90 0f 0b e8 d7 ba 78 fd 90 0f 0b e8 cf ba 78 fd 90 0f 0b e8 c7 ba 78 fd 90 0f 0b e8 bf ba 78 fd 90 <0f> 0b e8 b7 ba 78 fd 90 0f 0b e8 af ba 78 fd 90 0f 0b e8 a7 ba 78 [ 125.591031][ T2994] RSP: 0018:ffffc90009ed76c0 EFLAGS: 00010293 [ 125.597523][ T2994] RAX: ffffffff841c2cd1 RBX: 0000000000000000 RCX: ffff88802ebf0000 [pid 6340] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6340] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6340] close(3) = 0 [pid 6340] close(4) = 0 [pid 6340] mkdir("./file0", 0777) = 0 [ 125.611220][ T2994] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 125.620035][ T2994] RBP: ffffc90009ed7890 R08: ffffffff841bd008 R09: 1ffff1100b9594a8 [ 125.628802][ T6340] loop2: detected capacity change from 0 to 32768 [ 125.635555][ T2994] R10: dffffc0000000000 R11: ffffed100b9594a9 R12: ffff88805ca80000 [ 125.644137][ T2994] R13: ffff88805caca500 R14: 0000000000000044 R15: ffff88802f49c0d0 [ 125.669150][ T2994] FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 125.678275][ T2994] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 125.685641][ T2994] CR2: 00007f4aa8488000 CR3: 000000007d7a6000 CR4: 00000000003526f0 [ 125.694292][ T2994] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [pid 6340] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6338] <... write resumed>) = 16777216 [pid 6339] <... write resumed>) = 16777216 [pid 6337] <... write resumed>) = 16777216 [pid 6339] munmap(0x7f4aa8000000, 138412032 [pid 6338] munmap(0x7f4aa8000000, 138412032 [ 125.717979][ T6340] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 125.724554][ T2994] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 125.727146][ T6340] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 125.749917][ T2994] Kernel panic - not syncing: Fatal exception [ 125.756441][ T2994] Kernel Offset: disabled [ 125.760767][ T2994] Rebooting in 86400 seconds..