./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor3623048532 <...> Warning: Permanently added '10.128.0.38' (ED25519) to the list of known hosts. execve("./syz-executor3623048532", ["./syz-executor3623048532"], 0x7ffc8c6e8050 /* 10 vars */) = 0 brk(NULL) = 0x5555807c5000 brk(0x5555807c5d00) = 0x5555807c5d00 arch_prctl(ARCH_SET_FS, 0x5555807c5380) = 0 set_tid_address(0x5555807c5650) = 5228 set_robust_list(0x5555807c5660, 24) = 0 rseq(0x5555807c5ca0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor3623048532", 4096) = 28 getrandom("\xb1\x13\x0c\xdd\x38\x85\xbc\xde", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555807c5d00 brk(0x5555807e6d00) = 0x5555807e6d00 brk(0x5555807e7000) = 0x5555807e7000 mprotect(0x7fc38fc10000, 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 5229 attached [pid 5229] set_robust_list(0x5555807c5660, 24 [pid 5228] <... clone resumed>, child_tidptr=0x5555807c5650) = 5229 [pid 5229] <... set_robust_list resumed>) = 0 [pid 5229] mkdir("./syzkaller.txBfnD", 0700 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5230 attached [pid 5230] set_robust_list(0x5555807c5660, 24 [pid 5229] <... mkdir resumed>) = 0 [pid 5228] <... clone resumed>, child_tidptr=0x5555807c5650) = 5230 [pid 5230] <... set_robust_list resumed>) = 0 [pid 5229] chmod("./syzkaller.txBfnD", 0777 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] <... chmod resumed>) = 0 [pid 5229] chdir("./syzkaller.txBfnD"./strace-static-x86_64: Process 5231 attached [pid 5230] mkdir("./syzkaller.ymj94O", 0700 [pid 5228] <... clone resumed>, child_tidptr=0x5555807c5650) = 5231 [pid 5229] <... chdir resumed>) = 0 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] mkdir("./0", 0777 [pid 5231] set_robust_list(0x5555807c5660, 24 [pid 5230] <... mkdir resumed>) = 0 [pid 5229] <... mkdir resumed>) = 0 ./strace-static-x86_64: Process 5232 attached [pid 5231] <... set_robust_list resumed>) = 0 [pid 5228] <... clone resumed>, child_tidptr=0x5555807c5650) = 5232 [pid 5228] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] set_robust_list(0x5555807c5660, 24 [pid 5231] mkdir("./syzkaller.ZGR86g", 0700 [pid 5230] chmod("./syzkaller.ymj94O", 0777 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR./strace-static-x86_64: Process 5233 attached [pid 5232] <... set_robust_list resumed>) = 0 [pid 5231] <... mkdir resumed>) = 0 [pid 5230] <... chmod resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5228] <... clone resumed>, child_tidptr=0x5555807c5650) = 5233 [pid 5233] set_robust_list(0x5555807c5660, 24 [pid 5231] chmod("./syzkaller.ZGR86g", 0777 [pid 5230] chdir("./syzkaller.ymj94O" [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5233] <... set_robust_list resumed>) = 0 [pid 5232] mkdir("./syzkaller.9fDpNI", 0700 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5231] <... chmod resumed>) = 0 [pid 5230] <... chdir resumed>) = 0 [pid 5233] getrandom( [pid 5232] <... mkdir resumed>) = 0 [pid 5230] mkdir("./0", 0777 [pid 5229] close(3 [pid 5232] chmod("./syzkaller.9fDpNI", 0777 [pid 5231] chdir("./syzkaller.ZGR86g" [pid 5229] <... close resumed>) = 0 [pid 5233] <... getrandom resumed>"\x65\x3e\xf3\x4e\xbe\xbc\xec\x8d", 8, GRND_NONBLOCK) = 8 [pid 5231] <... chdir resumed>) = 0 [pid 5230] <... mkdir resumed>) = 0 [pid 5233] mkdir("./syzkaller.3xR2Ac", 0700 [pid 5232] <... chmod resumed>) = 0 [pid 5231] mkdir("./0", 0777 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5233] <... mkdir resumed>) = 0 [pid 5232] chdir("./syzkaller.9fDpNI" [pid 5231] <... mkdir resumed>) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5232] <... chdir resumed>) = 0 [pid 5233] chmod("./syzkaller.3xR2Ac", 0777 [pid 5232] mkdir("./0", 0777) = 0 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] close(3 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5234 ./strace-static-x86_64: Process 5234 attached [pid 5230] <... close resumed>) = 0 [pid 5234] set_robust_list(0x5555807c5660, 24 [pid 5231] ioctl(3, LOOP_CLR_FD [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5235 attached [pid 5234] <... set_robust_list resumed>) = 0 [pid 5233] <... chmod resumed>) = 0 [pid 5231] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5234] chdir("./0" [pid 5233] chdir("./syzkaller.3xR2Ac" [pid 5231] close(3 [pid 5234] <... chdir resumed>) = 0 [pid 5235] set_robust_list(0x5555807c5660, 24 [pid 5234] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] <... chdir resumed>) = 0 [pid 5231] <... close resumed>) = 0 [pid 5235] <... set_robust_list resumed>) = 0 [pid 5234] <... prctl resumed>) = 0 [pid 5234] setpgid(0, 0 [pid 5233] mkdir("./0", 0777 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5236 attached [pid 5235] chdir("./0" [pid 5234] <... setpgid resumed>) = 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5235 [pid 5235] <... chdir resumed>) = 0 [pid 5234] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5235] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5236] set_robust_list(0x5555807c5660, 24 [pid 5235] <... prctl resumed>) = 0 [pid 5236] <... set_robust_list resumed>) = 0 [pid 5235] setpgid(0, 0 [pid 5236] chdir("./0" [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5236] <... chdir resumed>) = 0 [pid 5235] <... setpgid resumed>) = 0 [pid 5234] <... openat resumed>) = 3 [pid 5233] <... openat resumed>) = 3 [pid 5232] <... openat resumed>) = 3 [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5236 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5236] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5235] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5232] close(3 [pid 5236] <... prctl resumed>) = 0 [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] <... close resumed>) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5238 attached [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5239 attached [pid 5238] set_robust_list(0x5555807c5660, 24) = 0 [pid 5238] chdir("./0" [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5238 [pid 5239] set_robust_list(0x5555807c5660, 24 [pid 5238] <... chdir resumed>) = 0 [pid 5234] write(3, "1000", 4 [pid 5239] <... set_robust_list resumed>) = 0 [pid 5238] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5236] setpgid(0, 0 [pid 5235] <... openat resumed>) = 3 [pid 5234] <... write resumed>) = 4 [pid 5239] chdir("./0" [pid 5238] <... prctl resumed>) = 0 [pid 5235] write(3, "1000", 4 [pid 5234] close(3 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5239 [pid 5239] <... chdir resumed>) = 0 [pid 5238] setpgid(0, 0 [pid 5236] <... setpgid resumed>) = 0 [pid 5235] <... write resumed>) = 4 [pid 5234] <... close resumed>) = 0 [pid 5239] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5238] <... setpgid resumed>) = 0 [pid 5236] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5234] symlink("/dev/binderfs", "./binderfs" [pid 5235] close(3 [pid 5239] <... prctl resumed>) = 0 [pid 5238] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5239] setpgid(0, 0executing program [pid 5235] <... close resumed>) = 0 [pid 5234] <... symlink resumed>) = 0 [pid 5239] <... setpgid resumed>) = 0 [pid 5235] symlink("/dev/binderfs", "./binderfs" [pid 5234] write(1, "executing program\n", 18 [pid 5239] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5238] <... openat resumed>) = 3 [pid 5235] <... symlink resumed>) = 0 [pid 5234] <... write resumed>) = 18 [pid 5238] write(3, "1000", 4 [pid 5239] <... openat resumed>) = 3 [pid 5238] <... write resumed>) = 4 [pid 5238] close(3) = 0 [pid 5239] write(3, "1000", 4 [pid 5238] symlink("/dev/binderfs", "./binderfs" [pid 5239] <... write resumed>) = 4 [pid 5238] <... symlink resumed>) = 0 executing program [pid 5239] close(3 [pid 5236] <... openat resumed>) = 3 [pid 5235] write(1, "executing program\n", 18 [pid 5234] memfd_create("syzkaller", 0 [pid 5239] <... close resumed>) = 0 [pid 5235] <... write resumed>) = 18 [pid 5234] <... memfd_create resumed>) = 3 executing program [pid 5236] write(3, "1000", 4 [pid 5238] write(1, "executing program\n", 18 [pid 5239] symlink("/dev/binderfs", "./binderfs" [pid 5238] <... write resumed>) = 18 [pid 5236] <... write resumed>) = 4 [pid 5235] memfd_create("syzkaller", 0 [pid 5234] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5239] <... symlink resumed>) = 0 [pid 5235] <... memfd_create resumed>) = 3 [pid 5234] <... mmap resumed>) = 0x7fc387600000 [pid 5238] memfd_create("syzkaller", 0 [pid 5235] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5236] close(3 [pid 5235] <... mmap resumed>) = 0x7fc387600000 [pid 5236] <... close resumed>) = 0 executing program [pid 5239] write(1, "executing program\n", 18 [pid 5238] <... memfd_create resumed>) = 3 [pid 5236] symlink("/dev/binderfs", "./binderfs" [pid 5239] <... write resumed>) = 18 [pid 5239] memfd_create("syzkaller", 0 [pid 5238] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5236] <... symlink resumed>) = 0 [pid 5239] <... memfd_create resumed>) = 3 [pid 5239] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5238] <... mmap resumed>) = 0x7fc387600000 [pid 5236] write(1, "executing program\n", 18 [pid 5239] <... mmap resumed>) = 0x7fc387600000 [pid 5236] <... write resumed>) = 18 executing program [pid 5236] memfd_create("syzkaller", 0) = 3 [pid 5236] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5239] 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 5238] 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 5235] 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 5236] 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 5239] <... write resumed>) = 16777216 [pid 5238] <... write resumed>) = 16777216 [pid 5239] munmap(0x7fc387600000, 138412032 [pid 5238] munmap(0x7fc387600000, 138412032 [pid 5239] <... munmap resumed>) = 0 [pid 5235] <... write resumed>) = 16777216 [pid 5235] munmap(0x7fc387600000, 138412032 [pid 5239] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5238] <... munmap resumed>) = 0 [pid 5239] ioctl(4, LOOP_SET_FD, 3 [pid 5238] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5238] ioctl(4, LOOP_SET_FD, 3 [pid 5239] <... ioctl resumed>) = 0 [pid 5235] <... munmap resumed>) = 0 [pid 5239] close(3 [pid 5238] <... ioctl resumed>) = 0 [pid 5236] <... write resumed>) = 16777216 [pid 5234] <... write resumed>) = 16777216 [pid 5235] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5239] <... close resumed>) = 0 [pid 5238] close(3 [pid 5236] munmap(0x7fc387600000, 138412032 [pid 5234] munmap(0x7fc387600000, 138412032 [pid 5239] close(4 [pid 5238] <... close resumed>) = 0 [pid 5235] <... openat resumed>) = 4 [pid 5239] <... close resumed>) = 0 [pid 5238] close(4 [pid 5235] ioctl(4, LOOP_SET_FD, 3 [pid 5239] mkdir("./file0", 0777 [pid 5238] <... close resumed>) = 0 [pid 5239] <... mkdir resumed>) = 0 [pid 5238] mkdir("./file0", 0777 [pid 5239] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5238] <... mkdir resumed>) = 0 [pid 5235] <... ioctl resumed>) = 0 [pid 5238] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5236] <... munmap resumed>) = 0 [pid 5235] close(3 [pid 5236] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5235] <... close resumed>) = 0 [pid 5235] close(4 [pid 5236] <... openat resumed>) = 4 [pid 5235] <... close resumed>) = 0 [pid 5236] ioctl(4, LOOP_SET_FD, 3 [pid 5235] mkdir("./file0", 0777) = 0 [pid 5234] <... munmap resumed>) = 0 [pid 5235] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 72.222823][ T5239] loop4: detected capacity change from 0 to 32768 [ 72.236633][ T5238] loop3: detected capacity change from 0 to 32768 [ 72.257308][ T5235] loop1: detected capacity change from 0 to 32768 [pid 5234] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5234] ioctl(4, LOOP_SET_FD, 3 [pid 5236] <... ioctl resumed>) = 0 [pid 5234] <... ioctl resumed>) = 0 [pid 5236] close(3) = 0 [pid 5236] close(4) = 0 [pid 5236] mkdir("./file0", 0777 [pid 5234] close(3) = 0 [pid 5234] close(4) = 0 [pid 5234] mkdir("./file0", 0777) = 0 [pid 5236] <... mkdir resumed>) = 0 [pid 5234] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 72.310393][ T5236] loop2: detected capacity change from 0 to 32768 [ 72.321956][ T5234] loop0: detected capacity change from 0 to 32768 [ 72.496941][ T5239] 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 [ 72.498444][ T5235] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 72.530458][ T5234] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 72.540145][ T5234] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 72.540451][ T5238] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 72.556115][ T5239] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 72.567966][ T5239] bcachefs (loop4): Version upgrade required: [ 72.567966][ T5239] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 72.567966][ T5239] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 72.567966][ T5239] 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 [ 72.613463][ T5238] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 72.649695][ T5235] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 72.659097][ T5239] bcachefs (loop4): dropping and reconstructing all alloc info [ 72.666861][ T5236] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 72.666979][ T5236] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5236] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5234] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5234] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 72.737024][ T5234] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5234] ioctl(3, LOOP_CLR_FD) = 0 [ 72.816935][ T5239] bcachefs (loop4): check_topology... done [pid 5234] close(3 [pid 5236] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5236] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5236] ioctl(3, LOOP_CLR_FD) = 0 [pid 5236] close(3 [pid 5235] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 72.823038][ T5239] bcachefs (loop4): accounting_read... [ 72.859952][ T5236] bcachefs: bch2_fs_get_tree() error: EINVAL [ 72.894187][ T5235] bcachefs: bch2_fs_get_tree() error: EINVAL [ 72.895176][ T5239] done [pid 5235] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5238] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5235] <... openat resumed>) = 3 [pid 5238] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5238] ioctl(3, LOOP_CLR_FD) = 0 [pid 5238] close(3 [pid 5235] ioctl(3, LOOP_CLR_FD) = 0 [ 72.918048][ T5238] bcachefs: bch2_fs_get_tree() error: EINVAL [ 72.927837][ T5239] bcachefs (loop4): alloc_read... done [ 72.933841][ T5239] bcachefs (loop4): stripes_read... done [ 72.957132][ T5239] bcachefs (loop4): snapshots_read... done [ 72.972714][ T5239] bcachefs (loop4): check_allocations... done [ 73.090516][ T5239] bcachefs (loop4): going read-write [pid 5235] close(3 [pid 5239] <... mount resumed>) = 0 [pid 5234] <... close resumed>) = 0 [pid 5239] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5234] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5239] <... openat resumed>) = 3 [pid 5239] chdir("./file0" [pid 5234] <... openat resumed>) = 3 [pid 5239] <... chdir resumed>) = 0 [pid 5239] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5234] exit_group(0 [pid 5239] <... openat resumed>) = 4 [ 73.143459][ T5239] bcachefs (loop4): done starting filesystem [pid 5239] ioctl(4, LOOP_CLR_FD [pid 5234] <... exit_group resumed>) = ? [pid 5239] <... ioctl resumed>) = 0 [pid 5239] close(4) = 0 [pid 5234] +++ exited with 0 +++ [pid 5239] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5234, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=51 /* 0.51 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5229] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5236] <... close resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5229] newfstatat(3, "", [pid 5236] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, [pid 5236] <... openat resumed>) = 3 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5236] exit_group(0) = ? [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./0/binderfs" [pid 5236] +++ exited with 0 +++ [pid 5239] <... openat resumed>) = 4 [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5236, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=49 /* 0.49 s */} --- [pid 5239] exit_group(0) = ? [pid 5238] <... close resumed>) = 0 [pid 5239] +++ exited with 0 +++ [pid 5235] <... close resumed>) = 0 [pid 5231] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... unlink resumed>) = 0 [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5239, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=44 /* 0.44 s */} --- [pid 5238] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5235] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... openat resumed>) = 3 [pid 5233] newfstatat(3, "", [pid 5235] <... openat resumed>) = 3 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] newfstatat(AT_FDCWD, "./0/bus", [pid 5233] getdents64(3, [pid 5231] <... openat resumed>) = 3 [pid 5238] <... openat resumed>) = 3 [pid 5235] exit_group(0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] newfstatat(3, "", [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5238] exit_group(0 [pid 5235] <... exit_group resumed>) = ? [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] unlink("./0/bus" [pid 5238] <... exit_group resumed>) = ? [pid 5235] +++ exited with 0 +++ [pid 5233] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5235, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=47 /* 0.47 s */} --- [pid 5229] <... unlink resumed>) = 0 [pid 5233] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./0/binderfs" [pid 5230] <... restart_syscall resumed>) = 0 [pid 5238] +++ exited with 0 +++ [pid 5233] <... unlink resumed>) = 0 [pid 5233] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] getdents64(3, [pid 5229] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5238, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=48 /* 0.48 s */} --- [pid 5230] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... openat resumed>) = 3 [pid 5232] <... openat resumed>) = 3 [ 73.274777][ T5239] syz-executor362 (5239) used greatest stack depth: 17936 bytes left [pid 5230] newfstatat(3, "", [pid 5232] newfstatat(3, "", [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] newfstatat(AT_FDCWD, "./0/file0", [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5229] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] getdents64(3, [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] unlink("./0/binderfs" [pid 5229] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] <... unlink resumed>) = 0 [pid 5229] <... openat resumed>) = 4 [pid 5231] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] newfstatat(4, "", [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] newfstatat(AT_FDCWD, "./0/bus", [pid 5229] getdents64(4, [pid 5231] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] unlink("./0/bus" [pid 5229] getdents64(4, [pid 5231] <... unlink resumed>) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] close(4 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... close resumed>) = 0 [pid 5231] newfstatat(AT_FDCWD, "./0/file0", [pid 5229] rmdir("./0/file0" [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5231] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] getdents64(3, [pid 5231] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] newfstatat(4, "", [pid 5229] close(3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, [pid 5229] <... close resumed>) = 0 [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, [pid 5229] rmdir("./0" [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./0/file0") = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5229] mkdir("./1", 0777 [pid 5232] getdents64(3, [pid 5231] getdents64(3, [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... mkdir resumed>) = 0 [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5231] close(3 [pid 5230] unlink("./0/binderfs" [pid 5231] <... close resumed>) = 0 [pid 5232] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... unlink resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] rmdir("./0" [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5232] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5231] <... rmdir resumed>) = 0 [pid 5230] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] mkdir("./1", 0777 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... openat resumed>) = 3 [pid 5230] newfstatat(AT_FDCWD, "./0/bus", [pid 5232] unlink("./0/binderfs" [ 73.316978][ T5233] bcachefs (loop4): shutting down [ 73.322583][ T5233] bcachefs (loop4): going read-only [ 73.333466][ T5233] bcachefs (loop4): finished waiting for writes to stop [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5231] <... mkdir resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... unlink resumed>) = 0 [pid 5230] unlink("./0/bus" [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5229] close(3 [pid 5231] <... openat resumed>) = 3 [pid 5230] <... unlink resumed>) = 0 [pid 5229] <... close resumed>) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] ioctl(3, LOOP_CLR_FD./strace-static-x86_64: Process 5280 attached [pid 5230] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5280 [pid 5280] set_robust_list(0x5555807c5660, 24 [pid 5232] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] close(3 [pid 5230] newfstatat(AT_FDCWD, "./0/file0", [pid 5280] <... set_robust_list resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./0/bus", [pid 5231] <... close resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5280] chdir("./1" [pid 5232] unlink("./0/bus"./strace-static-x86_64: Process 5281 attached [pid 5280] <... chdir resumed>) = 0 [pid 5232] <... unlink resumed>) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5280] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5232] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5281] set_robust_list(0x5555807c5660, 24 [pid 5280] <... prctl resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5280] setpgid(0, 0 [pid 5232] newfstatat(AT_FDCWD, "./0/file0", [pid 5281] <... set_robust_list resumed>) = 0 [pid 5230] <... openat resumed>) = 4 [pid 5281] chdir("./1" [pid 5280] <... setpgid resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] newfstatat(4, "", [pid 5281] <... chdir resumed>) = 0 [pid 5281] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5281] setpgid(0, 0) = 0 [pid 5281] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5281] write(3, "1000", 4) = 4 [pid 5281] close(3) = 0 [pid 5281] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5281] write(1, "executing program\n", 18) = 18 [pid 5281] memfd_create("syzkaller", 0 [pid 5280] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5281 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5280] <... openat resumed>) = 3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] getdents64(4, [pid 5280] write(3, "1000", 4 [pid 5232] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5281] <... memfd_create resumed>) = 3 [pid 5280] <... write resumed>) = 4 [pid 5232] <... openat resumed>) = 4 [ 73.360528][ T5233] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5230] getdents64(4, [pid 5281] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5280] close(3 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5281] <... mmap resumed>) = 0x7fc387600000 [pid 5280] <... close resumed>) = 0 [pid 5232] newfstatat(4, "", [pid 5230] close(4) = 0 [pid 5230] rmdir("./0/file0" [pid 5280] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... rmdir resumed>) = 0 executing program [pid 5280] <... symlink resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5280] write(1, "executing program\n", 18 [pid 5230] rmdir("./0" [pid 5280] <... write resumed>) = 18 [pid 5230] <... rmdir resumed>) = 0 [pid 5280] memfd_create("syzkaller", 0 [pid 5230] mkdir("./1", 0777 [pid 5280] <... memfd_create resumed>) = 3 [pid 5232] getdents64(4, [pid 5230] <... mkdir resumed>) = 0 [pid 5280] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5280] <... mmap resumed>) = 0x7fc387600000 [pid 5232] getdents64(4, [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5232] close(4 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5232] <... close resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] rmdir("./0/file0" [pid 5230] close(3 [pid 5232] <... rmdir resumed>) = 0 [pid 5230] <... close resumed>) = 0 [pid 5232] getdents64(3, [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./0"./strace-static-x86_64: Process 5282 attached ) = 0 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5282 [pid 5282] set_robust_list(0x5555807c5660, 24) = 0 [pid 5232] mkdir("./1", 0777 [pid 5282] chdir("./1" [pid 5232] <... mkdir resumed>) = 0 [pid 5282] <... chdir resumed>) = 0 [pid 5282] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5282] setpgid(0, 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5282] <... setpgid resumed>) = 0 [pid 5282] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] <... openat resumed>) = 3 [pid 5282] <... openat resumed>) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5282] write(3, "1000", 4) = 4 [pid 5282] close(3) = 0 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5282] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5232] close(3 [pid 5282] write(1, "executing program\n", 18) = 18 [pid 5232] <... close resumed>) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5283 attached [pid 5282] memfd_create("syzkaller", 0 [pid 5283] set_robust_list(0x5555807c5660, 24) = 0 [pid 5282] <... memfd_create resumed>) = 3 [pid 5282] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5283] chdir("./1" [pid 5282] <... mmap resumed>) = 0x7fc387600000 [pid 5283] <... chdir resumed>) = 0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5283 [ 73.454821][ T77] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 73.477282][ T77] bcachefs (loop4): fatal error - emergency read only [ 73.492603][ T5233] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [pid 5283] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5283] setpgid(0, 0) = 0 [pid 5283] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5283] write(3, "1000", 4) = 4 [pid 5283] close(3) = 0 [pid 5283] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5283] write(1, "executing program\n", 18executing program ) = 18 [pid 5283] memfd_create("syzkaller", 0) = 3 [pid 5283] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 73.538745][ T5233] bcachefs (loop4): unshutdown complete, journal seq 14 [ 73.559855][ T5233] bcachefs (loop4): done going read-only, filesystem not clean [ 73.682066][ T5233] bcachefs (loop4): shutdown complete [pid 5281] 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 5280] 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 5282] 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 5283] 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 5281] <... write resumed>) = 16777216 [pid 5281] munmap(0x7fc387600000, 138412032) = 0 [pid 5280] <... write resumed>) = 16777216 [pid 5281] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5281] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5280] munmap(0x7fc387600000, 138412032 [pid 5281] close(3) = 0 [pid 5281] close(4) = 0 [pid 5281] mkdir("./file0", 0777) = 0 [pid 5281] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5280] <... munmap resumed>) = 0 [pid 5280] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 74.171897][ T5281] loop2: detected capacity change from 0 to 32768 [pid 5280] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5280] close(3) = 0 [pid 5280] close(4) = 0 [pid 5280] mkdir("./file0", 0777) = 0 [ 74.212825][ T5280] loop0: detected capacity change from 0 to 32768 [pid 5280] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5282] <... write resumed>) = 16777216 [pid 5282] munmap(0x7fc387600000, 138412032) = 0 [pid 5282] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5282] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5282] close(3) = 0 [pid 5282] close(4) = 0 [pid 5282] mkdir("./file0", 0777) = 0 [pid 5282] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5283] <... write resumed>) = 16777216 [ 74.307541][ T5282] loop1: detected capacity change from 0 to 32768 [pid 5283] munmap(0x7fc387600000, 138412032) = 0 [pid 5283] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5283] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5283] close(3) = 0 [pid 5283] close(4) = 0 [pid 5283] mkdir("./file0", 0777) = 0 [ 74.403125][ T5283] loop3: detected capacity change from 0 to 32768 [ 74.613048][ T5281] 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 [ 74.614642][ T5282] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 74.645200][ T5282] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 74.645650][ T5280] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 74.663402][ T5281] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 74.672030][ T5281] bcachefs (loop2): Version upgrade required: [ 74.672030][ T5281] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 74.672030][ T5281] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 74.672030][ T5281] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 74.753792][ T5281] bcachefs (loop2): dropping and reconstructing all alloc info [ 74.762109][ T5280] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 74.790829][ T5283] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 74.808397][ T5283] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 74.824921][ T5281] bcachefs (loop2): check_topology... done [pid 5283] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5282] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 74.831555][ T5281] bcachefs (loop2): accounting_read... done [ 74.869137][ T5281] bcachefs (loop2): alloc_read... done [ 74.881469][ T5282] bcachefs: bch2_fs_get_tree() error: EINVAL [ 74.896585][ T5281] bcachefs (loop2): stripes_read... done [pid 5282] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5282] ioctl(3, LOOP_CLR_FD) = 0 [ 74.922803][ T5281] bcachefs (loop2): snapshots_read... done [ 74.955556][ T5281] bcachefs (loop2): check_allocations... [ 74.974607][ T5280] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5282] close(3 [pid 5280] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5280] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5280] ioctl(3, LOOP_CLR_FD) = 0 [ 75.022608][ T5281] done [ 75.074713][ T5283] bcachefs: bch2_fs_get_tree() error: EINVAL [ 75.086616][ T5281] bcachefs (loop2): going read-write [pid 5280] close(3 [pid 5283] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5283] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5283] ioctl(3, LOOP_CLR_FD) = 0 [pid 5283] close(3 [pid 5281] <... mount resumed>) = 0 [pid 5281] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5281] chdir("./file0") = 0 [pid 5281] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5281] ioctl(4, LOOP_CLR_FD) = 0 [pid 5281] close(4) = 0 [ 75.175500][ T5281] bcachefs (loop2): done starting filesystem [pid 5281] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] <... umount2 resumed>) = 0 [pid 5281] <... openat resumed>) = 4 [pid 5233] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5281] exit_group(0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5282] <... close resumed>) = 0 [pid 5281] <... exit_group resumed>) = ? [pid 5233] newfstatat(AT_FDCWD, "./0/file0", [pid 5281] +++ exited with 0 +++ [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5281, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=40 /* 0.40 s */} --- [pid 5282] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] umount2("./0/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] newfstatat(3, "", [pid 5233] <... openat resumed>) = 4 [pid 5282] <... openat resumed>) = 3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] newfstatat(4, "", [pid 5231] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5282] exit_group(0 [pid 5231] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5282] <... exit_group resumed>) = ? [pid 5233] getdents64(4, [pid 5231] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5282] +++ exited with 0 +++ [pid 5280] <... close resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5282, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5233] getdents64(4, [pid 5231] unlink("./1/binderfs" [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] <... restart_syscall resumed>) = 0 [pid 5230] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5280] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] close(4 [pid 5231] <... unlink resumed>) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5280] <... openat resumed>) = 3 [pid 5233] <... close resumed>) = 0 [pid 5231] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./1/binderfs" [pid 5280] exit_group(0 [pid 5233] rmdir("./0/file0" [pid 5230] <... unlink resumed>) = 0 [pid 5280] <... exit_group resumed>) = ? [pid 5233] <... rmdir resumed>) = 0 [pid 5230] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5280] +++ exited with 0 +++ [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5280, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=50 /* 0.50 s */} --- [pid 5233] close(3 [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5233] <... close resumed>) = 0 [pid 5233] rmdir("./0" [pid 5229] <... restart_syscall resumed>) = 0 [pid 5233] <... rmdir resumed>) = 0 [pid 5229] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] newfstatat(AT_FDCWD, "./1/bus", [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] mkdir("./1", 0777 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... mkdir resumed>) = 0 [pid 5229] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./1/binderfs") = 0 [pid 5229] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./1/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5230] unlink("./1/bus" [pid 5229] unlink("./1/bus" [pid 5230] <... unlink resumed>) = 0 [ 75.370310][ T5231] bcachefs (loop2): shutting down [ 75.382443][ T5231] bcachefs (loop2): going read-only [ 75.388907][ T5231] bcachefs (loop2): finished waiting for writes to stop [pid 5229] <... unlink resumed>) = 0 [pid 5233] <... openat resumed>) = 3 [pid 5230] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./1/file0", [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] newfstatat(AT_FDCWD, "./1/file0", [pid 5233] close(3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... close resumed>) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 ./strace-static-x86_64: Process 5316 attached [pid 5230] <... openat resumed>) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5316] set_robust_list(0x5555807c5660, 24 [pid 5229] newfstatat(4, "", [pid 5230] getdents64(4, [pid 5316] <... set_robust_list resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 75.413285][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 11 [pid 5230] getdents64(4, [pid 5316] chdir("./1" [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] getdents64(4, [pid 5230] close(4 [pid 5316] <... chdir resumed>) = 0 [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5316] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5230] <... close resumed>) = 0 [pid 5229] getdents64(4, [pid 5316] <... prctl resumed>) = 0 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5316 [pid 5230] rmdir("./1/file0" [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] <... rmdir resumed>) = 0 [pid 5229] close(4 [pid 5316] setpgid(0, 0 [pid 5230] getdents64(3, [pid 5229] <... close resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] rmdir("./1/file0" [pid 5316] <... setpgid resumed>) = 0 [pid 5230] close(3 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] <... close resumed>) = 0 [pid 5229] getdents64(3, [pid 5316] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] rmdir("./1" [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5316] <... openat resumed>) = 3 [pid 5230] <... rmdir resumed>) = 0 [pid 5229] close(3 [pid 5230] mkdir("./2", 0777 [pid 5316] write(3, "1000", 4 [pid 5229] <... close resumed>) = 0 [pid 5230] <... mkdir resumed>) = 0 [pid 5316] <... write resumed>) = 4 [pid 5229] rmdir("./1" [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] <... rmdir resumed>) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5316] close(3 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5229] mkdir("./2", 0777 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] close(3 [pid 5229] <... mkdir resumed>) = 0 [pid 5316] <... close resumed>) = 0 [pid 5316] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... close resumed>) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5283] <... close resumed>) = 0 [pid 5283] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5317 ./strace-static-x86_64: Process 5317 attached executing program [pid 5317] set_robust_list(0x5555807c5660, 24 [pid 5316] <... symlink resumed>) = 0 [pid 5283] <... openat resumed>) = 3 [pid 5229] <... openat resumed>) = 3 [pid 5317] <... set_robust_list resumed>) = 0 [pid 5316] write(1, "executing program\n", 18 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5317] chdir("./2" [pid 5316] <... write resumed>) = 18 [pid 5283] exit_group(0 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5283] <... exit_group resumed>) = ? [pid 5316] memfd_create("syzkaller", 0 [pid 5283] +++ exited with 0 +++ [pid 5229] close(3 [pid 5317] <... chdir resumed>) = 0 [pid 5317] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5229] <... close resumed>) = 0 [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5283, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=47 /* 0.47 s */} --- [pid 5317] <... prctl resumed>) = 0 [pid 5316] <... memfd_create resumed>) = 3 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5317] setpgid(0, 0 [pid 5316] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5317] <... setpgid resumed>) = 0 ./strace-static-x86_64: Process 5318 attached [pid 5317] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5316] <... mmap resumed>) = 0x7fc387600000 [pid 5232] <... restart_syscall resumed>) = 0 [pid 5318] set_robust_list(0x5555807c5660, 24 [pid 5317] <... openat resumed>) = 3 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5318 [pid 5317] write(3, "1000", 4 [pid 5318] <... set_robust_list resumed>) = 0 [pid 5317] <... write resumed>) = 4 [pid 5232] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5317] close(3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5317] <... close resumed>) = 0 [pid 5232] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5317] symlink("/dev/binderfs", "./binderfs"executing program [pid 5318] chdir("./2" [pid 5317] <... symlink resumed>) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5317] write(1, "executing program\n", 18) = 18 [pid 5232] newfstatat(3, "", [pid 5318] <... chdir resumed>) = 0 [pid 5317] memfd_create("syzkaller", 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5317] <... memfd_create resumed>) = 3 [pid 5318] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5317] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] getdents64(3, [pid 5318] <... prctl resumed>) = 0 [pid 5317] <... mmap resumed>) = 0x7fc387600000 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5318] setpgid(0, 0 [pid 5232] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5318] <... setpgid resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5318] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./1/binderfs" [pid 5318] <... openat resumed>) = 3 [pid 5232] <... unlink resumed>) = 0 [pid 5318] write(3, "1000", 4 [pid 5232] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5318] <... write resumed>) = 4 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5318] close(3 [pid 5232] newfstatat(AT_FDCWD, "./1/bus", [pid 5318] <... close resumed>) = 0 [pid 5318] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5318] write(1, "executing program\n", 18) = 18 [pid 5318] memfd_create("syzkaller", 0) = 3 [pid 5318] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./1/bus") = 0 [pid 5232] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 75.517818][ T35] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [pid 5232] newfstatat(AT_FDCWD, "./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4) = 0 [pid 5232] rmdir("./1/file0") = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./1") = 0 [pid 5232] mkdir("./2", 0777) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5319 [ 75.566519][ T35] bcachefs (loop2): fatal error - emergency read only [ 75.596273][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 ./strace-static-x86_64: Process 5319 attached [pid 5319] set_robust_list(0x5555807c5660, 24) = 0 [pid 5319] chdir("./2") = 0 [pid 5319] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5319] setpgid(0, 0) = 0 [pid 5319] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5319] write(3, "1000", 4) = 4 [pid 5319] close(3) = 0 [pid 5319] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5319] write(1, "executing program\n", 18executing program ) = 18 [ 75.638766][ T5231] bcachefs (loop2): unshutdown complete, journal seq 13 [ 75.666568][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [pid 5319] memfd_create("syzkaller", 0) = 3 [pid 5319] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 75.754529][ T5231] bcachefs (loop2): shutdown complete [pid 5316] 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 5318] 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 5317] 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 5319] 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 5318] <... write resumed>) = 16777216 [pid 5318] munmap(0x7fc387600000, 138412032) = 0 [pid 5316] <... write resumed>) = 16777216 [pid 5318] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5318] ioctl(4, LOOP_SET_FD, 3 [pid 5316] munmap(0x7fc387600000, 138412032 [pid 5318] <... ioctl resumed>) = 0 [pid 5318] close(3) = 0 [pid 5318] close(4) = 0 [pid 5318] mkdir("./file0", 0777) = 0 [pid 5316] <... munmap resumed>) = 0 [pid 5316] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5316] ioctl(4, LOOP_SET_FD, 3 [pid 5318] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5316] <... ioctl resumed>) = 0 [pid 5316] close(3) = 0 [pid 5316] close(4) = 0 [pid 5316] mkdir("./file0", 0777 [pid 5317] <... write resumed>) = 16777216 [pid 5316] <... mkdir resumed>) = 0 [pid 5317] munmap(0x7fc387600000, 138412032 [ 76.243463][ T5318] loop0: detected capacity change from 0 to 32768 [ 76.279401][ T5316] loop4: detected capacity change from 0 to 32768 [pid 5316] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5317] <... munmap resumed>) = 0 [pid 5317] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5317] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5319] <... write resumed>) = 16777216 [pid 5319] munmap(0x7fc387600000, 138412032 [pid 5317] close(3) = 0 [pid 5317] close(4) = 0 [pid 5317] mkdir("./file0", 0777) = 0 [pid 5317] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5319] <... munmap resumed>) = 0 [pid 5319] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 76.352844][ T5317] loop1: detected capacity change from 0 to 32768 [pid 5319] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5319] close(3) = 0 [pid 5319] close(4) = 0 [pid 5319] mkdir("./file0", 0777) = 0 [ 76.407157][ T5319] loop3: detected capacity change from 0 to 32768 [ 76.746849][ T5317] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 76.761521][ T5318] 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 [ 76.788789][ T5317] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 76.794795][ T5318] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 76.798412][ T5319] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 76.807253][ T5318] bcachefs (loop0): Version upgrade required: [ 76.807253][ T5318] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 76.807253][ T5318] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 76.807253][ T5318] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 76.890785][ T5318] bcachefs (loop0): dropping and reconstructing all alloc info [ 76.903702][ T5319] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 76.937584][ T5316] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 76.948388][ T5318] bcachefs (loop0): check_topology... done [ 76.958050][ T5316] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 76.967434][ T5318] bcachefs (loop0): accounting_read... done [ 76.993140][ T5318] bcachefs (loop0): alloc_read... done [ 77.004493][ T5318] bcachefs (loop0): stripes_read... done [ 77.021390][ T5318] bcachefs (loop0): snapshots_read... done [ 77.043011][ T5318] bcachefs (loop0): check_allocations... [ 77.046071][ T5317] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5319] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5317] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... umount2 resumed>) = 0 [pid 5317] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5231] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5317] ioctl(3, LOOP_CLR_FD [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5317] <... ioctl resumed>) = 0 [pid 5231] newfstatat(AT_FDCWD, "./1/file0", [pid 5317] close(3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./1/file0") = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./1") = 0 [pid 5231] mkdir("./2", 0777) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5349 ./strace-static-x86_64: Process 5349 attached [pid 5349] set_robust_list(0x5555807c5660, 24) = 0 [pid 5349] chdir("./2") = 0 [pid 5349] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5349] setpgid(0, 0) = 0 [pid 5349] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5349] write(3, "1000", 4) = 4 [pid 5349] close(3) = 0 [pid 5349] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5349] write(1, "executing program\n", 18) = 18 [ 77.163777][ T5318] done [pid 5349] memfd_create("syzkaller", 0) = 3 [pid 5349] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5319] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5319] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5316] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5319] <... openat resumed>) = 3 [pid 5319] ioctl(3, LOOP_CLR_FD [pid 5316] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5319] <... ioctl resumed>) = 0 [pid 5316] <... openat resumed>) = 3 [pid 5319] close(3 [pid 5316] ioctl(3, LOOP_CLR_FD) = 0 [ 77.197648][ T5319] bcachefs: bch2_fs_get_tree() error: EINVAL [ 77.211751][ T5318] bcachefs (loop0): going read-write [ 77.227801][ T5316] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5316] close(3 [pid 5318] <... mount resumed>) = 0 [pid 5318] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5318] chdir("./file0") = 0 [pid 5318] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [ 77.313946][ T5318] bcachefs (loop0): done starting filesystem [pid 5318] ioctl(4, LOOP_CLR_FD) = 0 [pid 5318] close(4) = 0 [pid 5318] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5318] exit_group(0) = ? [pid 5318] +++ exited with 0 +++ [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5318, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=45 /* 0.45 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5229] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5229] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./2/binderfs") = 0 [ 77.470089][ T5229] bcachefs (loop0): shutting down [ 77.475287][ T5229] bcachefs (loop0): going read-only [ 77.485506][ T5229] bcachefs (loop0): finished waiting for writes to stop [pid 5229] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5317] <... close resumed>) = 0 [pid 5317] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5317] exit_group(0) = ? [pid 5317] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5317, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=45 /* 0.45 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5230] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 77.532905][ T5229] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [pid 5230] getdents64(3, [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 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./2/binderfs") = 0 [pid 5230] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./2/bus", [pid 5319] <... close resumed>) = 0 [pid 5316] <... close resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5316] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] unlink("./2/bus" [pid 5319] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] <... unlink resumed>) = 0 [pid 5319] <... openat resumed>) = 3 [pid 5316] <... openat resumed>) = 3 [pid 5230] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5319] exit_group(0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5319] <... exit_group resumed>) = ? [pid 5230] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5316] exit_group(0 [pid 5230] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5319] +++ exited with 0 +++ [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5316] <... exit_group resumed>) = ? [pid 5230] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5319, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=48 /* 0.48 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5230] <... openat resumed>) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5316] +++ exited with 0 +++ [pid 5232] <... restart_syscall resumed>) = 0 [pid 5230] getdents64(4, [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5316, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=46 /* 0.46 s */} --- [pid 5233] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] getdents64(4, [pid 5233] newfstatat(3, "", [pid 5232] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] close(4 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... close resumed>) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... openat resumed>) = 3 [pid 5230] rmdir("./2/file0" [pid 5233] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5232] newfstatat(3, "", [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./1/binderfs" [pid 5230] <... rmdir resumed>) = 0 [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, [pid 5233] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] getdents64(3, [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] newfstatat(AT_FDCWD, "./1/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] close(3 [pid 5233] unlink("./1/bus" [pid 5232] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... unlink resumed>) = 0 [pid 5230] <... close resumed>) = 0 [pid 5233] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] rmdir("./2" [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./1/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... rmdir resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] mkdir("./3", 0777 [pid 5233] openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] unlink("./2/binderfs" [pid 5233] <... openat resumed>) = 4 [ 77.616848][ T3031] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [ 77.639011][ T3031] bcachefs (loop0): fatal error - emergency read only [ 77.657327][ T5229] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 13 [pid 5233] newfstatat(4, "", [pid 5232] <... unlink resumed>) = 0 [pid 5230] <... mkdir resumed>) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... openat resumed>) = 3 [pid 5232] newfstatat(AT_FDCWD, "./2/bus", [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] unlink("./2/bus" [pid 5230] close(3 [pid 5233] getdents64(4, [pid 5230] <... close resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] <... unlink resumed>) = 0 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5353 ./strace-static-x86_64: Process 5353 attached [pid 5232] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5353] set_robust_list(0x5555807c5660, 24 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5353] <... set_robust_list resumed>) = 0 [pid 5233] getdents64(4, [pid 5232] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5353] chdir("./3" [pid 5233] close(4 [pid 5232] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5353] <... chdir resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5353] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] rmdir("./1/file0" [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5353] <... prctl resumed>) = 0 [pid 5353] setpgid(0, 0 [pid 5232] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] <... rmdir resumed>) = 0 [pid 5353] <... setpgid resumed>) = 0 [pid 5232] <... openat resumed>) = 4 [pid 5353] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, [pid 5233] getdents64(3, [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5353] <... openat resumed>) = 3 [pid 5232] getdents64(4, [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5353] write(3, "1000", 4 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(3 [pid 5232] close(4 [pid 5353] <... write resumed>) = 4 [pid 5233] <... close resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5353] close(3 [pid 5233] rmdir("./1" [pid 5232] rmdir("./2/file0") = 0 [pid 5353] <... close resumed>) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./2" [pid 5233] <... rmdir resumed>) = 0 [pid 5232] <... rmdir resumed>) = 0 [pid 5232] mkdir("./3", 0777 [pid 5353] symlink("/dev/binderfs", "./binderfs" [pid 5233] mkdir("./2", 0777 [pid 5232] <... mkdir resumed>) = 0 [pid 5353] <... symlink resumed>) = 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5353] write(1, "executing program\n", 18 [pid 5232] <... openat resumed>) = 3 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWRexecuting program [pid 5353] <... write resumed>) = 18 [pid 5233] <... openat resumed>) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5353] memfd_create("syzkaller", 0 [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] close(3 [pid 5353] <... memfd_create resumed>) = 3 [pid 5233] <... close resumed>) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5353] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [ 77.668627][ T5229] bcachefs (loop0): unshutdown complete, journal seq 13 [ 77.687982][ T5229] bcachefs (loop0): done going read-only, filesystem not clean [pid 5232] close(3./strace-static-x86_64: Process 5354 attached [pid 5353] <... mmap resumed>) = 0x7fc387600000 [pid 5232] <... close resumed>) = 0 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5354 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5355 attached [pid 5355] set_robust_list(0x5555807c5660, 24) = 0 [pid 5354] set_robust_list(0x5555807c5660, 24 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5355 [pid 5355] chdir("./3") = 0 [pid 5354] <... set_robust_list resumed>) = 0 [pid 5355] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5354] chdir("./2" [pid 5355] <... prctl resumed>) = 0 [pid 5354] <... chdir resumed>) = 0 [pid 5355] setpgid(0, 0) = 0 [pid 5354] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5355] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5354] <... prctl resumed>) = 0 [pid 5354] setpgid(0, 0) = 0 [pid 5355] <... openat resumed>) = 3 [pid 5355] write(3, "1000", 4 [pid 5354] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5355] <... write resumed>) = 4 [pid 5354] <... openat resumed>) = 3 [pid 5355] close(3) = 0 [pid 5354] write(3, "1000", 4 [pid 5355] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5354] <... write resumed>) = 4 executing program [pid 5354] close(3 [pid 5355] write(1, "executing program\n", 18 [pid 5354] <... close resumed>) = 0 [pid 5355] <... write resumed>) = 18 [pid 5354] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5355] memfd_create("syzkaller", 0 [ 77.758592][ T5229] bcachefs (loop0): shutdown complete [pid 5354] write(1, "executing program\n", 18executing program [pid 5355] <... memfd_create resumed>) = 3 [pid 5354] <... write resumed>) = 18 [pid 5354] memfd_create("syzkaller", 0 [pid 5355] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5354] <... memfd_create resumed>) = 3 [pid 5355] <... mmap resumed>) = 0x7fc387600000 [pid 5354] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5349] <... write resumed>) = 16777216 [pid 5349] munmap(0x7fc387600000, 138412032) = 0 [pid 5349] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5349] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5349] close(3) = 0 [pid 5349] close(4) = 0 [pid 5349] mkdir("./file0", 0777) = 0 [ 77.984962][ T5349] loop2: detected capacity change from 0 to 32768 [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 5353] 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 5355] 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 5354] 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 5353] <... write resumed>) = 16777216 [pid 5353] munmap(0x7fc387600000, 138412032) = 0 [pid 5353] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5353] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5353] close(3) = 0 [pid 5355] <... write resumed>) = 16777216 [pid 5353] close(4) = 0 [pid 5355] munmap(0x7fc387600000, 138412032 [pid 5353] mkdir("./file0", 0777) = 0 [ 78.370669][ T5353] loop1: detected capacity change from 0 to 32768 [pid 5353] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5355] <... munmap resumed>) = 0 [pid 5355] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5355] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5355] close(3) = 0 [pid 5355] close(4) = 0 [pid 5355] mkdir("./file0", 0777) = 0 [pid 5355] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5354] <... write resumed>) = 16777216 [ 78.439696][ T5355] loop3: detected capacity change from 0 to 32768 [pid 5354] munmap(0x7fc387600000, 138412032) = 0 [pid 5354] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5354] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5354] close(3) = 0 [pid 5354] close(4) = 0 [pid 5354] mkdir("./file0", 0777) = 0 [ 78.519929][ T5354] loop4: detected capacity change from 0 to 32768 [ 78.669005][ T5349] 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 [ 78.671289][ T5355] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 78.706303][ T5353] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 78.706889][ T5349] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 78.723797][ T5349] bcachefs (loop2): Version upgrade required: [ 78.723797][ T5349] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.723797][ T5349] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 78.723797][ T5349] 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.736302][ T5353] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 78.803646][ T5355] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 78.812650][ T5354] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 78.823058][ T5354] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 78.841229][ T5349] bcachefs (loop2): dropping and reconstructing all alloc info [ 78.863784][ T5349] bcachefs (loop2): check_topology... done [ 78.870366][ T5349] bcachefs (loop2): accounting_read... done [ 78.901834][ T5349] bcachefs (loop2): alloc_read... done [ 78.940749][ T5349] bcachefs (loop2): stripes_read... done [ 78.975487][ T5349] bcachefs (loop2): snapshots_read... done [pid 5354] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5355] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5355] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5355] ioctl(3, LOOP_CLR_FD) = 0 [pid 5355] close(3 [pid 5353] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5353] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5353] ioctl(3, LOOP_CLR_FD) = 0 [ 79.005505][ T5349] bcachefs (loop2): check_allocations... [ 79.012439][ T5355] bcachefs: bch2_fs_get_tree() error: EINVAL [ 79.047221][ T5353] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5353] close(3 [pid 5354] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 79.101751][ T5354] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5354] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5354] ioctl(3, LOOP_CLR_FD) = 0 [pid 5354] close(3 [pid 5229] <... umount2 resumed>) = 0 [ 79.150301][ T5349] done [pid 5229] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./2/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./2") = 0 [pid 5229] mkdir("./3", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 79.199540][ T5349] bcachefs (loop2): going read-write [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5387 attached , child_tidptr=0x5555807c5650) = 5387 [pid 5387] set_robust_list(0x5555807c5660, 24 [pid 5349] <... mount resumed>) = 0 [pid 5387] <... set_robust_list resumed>) = 0 [pid 5349] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5387] chdir("./3") = 0 [pid 5387] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5349] <... openat resumed>) = 3 [pid 5387] setpgid(0, 0 [pid 5349] chdir("./file0" [pid 5387] <... setpgid resumed>) = 0 [pid 5387] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5349] <... chdir resumed>) = 0 [pid 5387] <... openat resumed>) = 3 [pid 5349] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5387] write(3, "1000", 4 [pid 5349] <... openat resumed>) = 4 [pid 5349] ioctl(4, LOOP_CLR_FD) = 0 [ 79.237890][ T5349] bcachefs (loop2): done starting filesystem executing program [pid 5387] <... write resumed>) = 4 [pid 5349] close(4) = 0 [pid 5387] close(3 [pid 5349] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5387] <... close resumed>) = 0 [pid 5387] symlink("/dev/binderfs", "./binderfs") = 0 [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) = 0x7fc387600000 [pid 5349] <... openat resumed>) = 4 [pid 5349] exit_group(0) = ? [pid 5349] +++ exited with 0 +++ [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5349, si_uid=0, si_status=0, si_utime=14 /* 0.14 s */, si_stime=39 /* 0.39 s */} --- [pid 5231] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5231] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5353] <... close resumed>) = 0 [pid 5231] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5353] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] newfstatat(3, "", [pid 5353] <... openat resumed>) = 3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, [pid 5353] exit_group(0 [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5355] <... close resumed>) = 0 [pid 5353] <... exit_group resumed>) = ? [pid 5231] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5353] +++ exited with 0 +++ [pid 5231] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./2/binderfs" [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5353, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=53 /* 0.53 s */} --- [pid 5231] <... unlink resumed>) = 0 [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5231] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5355] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] <... restart_syscall resumed>) = 0 [pid 5230] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5355] <... openat resumed>) = 3 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5355] exit_group(0 [pid 5230] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5355] <... exit_group resumed>) = ? [pid 5230] <... openat resumed>) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5355] +++ exited with 0 +++ [pid 5230] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5355, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=46 /* 0.46 s */} --- [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5230] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... restart_syscall resumed>) = 0 [pid 5230] unlink("./3/binderfs") = 0 [pid 5232] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./3/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(AT_FDCWD, "./3/bus", [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] getdents64(3, [pid 5230] unlink("./3/bus" [pid 5354] <... close resumed>) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] <... unlink resumed>) = 0 [pid 5232] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./3/file0", [pid 5232] newfstatat(AT_FDCWD, "./3/binderfs", [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5354] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [ 79.420518][ T5231] bcachefs (loop2): shutting down [ 79.430987][ T5231] bcachefs (loop2): going read-only [ 79.446650][ T5231] bcachefs (loop2): finished waiting for writes to stop [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] unlink("./3/binderfs" [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... unlink resumed>) = 0 [pid 5230] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", [pid 5232] umount2("./3/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./3/bus", [pid 5230] getdents64(4, [pid 5354] <... openat resumed>) = 3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5354] exit_group(0 [pid 5232] unlink("./3/bus" [pid 5230] getdents64(4, [pid 5354] <... exit_group resumed>) = ? [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] <... unlink resumed>) = 0 [pid 5230] close(4 [pid 5354] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5354, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=48 /* 0.48 s */} --- [pid 5230] <... close resumed>) = 0 [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 5232] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] rmdir("./3/file0" [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... restart_syscall resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./3/file0", [pid 5230] <... rmdir resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] getdents64(3, [pid 5232] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] close(3 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... close resumed>) = 0 [pid 5233] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] <... openat resumed>) = 4 [pid 5230] rmdir("./3" [pid 5233] <... openat resumed>) = 3 [pid 5232] newfstatat(4, "", [pid 5230] <... rmdir resumed>) = 0 [pid 5233] newfstatat(3, "", [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] mkdir("./4", 0777 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, [pid 5233] getdents64(3, [pid 5230] <... mkdir resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] getdents64(4, [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5232] close(4 [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... close resumed>) = 0 [pid 5233] unlink("./2/binderfs" [pid 5232] rmdir("./3/file0" [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... rmdir resumed>) = 0 [pid 5233] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] getdents64(3, [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5233] newfstatat(AT_FDCWD, "./2/bus", [pid 5232] close(3 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... close resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] unlink("./2/bus" [pid 5232] rmdir("./3" [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... rmdir resumed>) = 0 [ 79.468184][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 11 [pid 5230] close(3 [pid 5233] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] mkdir("./4", 0777 [pid 5230] <... close resumed>) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... mkdir resumed>) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5233] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5233] newfstatat(4, "", [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5388 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5233] getdents64(4, [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] getdents64(4, [pid 5232] close(3./strace-static-x86_64: Process 5388 attached [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] <... close resumed>) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./2/file0" [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5388] set_robust_list(0x5555807c5660, 24 [pid 5233] <... rmdir resumed>) = 0 ./strace-static-x86_64: Process 5389 attached [pid 5388] <... set_robust_list resumed>) = 0 [pid 5233] getdents64(3, [pid 5388] chdir("./4" [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5389] set_robust_list(0x5555807c5660, 24 [pid 5388] <... chdir resumed>) = 0 [pid 5233] close(3 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5389 [pid 5388] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5389] <... set_robust_list resumed>) = 0 [pid 5388] setpgid(0, 0 [pid 5233] <... close resumed>) = 0 [pid 5389] chdir("./4" [pid 5388] <... setpgid resumed>) = 0 [pid 5233] rmdir("./2" [pid 5389] <... chdir resumed>) = 0 [pid 5388] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] <... rmdir resumed>) = 0 [pid 5389] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5389] setpgid(0, 0 [pid 5388] <... openat resumed>) = 3 [pid 5388] write(3, "1000", 4 [pid 5389] <... setpgid resumed>) = 0 [pid 5388] <... write resumed>) = 4 [pid 5233] mkdir("./3", 0777 [pid 5388] close(3 [pid 5389] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5388] <... close resumed>) = 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5388] symlink("/dev/binderfs", "./binderfs" [pid 5389] <... openat resumed>) = 3 [pid 5388] <... symlink resumed>) = 0 executing program executing program [pid 5388] write(1, "executing program\n", 18 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5389] write(3, "1000", 4) = 4 [pid 5389] close(3) = 0 [pid 5389] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5389] write(1, "executing program\n", 18) = 18 [pid 5389] memfd_create("syzkaller", 0 [pid 5388] <... write resumed>) = 18 [pid 5233] <... openat resumed>) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5389] <... memfd_create resumed>) = 3 [pid 5388] memfd_create("syzkaller", 0 [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5389] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5233] close(3 [pid 5389] <... mmap resumed>) = 0x7fc387600000 [ 79.565164][ T987] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 79.595087][ T987] bcachefs (loop2): fatal error - emergency read only [pid 5388] <... memfd_create resumed>) = 3 [pid 5233] <... close resumed>) = 0 [pid 5388] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5390 attached [pid 5388] <... mmap resumed>) = 0x7fc387600000 [pid 5390] set_robust_list(0x5555807c5660, 24) = 0 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5390 [pid 5390] chdir("./3") = 0 [pid 5390] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [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 [ 79.615911][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [ 79.646377][ T5231] bcachefs (loop2): unshutdown complete, journal seq 13 [pid 5390] setpgid(0, 0) = 0 [pid 5390] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5390] write(3, "1000", 4) = 4 [pid 5390] close(3) = 0 [pid 5390] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5390] write(1, "executing program\n", 18) = 18 [pid 5390] memfd_create("syzkaller", 0) = 3 [pid 5390] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 79.666845][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [ 79.721403][ T5231] bcachefs (loop2): shutdown complete [pid 5389] 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 5388] 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 5390] 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 5387] <... write resumed>) = 16777216 [pid 5387] munmap(0x7fc387600000, 138412032) = 0 [pid 5387] openat(AT_FDCWD, "/dev/loop0", 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 [ 80.107646][ T5387] loop0: detected capacity change from 0 to 32768 [pid 5387] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5389] <... write resumed>) = 16777216 [pid 5389] munmap(0x7fc387600000, 138412032) = 0 [pid 5390] <... write resumed>) = 16777216 [pid 5389] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5390] munmap(0x7fc387600000, 138412032 [pid 5389] <... openat resumed>) = 4 [pid 5389] ioctl(4, LOOP_SET_FD, 3 [pid 5388] <... write resumed>) = 16777216 [pid 5389] <... ioctl resumed>) = 0 [pid 5388] munmap(0x7fc387600000, 138412032 [pid 5389] close(3) = 0 [pid 5389] close(4) = 0 [pid 5389] mkdir("./file0", 0777 [pid 5390] <... munmap resumed>) = 0 [pid 5388] <... munmap resumed>) = 0 [pid 5390] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5390] ioctl(4, LOOP_SET_FD, 3 [pid 5389] <... mkdir resumed>) = 0 [pid 5389] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5388] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5390] <... ioctl resumed>) = 0 [pid 5388] <... openat resumed>) = 4 [pid 5388] ioctl(4, LOOP_SET_FD, 3 [ 80.324730][ T5389] loop3: detected capacity change from 0 to 32768 [ 80.357557][ T5390] loop4: detected capacity change from 0 to 32768 [pid 5390] close(3) = 0 [pid 5388] <... ioctl resumed>) = 0 [pid 5390] close(4) = 0 [pid 5388] close(3) = 0 [pid 5388] close(4) = 0 [pid 5388] mkdir("./file0", 0777 [pid 5390] mkdir("./file0", 0777) = 0 [pid 5390] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5388] <... mkdir resumed>) = 0 [ 80.378525][ T5388] loop1: detected capacity change from 0 to 32768 [ 80.526763][ T5387] 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.549457][ T5387] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 80.558582][ T5387] bcachefs (loop0): Version upgrade required: [ 80.558582][ T5387] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 80.558582][ T5387] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 80.558582][ T5387] 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.653651][ T5388] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 80.655879][ T5387] bcachefs (loop0): dropping and reconstructing all alloc info [ 80.663207][ T5388] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 80.673476][ T5390] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 80.712028][ T5387] bcachefs (loop0): check_topology... done [ 80.718263][ T5387] bcachefs (loop0): accounting_read... [ 80.718569][ T5390] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 80.734392][ T5389] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 80.761756][ T5387] done [ 80.764592][ T5387] bcachefs (loop0): alloc_read... done [ 80.770400][ T5389] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 80.800461][ T5387] bcachefs (loop0): stripes_read... done [pid 5388] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5231] <... umount2 resumed>) = 0 [pid 5231] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5388] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 80.821135][ T5387] bcachefs (loop0): snapshots_read... done [ 80.832972][ T5387] bcachefs (loop0): check_allocations... [ 80.854709][ T5388] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5231] umount2("./2/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5388] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5388] <... openat resumed>) = 3 [pid 5231] <... openat resumed>) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5388] ioctl(3, LOOP_CLR_FD [pid 5231] rmdir("./2/file0" [pid 5388] <... ioctl resumed>) = 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./2" [pid 5388] close(3 [pid 5231] <... rmdir resumed>) = 0 [pid 5231] mkdir("./3", 0777) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5420 attached [pid 5420] set_robust_list(0x5555807c5660, 24) = 0 [pid 5420] chdir("./3" [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5420 [pid 5420] <... chdir resumed>) = 0 [pid 5420] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5420] setpgid(0, 0) = 0 [pid 5420] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 80.891615][ T5387] done [ 80.907163][ T5387] bcachefs (loop0): going read-write [pid 5420] write(3, "1000", 4) = 4 [pid 5420] close(3) = 0 [pid 5420] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5420] write(1, "executing program\n", 18executing program ) = 18 [pid 5420] memfd_create("syzkaller", 0) = 3 [pid 5387] <... mount resumed>) = 0 [pid 5387] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5387] chdir("./file0") = 0 [pid 5387] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5420] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5387] <... openat resumed>) = 4 [pid 5420] <... mmap resumed>) = 0x7fc387600000 [pid 5387] ioctl(4, LOOP_CLR_FD) = 0 [ 80.956013][ T5387] bcachefs (loop0): done starting filesystem [pid 5387] close(4) = 0 [pid 5387] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5390] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5390] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5387] <... openat resumed>) = 4 [pid 5387] exit_group(0 [pid 5390] <... openat resumed>) = 3 [pid 5387] <... exit_group resumed>) = ? [pid 5390] ioctl(3, LOOP_CLR_FD [pid 5387] +++ exited with 0 +++ [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5387, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=36 /* 0.36 s */} --- [ 80.996547][ T5390] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5229] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5390] <... ioctl resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5390] close(3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5229] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./3/binderfs") = 0 [pid 5229] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5389] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5389] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5389] ioctl(3, LOOP_CLR_FD) = 0 [ 81.106948][ T5389] bcachefs: bch2_fs_get_tree() error: EINVAL [ 81.145608][ T5229] bcachefs (loop0): shutting down [pid 5389] close(3 [pid 5388] <... close resumed>) = 0 [ 81.153259][ T5229] bcachefs (loop0): going read-only [pid 5388] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5388] exit_group(0) = ? [pid 5388] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5388, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=47 /* 0.47 s */} --- [ 81.196417][ T5229] bcachefs (loop0): finished waiting for writes to stop [pid 5230] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5390] <... close resumed>) = 0 [pid 5230] newfstatat(3, "", [pid 5390] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5390] <... openat resumed>) = 3 [pid 5230] unlink("./4/binderfs") = 0 [pid 5390] exit_group(0 [pid 5230] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5390] <... exit_group resumed>) = ? [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./4/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./4/bus" [pid 5390] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5390, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5233] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 81.250257][ T5229] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [pid 5233] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [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 5233] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./3/binderfs") = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5233] umount2("./3/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] newfstatat(AT_FDCWD, "./3/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./3/bus") = 0 [pid 5233] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./3/file0") = 0 [pid 5233] getdents64(3, [pid 5230] getdents64(4, [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] <... close resumed>) = 0 [pid 5233] rmdir("./3" [pid 5230] getdents64(4, [pid 5233] <... rmdir resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [ 81.357799][ T35] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 54) [pid 5230] close(4) = 0 [pid 5233] mkdir("./4", 0777 [pid 5230] rmdir("./4/file0" [pid 5233] <... mkdir resumed>) = 0 [pid 5230] <... rmdir resumed>) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5389] <... close resumed>) = 0 [pid 5230] close(3 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] <... close resumed>) = 0 [pid 5230] rmdir("./4" [pid 5389] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000./strace-static-x86_64: Process 5423 attached ) = 3 [pid 5423] set_robust_list(0x5555807c5660, 24) = 0 [pid 5230] <... rmdir resumed>) = 0 [pid 5423] chdir("./4" [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5423 [pid 5423] <... chdir resumed>) = 0 [pid 5423] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5423] setpgid(0, 0) = 0 [pid 5423] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5389] exit_group(0 [pid 5230] mkdir("./5", 0777 [pid 5389] <... exit_group resumed>) = ? [pid 5230] <... mkdir resumed>) = 0 [pid 5389] +++ exited with 0 +++ [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5389, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=56 /* 0.56 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5232] <... restart_syscall resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [ 81.407200][ T35] bcachefs (loop0): fatal error - emergency read only [pid 5232] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] close(3 [pid 5423] write(3, "1000", 4 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5423] <... write resumed>) = 4 [pid 5232] <... openat resumed>) = 3 [pid 5423] close(3 [pid 5232] newfstatat(3, "", [pid 5423] <... close resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5423] symlink("/dev/binderfs", "./binderfs" [pid 5232] getdents64(3, [pid 5230] <... close resumed>) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./4/binderfs", [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5424 [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 ./strace-static-x86_64: Process 5424 attached [pid 5423] <... symlink resumed>) = 0 [pid 5232] unlink("./4/binderfs"executing program [pid 5423] write(1, "executing program\n", 18 [pid 5232] <... unlink resumed>) = 0 [pid 5423] <... write resumed>) = 18 [pid 5232] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5423] memfd_create("syzkaller", 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5423] <... memfd_create resumed>) = 3 [pid 5232] newfstatat(AT_FDCWD, "./4/bus", [pid 5424] set_robust_list(0x5555807c5660, 24 [pid 5423] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5423] <... mmap resumed>) = 0x7fc387600000 [pid 5232] unlink("./4/bus" [pid 5424] <... set_robust_list resumed>) = 0 [pid 5424] chdir("./5" [pid 5232] <... unlink resumed>) = 0 [pid 5232] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5424] <... chdir resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5424] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5232] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5424] <... prctl resumed>) = 0 [pid 5232] <... openat resumed>) = 4 [pid 5424] setpgid(0, 0 [pid 5232] newfstatat(4, "", [pid 5424] <... setpgid resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5424] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] getdents64(4, [pid 5424] <... openat resumed>) = 3 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 executing program [pid 5424] write(3, "1000", 4 [pid 5232] getdents64(4, [pid 5424] <... write resumed>) = 4 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5424] close(3 [pid 5232] close(4 [pid 5424] <... close resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5424] symlink("/dev/binderfs", "./binderfs" [pid 5232] rmdir("./4/file0" [pid 5424] <... symlink resumed>) = 0 [pid 5424] write(1, "executing program\n", 18 [pid 5232] <... rmdir resumed>) = 0 [pid 5424] <... write resumed>) = 18 [pid 5232] getdents64(3, [pid 5424] memfd_create("syzkaller", 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5424] <... memfd_create resumed>) = 3 [pid 5232] close(3 [pid 5424] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] <... close resumed>) = 0 [pid 5424] <... mmap resumed>) = 0x7fc387600000 [pid 5232] rmdir("./4") = 0 [pid 5232] mkdir("./5", 0777) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5425 attached [pid 5425] set_robust_list(0x5555807c5660, 24 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5425 [ 81.448588][ T5229] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 14 [ 81.475636][ T5229] bcachefs (loop0): unshutdown complete, journal seq 14 [ 81.484340][ T5229] bcachefs (loop0): done going read-only, filesystem not clean [pid 5425] <... set_robust_list resumed>) = 0 [pid 5425] chdir("./5") = 0 [pid 5425] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5425] setpgid(0, 0) = 0 [pid 5425] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5425] write(3, "1000", 4) = 4 [pid 5425] close(3) = 0 [pid 5425] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5425] write(1, "executing program\n", 18executing program ) = 18 [pid 5425] memfd_create("syzkaller", 0) = 3 [pid 5425] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 81.542120][ T5229] bcachefs (loop0): shutdown complete [pid 5424] 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 5420] <... write resumed>) = 16777216 [pid 5423] 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 5420] munmap(0x7fc387600000, 138412032) = 0 [pid 5420] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5420] ioctl(4, LOOP_SET_FD, 3 [pid 5425] 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 5420] <... ioctl resumed>) = 0 [pid 5420] close(3) = 0 [pid 5420] close(4) = 0 [pid 5420] mkdir("./file0", 0777) = 0 [ 81.925738][ T5420] loop2: detected capacity change from 0 to 32768 [pid 5420] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5424] <... write resumed>) = 16777216 [pid 5424] munmap(0x7fc387600000, 138412032) = 0 [pid 5424] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5424] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5424] close(3) = 0 [pid 5424] close(4) = 0 [pid 5424] mkdir("./file0", 0777) = 0 [ 82.077512][ T5424] loop1: detected capacity change from 0 to 32768 [pid 5424] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5425] <... write resumed>) = 16777216 [pid 5425] munmap(0x7fc387600000, 138412032) = 0 [pid 5425] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5425] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5425] close(3) = 0 [pid 5425] close(4) = 0 [pid 5425] mkdir("./file0", 0777 [pid 5423] <... write resumed>) = 16777216 [pid 5425] <... mkdir resumed>) = 0 [pid 5423] munmap(0x7fc387600000, 138412032 [ 82.267544][ T5425] loop3: detected capacity change from 0 to 32768 [pid 5425] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5423] <... munmap resumed>) = 0 [pid 5423] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5423] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5423] close(3) = 0 [pid 5423] close(4) = 0 [pid 5423] mkdir("./file0", 0777) = 0 [ 82.360668][ T5423] loop4: detected capacity change from 0 to 32768 [ 82.371260][ T5424] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 82.381512][ T5420] 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 [ 82.415604][ T5420] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 82.423861][ T5420] bcachefs (loop2): Version upgrade required: [ 82.423861][ T5420] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 82.423861][ T5420] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 82.423861][ T5420] 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.509417][ T5424] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 82.533783][ T5425] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 82.547040][ T5425] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 82.570892][ T5420] bcachefs (loop2): dropping and reconstructing all alloc info [ 82.681595][ T5420] bcachefs (loop2): check_topology... done [ 82.736300][ T5420] bcachefs (loop2): accounting_read... done [ 82.760888][ T5423] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 82.786187][ T5420] bcachefs (loop2): alloc_read... done [ 82.791791][ T5420] bcachefs (loop2): stripes_read... done [ 82.840852][ T5423] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 82.850330][ T5420] bcachefs (loop2): snapshots_read... done [ 82.868565][ T5420] bcachefs (loop2): check_allocations... [ 82.874876][ T5424] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5423] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5425] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5425] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5425] ioctl(3, LOOP_CLR_FD) = 0 [ 82.897181][ T5425] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5425] close(3 [pid 5424] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5424] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5424] ioctl(3, LOOP_CLR_FD) = 0 [ 82.988069][ T5420] done [ 83.007215][ T5420] bcachefs (loop2): going read-write [pid 5424] close(3 [pid 5229] <... umount2 resumed>) = 0 [pid 5229] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5420] <... mount resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5420] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5229] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./3/file0") = 0 [pid 5420] <... openat resumed>) = 3 [pid 5229] getdents64(3, [pid 5420] chdir("./file0" [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5420] <... chdir resumed>) = 0 [ 83.040068][ T5420] bcachefs (loop2): done starting filesystem [pid 5229] close(3 [pid 5420] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5229] <... close resumed>) = 0 [pid 5420] <... openat resumed>) = 4 [pid 5420] ioctl(4, LOOP_CLR_FD [pid 5229] rmdir("./3" [pid 5420] <... ioctl resumed>) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5229] mkdir("./4", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5420] close(4 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5420] <... close resumed>) = 0 [pid 5229] close(3 [pid 5420] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5229] <... close resumed>) = 0 [pid 5420] exit_group(0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5420] <... exit_group resumed>) = ? [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5458 [pid 5420] +++ exited with 0 +++ ./strace-static-x86_64: Process 5458 attached [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5420, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=39 /* 0.39 s */} --- [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5458] set_robust_list(0x5555807c5660, 24 [pid 5423] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5458] <... set_robust_list resumed>) = 0 [pid 5231] <... restart_syscall resumed>) = 0 [pid 5458] chdir("./4" [pid 5231] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5458] <... chdir resumed>) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5458] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5231] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5423] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5458] <... prctl resumed>) = 0 [pid 5423] <... openat resumed>) = 3 [pid 5231] <... openat resumed>) = 3 [pid 5458] setpgid(0, 0 [pid 5423] ioctl(3, LOOP_CLR_FD [pid 5231] newfstatat(3, "", [pid 5458] <... setpgid resumed>) = 0 [pid 5423] <... ioctl resumed>) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5458] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5423] close(3 [pid 5231] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5458] <... openat resumed>) = 3 [pid 5458] write(3, "1000", 4 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./3/binderfs", [pid 5458] <... write resumed>) = 4 [pid 5458] close(3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5458] <... close resumed>) = 0 [ 83.134028][ T5423] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5458] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5458] write(1, "executing program\n", 18 [pid 5231] unlink("./3/binderfs") = 0 executing program [pid 5458] <... write resumed>) = 18 [pid 5231] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5458] memfd_create("syzkaller", 0) = 3 [pid 5458] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5424] <... close resumed>) = 0 [pid 5425] <... close resumed>) = 0 [pid 5425] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [ 83.229586][ T5231] bcachefs (loop2): shutting down [ 83.247957][ T5231] bcachefs (loop2): going read-only [ 83.266092][ T5231] bcachefs (loop2): finished waiting for writes to stop [pid 5424] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5424] exit_group(0 [pid 5425] exit_group(0 [pid 5424] <... exit_group resumed>) = ? [pid 5425] <... exit_group resumed>) = ? [pid 5424] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5424, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=48 /* 0.48 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5425] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5425, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=45 /* 0.45 s */} --- [pid 5230] <... restart_syscall resumed>) = 0 [pid 5232] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", [pid 5232] <... openat resumed>) = 3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] newfstatat(3, "", [pid 5230] getdents64(3, [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./5/binderfs", [pid 5232] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./5/binderfs" [pid 5230] unlink("./5/binderfs" [pid 5232] <... unlink resumed>) = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5230] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./5/bus", [pid 5232] newfstatat(AT_FDCWD, "./5/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./5/bus" [pid 5230] unlink("./5/bus" [pid 5232] <... unlink resumed>) = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5232] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./5/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] newfstatat(AT_FDCWD, "./5/file0", [pid 5230] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4 [pid 5232] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... close resumed>) = 0 [pid 5230] rmdir("./5/file0" [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... rmdir resumed>) = 0 [pid 5232] <... openat resumed>) = 4 [pid 5230] getdents64(3, [pid 5232] newfstatat(4, "", [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] <... close resumed>) = 0 [pid 5232] getdents64(4, [pid 5230] rmdir("./5" [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] <... rmdir resumed>) = 0 [pid 5232] getdents64(4, [pid 5230] mkdir("./6", 0777 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4 [pid 5230] <... mkdir resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5232] rmdir("./5/file0" [pid 5230] <... openat resumed>) = 3 [ 83.289417][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5232] <... rmdir resumed>) = 0 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5232] getdents64(3, [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3 [pid 5232] close(3) = 0 [pid 5230] <... close resumed>) = 0 [pid 5232] rmdir("./5" [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] <... rmdir resumed>) = 0 [pid 5232] mkdir("./6", 0777./strace-static-x86_64: Process 5459 attached ) = 0 [pid 5459] set_robust_list(0x5555807c5660, 24 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5459 [pid 5459] <... set_robust_list resumed>) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5459] chdir("./6" [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5459] <... chdir resumed>) = 0 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5459] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5232] close(3 [pid 5459] <... prctl resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5459] setpgid(0, 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5459] <... setpgid resumed>) = 0 [pid 5459] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5460 [pid 5459] <... openat resumed>) = 3 ./strace-static-x86_64: Process 5460 attached [pid 5459] write(3, "1000", 4) = 4 [pid 5459] close(3) = 0 [pid 5460] set_robust_list(0x5555807c5660, 24 [pid 5459] symlink("/dev/binderfs", "./binderfs" [pid 5460] <... set_robust_list resumed>) = 0 [pid 5460] chdir("./6" [pid 5459] <... symlink resumed>) = 0 [pid 5460] <... chdir resumed>) = 0 executing program [pid 5459] write(1, "executing program\n", 18 [pid 5460] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5459] <... write resumed>) = 18 [pid 5460] <... prctl resumed>) = 0 [pid 5459] memfd_create("syzkaller", 0 [pid 5460] setpgid(0, 0) = 0 [pid 5460] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5459] <... memfd_create resumed>) = 3 [pid 5459] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5460] write(3, "1000", 4) = 4 [pid 5460] close(3executing program ) = 0 [pid 5460] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5460] write(1, "executing program\n", 18) = 18 [pid 5460] memfd_create("syzkaller", 0) = 3 [pid 5460] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5423] <... close resumed>) = 0 [pid 5423] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5423] exit_group(0) = ? [pid 5423] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5423, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=47 /* 0.47 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5233] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./4/binderfs") = 0 [pid 5233] umount2("./4/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./4/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./4/bus") = 0 [pid 5233] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [ 83.462665][ T35] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 83.476306][ T35] bcachefs (loop2): fatal error - emergency read only [ 83.484367][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 14 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./4/file0") = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5233] rmdir("./4") = 0 [pid 5233] mkdir("./5", 0777) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5461 attached , child_tidptr=0x5555807c5650) = 5461 [pid 5461] set_robust_list(0x5555807c5660, 24) = 0 [pid 5461] chdir("./5") = 0 [pid 5461] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5461] setpgid(0, 0) = 0 [pid 5461] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 83.526088][ T5231] bcachefs (loop2): unshutdown complete, journal seq 14 [ 83.556477][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [pid 5461] write(3, "1000", 4) = 4 [pid 5461] close(3) = 0 [pid 5461] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5461] write(1, "executing program\n", 18) = 18 [pid 5461] memfd_create("syzkaller", 0) = 3 [pid 5461] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 83.614527][ T5231] bcachefs (loop2): shutdown complete [pid 5459] 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 5458] 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 5460] 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 5461] 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 5458] <... write resumed>) = 16777216 [pid 5458] munmap(0x7fc387600000, 138412032) = 0 [pid 5458] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5458] ioctl(4, LOOP_SET_FD, 3 [pid 5459] <... write resumed>) = 16777216 [pid 5458] <... ioctl resumed>) = 0 [pid 5458] close(3 [pid 5459] munmap(0x7fc387600000, 138412032 [pid 5458] <... close resumed>) = 0 [pid 5458] close(4) = 0 [pid 5458] mkdir("./file0", 0777) = 0 [pid 5458] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5459] <... munmap resumed>) = 0 [pid 5459] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [ 84.088800][ T5458] loop0: detected capacity change from 0 to 32768 [pid 5459] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5459] close(3) = 0 [pid 5459] close(4) = 0 [pid 5459] mkdir("./file0", 0777) = 0 [pid 5460] <... write resumed>) = 16777216 [ 84.142404][ T5459] loop1: detected capacity change from 0 to 32768 [pid 5459] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5460] munmap(0x7fc387600000, 138412032) = 0 [pid 5460] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5460] ioctl(4, LOOP_SET_FD, 3 [pid 5461] <... write resumed>) = 16777216 [pid 5461] munmap(0x7fc387600000, 138412032 [pid 5460] <... ioctl resumed>) = 0 [pid 5460] close(3) = 0 [pid 5460] close(4 [pid 5461] <... munmap resumed>) = 0 [pid 5460] <... close resumed>) = 0 [pid 5461] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5460] mkdir("./file0", 0777 [pid 5461] <... openat resumed>) = 4 [pid 5460] <... mkdir resumed>) = 0 [pid 5461] ioctl(4, LOOP_SET_FD, 3 [pid 5460] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5461] <... ioctl resumed>) = 0 [pid 5461] close(3) = 0 [pid 5461] close(4) = 0 [pid 5461] mkdir("./file0", 0777) = 0 [ 84.256604][ T5460] loop3: detected capacity change from 0 to 32768 [ 84.277812][ T5461] loop4: detected capacity change from 0 to 32768 [ 84.496742][ T5458] 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 [ 84.519417][ T5458] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 84.528390][ T5458] bcachefs (loop0): Version upgrade required: [ 84.528390][ T5458] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 84.528390][ T5458] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 84.528390][ T5458] 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 [ 84.572830][ T5459] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 84.601448][ T5458] bcachefs (loop0): dropping and reconstructing all alloc info [ 84.618897][ T5459] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 84.653650][ T5460] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 84.661133][ T5458] bcachefs (loop0): check_topology... done [ 84.668946][ T5458] bcachefs (loop0): accounting_read... [ 84.669146][ T5461] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 84.684777][ T5458] done [ 84.688067][ T5458] bcachefs (loop0): alloc_read... done [ 84.693663][ T5458] bcachefs (loop0): stripes_read... done [pid 5461] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5459] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 84.700128][ T5458] bcachefs (loop0): snapshots_read... done [ 84.706270][ T5458] bcachefs (loop0): check_allocations... [ 84.713443][ T5460] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 84.728743][ T5461] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 84.747665][ T5459] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5459] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5459] ioctl(3, LOOP_CLR_FD) = 0 [ 84.833323][ T5458] done [ 84.885496][ T5458] bcachefs (loop0): going read-write [pid 5459] close(3 [pid 5458] <... mount resumed>) = 0 [pid 5458] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5458] chdir("./file0") = 0 [pid 5458] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5458] ioctl(4, LOOP_CLR_FD) = 0 [ 84.936262][ T5458] bcachefs (loop0): done starting filesystem [pid 5458] close(4) = 0 [pid 5458] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5458] exit_group(0) = ? [pid 5458] +++ exited with 0 +++ [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5458, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=39 /* 0.39 s */} --- [pid 5229] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5229] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./4/binderfs") = 0 [pid 5229] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... umount2 resumed>) = 0 [pid 5461] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5461] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5461] ioctl(3, LOOP_CLR_FD [pid 5231] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./3/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./3/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./3/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [ 84.983076][ T5461] bcachefs: bch2_fs_get_tree() error: EINVAL [ 85.013743][ T5460] bcachefs: bch2_fs_get_tree() error: EINVAL [ 85.026107][ T5229] bcachefs (loop0): shutting down [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./3/file0" [pid 5461] <... ioctl resumed>) = 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./3") = 0 [pid 5461] close(3 [pid 5460] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5459] <... close resumed>) = 0 [pid 5460] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5459] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] mkdir("./4", 0777 [pid 5460] <... openat resumed>) = 3 [pid 5459] <... openat resumed>) = 3 [pid 5231] <... mkdir resumed>) = 0 [pid 5460] ioctl(3, LOOP_CLR_FD [pid 5459] exit_group(0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5460] <... ioctl resumed>) = 0 [pid 5459] <... exit_group resumed>) = ? [pid 5231] <... openat resumed>) = 3 [pid 5460] close(3 [pid 5459] +++ exited with 0 +++ [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5459, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=46 /* 0.46 s */} --- [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5493 attached ) = -1 EINVAL (Invalid argument) [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5493 [pid 5230] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5493] set_robust_list(0x5555807c5660, 24 [pid 5230] newfstatat(3, "", [pid 5493] <... set_robust_list resumed>) = 0 [ 85.031210][ T5229] bcachefs (loop0): going read-only [ 85.044192][ T5229] bcachefs (loop0): finished waiting for writes to stop [ 85.055027][ T5229] bcachefs (loop0): flushing journal and stopping allocators, journal seq 11 [pid 5493] chdir("./4" [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5493] <... chdir resumed>) = 0 [pid 5493] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5230] getdents64(3, [pid 5493] <... prctl resumed>) = 0 [pid 5493] setpgid(0, 0 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5493] <... setpgid resumed>) = 0 [pid 5493] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./6/binderfs") = 0 [pid 5493] <... openat resumed>) = 3 [pid 5230] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5493] write(3, "1000", 4 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./6/bus", [pid 5493] <... write resumed>) = 4 [pid 5493] close(3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5493] <... close resumed>) = 0 [pid 5230] unlink("./6/bus" [pid 5493] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... unlink resumed>) = 0 [pid 5493] <... symlink resumed>) = 0 [pid 5230] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [pid 5493] write(1, "executing program\n", 18 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5493] <... write resumed>) = 18 [pid 5230] newfstatat(AT_FDCWD, "./6/file0", [pid 5493] memfd_create("syzkaller", 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5493] <... memfd_create resumed>) = 3 [pid 5230] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5493] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5493] <... mmap resumed>) = 0x7fc387600000 [pid 5230] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5230] rmdir("./6/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./6") = 0 [pid 5230] mkdir("./7", 0777) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 85.185859][ T5229] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 16 [pid 5230] close(3executing program ) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5495 attached , child_tidptr=0x5555807c5650) = 5495 [pid 5495] set_robust_list(0x5555807c5660, 24) = 0 [pid 5495] chdir("./7") = 0 [pid 5495] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5495] setpgid(0, 0) = 0 [pid 5495] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5495] write(3, "1000", 4) = 4 [pid 5495] close(3) = 0 [pid 5495] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5495] write(1, "executing program\n", 18) = 18 [pid 5495] memfd_create("syzkaller", 0) = 3 [pid 5495] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 85.265723][ T5229] bcachefs (loop0): unshutdown complete, journal seq 17 [ 85.288773][ T5229] bcachefs (loop0): done going read-only, filesystem not clean [pid 5461] <... close resumed>) = 0 [pid 5461] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5460] <... close resumed>) = 0 [pid 5461] <... openat resumed>) = 3 [pid 5460] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5461] exit_group(0) = ? [pid 5460] <... openat resumed>) = 3 [pid 5461] +++ exited with 0 +++ [pid 5460] exit_group(0 [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5461, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=43 /* 0.43 s */} --- [pid 5460] <... exit_group resumed>) = ? [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 [pid 5460] +++ exited with 0 +++ [pid 5233] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5460, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=49 /* 0.49 s */} --- [pid 5233] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] newfstatat(3, "", [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 85.406957][ T5229] bcachefs (loop0): shutdown complete [pid 5232] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] getdents64(3, [pid 5232] <... openat resumed>) = 3 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] newfstatat(3, "", [pid 5233] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] getdents64(3, [pid 5233] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] unlink("./5/binderfs" [pid 5232] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] newfstatat(AT_FDCWD, "./6/binderfs", [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./5/bus", [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./5/bus" [pid 5232] unlink("./6/binderfs" [pid 5233] <... unlink resumed>) = 0 [pid 5233] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... unlink resumed>) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] newfstatat(AT_FDCWD, "./5/file0", [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] newfstatat(AT_FDCWD, "./6/bus", [pid 5233] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... openat resumed>) = 4 [pid 5232] unlink("./6/bus" [pid 5233] newfstatat(4, "", [pid 5232] <... unlink resumed>) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] getdents64(4, [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] newfstatat(AT_FDCWD, "./6/file0", [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] close(4 [pid 5232] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... close resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] rmdir("./5/file0" [pid 5232] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] <... rmdir resumed>) = 0 [pid 5233] getdents64(3, [pid 5232] <... openat resumed>) = 4 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] newfstatat(4, "", [pid 5233] close(3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] <... close resumed>) = 0 [pid 5232] getdents64(4, [pid 5233] rmdir("./5" [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] <... rmdir resumed>) = 0 [pid 5232] getdents64(4, [pid 5233] mkdir("./6", 0777 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5232] close(4 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5232] <... close resumed>) = 0 [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5232] rmdir("./6/file0" [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] close(3 [pid 5232] <... rmdir resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5232] getdents64(3, [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 ./strace-static-x86_64: Process 5496 attached [pid 5232] close(3 [pid 5496] set_robust_list(0x5555807c5660, 24 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5496 [pid 5232] <... close resumed>) = 0 [pid 5496] <... set_robust_list resumed>) = 0 [pid 5232] rmdir("./6") = 0 [pid 5232] mkdir("./7", 0777 [pid 5496] chdir("./6") = 0 [pid 5232] <... mkdir resumed>) = 0 [pid 5496] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5496] setpgid(0, 0 [pid 5232] <... openat resumed>) = 3 [pid 5496] <... setpgid resumed>) = 0 [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5496] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5497 attached [pid 5496] <... openat resumed>) = 3 [pid 5495] 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 5497] set_robust_list(0x5555807c5660, 24 [pid 5496] write(3, "1000", 4 [pid 5497] <... set_robust_list resumed>) = 0 [pid 5496] <... write resumed>) = 4 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5497 [pid 5497] chdir("./7" [pid 5496] close(3 [pid 5497] <... chdir resumed>) = 0 [pid 5496] <... close resumed>) = 0 [pid 5497] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5496] symlink("/dev/binderfs", "./binderfs" [pid 5497] <... prctl resumed>) = 0 [pid 5496] <... symlink resumed>) = 0 executing program [pid 5497] setpgid(0, 0 [pid 5496] write(1, "executing program\n", 18 [pid 5497] <... setpgid resumed>) = 0 [pid 5496] <... write resumed>) = 18 [pid 5496] memfd_create("syzkaller", 0 [pid 5497] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5496] <... memfd_create resumed>) = 3 [pid 5496] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5497] <... openat resumed>) = 3 [pid 5496] <... mmap resumed>) = 0x7fc387600000 [pid 5497] write(3, "1000", 4) = 4 [pid 5497] close(3) = 0 executing program [pid 5497] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5497] write(1, "executing program\n", 18) = 18 [pid 5497] memfd_create("syzkaller", 0) = 3 [pid 5497] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5493] <... write resumed>) = 16777216 [pid 5493] munmap(0x7fc387600000, 138412032 [pid 5495] <... write resumed>) = 16777216 [pid 5493] <... munmap resumed>) = 0 [pid 5495] munmap(0x7fc387600000, 138412032 [pid 5493] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5493] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5495] <... munmap resumed>) = 0 [pid 5493] close(3 [pid 5496] 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 5495] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5493] <... close resumed>) = 0 [pid 5493] close(4 [pid 5497] 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 5493] <... close resumed>) = 0 [pid 5495] <... openat resumed>) = 4 [ 85.906030][ T5493] loop2: detected capacity change from 0 to 32768 [pid 5493] mkdir("./file0", 0777 [pid 5495] ioctl(4, LOOP_SET_FD, 3 [pid 5493] <... mkdir resumed>) = 0 [pid 5493] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5495] <... ioctl resumed>) = 0 [pid 5495] close(3) = 0 [pid 5495] close(4) = 0 [pid 5495] mkdir("./file0", 0777) = 0 [ 85.949238][ T5495] loop1: detected capacity change from 0 to 32768 [pid 5495] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5496] <... write resumed>) = 16777216 [pid 5496] munmap(0x7fc387600000, 138412032) = 0 [pid 5496] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5496] ioctl(4, LOOP_SET_FD, 3 [pid 5497] <... write resumed>) = 16777216 [pid 5496] <... ioctl resumed>) = 0 [pid 5497] munmap(0x7fc387600000, 138412032 [pid 5496] close(3) = 0 [pid 5496] close(4 [pid 5497] <... munmap resumed>) = 0 [pid 5497] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5496] <... close resumed>) = 0 [pid 5497] <... openat resumed>) = 4 [ 86.176734][ T5496] loop4: detected capacity change from 0 to 32768 [pid 5496] mkdir("./file0", 0777 [pid 5497] ioctl(4, LOOP_SET_FD, 3 [pid 5496] <... mkdir resumed>) = 0 [pid 5497] <... ioctl resumed>) = 0 [pid 5496] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5497] close(3) = 0 [pid 5497] close(4) = 0 [pid 5497] mkdir("./file0", 0777) = 0 [ 86.229025][ T5497] loop3: detected capacity change from 0 to 32768 [ 86.407779][ T5493] 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.413277][ T5495] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 86.438748][ T5493] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 86.439823][ T5495] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 86.492931][ T5496] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 86.509796][ T5493] bcachefs (loop2): Version upgrade required: [ 86.509796][ T5493] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 86.509796][ T5493] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 86.509796][ T5493] 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.582107][ T5497] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [pid 5497] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5495] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5495] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5495] ioctl(3, LOOP_CLR_FD) = 0 [ 86.592123][ T5495] bcachefs: bch2_fs_get_tree() error: EINVAL [ 86.595810][ T5496] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 86.607830][ T5497] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 86.627451][ T5493] bcachefs (loop2): dropping and reconstructing all alloc info [ 86.731695][ T5493] bcachefs (loop2): check_topology... done [ 86.769398][ T5493] bcachefs (loop2): accounting_read... done [ 86.784356][ T5493] bcachefs (loop2): alloc_read... done [ 86.792527][ T5493] bcachefs (loop2): stripes_read... done [ 86.809171][ T5493] bcachefs (loop2): snapshots_read... done [ 86.815769][ T5493] bcachefs (loop2): check_allocations... [ 86.816998][ T5496] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5495] close(3 [pid 5497] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5496] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5497] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5497] ioctl(3, LOOP_CLR_FD) = 0 [pid 5497] close(3 [pid 5496] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5496] ioctl(3, LOOP_CLR_FD) = 0 [ 86.829491][ T5497] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5496] close(3 [pid 5229] <... umount2 resumed>) = 0 [pid 5495] <... close resumed>) = 0 [pid 5229] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./4/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 86.960948][ T5493] done [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./4/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3 [pid 5495] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5229] <... close resumed>) = 0 [ 86.984250][ T5493] bcachefs (loop2): going read-write [pid 5229] rmdir("./4" [pid 5493] <... mount resumed>) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5229] mkdir("./5", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3 [pid 5493] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5229] <... close resumed>) = 0 [pid 5493] <... openat resumed>) = 3 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5529 attached [pid 5495] <... openat resumed>) = 3 [pid 5493] chdir("./file0" [pid 5529] set_robust_list(0x5555807c5660, 24 [pid 5493] <... chdir resumed>) = 0 [pid 5529] <... set_robust_list resumed>) = 0 [pid 5493] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5495] exit_group(0 [pid 5529] chdir("./5" [pid 5495] <... exit_group resumed>) = ? [pid 5493] <... openat resumed>) = 4 [pid 5529] <... chdir resumed>) = 0 [pid 5493] ioctl(4, LOOP_CLR_FD [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5529 [pid 5529] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5493] <... ioctl resumed>) = 0 [pid 5493] close(4) = 0 [pid 5493] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5529] <... prctl resumed>) = 0 [pid 5495] +++ exited with 0 +++ [pid 5529] setpgid(0, 0 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5495, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=46 /* 0.46 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5529] <... setpgid resumed>) = 0 [pid 5493] <... openat resumed>) = 4 [pid 5230] <... restart_syscall resumed>) = 0 [pid 5529] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5529] write(3, "1000", 4) = 4 [pid 5493] exit_group(0 [pid 5230] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5529] close(3 [pid 5493] <... exit_group resumed>) = ? [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5529] <... close resumed>) = 0 [pid 5493] +++ exited with 0 +++ [pid 5230] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5529] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5230] <... openat resumed>) = 3 [pid 5529] write(1, "executing program\n", 18executing program [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5493, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=35 /* 0.35 s */} --- [pid 5230] newfstatat(3, "", [pid 5529] <... write resumed>) = 18 [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5529] memfd_create("syzkaller", 0 [pid 5231] <... restart_syscall resumed>) = 0 [pid 5230] getdents64(3, [pid 5529] <... memfd_create resumed>) = 3 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5231] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5529] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5231] <... openat resumed>) = 3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5529] <... mmap resumed>) = 0x7fc387600000 [ 87.028503][ T5493] bcachefs (loop2): done starting filesystem [pid 5231] newfstatat(3, "", [pid 5230] unlink("./7/binderfs" [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5230] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] getdents64(3, [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5230] newfstatat(AT_FDCWD, "./7/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./4/binderfs" [pid 5230] unlink("./7/bus" [pid 5231] <... unlink resumed>) = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5231] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5230] rmdir("./7/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./7") = 0 [pid 5497] <... close resumed>) = 0 [ 87.118381][ T58] cfg80211: failed to load regulatory.db [pid 5230] mkdir("./8", 0777) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5497] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5497] exit_group(0 [pid 5230] <... openat resumed>) = 3 [pid 5497] <... exit_group resumed>) = ? [pid 5497] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5497, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=48 /* 0.48 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5230] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5230] close(3 [pid 5232] <... restart_syscall resumed>) = 0 [pid 5230] <... close resumed>) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5530 [pid 5232] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5530 attached ) = -1 EINVAL (Invalid argument) [pid 5530] set_robust_list(0x5555807c5660, 24 [pid 5232] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", [pid 5530] <... set_robust_list resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5530] chdir("./8" [pid 5496] <... close resumed>) = 0 [pid 5530] <... chdir resumed>) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5530] prctl(PR_SET_PDEATHSIG, SIGKILL [ 87.161301][ T5231] bcachefs (loop2): shutting down [ 87.167221][ T5231] bcachefs (loop2): going read-only [ 87.172504][ T5231] bcachefs (loop2): finished waiting for writes to stop [ 87.195964][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5232] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5530] <... prctl resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5530] setpgid(0, 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./7/binderfs" [pid 5530] <... setpgid resumed>) = 0 [pid 5496] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... unlink resumed>) = 0 [pid 5530] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5496] <... openat resumed>) = 3 [pid 5530] <... openat resumed>) = 3 [pid 5232] newfstatat(AT_FDCWD, "./7/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5530] write(3, "1000", 4 [pid 5232] unlink("./7/bus" [pid 5530] <... write resumed>) = 4 [pid 5496] exit_group(0 [pid 5530] close(3 [pid 5232] <... unlink resumed>) = 0 [pid 5496] <... exit_group resumed>) = ? [pid 5496] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5496, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 5232] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5530] <... close resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./7/file0", executing program {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5530] symlink("/dev/binderfs", "./binderfs" [pid 5232] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5530] <... symlink resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5530] write(1, "executing program\n", 18) = 18 [pid 5232] <... openat resumed>) = 4 [pid 5530] memfd_create("syzkaller", 0 [pid 5233] <... restart_syscall resumed>) = 0 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5530] <... memfd_create resumed>) = 3 [pid 5232] getdents64(4, [pid 5530] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5233] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5530] <... mmap resumed>) = 0x7fc387600000 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] close(4 [pid 5233] <... openat resumed>) = 3 [pid 5232] <... close resumed>) = 0 [pid 5233] newfstatat(3, "", [pid 5232] rmdir("./7/file0" [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... rmdir resumed>) = 0 [pid 5233] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] getdents64(3, [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] close(3 [pid 5233] unlink("./6/binderfs") = 0 [pid 5232] <... close resumed>) = 0 [pid 5233] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] rmdir("./7") = 0 [pid 5232] mkdir("./8", 0777 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... mkdir resumed>) = 0 [pid 5233] newfstatat(AT_FDCWD, "./6/bus", [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5233] unlink("./6/bus" [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] close(3 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... close resumed>) = 0 [pid 5233] newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./6/file0"./strace-static-x86_64: Process 5531 attached ) = 0 [pid 5531] set_robust_list(0x5555807c5660, 24 [pid 5233] getdents64(3, [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5531 [pid 5531] <... set_robust_list resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5531] chdir("./8" [pid 5233] close(3 [pid 5531] <... chdir resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5531] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] rmdir("./6") = 0 [pid 5531] <... prctl resumed>) = 0 [ 87.296768][ T987] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 87.336086][ T987] bcachefs (loop2): fatal error - emergency read only [pid 5233] mkdir("./7", 0777 [pid 5531] setpgid(0, 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5531] <... setpgid resumed>) = 0 [pid 5531] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3 [pid 5531] <... openat resumed>) = 3 [pid 5233] <... close resumed>) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5532 ./strace-static-x86_64: Process 5532 attached [pid 5532] set_robust_list(0x5555807c5660, 24 [pid 5531] write(3, "1000", 4 [pid 5532] <... set_robust_list resumed>) = 0 [pid 5532] chdir("./7") = 0 [pid 5531] <... write resumed>) = 4 [pid 5529] 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 5531] close(3 [pid 5532] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5531] <... close resumed>) = 0 [pid 5532] <... prctl resumed>) = 0 [pid 5531] symlink("/dev/binderfs", "./binderfs" [pid 5532] setpgid(0, 0 [pid 5531] <... symlink resumed>) = 0 executing program [pid 5532] <... setpgid resumed>) = 0 [pid 5531] write(1, "executing program\n", 18 [pid 5532] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5531] <... write resumed>) = 18 [pid 5532] <... openat resumed>) = 3 [pid 5532] write(3, "1000", 4) = 4 executing program [pid 5531] memfd_create("syzkaller", 0 [pid 5532] close(3) = 0 [pid 5532] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5532] write(1, "executing program\n", 18) = 18 [pid 5532] memfd_create("syzkaller", 0) = 3 [pid 5532] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5531] <... memfd_create resumed>) = 3 [pid 5532] <... mmap resumed>) = 0x7fc387600000 [pid 5531] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 87.358729][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [ 87.383060][ T5231] bcachefs (loop2): unshutdown complete, journal seq 13 [ 87.406011][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [ 87.482788][ T5231] bcachefs (loop2): shutdown complete [pid 5532] 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 5530] 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 5531] 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 5529] <... write resumed>) = 16777216 [pid 5529] munmap(0x7fc387600000, 138412032) = 0 [pid 5529] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5529] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5529] close(3) = 0 [ 87.837001][ T5529] loop0: detected capacity change from 0 to 32768 [pid 5529] close(4) = 0 [pid 5529] mkdir("./file0", 0777) = 0 [pid 5529] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5532] <... write resumed>) = 16777216 [pid 5532] munmap(0x7fc387600000, 138412032) = 0 [pid 5532] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5532] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5532] close(3) = 0 [pid 5532] close(4) = 0 [pid 5532] mkdir("./file0", 0777) = 0 [ 87.989566][ T5532] loop4: detected capacity change from 0 to 32768 [pid 5532] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5531] <... write resumed>) = 16777216 [pid 5531] munmap(0x7fc387600000, 138412032 [pid 5530] <... write resumed>) = 16777216 [pid 5530] munmap(0x7fc387600000, 138412032 [pid 5531] <... munmap resumed>) = 0 [pid 5531] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5530] <... munmap resumed>) = 0 [pid 5531] <... openat resumed>) = 4 [pid 5530] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5531] ioctl(4, LOOP_SET_FD, 3 [pid 5530] <... openat resumed>) = 4 [pid 5530] ioctl(4, LOOP_SET_FD, 3 [pid 5531] <... ioctl resumed>) = 0 [pid 5531] close(3) = 0 [pid 5531] close(4) = 0 [pid 5530] <... ioctl resumed>) = 0 [pid 5530] close(3 [pid 5531] mkdir("./file0", 0777 [pid 5530] <... close resumed>) = 0 [pid 5530] close(4) = 0 [pid 5530] mkdir("./file0", 0777 [pid 5531] <... mkdir resumed>) = 0 [pid 5531] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5530] <... mkdir resumed>) = 0 [ 88.092001][ T5531] loop3: detected capacity change from 0 to 32768 [ 88.094266][ T5530] loop1: detected capacity change from 0 to 32768 [ 88.291362][ T5529] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 88.291830][ T5532] 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 [ 88.300922][ T5529] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 88.326557][ T5532] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 88.345648][ T5532] bcachefs (loop4): Version upgrade required: [ 88.345648][ T5532] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 88.345648][ T5532] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 88.345648][ T5532] 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.385884][ T5531] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 88.445000][ T5532] bcachefs (loop4): dropping and reconstructing all alloc info [ 88.471696][ T5532] bcachefs (loop4): check_topology... done [ 88.485804][ T5532] bcachefs (loop4): accounting_read... [ 88.488310][ T5531] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 88.488396][ T5530] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 88.545488][ T5532] done [ 88.545493][ T5530] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 88.587822][ T5532] bcachefs (loop4): alloc_read... done [ 88.595665][ T5532] bcachefs (loop4): stripes_read... done [ 88.601420][ T5532] bcachefs (loop4): snapshots_read... done [pid 5530] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5529] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5529] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5529] ioctl(3, LOOP_CLR_FD) = 0 [ 88.667077][ T5529] bcachefs: bch2_fs_get_tree() error: EINVAL [ 88.685529][ T5532] bcachefs (loop4): check_allocations... [ 88.689648][ T5531] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5529] close(3 [pid 5531] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5531] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5531] ioctl(3, LOOP_CLR_FD) = 0 [pid 5531] close(3 [pid 5530] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 88.782629][ T5532] done [ 88.794960][ T5530] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5530] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5530] ioctl(3, LOOP_CLR_FD) = 0 [pid 5530] close(3 [pid 5532] <... mount resumed>) = 0 [pid 5532] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5532] chdir("./file0") = 0 [ 88.827004][ T5532] bcachefs (loop4): going read-write [ 88.846919][ T5532] bcachefs (loop4): done starting filesystem [pid 5532] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5532] ioctl(4, LOOP_CLR_FD) = 0 [pid 5532] close(4) = 0 [pid 5532] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5532] exit_group(0) = ? [pid 5532] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5532, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=38 /* 0.38 s */} --- [pid 5231] <... umount2 resumed>) = 0 [pid 5233] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, [pid 5231] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] newfstatat(AT_FDCWD, "./4/file0", [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] newfstatat(AT_FDCWD, "./7/binderfs", [pid 5231] umount2("./4/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./4/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] unlink("./7/binderfs" [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] <... unlink resumed>) = 0 [pid 5231] getdents64(4, [pid 5233] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./4/file0") = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./4") = 0 [pid 5231] mkdir("./5", 0777) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5564 attached , child_tidptr=0x5555807c5650) = 5564 [pid 5564] set_robust_list(0x5555807c5660, 24) = 0 [ 89.029045][ T5233] bcachefs (loop4): shutting down [pid 5564] chdir("./5") = 0 [pid 5564] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5564] setpgid(0, 0) = 0 [pid 5564] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 executing program [pid 5564] write(3, "1000", 4 [pid 5531] <... close resumed>) = 0 [pid 5564] <... write resumed>) = 4 [pid 5564] close(3) = 0 [pid 5564] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5564] write(1, "executing program\n", 18) = 18 [pid 5564] memfd_create("syzkaller", 0 [pid 5531] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5564] <... memfd_create resumed>) = 3 [pid 5531] <... openat resumed>) = 3 [pid 5564] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5531] exit_group(0 [pid 5564] <... mmap resumed>) = 0x7fc387600000 [pid 5531] <... exit_group resumed>) = ? [pid 5531] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5531, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=45 /* 0.45 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5232] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./8/binderfs") = 0 [ 89.065995][ T5233] bcachefs (loop4): going read-only [ 89.081181][ T5233] bcachefs (loop4): finished waiting for writes to stop [pid 5232] umount2("./8/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./8/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./8/bus") = 0 [pid 5232] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5529] <... close resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5529] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... openat resumed>) = 4 [pid 5232] newfstatat(4, "", [pid 5529] <... openat resumed>) = 3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5529] exit_group(0 [pid 5232] getdents64(4, [pid 5529] <... exit_group resumed>) = ? [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5529] +++ exited with 0 +++ [pid 5232] close(4) = 0 [pid 5232] rmdir("./8/file0" [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5529, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=35 /* 0.35 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5232] <... rmdir resumed>) = 0 [pid 5229] <... restart_syscall resumed>) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3 [pid 5229] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... close resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] rmdir("./8" [pid 5229] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... rmdir resumed>) = 0 [pid 5232] mkdir("./9", 0777 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./5/binderfs", [pid 5232] <... mkdir resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [ 89.135829][ T5233] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5229] unlink("./5/binderfs" [pid 5232] <... openat resumed>) = 3 [pid 5229] <... unlink resumed>) = 0 [pid 5229] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./5/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./5/bus") = 0 [pid 5229] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./5/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5229] <... openat resumed>) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./5/file0" [pid 5232] close(3 [pid 5229] <... rmdir resumed>) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./5") = 0 [pid 5229] mkdir("./6", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5232] <... close resumed>) = 0 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5566 attached ./strace-static-x86_64: Process 5565 attached [pid 5566] set_robust_list(0x5555807c5660, 24 [pid 5565] set_robust_list(0x5555807c5660, 24 [pid 5530] <... close resumed>) = 0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5565 [pid 5566] <... set_robust_list resumed>) = 0 [pid 5566] chdir("./6") = 0 [pid 5566] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5566] setpgid(0, 0) = 0 [pid 5566] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5566 [pid 5566] write(3, "1000", 4) = 4 [pid 5566] close(3) = 0 [pid 5566] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5565] <... set_robust_list resumed>) = 0 executing program [pid 5565] chdir("./9" [pid 5566] write(1, "executing program\n", 18) = 18 [pid 5566] memfd_create("syzkaller", 0 [pid 5565] <... chdir resumed>) = 0 [pid 5566] <... memfd_create resumed>) = 3 [pid 5565] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5530] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5565] setpgid(0, 0) = 0 [pid 5530] <... openat resumed>) = 3 [pid 5566] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5565] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5530] exit_group(0 [pid 5565] write(3, "1000", 4) = 4 [pid 5530] <... exit_group resumed>) = ? [pid 5565] close(3 [pid 5530] +++ exited with 0 +++ [pid 5565] <... close resumed>) = 0 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5530, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=51 /* 0.51 s */} --- [pid 5230] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./8/binderfs") = 0 [pid 5230] umount2("./8/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./8/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./8/bus") = 0 [pid 5230] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5230] rmdir("./8/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./8") = 0 [pid 5230] mkdir("./9", 0777 [pid 5565] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... mkdir resumed>) = 0 [pid 5565] <... symlink resumed>) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5565] write(1, "executing program\n", 18 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] close(3executing program [pid 5565] <... write resumed>) = 18 [pid 5230] <... close resumed>) = 0 [pid 5565] memfd_create("syzkaller", 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5565] <... memfd_create resumed>) = 3 ./strace-static-x86_64: Process 5567 attached [pid 5565] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5567 [pid 5567] set_robust_list(0x5555807c5660, 24 [pid 5565] <... mmap resumed>) = 0x7fc387600000 [pid 5567] <... set_robust_list resumed>) = 0 [pid 5567] chdir("./9") = 0 [pid 5567] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5567] setpgid(0, 0) = 0 [pid 5567] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5567] write(3, "1000", 4) = 4 [ 89.287489][ T3031] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 89.319949][ T3031] bcachefs (loop4): fatal error - emergency read only executing program [pid 5567] close(3) = 0 [pid 5567] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5567] write(1, "executing program\n", 18) = 18 [pid 5567] memfd_create("syzkaller", 0) = 3 [pid 5567] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 89.371753][ T5233] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [ 89.397833][ T5233] bcachefs (loop4): unshutdown complete, journal seq 14 [ 89.406128][ T5233] bcachefs (loop4): done going read-only, filesystem not clean [ 89.480880][ T5233] bcachefs (loop4): shutdown complete [pid 5564] 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 5566] 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 5567] 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 5565] 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 5564] <... write resumed>) = 16777216 [pid 5564] munmap(0x7fc387600000, 138412032) = 0 [pid 5564] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5564] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5564] close(3) = 0 [pid 5564] close(4) = 0 [pid 5564] mkdir("./file0", 0777) = 0 [pid 5564] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5567] <... write resumed>) = 16777216 [pid 5567] munmap(0x7fc387600000, 138412032) = 0 [pid 5565] <... write resumed>) = 16777216 [ 90.079365][ T5564] loop2: detected capacity change from 0 to 32768 [pid 5567] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5567] ioctl(4, LOOP_SET_FD, 3 [pid 5566] <... write resumed>) = 16777216 [pid 5566] munmap(0x7fc387600000, 138412032 [pid 5565] munmap(0x7fc387600000, 138412032) = 0 [pid 5567] <... ioctl resumed>) = 0 [pid 5566] <... munmap resumed>) = 0 [pid 5567] close(3 [pid 5565] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5566] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5567] <... close resumed>) = 0 [pid 5567] close(4 [pid 5566] <... openat resumed>) = 4 [pid 5565] <... openat resumed>) = 4 [pid 5566] ioctl(4, LOOP_SET_FD, 3 [pid 5567] <... close resumed>) = 0 [ 90.143393][ T5567] loop1: detected capacity change from 0 to 32768 [ 90.181146][ T5566] loop0: detected capacity change from 0 to 32768 [pid 5565] ioctl(4, LOOP_SET_FD, 3 [pid 5566] <... ioctl resumed>) = 0 [pid 5567] mkdir("./file0", 0777 [pid 5565] <... ioctl resumed>) = 0 [pid 5565] close(3) = 0 [pid 5565] close(4 [pid 5566] close(3 [pid 5565] <... close resumed>) = 0 [pid 5567] <... mkdir resumed>) = 0 [pid 5566] <... close resumed>) = 0 [pid 5565] mkdir("./file0", 0777 [pid 5566] close(4) = 0 [pid 5567] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5566] mkdir("./file0", 0777) = 0 [pid 5565] <... mkdir resumed>) = 0 [pid 5566] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 90.189104][ T5565] loop3: detected capacity change from 0 to 32768 [ 90.451531][ T5567] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 90.461478][ T5565] 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 [ 90.484525][ T5567] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 90.485155][ T5566] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 90.502032][ T5565] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 90.515912][ T5565] bcachefs (loop3): Version upgrade required: [ 90.515912][ T5565] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 90.515912][ T5565] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 90.515912][ T5565] 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.533966][ T5564] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 90.603119][ T5564] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 90.612458][ T5566] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 90.632972][ T5565] bcachefs (loop3): dropping and reconstructing all alloc info [ 90.708669][ T5565] bcachefs (loop3): check_topology... done [ 90.714590][ T5565] bcachefs (loop3): accounting_read... [ 90.717390][ T5567] bcachefs: bch2_fs_get_tree() error: EINVAL [ 90.746376][ T5565] done [ 90.749217][ T5565] bcachefs (loop3): alloc_read... done [pid 5565] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5567] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5567] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5567] ioctl(3, LOOP_CLR_FD) = 0 [ 90.754770][ T5565] bcachefs (loop3): stripes_read... done [ 90.771350][ T5565] bcachefs (loop3): snapshots_read... done [pid 5567] close(3 [pid 5566] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5564] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5566] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5566] ioctl(3, LOOP_CLR_FD) = 0 [ 90.785564][ T5565] bcachefs (loop3): check_allocations... [ 90.819436][ T5564] bcachefs: bch2_fs_get_tree() error: EINVAL [ 90.844128][ T5565] done [ 90.848859][ T5566] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5566] close(3 [pid 5564] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5564] ioctl(3, LOOP_CLR_FD) = 0 [ 90.869001][ T5565] bcachefs (loop3): going read-write [pid 5564] close(3 [pid 5233] <... umount2 resumed>) = 0 [pid 5233] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./7/file0") = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5233] rmdir("./7") = 0 [pid 5233] mkdir("./8", 0777) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5599 attached [pid 5599] set_robust_list(0x5555807c5660, 24) = 0 [pid 5599] chdir("./8" [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5599 [pid 5599] <... chdir resumed>) = 0 [pid 5599] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5599] setpgid(0, 0) = 0 [pid 5599] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5599] write(3, "1000", 4) = 4 [pid 5565] <... mount resumed>) = 0 [pid 5599] close(3) = 0 [pid 5599] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5599] write(1, "executing program\n", 18) = 18 [pid 5599] memfd_create("syzkaller", 0) = 3 [pid 5599] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5565] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [ 90.938166][ T5565] bcachefs (loop3): done starting filesystem [pid 5565] chdir("./file0") = 0 [pid 5565] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5565] ioctl(4, LOOP_CLR_FD) = 0 [pid 5565] close(4) = 0 [pid 5565] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5567] <... close resumed>) = 0 [pid 5565] exit_group(0) = ? [pid 5565] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5565, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=36 /* 0.36 s */} --- [pid 5232] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", [pid 5567] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5567] <... openat resumed>) = 3 [pid 5232] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5232] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5567] exit_group(0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./9/binderfs") = 0 [pid 5232] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5567] <... exit_group resumed>) = ? [pid 5567] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5567, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=42 /* 0.42 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5230] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./9/binderfs") = 0 [pid 5230] umount2("./9/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./9/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./9/bus") = 0 [pid 5230] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5230] rmdir("./9/file0") = 0 [ 91.119861][ T5232] bcachefs (loop3): shutting down [ 91.124974][ T5232] bcachefs (loop3): going read-only [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./9") = 0 [pid 5230] mkdir("./10", 0777) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5230] close(3) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5601 attached , child_tidptr=0x5555807c5650) = 5601 [pid 5601] set_robust_list(0x5555807c5660, 24) = 0 [pid 5564] <... close resumed>) = 0 [pid 5601] chdir("./10") = 0 [pid 5564] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5601] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5564] <... openat resumed>) = 3 [pid 5601] <... prctl resumed>) = 0 [pid 5601] setpgid(0, 0) = 0 [pid 5564] exit_group(0) = ? [pid 5601] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5601] write(3, "1000", 4) = 4 [pid 5601] close(3) = 0 [pid 5566] <... close resumed>) = 0 [pid 5601] symlink("/dev/binderfs", "./binderfs" [pid 5564] +++ exited with 0 +++ [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5564, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=49 /* 0.49 s */} --- [ 91.175482][ T5232] bcachefs (loop3): finished waiting for writes to stop [ 91.213068][ T5232] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5601] <... symlink resumed>) = 0 [pid 5231] <... restart_syscall resumed>) = 0 executing program [pid 5601] write(1, "executing program\n", 18) = 18 [pid 5601] memfd_create("syzkaller", 0 [pid 5231] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5601] <... memfd_create resumed>) = 3 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5566] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5601] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5566] <... openat resumed>) = 3 [pid 5231] <... openat resumed>) = 3 [pid 5601] <... mmap resumed>) = 0x7fc387600000 [pid 5566] exit_group(0 [pid 5231] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5231] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./5/binderfs", [pid 5566] <... exit_group resumed>) = ? [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5566] +++ exited with 0 +++ [pid 5231] unlink("./5/binderfs") = 0 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5566, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=47 /* 0.47 s */} --- [pid 5231] umount2("./5/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./5/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./5/bus") = 0 [pid 5229] <... restart_syscall resumed>) = 0 [pid 5229] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... openat resumed>) = 3 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(3, "", [pid 5231] newfstatat(AT_FDCWD, "./5/file0", [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] getdents64(3, [pid 5231] umount2("./5/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] openat(AT_FDCWD, "./5/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] newfstatat(AT_FDCWD, "./6/binderfs", [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] getdents64(4, [pid 5229] unlink("./6/binderfs" [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5231] close(4 [pid 5229] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... close resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] rmdir("./5/file0" [pid 5229] newfstatat(AT_FDCWD, "./6/bus", [pid 5231] <... rmdir resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] getdents64(3, [pid 5229] unlink("./6/bus" [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5231] close(3 [pid 5229] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... close resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] rmdir("./5" [ 91.277165][ T3031] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [pid 5229] newfstatat(AT_FDCWD, "./6/file0", [pid 5231] <... rmdir resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] mkdir("./6", 0777 [pid 5229] newfstatat(4, "", [pid 5231] <... mkdir resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5229] getdents64(4, [pid 5231] <... openat resumed>) = 3 [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./6/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./6") = 0 [pid 5229] mkdir("./7", 0777) = 0 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5231] <... close resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5602 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5602 attached [pid 5602] set_robust_list(0x5555807c5660, 24) = 0 [pid 5602] chdir("./7"./strace-static-x86_64: Process 5603 attached [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5603 [pid 5603] set_robust_list(0x5555807c5660, 24) = 0 [pid 5603] chdir("./6") = 0 [pid 5602] <... chdir resumed>) = 0 [pid 5603] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5603] setpgid(0, 0) = 0 [pid 5603] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5602] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5602] setpgid(0, 0 [pid 5603] write(3, "1000", 4) = 4 [pid 5602] <... setpgid resumed>) = 0 [pid 5603] close(3) = 0 [pid 5603] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5602] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 91.317563][ T3031] bcachefs (loop3): fatal error - emergency read only [ 91.325643][ T5232] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 13 [ 91.356104][ T5232] bcachefs (loop3): unshutdown complete, journal seq 13 executing program [pid 5602] write(3, "1000", 4 [pid 5603] write(1, "executing program\n", 18) = 18 [pid 5603] memfd_create("syzkaller", 0) = 3 [pid 5603] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5602] <... write resumed>) = 4 [pid 5602] close(3 [pid 5599] 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 5602] <... close resumed>) = 0 executing program [pid 5602] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5602] write(1, "executing program\n", 18) = 18 [pid 5602] memfd_create("syzkaller", 0) = 3 [pid 5602] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 91.383399][ T5232] bcachefs (loop3): done going read-only, filesystem not clean [ 91.488636][ T5232] bcachefs (loop3): shutdown complete [pid 5601] 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 5603] 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 5599] <... write resumed>) = 16777216 [pid 5599] munmap(0x7fc387600000, 138412032 [pid 5602] 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 5599] <... munmap resumed>) = 0 [pid 5599] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5599] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5599] close(3) = 0 [pid 5599] close(4) = 0 [pid 5599] mkdir("./file0", 0777) = 0 [ 91.766906][ T5599] loop4: detected capacity change from 0 to 32768 [pid 5599] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5603] <... write resumed>) = 16777216 [pid 5603] munmap(0x7fc387600000, 138412032) = 0 [pid 5602] <... write resumed>) = 16777216 [pid 5601] <... write resumed>) = 16777216 [pid 5603] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5602] munmap(0x7fc387600000, 138412032 [pid 5603] <... openat resumed>) = 4 [pid 5601] munmap(0x7fc387600000, 138412032 [pid 5603] ioctl(4, LOOP_SET_FD, 3 [pid 5602] <... munmap resumed>) = 0 [pid 5601] <... munmap resumed>) = 0 [pid 5602] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5603] <... ioctl resumed>) = 0 [pid 5602] <... openat resumed>) = 4 [pid 5601] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5602] ioctl(4, LOOP_SET_FD, 3 [pid 5603] close(3) = 0 [pid 5603] close(4 [pid 5601] <... openat resumed>) = 4 [pid 5601] ioctl(4, LOOP_SET_FD, 3 [pid 5603] <... close resumed>) = 0 [pid 5603] mkdir("./file0", 0777) = 0 [pid 5603] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5602] <... ioctl resumed>) = 0 [pid 5601] <... ioctl resumed>) = 0 [pid 5601] close(3) = 0 [pid 5601] close(4 [pid 5602] close(3 [pid 5601] <... close resumed>) = 0 [pid 5601] mkdir("./file0", 0777 [pid 5602] <... close resumed>) = 0 [pid 5602] close(4) = 0 [ 92.036657][ T5603] loop2: detected capacity change from 0 to 32768 [ 92.044112][ T5602] loop0: detected capacity change from 0 to 32768 [ 92.055794][ T5601] loop1: detected capacity change from 0 to 32768 [pid 5602] mkdir("./file0", 0777) = 0 [pid 5601] <... mkdir resumed>) = 0 [pid 5601] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 92.265262][ T5603] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 92.278350][ T5599] 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 [ 92.284401][ T5603] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 92.323643][ T5602] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 92.342916][ T5601] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 92.363362][ T5599] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 92.372857][ T5599] bcachefs (loop4): Version upgrade required: [ 92.372857][ T5599] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 92.372857][ T5599] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 92.372857][ T5599] 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.385626][ T5601] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 92.444144][ T5602] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5602] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5603] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5603] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5603] ioctl(3, LOOP_CLR_FD) = 0 [ 92.497681][ T5603] bcachefs: bch2_fs_get_tree() error: EINVAL [ 92.502817][ T5599] bcachefs (loop4): dropping and reconstructing all alloc info [ 92.557546][ T5599] bcachefs (loop4): check_topology... done [ 92.575510][ T5599] bcachefs (loop4): accounting_read... done [ 92.602243][ T5599] bcachefs (loop4): alloc_read... done [pid 5603] close(3 [pid 5232] <... umount2 resumed>) = 0 [pid 5232] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 92.629356][ T5599] bcachefs (loop4): stripes_read... done [ 92.635322][ T5599] bcachefs (loop4): snapshots_read... done [ 92.661612][ T5599] bcachefs (loop4): check_allocations... [ 92.662048][ T5601] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5232] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5601] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5232] newfstatat(4, "", [pid 5602] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5601] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5599] <... mount resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5602] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5602] ioctl(3, LOOP_CLR_FD) = 0 [pid 5602] close(3 [pid 5232] getdents64(4, [pid 5601] <... openat resumed>) = 3 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5601] ioctl(3, LOOP_CLR_FD [pid 5232] getdents64(4, [pid 5601] <... ioctl resumed>) = 0 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5601] close(3 [pid 5232] close(4) = 0 [pid 5232] rmdir("./9/file0") = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./9") = 0 [pid 5232] mkdir("./10", 0777 [pid 5599] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5232] <... mkdir resumed>) = 0 [pid 5599] chdir("./file0") = 0 [pid 5599] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5599] ioctl(4, LOOP_CLR_FD) = 0 [pid 5599] close(4) = 0 [pid 5599] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5599] <... openat resumed>) = 4 [pid 5599] exit_group(0) = ? [pid 5232] <... openat resumed>) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3 [pid 5599] +++ exited with 0 +++ [pid 5232] <... close resumed>) = 0 [ 92.678233][ T5602] bcachefs: bch2_fs_get_tree() error: EINVAL [ 92.682352][ T5599] done [ 92.691698][ T5599] bcachefs (loop4): going read-write [ 92.707021][ T5599] bcachefs (loop4): done starting filesystem [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5599, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=35 /* 0.35 s */} --- ./strace-static-x86_64: Process 5635 attached [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5635 [pid 5635] set_robust_list(0x5555807c5660, 24 [pid 5233] <... restart_syscall resumed>) = 0 [pid 5635] <... set_robust_list resumed>) = 0 [pid 5635] chdir("./10") = 0 [pid 5233] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5635] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5635] <... prctl resumed>) = 0 [pid 5233] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5635] setpgid(0, 0 [pid 5233] newfstatat(3, "", [pid 5635] <... setpgid resumed>) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, [pid 5635] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5233] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./8/binderfs") = 0 [pid 5233] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5635] <... openat resumed>) = 3 [pid 5635] write(3, "1000", 4) = 4 [pid 5635] close(3) = 0 [pid 5603] <... close resumed>) = 0 [pid 5635] symlink("/dev/binderfs", "./binderfs" [pid 5603] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5635] <... symlink resumed>) = 0 executing program [pid 5603] <... openat resumed>) = 3 [pid 5635] write(1, "executing program\n", 18) = 18 [pid 5603] exit_group(0 [pid 5635] memfd_create("syzkaller", 0 [pid 5603] <... exit_group resumed>) = ? [pid 5603] +++ exited with 0 +++ [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5603, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=40 /* 0.40 s */} --- [pid 5635] <... memfd_create resumed>) = 3 [pid 5635] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5231] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5231] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5231] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./6/binderfs") = 0 [pid 5231] umount2("./6/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./6/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 92.800739][ T5233] bcachefs (loop4): shutting down [ 92.816867][ T5233] bcachefs (loop4): going read-only [ 92.822151][ T5233] bcachefs (loop4): finished waiting for writes to stop [pid 5231] unlink("./6/bus") = 0 [pid 5231] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./6/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./6/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./6/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./6/file0") = 0 [ 92.883666][ T5233] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./6") = 0 [pid 5231] mkdir("./7", 0777) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5636 ./strace-static-x86_64: Process 5636 attached [pid 5636] set_robust_list(0x5555807c5660, 24) = 0 [pid 5636] chdir("./7") = 0 [pid 5636] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5636] setpgid(0, 0) = 0 [pid 5636] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5636] write(3, "1000", 4 [pid 5601] <... close resumed>) = 0 [pid 5636] <... write resumed>) = 4 [pid 5636] close(3) = 0 [pid 5636] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5636] write(1, "executing program\n", 18 [pid 5601] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 executing program [pid 5636] <... write resumed>) = 18 [pid 5601] exit_group(0 [pid 5636] memfd_create("syzkaller", 0 [pid 5601] <... exit_group resumed>) = ? [pid 5636] <... memfd_create resumed>) = 3 [pid 5601] +++ exited with 0 +++ [pid 5636] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5601, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=45 /* 0.45 s */} --- [pid 5636] <... mmap resumed>) = 0x7fc387600000 [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5602] <... close resumed>) = 0 [pid 5230] <... restart_syscall resumed>) = 0 [pid 5602] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5602] exit_group(0 [pid 5230] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5602] <... exit_group resumed>) = ? [pid 5230] <... openat resumed>) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./10/binderfs") = 0 [pid 5230] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./10/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./10/bus") = 0 [pid 5230] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, [pid 5602] +++ exited with 0 +++ [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5602, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=46 /* 0.46 s */} --- [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5230] close(4) = 0 [pid 5229] <... restart_syscall resumed>) = 0 [pid 5229] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] rmdir("./10/file0" [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... rmdir resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] getdents64(3, [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./7/binderfs") = 0 [pid 5229] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./7/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./7/bus") = 0 [pid 5229] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./7/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] close(3 [pid 5229] <... openat resumed>) = 4 [pid 5230] <... close resumed>) = 0 [pid 5229] newfstatat(4, "", [pid 5230] rmdir("./10" [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4 [pid 5230] <... rmdir resumed>) = 0 [pid 5229] <... close resumed>) = 0 [pid 5230] mkdir("./11", 0777 [pid 5229] rmdir("./7/file0" [pid 5230] <... mkdir resumed>) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] getdents64(3, [pid 5230] <... openat resumed>) = 3 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5229] close(3 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] <... close resumed>) = 0 [pid 5230] close(3 [pid 5229] rmdir("./7" [pid 5230] <... close resumed>) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] mkdir("./8", 0777./strace-static-x86_64: Process 5637 attached ) = 0 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5637 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5637] set_robust_list(0x5555807c5660, 24) = 0 [pid 5229] <... openat resumed>) = 3 [ 93.070454][ T3031] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 93.087364][ T3031] bcachefs (loop4): fatal error - emergency read only [ 93.095336][ T5233] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [pid 5637] chdir("./11" [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5637] <... chdir resumed>) = 0 [pid 5637] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5637] <... prctl resumed>) = 0 [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5638 attached , child_tidptr=0x5555807c5650) = 5638 [pid 5638] set_robust_list(0x5555807c5660, 24) = 0 [pid 5638] chdir("./8") = 0 [pid 5637] setpgid(0, 0) = 0 [pid 5638] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5638] setpgid(0, 0 [pid 5637] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5638] <... setpgid resumed>) = 0 [pid 5638] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5637] <... openat resumed>) = 3 [pid 5638] <... openat resumed>) = 3 [pid 5638] write(3, "1000", 4) = 4 [pid 5638] close(3) = 0 [pid 5638] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5638] write(1, "executing program\n", 18) = 18 [pid 5638] memfd_create("syzkaller", 0 [pid 5637] write(3, "1000", 4 [pid 5638] <... memfd_create resumed>) = 3 [pid 5638] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5637] <... write resumed>) = 4 [pid 5637] close(3) = 0 [pid 5635] 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 5637] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5637] write(1, "executing program\n", 18) = 18 [ 93.156259][ T5233] bcachefs (loop4): unshutdown complete, journal seq 14 [ 93.164934][ T5233] bcachefs (loop4): done going read-only, filesystem not clean [pid 5637] memfd_create("syzkaller", 0) = 3 [pid 5637] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 93.319617][ T5233] bcachefs (loop4): shutdown complete [pid 5636] 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 5638] 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 5637] 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 5635] <... write resumed>) = 16777216 [pid 5635] munmap(0x7fc387600000, 138412032) = 0 [pid 5635] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5635] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5635] close(3) = 0 [pid 5635] close(4) = 0 [pid 5635] mkdir("./file0", 0777) = 0 [ 93.669826][ T5635] loop3: detected capacity change from 0 to 32768 [pid 5635] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5636] <... write resumed>) = 16777216 [pid 5636] munmap(0x7fc387600000, 138412032) = 0 [pid 5636] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5636] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5636] close(3) = 0 [pid 5636] close(4) = 0 [pid 5636] mkdir("./file0", 0777) = 0 [ 93.792087][ T5636] loop2: detected capacity change from 0 to 32768 [pid 5636] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5637] <... write resumed>) = 16777216 [pid 5637] munmap(0x7fc387600000, 138412032) = 0 [pid 5637] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5637] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5637] close(3) = 0 [pid 5637] close(4) = 0 [pid 5637] mkdir("./file0", 0777 [pid 5638] <... write resumed>) = 16777216 [pid 5637] <... mkdir resumed>) = 0 [pid 5637] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5638] munmap(0x7fc387600000, 138412032) = 0 [pid 5638] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5638] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5638] close(3) = 0 [pid 5638] close(4) = 0 [pid 5638] mkdir("./file0", 0777) = 0 [ 93.878505][ T5637] loop1: detected capacity change from 0 to 32768 [ 93.916442][ T5638] loop0: detected capacity change from 0 to 32768 [ 94.063106][ T5635] 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 [ 94.088292][ T5635] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 94.099069][ T5635] bcachefs (loop3): Version upgrade required: [ 94.099069][ T5635] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 94.099069][ T5635] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 94.099069][ T5635] 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.103374][ T5637] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 94.171266][ T5635] bcachefs (loop3): dropping and reconstructing all alloc info [ 94.189854][ T5637] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 94.194237][ T5636] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 94.213338][ T5636] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 94.242937][ T5638] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 94.253749][ T5635] bcachefs (loop3): check_topology... done [ 94.278744][ T5635] bcachefs (loop3): accounting_read... done [ 94.299950][ T5635] bcachefs (loop3): alloc_read... done [ 94.315605][ T5638] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 94.324352][ T5635] bcachefs (loop3): stripes_read... done [ 94.340445][ T5635] bcachefs (loop3): snapshots_read... done [pid 5638] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5636] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5637] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 94.356101][ T5635] bcachefs (loop3): check_allocations... done [ 94.406903][ T5637] bcachefs: bch2_fs_get_tree() error: EINVAL [ 94.417907][ T5635] bcachefs (loop3): going read-write [ 94.440139][ T5636] bcachefs: bch2_fs_get_tree() error: EINVAL [ 94.449117][ T5635] bcachefs (loop3): done starting filesystem [pid 5637] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5636] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5635] <... mount resumed>) = 0 [pid 5637] <... openat resumed>) = 3 [pid 5637] ioctl(3, LOOP_CLR_FD) = 0 [pid 5637] close(3 [pid 5636] <... openat resumed>) = 3 [pid 5635] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5233] <... umount2 resumed>) = 0 [pid 5636] ioctl(3, LOOP_CLR_FD [pid 5635] <... openat resumed>) = 3 [pid 5233] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5636] <... ioctl resumed>) = 0 [pid 5636] close(3 [pid 5635] chdir("./file0" [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5635] <... chdir resumed>) = 0 [pid 5233] newfstatat(AT_FDCWD, "./8/file0", [pid 5635] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5635] <... openat resumed>) = 4 [pid 5233] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5635] ioctl(4, LOOP_CLR_FD [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5635] <... ioctl resumed>) = 0 [pid 5233] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5635] close(4) = 0 [pid 5233] <... openat resumed>) = 4 [pid 5635] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] newfstatat(4, "", [pid 5635] <... openat resumed>) = 4 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5635] exit_group(0 [pid 5233] getdents64(4, [pid 5635] <... exit_group resumed>) = ? [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5635] +++ exited with 0 +++ [pid 5233] rmdir("./8/file0" [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5635, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=42 /* 0.42 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5233] <... rmdir resumed>) = 0 [pid 5233] getdents64(3, [pid 5232] <... restart_syscall resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5232] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] rmdir("./8" [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] <... rmdir resumed>) = 0 [pid 5232] newfstatat(3, "", [pid 5233] mkdir("./9", 0777 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5233] <... mkdir resumed>) = 0 [pid 5232] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5232] newfstatat(AT_FDCWD, "./10/binderfs", [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] close(3 [pid 5232] unlink("./10/binderfs" [pid 5233] <... close resumed>) = 0 [pid 5232] <... unlink resumed>) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW./strace-static-x86_64: Process 5670 attached [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5670 [pid 5670] set_robust_list(0x5555807c5660, 24) = 0 [pid 5670] chdir("./9") = 0 [pid 5670] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5670] setpgid(0, 0) = 0 [pid 5670] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5638] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5670] <... openat resumed>) = 3 [pid 5670] write(3, "1000", 4) = 4 [pid 5670] close(3) = 0 [pid 5670] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5670] write(1, "executing program\n", 18) = 18 [pid 5670] memfd_create("syzkaller", 0) = 3 [pid 5670] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5638] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5638] ioctl(3, LOOP_CLR_FD) = 0 [ 94.586261][ T5232] bcachefs (loop3): shutting down [ 94.591381][ T5232] bcachefs (loop3): going read-only [ 94.597075][ T5638] bcachefs: bch2_fs_get_tree() error: EINVAL [ 94.622475][ T5232] bcachefs (loop3): finished waiting for writes to stop [ 94.742511][ T5232] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5638] close(3 [pid 5637] <... close resumed>) = 0 [pid 5637] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5637] exit_group(0) = ? [pid 5637] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5637, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=42 /* 0.42 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5230] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./11/binderfs") = 0 [pid 5230] umount2("./11/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./11/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./11/bus") = 0 [pid 5230] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5636] <... close resumed>) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5230] rmdir("./11/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./11") = 0 [pid 5230] mkdir("./12", 0777 [pid 5636] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5230] <... mkdir resumed>) = 0 [pid 5636] exit_group(0) = ? [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5230] close(3 [pid 5636] +++ exited with 0 +++ [pid 5230] <... close resumed>) = 0 [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5636, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=45 /* 0.45 s */} --- [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5671 ./strace-static-x86_64: Process 5671 attached [pid 5231] <... restart_syscall resumed>) = 0 [pid 5231] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5671] set_robust_list(0x5555807c5660, 24 [pid 5231] <... openat resumed>) = 3 [pid 5671] <... set_robust_list resumed>) = 0 [pid 5231] newfstatat(3, "", [pid 5671] chdir("./12" [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5671] <... chdir resumed>) = 0 [pid 5231] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./7/binderfs" [pid 5671] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5231] <... unlink resumed>) = 0 [pid 5231] umount2("./7/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./7/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./7/bus" [pid 5671] <... prctl resumed>) = 0 [pid 5231] <... unlink resumed>) = 0 [pid 5231] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5671] setpgid(0, 0) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5671] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5231] newfstatat(AT_FDCWD, "./7/file0", [pid 5671] <... openat resumed>) = 3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5671] write(3, "1000", 4 [pid 5231] umount2("./7/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./7/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5671] <... write resumed>) = 4 [pid 5231] <... openat resumed>) = 4 [pid 5671] close(3 [pid 5231] newfstatat(4, "", [pid 5671] <... close resumed>) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5671] symlink("/dev/binderfs", "./binderfs" [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./7/file0") = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./7" [pid 5671] <... symlink resumed>) = 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5671] write(1, "executing program\n", 18executing program ) = 18 [pid 5231] mkdir("./8", 0777 [pid 5671] memfd_create("syzkaller", 0 [pid 5231] <... mkdir resumed>) = 0 [pid 5671] <... memfd_create resumed>) = 3 [ 94.913018][ T987] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [ 94.937567][ T987] bcachefs (loop3): fatal error - emergency read only executing program [pid 5671] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5638] <... close resumed>) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5672 attached [pid 5672] set_robust_list(0x5555807c5660, 24) = 0 [pid 5672] chdir("./8") = 0 [pid 5671] <... mmap resumed>) = 0x7fc387600000 [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5672 [pid 5672] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5672] setpgid(0, 0) = 0 [pid 5672] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5672] write(3, "1000", 4) = 4 [pid 5672] close(3) = 0 [pid 5672] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5672] write(1, "executing program\n", 18) = 18 [pid 5672] memfd_create("syzkaller", 0) = 3 [pid 5672] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5638] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5638] exit_group(0) = ? [pid 5638] +++ exited with 0 +++ [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5638, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=44 /* 0.44 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5229] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./8/binderfs") = 0 [pid 5229] umount2("./8/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 94.963555][ T5232] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 14 [pid 5229] newfstatat(AT_FDCWD, "./8/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./8/bus") = 0 [pid 5229] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./8/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5670] 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] close(4) = 0 [pid 5229] rmdir("./8/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./8") = 0 [ 95.028894][ T5232] bcachefs (loop3): unshutdown complete, journal seq 14 [ 95.057432][ T5232] bcachefs (loop3): done going read-only, filesystem not clean [pid 5229] mkdir("./9", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5673 attached [pid 5673] set_robust_list(0x5555807c5660, 24 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5673 [pid 5673] <... set_robust_list resumed>) = 0 [pid 5673] chdir("./9") = 0 executing program [pid 5673] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5673] setpgid(0, 0) = 0 [pid 5673] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5673] write(3, "1000", 4) = 4 [pid 5673] close(3) = 0 [pid 5673] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5673] write(1, "executing program\n", 18) = 18 [pid 5673] memfd_create("syzkaller", 0) = 3 [pid 5673] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 95.162216][ T5232] bcachefs (loop3): shutdown complete [pid 5671] 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 5672] 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 5670] <... write resumed>) = 16777216 [pid 5673] 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 5670] munmap(0x7fc387600000, 138412032) = 0 [pid 5670] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5670] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5670] close(3) = 0 [pid 5670] close(4) = 0 [pid 5670] mkdir("./file0", 0777) = 0 [ 95.510989][ T5670] loop4: detected capacity change from 0 to 32768 [pid 5670] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5672] <... write resumed>) = 16777216 [pid 5672] munmap(0x7fc387600000, 138412032) = 0 [pid 5672] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5672] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5672] close(3) = 0 [pid 5672] close(4) = 0 [pid 5672] mkdir("./file0", 0777) = 0 [pid 5672] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5671] <... write resumed>) = 16777216 [ 95.686034][ T5672] loop2: detected capacity change from 0 to 32768 [pid 5671] munmap(0x7fc387600000, 138412032) = 0 [pid 5671] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5671] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5671] close(3) = 0 [pid 5673] <... write resumed>) = 16777216 [pid 5671] close(4 [pid 5673] munmap(0x7fc387600000, 138412032 [pid 5671] <... close resumed>) = 0 [pid 5671] mkdir("./file0", 0777 [pid 5673] <... munmap resumed>) = 0 [pid 5671] <... mkdir resumed>) = 0 [pid 5671] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5673] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5673] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5673] close(3) = 0 [pid 5673] close(4) = 0 [pid 5673] mkdir("./file0", 0777) = 0 [ 95.758425][ T5671] loop1: detected capacity change from 0 to 32768 [ 95.794690][ T5673] loop0: detected capacity change from 0 to 32768 [ 95.924083][ T5672] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 95.924340][ T5670] 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 [ 95.933309][ T5672] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 95.970728][ T5670] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 95.980181][ T5670] bcachefs (loop4): Version upgrade required: [ 95.980181][ T5670] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 95.980181][ T5670] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 95.980181][ T5670] 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 [ 96.022875][ T5673] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 96.053302][ T5670] bcachefs (loop4): dropping and reconstructing all alloc info [ 96.070406][ T5671] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 96.087936][ T5671] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 96.096591][ T5673] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 96.128142][ T5670] bcachefs (loop4): check_topology... done [ 96.134087][ T5670] bcachefs (loop4): accounting_read... done [ 96.143127][ T5672] bcachefs: bch2_fs_get_tree() error: EINVAL [ 96.165888][ T5670] bcachefs (loop4): alloc_read... done [pid 5673] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5672] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5672] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5672] ioctl(3, LOOP_CLR_FD) = 0 [ 96.195890][ T5670] bcachefs (loop4): stripes_read... done [ 96.201743][ T5670] bcachefs (loop4): snapshots_read... done [pid 5672] close(3 [pid 5671] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5671] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5671] ioctl(3, LOOP_CLR_FD) = 0 [ 96.251011][ T5671] bcachefs: bch2_fs_get_tree() error: EINVAL [ 96.267797][ T5670] bcachefs (loop4): check_allocations... [ 96.288714][ T5673] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5671] close(3 [pid 5673] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5673] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5673] ioctl(3, LOOP_CLR_FD) = 0 [ 96.352547][ T5670] done [ 96.414285][ T5670] bcachefs (loop4): going read-write [pid 5673] close(3 [pid 5672] <... close resumed>) = 0 [pid 5232] <... umount2 resumed>) = 0 [pid 5672] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5672] <... openat resumed>) = 3 [pid 5672] exit_group(0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./10/file0", [pid 5672] <... exit_group resumed>) = ? [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5672] +++ exited with 0 +++ [pid 5232] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5672, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=43 /* 0.43 s */} --- [pid 5232] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5232] <... openat resumed>) = 4 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4 [pid 5670] <... mount resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5670] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5231] <... restart_syscall resumed>) = 0 [pid 5670] <... openat resumed>) = 3 [pid 5232] rmdir("./10/file0") = 0 [pid 5232] getdents64(3, [pid 5231] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5670] chdir("./file0" [pid 5232] close(3 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5670] <... chdir resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5231] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5670] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5232] rmdir("./10" [pid 5231] <... openat resumed>) = 3 [pid 5670] ioctl(4, LOOP_CLR_FD [pid 5232] <... rmdir resumed>) = 0 [pid 5670] <... ioctl resumed>) = 0 [pid 5232] mkdir("./11", 0777 [pid 5231] newfstatat(3, "", [pid 5670] close(4 [pid 5232] <... mkdir resumed>) = 0 [pid 5670] <... close resumed>) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5670] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5670] <... openat resumed>) = 4 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5705 attached [pid 5231] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [ 96.527204][ T5670] bcachefs (loop4): done starting filesystem [pid 5670] exit_group(0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5705] set_robust_list(0x5555807c5660, 24 [pid 5670] <... exit_group resumed>) = ? [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5705 [pid 5231] newfstatat(AT_FDCWD, "./8/binderfs", [pid 5705] <... set_robust_list resumed>) = 0 [pid 5705] chdir("./11" [pid 5670] +++ exited with 0 +++ [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5705] <... chdir resumed>) = 0 [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5670, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5705] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5231] unlink("./8/binderfs" [pid 5705] <... prctl resumed>) = 0 [pid 5673] <... close resumed>) = 0 [pid 5231] <... unlink resumed>) = 0 [pid 5231] umount2("./8/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5705] setpgid(0, 0 [pid 5233] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5705] <... setpgid resumed>) = 0 [pid 5673] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5705] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5705] <... openat resumed>) = 3 [pid 5233] <... openat resumed>) = 3 [pid 5233] newfstatat(3, "", [pid 5231] newfstatat(AT_FDCWD, "./8/bus", [pid 5705] write(3, "1000", 4) = 4 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5705] close(3 [pid 5673] <... openat resumed>) = 3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] getdents64(3, [pid 5705] <... close resumed>) = 0 [pid 5231] unlink("./8/bus" [pid 5705] symlink("/dev/binderfs", "./binderfs" [pid 5673] exit_group(0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] <... unlink resumed>) = 0 [pid 5705] <... symlink resumed>) = 0 [pid 5231] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5673] <... exit_group resumed>) = ? [pid 5233] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5673] +++ exited with 0 +++ executing program [pid 5705] write(1, "executing program\n", 18 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./8/file0", [pid 5233] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5673, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=44 /* 0.44 s */} --- [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./8/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5705] <... write resumed>) = 18 [pid 5233] unlink("./9/binderfs" [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... unlink resumed>) = 0 [pid 5231] openat(AT_FDCWD, "./8/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... openat resumed>) = 4 [pid 5705] memfd_create("syzkaller", 0 [pid 5671] <... close resumed>) = 0 [pid 5231] newfstatat(4, "", [pid 5229] <... restart_syscall resumed>) = 0 [pid 5705] <... memfd_create resumed>) = 3 [pid 5705] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5705] <... mmap resumed>) = 0x7fc387600000 [pid 5671] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] getdents64(4, [pid 5229] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5671] <... openat resumed>) = 3 [pid 5671] exit_group(0) = ? [pid 5671] +++ exited with 0 +++ [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5671, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=46 /* 0.46 s */} --- [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] getdents64(4, [pid 5229] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4 [pid 5229] <... openat resumed>) = 3 [pid 5231] <... close resumed>) = 0 [pid 5229] newfstatat(3, "", [pid 5231] rmdir("./8/file0" [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5229] getdents64(3, [pid 5231] getdents64(3, [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5230] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] newfstatat(3, "", [pid 5231] close(3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] unlink("./9/binderfs" [pid 5231] <... close resumed>) = 0 [pid 5230] getdents64(3, [pid 5229] <... unlink resumed>) = 0 [pid 5231] rmdir("./8" [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./9/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./9/bus", [ 96.669330][ T5233] bcachefs (loop4): shutting down [ 96.687947][ T5233] bcachefs (loop4): going read-only [ 96.693287][ T5233] bcachefs (loop4): finished waiting for writes to stop [pid 5231] <... rmdir resumed>) = 0 [pid 5230] newfstatat(AT_FDCWD, "./12/binderfs", [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./9/bus" [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5230] unlink("./12/binderfs" [pid 5229] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... unlink resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] newfstatat(AT_FDCWD, "./9/file0", [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] newfstatat(AT_FDCWD, "./12/bus", [pid 5229] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] unlink("./12/bus" [pid 5229] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... unlink resumed>) = 0 [pid 5229] <... openat resumed>) = 4 [pid 5230] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] newfstatat(4, "", [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, [pid 5231] mkdir("./9", 0777 [pid 5230] newfstatat(AT_FDCWD, "./12/file0", [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] <... mkdir resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 96.714843][ T5233] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5229] getdents64(4, [pid 5230] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] close(4 [pid 5231] <... openat resumed>) = 3 [pid 5230] <... openat resumed>) = 4 [pid 5229] <... close resumed>) = 0 [pid 5230] newfstatat(4, "", [pid 5229] rmdir("./9/file0" [pid 5231] ioctl(3, LOOP_CLR_FD [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5231] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] getdents64(4, [pid 5229] getdents64(3, [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] getdents64(4, [pid 5229] close(3 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] <... close resumed>) = 0 [pid 5230] close(4 [pid 5229] rmdir("./9" [pid 5230] <... close resumed>) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] rmdir("./12/file0" [pid 5229] mkdir("./10", 0777 [pid 5230] <... rmdir resumed>) = 0 [pid 5229] <... mkdir resumed>) = 0 [pid 5230] getdents64(3, [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5231] close(3 [pid 5230] close(3 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5230] <... close resumed>) = 0 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] rmdir("./12" [pid 5229] close(3 [pid 5231] <... close resumed>) = 0 [pid 5230] <... rmdir resumed>) = 0 [pid 5229] <... close resumed>) = 0 [pid 5230] mkdir("./13", 0777 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5706 attached executing program [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] <... mkdir resumed>) = 0 [pid 5706] set_robust_list(0x5555807c5660, 24 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5706 [pid 5706] <... set_robust_list resumed>) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5706] chdir("./10" [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5706] <... chdir resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5706] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5230] close(3 [pid 5706] <... prctl resumed>) = 0 [pid 5230] <... close resumed>) = 0 [pid 5706] setpgid(0, 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5707 attached [pid 5706] <... setpgid resumed>) = 0 [pid 5707] set_robust_list(0x5555807c5660, 24 [pid 5706] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5707 [pid 5707] <... set_robust_list resumed>) = 0 [pid 5706] <... openat resumed>) = 3 [pid 5707] chdir("./13" [pid 5706] write(3, "1000", 4 [pid 5707] <... chdir resumed>) = 0 [pid 5706] <... write resumed>) = 4 [pid 5707] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5706] close(3 [pid 5707] <... prctl resumed>) = 0 [pid 5706] <... close resumed>) = 0 [pid 5707] setpgid(0, 0 [pid 5706] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5707] <... setpgid resumed>) = 0 [pid 5706] write(1, "executing program\n", 18 [pid 5707] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5706] <... write resumed>) = 18 [pid 5706] memfd_create("syzkaller", 0) = 3 [pid 5706] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 ./strace-static-x86_64: Process 5708 attached [pid 5707] <... openat resumed>) = 3 [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5708 [pid 5708] set_robust_list(0x5555807c5660, 24) = 0 [ 96.780979][ T987] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 96.817130][ T987] bcachefs (loop4): fatal error - emergency read only [pid 5707] write(3, "1000", 4executing program executing program [pid 5708] chdir("./9" [pid 5707] <... write resumed>) = 4 [pid 5707] close(3) = 0 [pid 5707] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5707] write(1, "executing program\n", 18) = 18 [pid 5707] memfd_create("syzkaller", 0 [pid 5708] <... chdir resumed>) = 0 [pid 5708] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5708] setpgid(0, 0 [pid 5707] <... memfd_create resumed>) = 3 [pid 5707] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5708] <... setpgid resumed>) = 0 [pid 5708] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5708] write(3, "1000", 4) = 4 [pid 5708] close(3) = 0 [pid 5708] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5708] write(1, "executing program\n", 18) = 18 [pid 5708] memfd_create("syzkaller", 0) = 3 [pid 5708] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 96.827709][ T5233] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [ 96.855882][ T5233] bcachefs (loop4): unshutdown complete, journal seq 14 [ 96.871569][ T5233] bcachefs (loop4): done going read-only, filesystem not clean [ 96.912694][ T5233] bcachefs (loop4): shutdown complete [pid 5705] 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 5708] 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 5706] 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 5707] 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 5705] <... write resumed>) = 16777216 [pid 5705] munmap(0x7fc387600000, 138412032) = 0 [pid 5705] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5705] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5705] close(3) = 0 [pid 5705] close(4) = 0 [pid 5705] mkdir("./file0", 0777) = 0 [pid 5705] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5708] <... write resumed>) = 16777216 [ 97.443866][ T5705] loop3: detected capacity change from 0 to 32768 [pid 5708] munmap(0x7fc387600000, 138412032) = 0 [pid 5708] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5707] <... write resumed>) = 16777216 [pid 5708] <... openat resumed>) = 4 [pid 5708] ioctl(4, LOOP_SET_FD, 3 [pid 5707] munmap(0x7fc387600000, 138412032 [pid 5708] <... ioctl resumed>) = 0 [pid 5707] <... munmap resumed>) = 0 [pid 5707] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5708] close(3 [pid 5707] <... openat resumed>) = 4 [pid 5707] ioctl(4, LOOP_SET_FD, 3 [pid 5708] <... close resumed>) = 0 [pid 5708] close(4) = 0 [pid 5708] mkdir("./file0", 0777) = 0 [pid 5707] <... ioctl resumed>) = 0 [pid 5707] close(3 [pid 5708] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5706] <... write resumed>) = 16777216 [pid 5707] <... close resumed>) = 0 [pid 5707] close(4) = 0 [pid 5707] mkdir("./file0", 0777) = 0 [pid 5706] munmap(0x7fc387600000, 138412032 [ 97.541847][ T5708] loop2: detected capacity change from 0 to 32768 [ 97.572810][ T5707] loop1: detected capacity change from 0 to 32768 [pid 5707] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5706] <... munmap resumed>) = 0 [pid 5706] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5706] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5706] close(3) = 0 [pid 5706] close(4) = 0 [pid 5706] mkdir("./file0", 0777) = 0 [ 97.641097][ T5706] loop0: detected capacity change from 0 to 32768 [ 97.768143][ T5705] 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 [ 97.790995][ T5705] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 97.799743][ T5705] bcachefs (loop3): Version upgrade required: [ 97.799743][ T5705] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 97.799743][ T5705] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 97.799743][ T5705] 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.880506][ T5708] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 97.895594][ T5708] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 97.903059][ T5706] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 97.915344][ T5705] bcachefs (loop3): dropping and reconstructing all alloc info [ 97.924043][ T5706] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 97.945043][ T5707] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 97.970934][ T5707] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 98.005634][ T5705] bcachefs (loop3): check_topology... done [ 98.011986][ T5705] bcachefs (loop3): accounting_read... [ 98.027980][ T5708] bcachefs: bch2_fs_get_tree() error: EINVAL [ 98.043739][ T5705] done [ 98.049064][ T5705] bcachefs (loop3): alloc_read... done [pid 5706] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5708] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5708] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5708] ioctl(3, LOOP_CLR_FD) = 0 [ 98.076369][ T5705] bcachefs (loop3): stripes_read... done [ 98.083251][ T5705] bcachefs (loop3): snapshots_read... done [pid 5708] close(3 [pid 5233] <... umount2 resumed>) = 0 [pid 5706] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5233] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5706] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5706] ioctl(3, LOOP_CLR_FD) = 0 [ 98.095990][ T5705] bcachefs (loop3): check_allocations... [ 98.209564][ T5706] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5706] close(3 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5707] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", [pid 5707] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5707] <... openat resumed>) = 3 [pid 5233] getdents64(4, [pid 5707] ioctl(3, LOOP_CLR_FD [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5707] <... ioctl resumed>) = 0 [pid 5233] getdents64(4, [pid 5707] close(3 [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [ 98.270399][ T5705] done [ 98.276643][ T5707] bcachefs: bch2_fs_get_tree() error: EINVAL [ 98.308267][ T5705] bcachefs (loop3): going read-write [pid 5233] rmdir("./9/file0") = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5233] rmdir("./9") = 0 [pid 5233] mkdir("./10", 0777) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5738 attached [pid 5738] set_robust_list(0x5555807c5660, 24) = 0 [pid 5705] <... mount resumed>) = 0 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5738 [pid 5738] chdir("./10") = 0 [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 executing program [pid 5738] write(1, "executing program\n", 18) = 18 [pid 5738] memfd_create("syzkaller", 0) = 3 [pid 5738] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5705] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5705] chdir("./file0") = 0 [pid 5708] <... close resumed>) = 0 [pid 5705] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5705] ioctl(4, LOOP_CLR_FD) = 0 [ 98.386470][ T5705] bcachefs (loop3): done starting filesystem [pid 5705] close(4) = 0 [pid 5705] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5708] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5705] <... openat resumed>) = 4 [pid 5708] exit_group(0 [pid 5705] exit_group(0) = ? [pid 5708] <... exit_group resumed>) = ? [pid 5705] +++ exited with 0 +++ [pid 5708] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5705, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=34 /* 0.34 s */} --- [pid 5232] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5708, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=52 /* 0.52 s */} --- [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... openat resumed>) = 3 [pid 5231] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] newfstatat(3, "", [pid 5232] getdents64(3, [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] getdents64(3, [pid 5232] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] newfstatat(AT_FDCWD, "./11/binderfs", [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./9/binderfs", [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./11/binderfs" [pid 5231] unlink("./9/binderfs" [pid 5232] <... unlink resumed>) = 0 [pid 5232] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... unlink resumed>) = 0 [pid 5231] umount2("./9/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./9/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./9/bus") = 0 [pid 5231] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./9/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./9/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./9/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [ 98.529316][ T5232] bcachefs (loop3): shutting down [ 98.541252][ T5232] bcachefs (loop3): going read-only [ 98.561206][ T5232] bcachefs (loop3): finished waiting for writes to stop [pid 5231] rmdir("./9/file0" [pid 5706] <... close resumed>) = 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5706] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5706] exit_group(0) = ? [pid 5706] +++ exited with 0 +++ [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5706, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=35 /* 0.35 s */} --- [pid 5707] <... close resumed>) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5707] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] close(3 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... close resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] rmdir("./9" [pid 5229] <... openat resumed>) = 3 [pid 5707] <... openat resumed>) = 3 [pid 5231] <... rmdir resumed>) = 0 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5707] exit_group(0 [pid 5229] getdents64(3, [pid 5707] <... exit_group resumed>) = ? [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./10/binderfs") = 0 [pid 5229] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5707] +++ exited with 0 +++ [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./10/bus", [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5707, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=44 /* 0.44 s */} --- [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5229] unlink("./10/bus") = 0 [pid 5229] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./10/file0", [pid 5230] <... restart_syscall resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... openat resumed>) = 4 [pid 5230] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] newfstatat(4, "", [pid 5230] <... openat resumed>) = 3 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] newfstatat(3, "", [pid 5229] getdents64(4, [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(3, [pid 5229] getdents64(4, [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] close(4 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... close resumed>) = 0 [pid 5230] newfstatat(AT_FDCWD, "./13/binderfs", [pid 5229] rmdir("./10/file0" [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] unlink("./13/binderfs" [pid 5229] getdents64(3, [pid 5230] <... unlink resumed>) = 0 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] mkdir("./10", 0777 [pid 5230] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] close(3 [pid 5231] <... mkdir resumed>) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... close resumed>) = 0 [pid 5230] newfstatat(AT_FDCWD, "./13/bus", [pid 5229] rmdir("./10" [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] unlink("./13/bus" [pid 5229] mkdir("./11", 0777 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5230] <... unlink resumed>) = 0 [pid 5231] <... openat resumed>) = 3 [pid 5230] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... mkdir resumed>) = 0 [pid 5231] ioctl(3, LOOP_CLR_FD [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5231] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] newfstatat(AT_FDCWD, "./13/file0", [pid 5229] <... openat resumed>) = 3 [pid 5231] close(3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 98.599619][ T5232] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5231] <... close resumed>) = 0 [pid 5230] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] close(3 [pid 5230] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... close resumed>) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] <... openat resumed>) = 4 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5741 attached [pid 5230] newfstatat(4, "", [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5742 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5741 [pid 5230] getdents64(4, ./strace-static-x86_64: Process 5742 attached 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5741] set_robust_list(0x5555807c5660, 24 [pid 5230] getdents64(4, [pid 5742] set_robust_list(0x5555807c5660, 24 [pid 5741] <... set_robust_list resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5742] <... set_robust_list resumed>) = 0 [pid 5230] close(4 [pid 5742] chdir("./10" [pid 5741] chdir("./11" [pid 5230] <... close resumed>) = 0 [pid 5742] <... chdir resumed>) = 0 [pid 5741] <... chdir resumed>) = 0 [pid 5230] rmdir("./13/file0" [pid 5741] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5742] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5741] <... prctl resumed>) = 0 [pid 5230] <... rmdir resumed>) = 0 [pid 5742] <... prctl resumed>) = 0 [pid 5741] setpgid(0, 0 [pid 5230] getdents64(3, [pid 5742] setpgid(0, 0 [pid 5741] <... setpgid resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5742] <... setpgid resumed>) = 0 [pid 5230] close(3 [pid 5742] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5741] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] <... close resumed>) = 0 [pid 5230] rmdir("./13" [pid 5741] <... openat resumed>) = 3 [pid 5230] <... rmdir resumed>) = 0 [pid 5742] <... openat resumed>) = 3 [pid 5741] write(3, "1000", 4 [pid 5230] mkdir("./14", 0777 [pid 5742] write(3, "1000", 4 [pid 5741] <... write resumed>) = 4 [pid 5230] <... mkdir resumed>) = 0 [pid 5742] <... write resumed>) = 4 [pid 5741] close(3 [pid 5742] close(3 [pid 5741] <... close resumed>) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5741] symlink("/dev/binderfs", "./binderfs" [pid 5742] <... close resumed>) = 0 [pid 5741] <... symlink resumed>) = 0 [pid 5230] <... openat resumed>) = 3 executing program [pid 5742] symlink("/dev/binderfs", "./binderfs" [pid 5741] write(1, "executing program\n", 18 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5742] <... symlink resumed>) = 0 [pid 5741] <... write resumed>) = 18 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] close(3) = 0 [pid 5741] memfd_create("syzkaller", 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDexecuting program ./strace-static-x86_64: Process 5743 attached [pid 5742] write(1, "executing program\n", 18 [pid 5741] <... memfd_create resumed>) = 3 [pid 5742] <... write resumed>) = 18 [pid 5741] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5743 [pid 5742] memfd_create("syzkaller", 0) = 3 [pid 5741] <... mmap resumed>) = 0x7fc387600000 [pid 5743] set_robust_list(0x5555807c5660, 24 [pid 5742] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5743] <... set_robust_list resumed>) = 0 [pid 5743] chdir("./14") = 0 [pid 5743] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5743] setpgid(0, 0) = 0 [pid 5743] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5743] write(3, "1000", 4) = 4 [pid 5743] close(3) = 0 [pid 5743] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5743] write(1, "executing program\n", 18executing program ) = 18 [pid 5743] memfd_create("syzkaller", 0) = 3 [pid 5743] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 98.740386][ T987] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [ 98.837697][ T987] bcachefs (loop3): fatal error - emergency read only [ 98.856295][ T5232] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 14 [ 98.875828][ T5232] bcachefs (loop3): unshutdown complete, journal seq 14 [ 98.883827][ T5232] bcachefs (loop3): done going read-only, filesystem not clean [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 [ 98.957874][ T5232] bcachefs (loop3): shutdown complete [pid 5742] 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 5741] 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 5743] 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 5742] <... write resumed>) = 16777216 [pid 5742] munmap(0x7fc387600000, 138412032) = 0 [pid 5742] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5738] <... write resumed>) = 16777216 [pid 5742] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5738] munmap(0x7fc387600000, 138412032 [pid 5742] close(3) = 0 [pid 5742] close(4) = 0 [pid 5742] mkdir("./file0", 0777) = 0 [ 99.373110][ T5742] loop2: detected capacity change from 0 to 32768 [pid 5742] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5738] <... munmap resumed>) = 0 [pid 5738] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5738] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5738] close(3) = 0 [pid 5738] close(4) = 0 [pid 5738] mkdir("./file0", 0777) = 0 [ 99.444538][ T5738] loop4: detected capacity change from 0 to 32768 [pid 5738] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5741] <... write resumed>) = 16777216 [pid 5741] munmap(0x7fc387600000, 138412032) = 0 [pid 5741] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5741] ioctl(4, LOOP_SET_FD, 3 [pid 5743] <... write resumed>) = 16777216 [pid 5743] munmap(0x7fc387600000, 138412032 [pid 5741] <... ioctl resumed>) = 0 [pid 5741] close(3) = 0 [pid 5741] close(4 [pid 5743] <... munmap resumed>) = 0 [pid 5741] <... close resumed>) = 0 [pid 5743] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5743] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5741] mkdir("./file0", 0777 [pid 5743] close(3 [pid 5741] <... mkdir resumed>) = 0 [pid 5741] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5743] <... close resumed>) = 0 [pid 5743] close(4) = 0 [pid 5743] mkdir("./file0", 0777) = 0 [ 99.553322][ T5741] loop0: detected capacity change from 0 to 32768 [ 99.576678][ T5743] loop1: detected capacity change from 0 to 32768 [ 99.920506][ T5742] 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.936424][ T5743] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 99.946154][ T5742] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 99.960021][ T5738] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 99.970147][ T5742] bcachefs (loop2): Version upgrade required: [ 99.970147][ T5742] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 99.970147][ T5742] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 99.970147][ T5742] 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.056125][ T5738] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 100.080673][ T5741] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 100.089932][ T5742] bcachefs (loop2): dropping and reconstructing all alloc info [ 100.106543][ T5741] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 100.107013][ T5743] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5743] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5738] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5738] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5738] ioctl(3, LOOP_CLR_FD) = 0 [ 100.247038][ T5738] bcachefs: bch2_fs_get_tree() error: EINVAL [ 100.280936][ T5742] bcachefs (loop2): check_topology... done [pid 5738] close(3 [pid 5741] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = 0 [pid 5741] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5232] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5741] ioctl(3, LOOP_CLR_FD [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5741] <... ioctl resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./11/file0", [pid 5741] close(3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5743] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 100.307819][ T5742] bcachefs (loop2): accounting_read... [ 100.310276][ T5741] bcachefs: bch2_fs_get_tree() error: EINVAL [ 100.323437][ T5743] bcachefs: bch2_fs_get_tree() error: EINVAL [ 100.329782][ T5742] done [ 100.332592][ T5742] bcachefs (loop2): alloc_read... done [pid 5232] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5743] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5232] newfstatat(4, "", [pid 5743] <... openat resumed>) = 3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5743] ioctl(3, LOOP_CLR_FD) = 0 [pid 5743] close(3 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4) = 0 [pid 5232] rmdir("./11/file0") = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./11") = 0 [pid 5232] mkdir("./12", 0777) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5773 attached [pid 5773] set_robust_list(0x5555807c5660, 24) = 0 [pid 5773] chdir("./12" [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5773 [pid 5773] <... chdir resumed>) = 0 [pid 5773] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5773] setpgid(0, 0) = 0 [ 100.360693][ T5742] bcachefs (loop2): stripes_read... done [ 100.383873][ T5742] bcachefs (loop2): snapshots_read... done [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) = 0x7fc387600000 [ 100.391664][ T5742] bcachefs (loop2): check_allocations... done [ 100.504922][ T5742] bcachefs (loop2): going read-write [pid 5742] <... mount resumed>) = 0 [pid 5742] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5742] chdir("./file0") = 0 [pid 5742] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5742] ioctl(4, LOOP_CLR_FD) = 0 [pid 5742] close(4) = 0 [ 100.576529][ T5742] bcachefs (loop2): done starting filesystem [pid 5742] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5742] exit_group(0) = ? [pid 5738] <... close resumed>) = 0 [pid 5742] +++ exited with 0 +++ [pid 5738] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5742, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5738] <... openat resumed>) = 3 [pid 5738] exit_group(0 [pid 5231] <... restart_syscall resumed>) = 0 [pid 5738] <... exit_group resumed>) = ? [pid 5231] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5738] +++ exited with 0 +++ [pid 5231] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5738, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=45 /* 0.45 s */} --- [pid 5231] newfstatat(3, "", [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] <... restart_syscall resumed>) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./10/binderfs", [pid 5233] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5743] <... close resumed>) = 0 [pid 5233] <... openat resumed>) = 3 [pid 5231] unlink("./10/binderfs" [pid 5743] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] newfstatat(3, "", [pid 5231] <... unlink resumed>) = 0 [pid 5231] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5743] <... openat resumed>) = 3 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./10/binderfs") = 0 [pid 5233] umount2("./10/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./10/bus", [pid 5743] exit_group(0 [pid 5741] <... close resumed>) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./10/bus") = 0 [pid 5233] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./10/file0" [pid 5743] <... exit_group resumed>) = ? [pid 5233] <... rmdir resumed>) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3 [pid 5743] +++ exited with 0 +++ [pid 5741] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5743, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=46 /* 0.46 s */} --- [pid 5741] <... openat resumed>) = 3 [pid 5230] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5741] exit_group(0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5741] <... exit_group resumed>) = ? [pid 5233] <... close resumed>) = 0 [pid 5230] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] rmdir("./10" [pid 5230] <... openat resumed>) = 3 [pid 5233] <... rmdir resumed>) = 0 [pid 5230] newfstatat(3, "", [pid 5741] +++ exited with 0 +++ [pid 5233] mkdir("./11", 0777 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5230] getdents64(3, [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5741, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=46 /* 0.46 s */} --- [pid 5233] <... openat resumed>) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5230] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] close(3 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... restart_syscall resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5230] newfstatat(AT_FDCWD, "./14/binderfs", [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./14/binderfs" [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5776 [pid 5230] <... unlink resumed>) = 0 [pid 5229] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./14/bus", [pid 5229] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5230] unlink("./14/bus" [pid 5229] newfstatat(3, "", [pid 5230] <... unlink resumed>) = 0 [ 100.707444][ T5231] bcachefs (loop2): shutting down [ 100.721105][ T5231] bcachefs (loop2): going read-only [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 ./strace-static-x86_64: Process 5776 attached [pid 5230] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5776] set_robust_list(0x5555807c5660, 24 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./14/file0", [pid 5229] getdents64(3, [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5776] <... set_robust_list resumed>) = 0 [pid 5230] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5776] chdir("./11" [pid 5230] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... openat resumed>) = 4 [pid 5229] newfstatat(AT_FDCWD, "./11/binderfs", [pid 5776] <... chdir resumed>) = 0 [pid 5230] newfstatat(4, "", [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5776] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5776] <... prctl resumed>) = 0 [pid 5229] unlink("./11/binderfs" [pid 5776] setpgid(0, 0 [pid 5230] getdents64(4, [pid 5229] <... unlink resumed>) = 0 [pid 5776] <... setpgid resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5776] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] getdents64(4, [pid 5229] umount2("./11/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5776] <... openat resumed>) = 3 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5776] write(3, "1000", 4 [pid 5230] close(4 [pid 5229] newfstatat(AT_FDCWD, "./11/bus", [pid 5776] <... write resumed>) = 4 [pid 5230] <... close resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5776] close(3 [pid 5230] rmdir("./14/file0" [pid 5229] unlink("./11/bus" [pid 5776] <... close resumed>) = 0 [pid 5230] <... rmdir resumed>) = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5776] symlink("/dev/binderfs", "./binderfs" [pid 5230] getdents64(3, [pid 5229] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] close(3 [pid 5229] newfstatat(AT_FDCWD, "./11/file0", [pid 5230] <... close resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] rmdir("./14" [pid 5229] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... rmdir resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] mkdir("./15", 0777executing program [pid 5229] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5776] <... symlink resumed>) = 0 [pid 5230] <... mkdir resumed>) = 0 [pid 5776] write(1, "executing program\n", 18) = 18 [pid 5776] memfd_create("syzkaller", 0 [pid 5229] <... openat resumed>) = 4 [pid 5776] <... memfd_create resumed>) = 3 [pid 5229] newfstatat(4, "", [pid 5776] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5776] <... mmap resumed>) = 0x7fc387600000 [pid 5229] getdents64(4, [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] <... openat resumed>) = 3 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./11/file0" [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5229] <... rmdir resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3 [pid 5229] close(3 [pid 5230] <... close resumed>) = 0 [pid 5229] <... close resumed>) = 0 [pid 5229] rmdir("./11") = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5777 [pid 5229] mkdir("./12", 0777) = 0 [ 100.756061][ T5231] bcachefs (loop2): finished waiting for writes to stop [ 100.792758][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ./strace-static-x86_64: Process 5777 attached [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5777] set_robust_list(0x5555807c5660, 24 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5777] <... set_robust_list resumed>) = 0 [pid 5229] close(3 [pid 5777] chdir("./15" [pid 5229] <... close resumed>) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5778 attached [pid 5778] set_robust_list(0x5555807c5660, 24 [pid 5777] <... chdir resumed>) = 0 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5778 [pid 5777] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5778] <... set_robust_list resumed>) = 0 [pid 5777] setpgid(0, 0 [pid 5778] chdir("./12" [pid 5777] <... setpgid resumed>) = 0 [pid 5778] <... chdir resumed>) = 0 [pid 5777] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5778] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5777] <... openat resumed>) = 3 [pid 5778] <... prctl resumed>) = 0 [pid 5777] write(3, "1000", 4 [pid 5778] setpgid(0, 0 [pid 5777] <... write resumed>) = 4 [pid 5778] <... setpgid resumed>) = 0 [pid 5777] close(3 [pid 5778] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5777] <... close resumed>) = 0 [pid 5777] symlink("/dev/binderfs", "./binderfs" executing program [pid 5778] <... openat resumed>) = 3 [pid 5777] <... symlink resumed>) = 0 [pid 5778] write(3, "1000", 4 [pid 5777] write(1, "executing program\n", 18 [pid 5778] <... write resumed>) = 4 [pid 5777] <... write resumed>) = 18 [pid 5778] close(3 [pid 5777] memfd_create("syzkaller", 0 [pid 5778] <... close resumed>) = 0 [pid 5778] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5777] <... memfd_create resumed>) = 3 executing program [pid 5778] write(1, "executing program\n", 18 [pid 5777] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5778] <... write resumed>) = 18 [pid 5777] <... mmap resumed>) = 0x7fc387600000 [pid 5778] memfd_create("syzkaller", 0) = 3 [pid 5778] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 100.895944][ T987] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 100.946407][ T987] bcachefs (loop2): fatal error - emergency read only [ 100.981257][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [ 101.005601][ T5231] bcachefs (loop2): unshutdown complete, journal seq 13 [ 101.036882][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [ 101.113756][ T5231] bcachefs (loop2): shutdown complete [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 5776] 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 5778] 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 5777] 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 resumed>) = 16777216 [pid 5773] munmap(0x7fc387600000, 138412032) = 0 [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 [ 101.397744][ T5773] loop3: detected capacity change from 0 to 32768 [pid 5773] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5776] <... write resumed>) = 16777216 [pid 5776] munmap(0x7fc387600000, 138412032 [pid 5778] <... write resumed>) = 16777216 [pid 5776] <... munmap resumed>) = 0 [pid 5776] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5778] munmap(0x7fc387600000, 138412032 [pid 5776] <... openat resumed>) = 4 [pid 5776] ioctl(4, LOOP_SET_FD, 3 [pid 5778] <... munmap resumed>) = 0 [pid 5776] <... ioctl resumed>) = 0 [pid 5776] close(3) = 0 [pid 5776] close(4 [pid 5778] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5776] <... close resumed>) = 0 [pid 5778] <... openat resumed>) = 4 [pid 5776] mkdir("./file0", 0777 [pid 5778] ioctl(4, LOOP_SET_FD, 3 [pid 5776] <... mkdir resumed>) = 0 [pid 5776] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5778] <... ioctl resumed>) = 0 [pid 5777] <... write resumed>) = 16777216 [pid 5778] close(3) = 0 [pid 5777] munmap(0x7fc387600000, 138412032 [pid 5778] close(4) = 0 [pid 5778] mkdir("./file0", 0777) = 0 [ 101.586677][ T5776] loop4: detected capacity change from 0 to 32768 [ 101.626727][ T5778] loop0: detected capacity change from 0 to 32768 [pid 5778] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5777] <... munmap resumed>) = 0 [pid 5777] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5777] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5777] close(3) = 0 [pid 5777] close(4) = 0 [pid 5777] mkdir("./file0", 0777) = 0 [ 101.673905][ T5777] loop1: detected capacity change from 0 to 32768 [ 101.874106][ T5773] 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 [ 101.879451][ T5776] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 101.897969][ T5773] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 101.906971][ T5776] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 101.915835][ T5773] bcachefs (loop3): Version upgrade required: [ 101.915835][ T5773] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 101.915835][ T5773] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 101.915835][ T5773] 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 [ 101.996339][ T5773] bcachefs (loop3): dropping and reconstructing all alloc info [ 102.011007][ T5777] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 102.020541][ T5777] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 102.083196][ T5778] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 102.106597][ T5773] bcachefs (loop3): check_topology... done [ 102.112530][ T5773] bcachefs (loop3): accounting_read... [pid 5777] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5776] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5776] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [ 102.123021][ T5778] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 102.141971][ T5776] bcachefs: bch2_fs_get_tree() error: EINVAL [ 102.148179][ T5773] done [ 102.151127][ T5773] bcachefs (loop3): alloc_read... done [ 102.159772][ T5773] bcachefs (loop3): stripes_read... done [pid 5776] ioctl(3, LOOP_CLR_FD) = 0 [ 102.178045][ T5773] bcachefs (loop3): snapshots_read... done [pid 5776] close(3 [pid 5777] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5777] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5777] ioctl(3, LOOP_CLR_FD) = 0 [ 102.191462][ T5773] bcachefs (loop3): check_allocations... [ 102.231054][ T5777] bcachefs: bch2_fs_get_tree() error: EINVAL [ 102.307023][ T5773] done [ 102.353807][ T5773] bcachefs (loop3): going read-write [pid 5777] close(3 [pid 5773] <... mount resumed>) = 0 [pid 5773] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5778] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5773] chdir("./file0") = 0 [pid 5778] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5773] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 102.399311][ T5773] bcachefs (loop3): done starting filesystem [ 102.406449][ T5778] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5778] <... openat resumed>) = 3 [pid 5773] ioctl(4, LOOP_CLR_FD) = 0 [pid 5778] ioctl(3, LOOP_CLR_FD) = 0 [pid 5778] close(3 [pid 5773] close(4) = 0 [pid 5231] <... umount2 resumed>) = 0 [pid 5773] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./10/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5773] <... openat resumed>) = 4 [pid 5231] umount2("./10/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./10/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", [pid 5776] <... close resumed>) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, [pid 5776] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5773] exit_group(0) = ? [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./10/file0" [pid 5773] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5773, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=45 /* 0.45 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5777] <... close resumed>) = 0 [pid 5232] <... restart_syscall resumed>) = 0 [pid 5232] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, [pid 5777] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] <... rmdir resumed>) = 0 [pid 5232] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5777] <... openat resumed>) = 3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] getdents64(3, [pid 5777] exit_group(0 [pid 5776] <... openat resumed>) = 3 [pid 5232] newfstatat(AT_FDCWD, "./12/binderfs", [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5777] <... exit_group resumed>) = ? [pid 5231] close(3) = 0 [pid 5777] +++ exited with 0 +++ [pid 5231] rmdir("./10" [pid 5776] exit_group(0 [pid 5231] <... rmdir resumed>) = 0 [pid 5231] mkdir("./11", 0777) = 0 [pid 5776] <... exit_group resumed>) = ? [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5777, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=46 /* 0.46 s */} --- [pid 5776] +++ exited with 0 +++ [pid 5232] unlink("./12/binderfs" [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5776, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=45 /* 0.45 s */} --- [pid 5231] <... openat resumed>) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] close(3 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... unlink resumed>) = 0 [pid 5233] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... close resumed>) = 0 [pid 5233] newfstatat(3, "", [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5233] unlink("./11/binderfs") = 0 [pid 5233] umount2("./11/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5810 [pid 5233] newfstatat(AT_FDCWD, "./11/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./11/bus") = 0 [pid 5233] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./11/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, ./strace-static-x86_64: Process 5810 attached 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] newfstatat(3, "", [pid 5810] set_robust_list(0x5555807c5660, 24) = 0 [pid 5233] getdents64(4, [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./11/file0") = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5233] rmdir("./11") = 0 [pid 5230] getdents64(3, [pid 5810] chdir("./11" [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] mkdir("./12", 0777 [pid 5230] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5810] <... chdir resumed>) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... mkdir resumed>) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5810] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5230] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5810] <... prctl resumed>) = 0 [pid 5230] unlink("./15/binderfs" [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5811 [pid 5810] setpgid(0, 0 [pid 5230] <... unlink resumed>) = 0 [pid 5810] <... setpgid resumed>) = 0 [pid 5230] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5810] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC./strace-static-x86_64: Process 5811 attached [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5810] <... openat resumed>) = 3 [pid 5230] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5811] set_robust_list(0x5555807c5660, 24 [ 102.603843][ T5232] bcachefs (loop3): shutting down [ 102.622610][ T5232] bcachefs (loop3): going read-only [pid 5810] write(3, "1000", 4 [pid 5230] unlink("./15/bus" [pid 5810] <... write resumed>) = 4 [pid 5230] <... unlink resumed>) = 0 [pid 5810] close(3 [pid 5811] <... set_robust_list resumed>) = 0 [pid 5230] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5810] <... close resumed>) = 0 [pid 5811] chdir("./12" [pid 5810] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5811] <... chdir resumed>) = 0 [pid 5810] <... symlink resumed>) = 0 [pid 5811] prctl(PR_SET_PDEATHSIG, SIGKILL executing program [pid 5230] newfstatat(AT_FDCWD, "./15/file0", [pid 5810] write(1, "executing program\n", 18 [pid 5811] <... prctl resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5810] <... write resumed>) = 18 [pid 5811] setpgid(0, 0 [pid 5810] memfd_create("syzkaller", 0 [pid 5811] <... setpgid resumed>) = 0 [pid 5230] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5810] <... memfd_create resumed>) = 3 [pid 5811] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5810] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5810] <... mmap resumed>) = 0x7fc387600000 [pid 5230] <... openat resumed>) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, [pid 5811] <... openat resumed>) = 3 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4 [pid 5811] write(3, "1000", 4) = 4 [pid 5230] <... close resumed>) = 0 [pid 5230] rmdir("./15/file0" [pid 5811] close(3) = 0 [pid 5230] <... rmdir resumed>) = 0 [ 102.648822][ T5232] bcachefs (loop3): finished waiting for writes to stop [pid 5811] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5230] getdents64(3, [pid 5811] write(1, "executing program\n", 18 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5811] <... write resumed>) = 18 [pid 5811] memfd_create("syzkaller", 0) = 3 [pid 5811] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5778] <... close resumed>) = 0 [pid 5230] close(3) = 0 [pid 5778] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] rmdir("./15" [pid 5778] <... openat resumed>) = 3 [pid 5230] <... rmdir resumed>) = 0 [pid 5778] exit_group(0) = ? [pid 5778] +++ exited with 0 +++ [pid 5230] mkdir("./16", 0777 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5778, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=42 /* 0.42 s */} --- [pid 5230] <... mkdir resumed>) = 0 [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] <... restart_syscall resumed>) = 0 [pid 5230] <... openat resumed>) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5229] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] close(3 [pid 5229] <... openat resumed>) = 3 [pid 5230] <... close resumed>) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5812 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 ./strace-static-x86_64: Process 5812 attached [pid 5812] set_robust_list(0x5555807c5660, 24 [pid 5229] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5812] <... set_robust_list resumed>) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5812] chdir("./16") = 0 [pid 5812] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5812] setpgid(0, 0 [ 102.714995][ T5232] bcachefs (loop3): flushing journal and stopping allocators, journal seq 12 [pid 5229] newfstatat(AT_FDCWD, "./12/binderfs", executing program {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5812] <... setpgid resumed>) = 0 [pid 5812] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5229] unlink("./12/binderfs" [pid 5812] write(3, "1000", 4) = 4 [pid 5812] close(3) = 0 [pid 5812] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5812] write(1, "executing program\n", 18) = 18 [pid 5812] memfd_create("syzkaller", 0 [pid 5229] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5812] <... memfd_create resumed>) = 3 [pid 5812] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./12/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./12/bus") = 0 [pid 5229] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 102.807295][ T35] bcachefs (loop3): bch2_write_super(): fatal error loop3: Superblock write was silently dropped! (seq 0 expected 54) [pid 5229] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./12/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./12") = 0 [pid 5229] mkdir("./13", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5813 ./strace-static-x86_64: Process 5813 attached [pid 5813] set_robust_list(0x5555807c5660, 24) = 0 [ 102.858397][ T35] bcachefs (loop3): fatal error - emergency read only [pid 5813] chdir("./13") = 0 [pid 5813] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5813] setpgid(0, 0) = 0 [pid 5813] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5813] write(3, "1000", 4) = 4 [pid 5813] close(3) = 0 [pid 5813] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5813] write(1, "executing program\n", 18) = 18 [ 102.900540][ T5232] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 14 [ 102.935830][ T5232] bcachefs (loop3): unshutdown complete, journal seq 14 [pid 5813] memfd_create("syzkaller", 0 [pid 5810] 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 5813] <... memfd_create resumed>) = 3 [pid 5813] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 102.966173][ T5232] bcachefs (loop3): done going read-only, filesystem not clean [ 103.008989][ T5232] bcachefs (loop3): shutdown complete [pid 5812] 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 5811] 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 5813] 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 5810] <... write resumed>) = 16777216 [pid 5810] munmap(0x7fc387600000, 138412032) = 0 [pid 5810] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5810] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5810] close(3) = 0 [pid 5810] close(4) = 0 [pid 5810] mkdir("./file0", 0777) = 0 [pid 5810] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5812] <... write resumed>) = 16777216 [ 103.384106][ T5810] loop2: detected capacity change from 0 to 32768 [pid 5812] munmap(0x7fc387600000, 138412032) = 0 [pid 5812] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5812] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5812] close(3) = 0 [pid 5812] close(4) = 0 [pid 5812] mkdir("./file0", 0777) = 0 [pid 5812] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5811] <... write resumed>) = 16777216 [ 103.502055][ T5812] loop1: detected capacity change from 0 to 32768 [pid 5811] munmap(0x7fc387600000, 138412032 [pid 5813] <... write resumed>) = 16777216 [pid 5813] munmap(0x7fc387600000, 138412032 [pid 5811] <... munmap resumed>) = 0 [pid 5811] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5811] ioctl(4, LOOP_SET_FD, 3 [pid 5813] <... munmap resumed>) = 0 [pid 5811] <... ioctl resumed>) = 0 [pid 5813] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5811] close(3 [pid 5813] <... openat resumed>) = 4 [pid 5811] <... close resumed>) = 0 [pid 5811] close(4 [pid 5813] ioctl(4, LOOP_SET_FD, 3 [pid 5811] <... close resumed>) = 0 [pid 5811] mkdir("./file0", 0777) = 0 [pid 5811] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5813] <... ioctl resumed>) = 0 [pid 5813] close(3) = 0 [pid 5813] close(4) = 0 [pid 5813] mkdir("./file0", 0777) = 0 [ 103.579701][ T5811] loop4: detected capacity change from 0 to 32768 [ 103.596273][ T5813] loop0: detected capacity change from 0 to 32768 [ 103.869094][ T5813] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 103.879623][ T5813] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 103.881035][ T5810] 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 [ 103.887831][ T5812] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 103.926046][ T5812] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 103.936230][ T5811] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 103.947605][ T5811] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 103.965637][ T5810] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 103.975128][ T5810] bcachefs (loop2): Version upgrade required: [ 103.975128][ T5810] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 103.975128][ T5810] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 103.975128][ T5810] 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.056877][ T5813] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5813] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"...) = -1 EINVAL (Invalid argument) [pid 5813] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5813] ioctl(3, LOOP_CLR_FD) = 0 [ 104.080783][ T5810] bcachefs (loop2): dropping and reconstructing all alloc info [ 104.146713][ T5810] bcachefs (loop2): check_topology... done [ 104.152657][ T5810] bcachefs (loop2): accounting_read... done [ 104.183557][ T5810] bcachefs (loop2): alloc_read... done [pid 5813] close(3 [pid 5812] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5812] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5811] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5812] ioctl(3, LOOP_CLR_FD) = 0 [pid 5812] close(3 [pid 5811] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5811] ioctl(3, LOOP_CLR_FD) = 0 [ 104.202079][ T5812] bcachefs: bch2_fs_get_tree() error: EINVAL [ 104.221781][ T5811] bcachefs: bch2_fs_get_tree() error: EINVAL [ 104.227678][ T5810] bcachefs (loop2): stripes_read... done [ 104.234151][ T5810] bcachefs (loop2): snapshots_read... done [pid 5811] close(3 [pid 5232] <... umount2 resumed>) = 0 [pid 5232] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./12/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 104.244350][ T5810] bcachefs (loop2): check_allocations... done [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4) = 0 [pid 5232] rmdir("./12/file0") = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [ 104.357280][ T5810] bcachefs (loop2): going read-write [pid 5232] close(3) = 0 [pid 5232] rmdir("./12") = 0 [pid 5810] <... mount resumed>) = 0 [pid 5232] mkdir("./13", 0777 [pid 5810] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5232] <... mkdir resumed>) = 0 [pid 5810] <... openat resumed>) = 3 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5810] chdir("./file0" [pid 5232] <... openat resumed>) = 3 [pid 5810] <... chdir resumed>) = 0 [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5810] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5810] <... openat resumed>) = 4 [pid 5232] close(3 [pid 5810] ioctl(4, LOOP_CLR_FD) = 0 [pid 5232] <... close resumed>) = 0 [pid 5810] close(4 [ 104.408058][ T5810] bcachefs (loop2): done starting filesystem [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5845 attached [pid 5810] <... close resumed>) = 0 [pid 5810] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5845 [pid 5845] set_robust_list(0x5555807c5660, 24 [pid 5813] <... close resumed>) = 0 [pid 5845] <... set_robust_list resumed>) = 0 [pid 5813] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5845] chdir("./13" [pid 5813] <... openat resumed>) = 3 [pid 5813] exit_group(0) = ? [pid 5845] <... chdir resumed>) = 0 [pid 5813] +++ exited with 0 +++ [pid 5845] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5813, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=39 /* 0.39 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5845] <... prctl resumed>) = 0 [pid 5845] setpgid(0, 0) = 0 [pid 5229] <... restart_syscall resumed>) = 0 [pid 5229] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./13/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./13/binderfs") = 0 [pid 5845] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5229] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./13/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./13/bus") = 0 [pid 5229] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./13/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./13/file0" [pid 5845] <... openat resumed>) = 3 [pid 5229] <... rmdir resumed>) = 0 [pid 5845] write(3, "1000", 4 [pid 5810] <... openat resumed>) = 4 executing program [pid 5845] <... write resumed>) = 4 [pid 5810] exit_group(0 [pid 5229] getdents64(3, [pid 5845] close(3 [pid 5810] <... exit_group resumed>) = ? [pid 5845] <... close resumed>) = 0 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3 [pid 5845] symlink("/dev/binderfs", "./binderfs" [pid 5810] +++ exited with 0 +++ [pid 5229] <... close resumed>) = 0 [pid 5229] rmdir("./13" [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5810, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=38 /* 0.38 s */} --- [pid 5229] <... rmdir resumed>) = 0 [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5229] mkdir("./14", 0777) = 0 [pid 5845] <... symlink resumed>) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5845] write(1, "executing program\n", 18 [pid 5229] <... openat resumed>) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3 [pid 5845] <... write resumed>) = 18 [pid 5229] <... close resumed>) = 0 [pid 5231] <... restart_syscall resumed>) = 0 [pid 5845] memfd_create("syzkaller", 0 [pid 5231] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5845] <... memfd_create resumed>) = 3 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 5846 attached [pid 5231] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5846] set_robust_list(0x5555807c5660, 24 [pid 5231] <... openat resumed>) = 3 [pid 5846] <... set_robust_list resumed>) = 0 [pid 5231] newfstatat(3, "", [pid 5846] chdir("./14" [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5846] <... chdir resumed>) = 0 [pid 5231] getdents64(3, [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5846 [pid 5846] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5846] <... prctl resumed>) = 0 [pid 5231] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5846] setpgid(0, 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5846] <... setpgid resumed>) = 0 [pid 5231] newfstatat(AT_FDCWD, "./11/binderfs", [pid 5846] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5846] <... openat resumed>) = 3 [pid 5845] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5231] unlink("./11/binderfs") = 0 [pid 5845] <... mmap resumed>) = 0x7fc387600000 [pid 5231] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5846] write(3, "1000", 4) = 4 [pid 5846] close(3) = 0 [pid 5846] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5812] <... close resumed>) = 0 [pid 5846] write(1, "executing program\n", 18executing program [pid 5812] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5846] <... write resumed>) = 18 [pid 5812] <... openat resumed>) = 3 [pid 5846] memfd_create("syzkaller", 0 [pid 5812] exit_group(0 [pid 5811] <... close resumed>) = 0 [pid 5811] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5846] <... memfd_create resumed>) = 3 [pid 5812] <... exit_group resumed>) = ? [pid 5846] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5811] <... openat resumed>) = 3 [pid 5846] <... mmap resumed>) = 0x7fc387600000 [pid 5812] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5812, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=49 /* 0.49 s */} --- [pid 5230] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5811] exit_group(0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5811] <... exit_group resumed>) = ? [pid 5230] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5811] +++ exited with 0 +++ [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./16/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./16/binderfs") = 0 [pid 5230] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./16/bus", [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5811, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=52 /* 0.52 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./16/bus") = 0 [pid 5230] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./16/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] <... restart_syscall resumed>) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [ 104.546404][ T5231] bcachefs (loop2): shutting down [ 104.565868][ T5231] bcachefs (loop2): going read-only [ 104.576842][ T5231] bcachefs (loop2): finished waiting for writes to stop [pid 5230] close(4) = 0 [pid 5230] rmdir("./16/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./16") = 0 [pid 5230] mkdir("./17", 0777) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5233] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... openat resumed>) = 3 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5233] <... openat resumed>) = 3 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] close(3) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5847 attached [pid 5233] newfstatat(3, "", [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5847 [pid 5847] set_robust_list(0x5555807c5660, 24 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, [pid 5847] <... set_robust_list resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5847] chdir("./17" [pid 5233] unlink("./12/binderfs" [pid 5847] <... chdir resumed>) = 0 [pid 5233] <... unlink resumed>) = 0 [pid 5847] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] umount2("./12/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5847] <... prctl resumed>) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5847] setpgid(0, 0 [pid 5233] newfstatat(AT_FDCWD, "./12/bus", [pid 5847] <... setpgid resumed>) = 0 [pid 5847] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./12/bus") = 0 [pid 5847] <... openat resumed>) = 3 [pid 5233] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5847] write(3, "1000", 4) = 4 [pid 5847] close(3) = 0 [pid 5847] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5847] write(1, "executing program\n", 18executing program ) = 18 [ 104.627232][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5847] memfd_create("syzkaller", 0 [pid 5233] newfstatat(AT_FDCWD, "./12/file0", [pid 5847] <... memfd_create resumed>) = 3 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5847] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5233] newfstatat(4, "", [pid 5847] <... mmap resumed>) = 0x7fc387600000 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./12/file0") = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5233] rmdir("./12") = 0 [pid 5233] mkdir("./13", 0777) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [ 104.716456][ T987] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5848 ./strace-static-x86_64: Process 5848 attached [pid 5848] set_robust_list(0x5555807c5660, 24) = 0 [pid 5848] chdir("./13") = 0 [pid 5848] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5848] setpgid(0, 0) = 0 [pid 5848] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5848] write(3, "1000", 4) = 4 [pid 5848] close(3) = 0 [pid 5848] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [ 104.764663][ T987] bcachefs (loop2): fatal error - emergency read only [pid 5848] write(1, "executing program\n", 18) = 18 [pid 5848] memfd_create("syzkaller", 0) = 3 [pid 5848] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 104.805991][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 14 [ 104.845983][ T5231] bcachefs (loop2): unshutdown complete, journal seq 14 [ 104.866447][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [ 104.927250][ T5231] bcachefs (loop2): shutdown complete [pid 5845] 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 5847] 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 5846] 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 5848] 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 5845] <... write resumed>) = 16777216 [pid 5845] munmap(0x7fc387600000, 138412032) = 0 [pid 5845] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5845] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5845] close(3) = 0 [pid 5845] close(4) = 0 [pid 5845] mkdir("./file0", 0777) = 0 [ 105.328661][ T5845] loop3: detected capacity change from 0 to 32768 [pid 5845] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5847] <... write resumed>) = 16777216 [pid 5847] munmap(0x7fc387600000, 138412032 [pid 5846] <... write resumed>) = 16777216 [pid 5847] <... munmap resumed>) = 0 [pid 5846] munmap(0x7fc387600000, 138412032 [pid 5847] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5847] ioctl(4, LOOP_SET_FD, 3 [pid 5848] <... write resumed>) = 16777216 [pid 5847] <... ioctl resumed>) = 0 [pid 5848] munmap(0x7fc387600000, 138412032 [pid 5847] close(3 [pid 5846] <... munmap resumed>) = 0 [pid 5847] <... close resumed>) = 0 [pid 5847] close(4 [pid 5846] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5846] ioctl(4, LOOP_SET_FD, 3 [pid 5848] <... munmap resumed>) = 0 [pid 5847] <... close resumed>) = 0 [pid 5848] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5847] mkdir("./file0", 0777 [pid 5848] <... openat resumed>) = 4 [pid 5847] <... mkdir resumed>) = 0 [ 105.446951][ T5847] loop1: detected capacity change from 0 to 32768 [ 105.473182][ T5846] loop0: detected capacity change from 0 to 32768 [pid 5848] ioctl(4, LOOP_SET_FD, 3 [pid 5847] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5846] <... ioctl resumed>) = 0 [pid 5846] close(3 [pid 5848] <... ioctl resumed>) = 0 [pid 5846] <... close resumed>) = 0 [pid 5848] close(3 [pid 5846] close(4 [pid 5848] <... close resumed>) = 0 [pid 5846] <... close resumed>) = 0 [pid 5848] close(4) = 0 [pid 5848] mkdir("./file0", 0777) = 0 [pid 5848] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5846] mkdir("./file0", 0777) = 0 [ 105.492435][ T5848] loop4: detected capacity change from 0 to 32768 [ 105.704431][ T5846] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 105.706777][ T5847] 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 [ 105.736183][ T5847] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 105.744504][ T5847] bcachefs (loop1): Version upgrade required: [ 105.744504][ T5847] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 105.744504][ T5847] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 105.744504][ T5847] 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 [ 105.756617][ T5845] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 105.851271][ T5848] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 105.877123][ T5847] bcachefs (loop1): dropping and reconstructing all alloc info [ 105.897647][ T5846] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 105.901903][ T5845] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 105.914140][ T5848] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 105.997031][ T5847] bcachefs (loop1): check_topology... done [ 106.003064][ T5847] bcachefs (loop1): accounting_read... done [ 106.037442][ T5847] bcachefs (loop1): alloc_read... done [pid 5846] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5848] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5848] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5848] ioctl(3, LOOP_CLR_FD) = 0 [ 106.043048][ T5847] bcachefs (loop1): stripes_read... done [ 106.056632][ T5847] bcachefs (loop1): snapshots_read... done [ 106.067806][ T5848] bcachefs: bch2_fs_get_tree() error: EINVAL [ 106.076968][ T5847] bcachefs (loop1): check_allocations... [ 106.080623][ T5846] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5848] close(3 [pid 5846] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5846] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5846] ioctl(3, LOOP_CLR_FD) = 0 [pid 5845] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... umount2 resumed>) = 0 [pid 5846] close(3 [pid 5845] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5231] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 106.110910][ T5845] bcachefs: bch2_fs_get_tree() error: EINVAL [ 106.140259][ T5847] done [pid 5231] newfstatat(AT_FDCWD, "./11/file0", [pid 5845] <... openat resumed>) = 3 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5845] ioctl(3, LOOP_CLR_FD [pid 5231] umount2("./11/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5845] <... ioctl resumed>) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5845] close(3 [pid 5231] openat(AT_FDCWD, "./11/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [ 106.162979][ T5847] bcachefs (loop1): going read-write [pid 5231] rmdir("./11/file0") = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./11") = 0 [pid 5231] mkdir("./12", 0777 [pid 5847] <... mount resumed>) = 0 [pid 5231] <... mkdir resumed>) = 0 [pid 5847] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5847] <... openat resumed>) = 3 [pid 5231] <... openat resumed>) = 3 [pid 5847] chdir("./file0" [pid 5231] ioctl(3, LOOP_CLR_FD [pid 5847] <... chdir resumed>) = 0 [pid 5231] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5847] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5231] close(3 [pid 5847] <... openat resumed>) = 4 [pid 5231] <... close resumed>) = 0 [ 106.215649][ T5847] bcachefs (loop1): done starting filesystem [pid 5847] ioctl(4, LOOP_CLR_FD [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5880 attached [pid 5847] <... ioctl resumed>) = 0 [pid 5847] close(4 [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5880 [pid 5880] set_robust_list(0x5555807c5660, 24 [pid 5847] <... close resumed>) = 0 [pid 5880] <... set_robust_list resumed>) = 0 [pid 5847] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5880] chdir("./12") = 0 [pid 5847] <... openat resumed>) = 4 [pid 5880] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5847] exit_group(0 [pid 5880] <... prctl resumed>) = 0 [pid 5880] setpgid(0, 0 [pid 5847] <... exit_group resumed>) = ? [pid 5880] <... setpgid resumed>) = 0 [pid 5847] +++ exited with 0 +++ [pid 5880] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5847, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=33 /* 0.33 s */} --- [pid 5880] <... openat resumed>) = 3 [pid 5880] write(3, "1000", 4) = 4 [pid 5880] close(3) = 0 [pid 5230] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5880] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5880] <... symlink resumed>) = 0 [pid 5848] <... close resumed>) = 0 [pid 5230] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 executing program [pid 5880] write(1, "executing program\n", 18 [pid 5848] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5230] newfstatat(3, "", [pid 5880] <... write resumed>) = 18 [pid 5880] memfd_create("syzkaller", 0 [pid 5848] <... openat resumed>) = 3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5880] <... memfd_create resumed>) = 3 [pid 5880] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5880] <... mmap resumed>) = 0x7fc387600000 [pid 5848] exit_group(0 [pid 5230] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5848] <... exit_group resumed>) = ? [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./17/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./17/binderfs") = 0 [pid 5230] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5848] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5848, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=53 /* 0.53 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5233] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./13/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./13/binderfs") = 0 [pid 5233] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./13/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./13/bus") = 0 [pid 5233] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./13/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./13/file0") = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3) = 0 [pid 5233] rmdir("./13") = 0 [pid 5233] mkdir("./14", 0777) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5233] close(3) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5881 [pid 5846] <... close resumed>) = 0 [pid 5846] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5846] exit_group(0) = ? [pid 5846] +++ exited with 0 +++ ./strace-static-x86_64: Process 5881 attached [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5846, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=47 /* 0.47 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5229] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5881] set_robust_list(0x5555807c5660, 24 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5845] <... close resumed>) = 0 [pid 5881] <... set_robust_list resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5881] chdir("./14") = 0 [pid 5881] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5845] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5881] setpgid(0, 0 [pid 5845] <... openat resumed>) = 3 [pid 5881] <... setpgid resumed>) = 0 [pid 5881] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 executing program [pid 5229] <... openat resumed>) = 3 [pid 5881] write(3, "1000", 4 [pid 5845] exit_group(0 [pid 5229] newfstatat(3, "", [pid 5881] <... write resumed>) = 4 [pid 5845] <... exit_group resumed>) = ? [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5881] close(3 [pid 5845] +++ exited with 0 +++ [pid 5229] getdents64(3, [pid 5881] <... close resumed>) = 0 [pid 5881] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5881] write(1, "executing program\n", 18 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5881] <... write resumed>) = 18 [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5845, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=42 /* 0.42 s */} --- [pid 5229] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5881] memfd_create("syzkaller", 0) = 3 [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5881] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5229] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... restart_syscall resumed>) = 0 [pid 5229] unlink("./14/binderfs") = 0 [pid 5232] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] newfstatat(AT_FDCWD, "./14/bus", [pid 5232] <... openat resumed>) = 3 [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] newfstatat(3, "", [pid 5229] unlink("./14/bus" [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, [pid 5229] <... unlink resumed>) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./13/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 106.477747][ T5230] bcachefs (loop1): shutting down [ 106.489557][ T5230] bcachefs (loop1): going read-only [ 106.495288][ T5230] bcachefs (loop1): finished waiting for writes to stop [ 106.503217][ T5230] bcachefs (loop1): flushing journal and stopping allocators, journal seq 11 [pid 5232] unlink("./13/binderfs" [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... unlink resumed>) = 0 [pid 5229] newfstatat(AT_FDCWD, "./14/file0", [pid 5232] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./13/bus", [pid 5229] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... openat resumed>) = 4 [pid 5232] unlink("./13/bus") = 0 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] newfstatat(AT_FDCWD, "./13/file0", [pid 5229] close(4 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... close resumed>) = 0 [pid 5229] rmdir("./14/file0" [pid 5232] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... rmdir resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] getdents64(3, [pid 5232] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] <... openat resumed>) = 4 [pid 5229] close(3) = 0 [pid 5229] rmdir("./14" [pid 5232] newfstatat(4, "", [pid 5229] <... rmdir resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, [pid 5229] mkdir("./15", 0777 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] <... mkdir resumed>) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5232] close(4) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5232] rmdir("./13/file0") = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [ 106.544668][ T77] bcachefs (loop1): bch2_write_super(): fatal error loop1: Superblock write was silently dropped! (seq 0 expected 54) [ 106.580127][ T77] bcachefs (loop1): fatal error - emergency read only [pid 5232] close(3) = 0 [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5232] rmdir("./13") = 0 [pid 5232] mkdir("./14", 0777 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] close(3 [pid 5232] <... mkdir resumed>) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5229] <... close resumed>) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] <... openat resumed>) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5882 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) ./strace-static-x86_64: Process 5882 attached [pid 5232] close(3 [pid 5882] set_robust_list(0x5555807c5660, 24) = 0 [pid 5882] chdir("./15") = 0 [pid 5882] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5882] setpgid(0, 0) = 0 [pid 5882] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] <... close resumed>) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5882] <... openat resumed>) = 3 [pid 5882] write(3, "1000", 4) = 4 ./strace-static-x86_64: Process 5883 attached [pid 5882] close(3 [pid 5883] set_robust_list(0x5555807c5660, 24 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5883 [pid 5883] <... set_robust_list resumed>) = 0 [pid 5882] <... close resumed>) = 0 [pid 5883] chdir("./14" [pid 5882] symlink("/dev/binderfs", "./binderfs" [pid 5883] <... chdir resumed>) = 0 [pid 5882] <... symlink resumed>) = 0 [pid 5883] prctl(PR_SET_PDEATHSIG, SIGKILLexecuting program ) = 0 [pid 5882] write(1, "executing program\n", 18) = 18 [pid 5883] setpgid(0, 0) = 0 [pid 5882] memfd_create("syzkaller", 0 [pid 5883] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5882] <... memfd_create resumed>) = 3 [pid 5882] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5883] <... openat resumed>) = 3 [pid 5883] write(3, "1000", 4) = 4 [pid 5883] close(3) = 0 [ 106.596740][ T5230] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 13 [ 106.626380][ T5230] bcachefs (loop1): unshutdown complete, journal seq 13 [ 106.634454][ T5230] bcachefs (loop1): done going read-only, filesystem not clean executing program [pid 5883] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5883] write(1, "executing program\n", 18) = 18 [pid 5883] memfd_create("syzkaller", 0) = 3 [pid 5883] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 106.712675][ T5230] bcachefs (loop1): shutdown complete [pid 5880] 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 5881] 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 5882] 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 5883] 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 5880] <... write resumed>) = 16777216 [pid 5880] munmap(0x7fc387600000, 138412032) = 0 [pid 5880] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5880] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5880] close(3) = 0 [pid 5880] close(4) = 0 [pid 5880] mkdir("./file0", 0777) = 0 [ 107.139161][ T5880] loop2: detected capacity change from 0 to 32768 [pid 5880] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5881] <... write resumed>) = 16777216 [pid 5881] munmap(0x7fc387600000, 138412032) = 0 [pid 5881] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5881] ioctl(4, LOOP_SET_FD, 3 [pid 5883] <... write resumed>) = 16777216 [pid 5881] <... ioctl resumed>) = 0 [pid 5883] munmap(0x7fc387600000, 138412032 [pid 5881] close(3) = 0 [pid 5881] close(4) = 0 [pid 5881] mkdir("./file0", 0777 [pid 5883] <... munmap resumed>) = 0 [pid 5881] <... mkdir resumed>) = 0 [pid 5881] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5883] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 107.293578][ T5881] loop4: detected capacity change from 0 to 32768 [pid 5883] ioctl(4, LOOP_SET_FD, 3 [pid 5882] <... write resumed>) = 16777216 [pid 5882] munmap(0x7fc387600000, 138412032 [pid 5883] <... ioctl resumed>) = 0 [pid 5883] close(3) = 0 [pid 5883] close(4) = 0 [pid 5883] mkdir("./file0", 0777) = 0 [pid 5883] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5882] <... munmap resumed>) = 0 [pid 5882] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5882] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5882] close(3) = 0 [pid 5882] close(4) = 0 [pid 5882] mkdir("./file0", 0777) = 0 [ 107.349768][ T5883] loop3: detected capacity change from 0 to 32768 [ 107.387848][ T5882] loop0: detected capacity change from 0 to 32768 [ 107.598807][ T5881] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 107.599079][ T5880] 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 [ 107.608203][ T5881] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 107.630294][ T5883] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 107.630389][ T5883] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 107.633767][ T5880] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 107.661836][ T5882] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 107.689159][ T5880] bcachefs (loop2): Version upgrade required: [ 107.689159][ T5880] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 107.689159][ T5880] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 107.689159][ T5880] 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 [ 107.739241][ T5882] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 107.781579][ T5880] bcachefs (loop2): dropping and reconstructing all alloc info [pid 5882] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5883] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5883] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5881] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5883] <... openat resumed>) = 3 [pid 5883] ioctl(3, LOOP_CLR_FD [ 107.853011][ T5883] bcachefs: bch2_fs_get_tree() error: EINVAL [ 107.860675][ T5881] bcachefs: bch2_fs_get_tree() error: EINVAL [ 107.869449][ T5880] bcachefs (loop2): check_topology... done [ 107.875354][ T5880] bcachefs (loop2): accounting_read... done [pid 5881] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5883] <... ioctl resumed>) = 0 [pid 5883] close(3 [pid 5881] <... openat resumed>) = 3 [pid 5881] ioctl(3, LOOP_CLR_FD) = 0 [ 107.898433][ T5880] bcachefs (loop2): alloc_read... done [ 107.904039][ T5880] bcachefs (loop2): stripes_read... done [ 107.940897][ T5880] bcachefs (loop2): snapshots_read... done [pid 5881] close(3 [pid 5882] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5882] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5882] ioctl(3, LOOP_CLR_FD) = 0 [ 107.985496][ T5880] bcachefs (loop2): check_allocations... done [ 108.068275][ T5882] bcachefs: bch2_fs_get_tree() error: EINVAL [ 108.088273][ T5880] bcachefs (loop2): going read-write [pid 5882] close(3 [pid 5880] <... mount resumed>) = 0 [pid 5880] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5880] chdir("./file0") = 0 [pid 5880] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5880] ioctl(4, LOOP_CLR_FD) = 0 [pid 5880] close(4) = 0 [pid 5880] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5880] exit_group(0) = ? [pid 5880] +++ exited with 0 +++ [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5880, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=38 /* 0.38 s */} --- [ 108.155633][ T5880] bcachefs (loop2): done starting filesystem [pid 5231] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5231] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5231] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./12/binderfs") = 0 [pid 5231] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5883] <... close resumed>) = 0 [pid 5883] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5883] exit_group(0) = ? [pid 5230] <... umount2 resumed>) = 0 [pid 5883] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5883, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=40 /* 0.40 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5882] <... close resumed>) = 0 [ 108.248623][ T5231] bcachefs (loop2): shutting down [ 108.253732][ T5231] bcachefs (loop2): going read-only [pid 5230] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./14/binderfs") = 0 [pid 5232] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./14/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] unlink("./14/bus" [pid 5230] newfstatat(AT_FDCWD, "./17/file0", [pid 5232] <... unlink resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./14/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5882] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5882] <... openat resumed>) = 3 [pid 5881] <... close resumed>) = 0 [pid 5232] <... openat resumed>) = 4 [pid 5881] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] getdents64(4, [pid 5882] exit_group(0 [pid 5230] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5882] <... exit_group resumed>) = ? [pid 5881] exit_group(0 [pid 5230] <... openat resumed>) = 4 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4) = 0 [pid 5232] rmdir("./14/file0" [pid 5882] +++ exited with 0 +++ [pid 5881] <... exit_group resumed>) = ? [pid 5232] <... rmdir resumed>) = 0 [pid 5230] newfstatat(4, "", [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5882, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=45 /* 0.45 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5232] getdents64(3, [pid 5881] +++ exited with 0 +++ [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] <... restart_syscall resumed>) = 0 [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5881, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=50 /* 0.50 s */} --- [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3 [pid 5230] getdents64(4, [pid 5233] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4 [pid 5233] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... close resumed>) = 0 [pid 5233] <... openat resumed>) = 3 [pid 5230] rmdir("./17/file0" [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(3, "", [pid 5230] <... rmdir resumed>) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... close resumed>) = 0 [pid 5230] getdents64(3, [pid 5229] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./17") = 0 [pid 5230] mkdir("./18", 0777 [pid 5233] getdents64(3, [pid 5232] rmdir("./14" [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... rmdir resumed>) = 0 [pid 5230] <... mkdir resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5233] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] mkdir("./15", 0777 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... mkdir resumed>) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] newfstatat(3, "", [pid 5233] newfstatat(AT_FDCWD, "./14/binderfs", [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5233] unlink("./14/binderfs" [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] close(3 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... openat resumed>) = 3 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5233] newfstatat(AT_FDCWD, "./14/bus", [pid 5232] <... close resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] getdents64(3, [pid 5230] close(3 [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] <... close resumed>) = 0 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] unlink("./14/bus") = 0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5916 [pid 5233] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./14/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 ./strace-static-x86_64: Process 5916 attached [pid 5233] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5916] set_robust_list(0x5555807c5660, 24 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5916] <... set_robust_list resumed>) = 0 [pid 5233] <... openat resumed>) = 4 [pid 5229] newfstatat(AT_FDCWD, "./15/binderfs", ./strace-static-x86_64: Process 5917 attached [ 108.301521][ T5231] bcachefs (loop2): finished waiting for writes to stop [ 108.332064][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 12 [pid 5917] set_robust_list(0x5555807c5660, 24 [pid 5233] newfstatat(4, "", [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5916] chdir("./15" [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5917] <... set_robust_list resumed>) = 0 [pid 5233] getdents64(4, [pid 5229] unlink("./15/binderfs" [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5917] chdir("./18" [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5917] <... chdir resumed>) = 0 [pid 5233] close(4 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5917 [pid 5917] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5916] <... chdir resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5229] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5917] <... prctl resumed>) = 0 [pid 5916] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] rmdir("./14/file0" [pid 5916] <... prctl resumed>) = 0 [pid 5233] <... rmdir resumed>) = 0 [pid 5916] setpgid(0, 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3 [pid 5916] <... setpgid resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5916] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5233] rmdir("./14") = 0 [pid 5233] mkdir("./15", 0777) = 0 [pid 5916] <... openat resumed>) = 3 [pid 5916] write(3, "1000", 4 [pid 5917] setpgid(0, 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... openat resumed>) = 3 [pid 5916] <... write resumed>) = 4 [pid 5916] close(3) = 0 [pid 5916] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) executing program [pid 5917] <... setpgid resumed>) = 0 [pid 5233] close(3 [pid 5916] write(1, "executing program\n", 18 [pid 5233] <... close resumed>) = 0 [pid 5229] newfstatat(AT_FDCWD, "./15/bus", [pid 5916] <... write resumed>) = 18 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5918 attached [pid 5917] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5916] memfd_create("syzkaller", 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5916] <... memfd_create resumed>) = 3 [pid 5916] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5918] set_robust_list(0x5555807c5660, 24 [pid 5916] <... mmap resumed>) = 0x7fc387600000 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 5918 [pid 5918] <... set_robust_list resumed>) = 0 [pid 5229] unlink("./15/bus" [pid 5918] chdir("./15" [pid 5917] <... openat resumed>) = 3 [pid 5917] write(3, "1000", 4 [pid 5229] <... unlink resumed>) = 0 [pid 5917] <... write resumed>) = 4 [pid 5918] <... chdir resumed>) = 0 [pid 5918] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5918] setpgid(0, 0) = 0 [ 108.391721][ T987] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 108.407219][ T987] bcachefs (loop2): fatal error - emergency read only [ 108.419955][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [pid 5918] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5229] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5917] close(3 [pid 5918] <... openat resumed>) = 3 [pid 5917] <... close resumed>) = 0 [pid 5918] write(3, "1000", 4) = 4 [pid 5918] close(3) = 0 [pid 5918] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5917] symlink("/dev/binderfs", "./binderfs" [pid 5918] write(1, "executing program\n", 18 [pid 5917] <... symlink resumed>) = 0 [pid 5917] write(1, "executing program\n", 18executing program executing program ) = 18 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5918] <... write resumed>) = 18 [pid 5918] memfd_create("syzkaller", 0) = 3 [pid 5918] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5917] memfd_create("syzkaller", 0 [pid 5229] newfstatat(AT_FDCWD, "./15/file0", [pid 5917] <... memfd_create resumed>) = 3 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5917] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5229] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5917] <... mmap resumed>) = 0x7fc387600000 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [ 108.444419][ T5231] bcachefs (loop2): unshutdown complete, journal seq 13 [ 108.459055][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./15/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./15") = 0 [pid 5229] mkdir("./16", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5920 attached [ 108.517518][ T5231] bcachefs (loop2): shutdown complete [pid 5920] set_robust_list(0x5555807c5660, 24 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5920 [pid 5920] <... set_robust_list resumed>) = 0 [pid 5920] chdir("./16") = 0 [pid 5920] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5920] setpgid(0, 0) = 0 [pid 5920] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5920] write(3, "1000", 4) = 4 [pid 5920] close(3) = 0 [pid 5920] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5920] write(1, "executing program\n", 18) = 18 [pid 5920] memfd_create("syzkaller", 0) = 3 [pid 5920] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5918] 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 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 5917] 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 5920] 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 5918] <... write resumed>) = 16777216 [pid 5918] munmap(0x7fc387600000, 138412032) = 0 [pid 5918] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5918] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5918] close(3) = 0 [pid 5918] close(4) = 0 [pid 5918] mkdir("./file0", 0777) = 0 [ 109.127232][ T5918] loop4: detected capacity change from 0 to 32768 [pid 5918] 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 resumed>) = 16777216 [pid 5916] munmap(0x7fc387600000, 138412032 [pid 5917] <... write resumed>) = 16777216 [pid 5916] <... munmap resumed>) = 0 [pid 5917] munmap(0x7fc387600000, 138412032 [pid 5916] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5917] <... munmap resumed>) = 0 [pid 5916] ioctl(4, LOOP_SET_FD, 3 [pid 5917] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5917] ioctl(4, LOOP_SET_FD, 3 [pid 5916] <... ioctl resumed>) = 0 [pid 5917] <... ioctl resumed>) = 0 [pid 5916] close(3) = 0 [pid 5916] close(4) = 0 [pid 5916] mkdir("./file0", 0777) = 0 [pid 5917] close(3) = 0 [pid 5917] close(4) = 0 [pid 5916] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5917] mkdir("./file0", 0777) = 0 [pid 5917] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5920] <... write resumed>) = 16777216 [ 109.240912][ T5916] loop3: detected capacity change from 0 to 32768 [ 109.250107][ T5917] loop1: detected capacity change from 0 to 32768 [pid 5920] munmap(0x7fc387600000, 138412032) = 0 [pid 5920] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5920] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5920] close(3) = 0 [pid 5920] close(4) = 0 [pid 5920] mkdir("./file0", 0777) = 0 [ 109.316374][ T5920] loop0: detected capacity change from 0 to 32768 [ 109.495629][ T5916] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 109.511728][ T5918] 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 [ 109.540498][ T5917] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 109.546595][ T5916] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 109.555296][ T5917] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 109.562317][ T5918] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 109.575469][ T5920] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 109.584614][ T5920] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 109.610132][ T5918] bcachefs (loop4): Version upgrade required: [ 109.610132][ T5918] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 109.610132][ T5918] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 109.610132][ T5918] 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 5920] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5916] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5917] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5916] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5917] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5916] <... openat resumed>) = 3 [pid 5917] <... openat resumed>) = 3 [ 109.773704][ T5917] bcachefs: bch2_fs_get_tree() error: EINVAL [ 109.773781][ T5918] bcachefs (loop4): dropping and reconstructing all alloc info [ 109.781972][ T5916] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5917] ioctl(3, LOOP_CLR_FD [pid 5916] ioctl(3, LOOP_CLR_FD) = 0 [pid 5917] <... ioctl resumed>) = 0 [pid 5916] close(3 [pid 5917] close(3 [pid 5231] <... umount2 resumed>) = 0 [pid 5231] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./12/file0", [pid 5920] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5920] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5920] ioctl(3, LOOP_CLR_FD) = 0 [pid 5231] umount2("./12/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5920] close(3 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./12/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./12/file0") = 0 [ 109.872832][ T5920] bcachefs: bch2_fs_get_tree() error: EINVAL [ 109.906794][ T5918] bcachefs (loop4): check_topology... done [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./12") = 0 [pid 5231] mkdir("./13", 0777) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5953 attached , child_tidptr=0x5555807c5650) = 5953 [pid 5953] set_robust_list(0x5555807c5660, 24) = 0 [pid 5953] chdir("./13") = 0 [pid 5953] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5953] setpgid(0, 0) = 0 [ 109.912721][ T5918] bcachefs (loop4): accounting_read... done [ 109.975466][ T5918] bcachefs (loop4): alloc_read... done [ 109.992662][ T5918] bcachefs (loop4): stripes_read... done [pid 5953] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5953] write(3, "1000", 4) = 4 [pid 5953] close(3) = 0 [pid 5953] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5953] write(1, "executing program\n", 18) = 18 [pid 5953] memfd_create("syzkaller", 0) = 3 [pid 5953] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 110.011671][ T5918] bcachefs (loop4): snapshots_read... done [pid 5916] <... close resumed>) = 0 [pid 5916] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5916] exit_group(0) = ? [pid 5916] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5916, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=42 /* 0.42 s */} --- [pid 5232] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5232] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./15/binderfs") = 0 [pid 5232] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5917] <... close resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./15/bus") = 0 [pid 5232] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./15/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, [pid 5917] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5917] <... openat resumed>) = 3 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4 [pid 5917] exit_group(0 [pid 5232] <... close resumed>) = 0 [pid 5232] rmdir("./15/file0" [pid 5917] <... exit_group resumed>) = ? [pid 5232] <... rmdir resumed>) = 0 [pid 5917] +++ exited with 0 +++ [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5917, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=45 /* 0.45 s */} --- [pid 5232] close(3) = 0 [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5232] rmdir("./15") = 0 [pid 5230] <... restart_syscall resumed>) = 0 [pid 5232] mkdir("./16", 0777) = 0 [pid 5230] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [ 110.047390][ T5918] bcachefs (loop4): check_allocations... done [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5920] <... close resumed>) = 0 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] newfstatat(3, "", [pid 5232] close(3 [pid 5920] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] <... close resumed>) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5920] <... openat resumed>) = 3 [ 110.215147][ T5918] bcachefs (loop4): going read-write [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 ./strace-static-x86_64: Process 5954 attached [pid 5920] exit_group(0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5954 [pid 5230] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5954] set_robust_list(0x5555807c5660, 24) = 0 [pid 5954] chdir("./16") = 0 [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 [pid 5920] <... exit_group resumed>) = ? [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5954] <... openat resumed>) = 3 [pid 5920] +++ exited with 0 +++ [pid 5918] <... mount resumed>) = 0 [pid 5230] newfstatat(AT_FDCWD, "./18/binderfs", [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5920, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=40 /* 0.40 s */} --- [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./18/binderfs" [pid 5954] write(3, "1000", 4 [pid 5918] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5954] <... write resumed>) = 4 [pid 5954] close(3 [pid 5918] <... openat resumed>) = 3 [pid 5230] <... unlink resumed>) = 0 [pid 5229] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] newfstatat(AT_FDCWD, "./18/bus", [pid 5954] <... close resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5954] symlink("/dev/binderfs", "./binderfs" [pid 5230] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] newfstatat(3, "", [pid 5954] <... symlink resumed>) = 0 [pid 5918] chdir("./file0" [pid 5230] unlink("./18/bus" [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5954] write(1, "executing program\n", 18 [pid 5918] <... chdir resumed>) = 0 [pid 5954] <... write resumed>) = 18 executing program [pid 5918] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5230] <... unlink resumed>) = 0 [pid 5954] memfd_create("syzkaller", 0 [pid 5918] <... openat resumed>) = 4 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5918] ioctl(4, LOOP_CLR_FD [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5918] <... ioctl resumed>) = 0 [pid 5229] newfstatat(AT_FDCWD, "./16/binderfs", [pid 5918] close(4) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5954] <... memfd_create resumed>) = 3 [pid 5229] unlink("./16/binderfs" [pid 5918] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5230] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... unlink resumed>) = 0 [pid 5954] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] newfstatat(AT_FDCWD, "./18/file0", [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5954] <... mmap resumed>) = 0x7fc387600000 [pid 5229] newfstatat(AT_FDCWD, "./16/bus", [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] unlink("./16/bus" [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... unlink resumed>) = 0 [pid 5230] <... openat resumed>) = 4 [pid 5229] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] newfstatat(4, "", [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] newfstatat(AT_FDCWD, "./16/file0", [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5918] exit_group(0 [pid 5230] getdents64(4, [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5918] <... exit_group resumed>) = ? [ 110.238031][ T5918] bcachefs (loop4): done starting filesystem [pid 5918] +++ exited with 0 +++ [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5918, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=36 /* 0.36 s */} --- [pid 5230] close(4 [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... close resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] rmdir("./18/file0") = 0 [pid 5229] <... openat resumed>) = 4 [pid 5230] getdents64(3, [pid 5233] <... restart_syscall resumed>) = 0 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] newfstatat(4, "", [pid 5230] close(3 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] getdents64(4, [pid 5230] <... close resumed>) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] rmdir("./18" [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] <... openat resumed>) = 3 [pid 5229] getdents64(4, [pid 5230] <... rmdir resumed>) = 0 [pid 5233] newfstatat(3, "", [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] mkdir("./19", 0777 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] close(4 [pid 5233] getdents64(3, [pid 5229] <... close resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5229] rmdir("./16/file0" [pid 5230] <... mkdir resumed>) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5233] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] close(3 [pid 5230] <... openat resumed>) = 3 [pid 5233] newfstatat(AT_FDCWD, "./15/binderfs", [pid 5229] <... close resumed>) = 0 [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5229] rmdir("./16" [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] unlink("./15/binderfs" [pid 5229] mkdir("./17", 0777 [pid 5230] close(3 [pid 5229] <... mkdir resumed>) = 0 [pid 5230] <... close resumed>) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5233] <... unlink resumed>) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5229] <... openat resumed>) = 3 ./strace-static-x86_64: Process 5957 attached [pid 5233] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5957] set_robust_list(0x5555807c5660, 24 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5957] <... set_robust_list resumed>) = 0 [pid 5229] close(3 [pid 5957] chdir("./19" [pid 5229] <... close resumed>) = 0 [pid 5957] <... chdir resumed>) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5957] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5957] setpgid(0, 0) = 0 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 5958 ./strace-static-x86_64: Process 5958 attached [pid 5957] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5957 [pid 5957] <... openat resumed>) = 3 [pid 5957] write(3, "1000", 4) = 4 [pid 5957] close(3) = 0 [pid 5957] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5958] set_robust_list(0x5555807c5660, 24) = 0 [pid 5958] chdir("./17") = 0 [pid 5958] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5958] setpgid(0, 0 [pid 5957] write(1, "executing program\n", 18 [pid 5958] <... setpgid resumed>) = 0 executing program [pid 5958] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5957] <... write resumed>) = 18 [pid 5957] memfd_create("syzkaller", 0) = 3 [pid 5958] <... openat resumed>) = 3 [pid 5957] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5958] write(3, "1000", 4) = 4 [pid 5957] <... mmap resumed>) = 0x7fc387600000 [ 110.370363][ T5233] bcachefs (loop4): shutting down [pid 5958] close(3) = 0 [pid 5958] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5958] write(1, "executing program\n", 18executing program ) = 18 [pid 5958] memfd_create("syzkaller", 0) = 3 [pid 5958] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 110.395996][ T5233] bcachefs (loop4): going read-only [ 110.401298][ T5233] bcachefs (loop4): finished waiting for writes to stop [ 110.471282][ T5233] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [ 110.530469][ T77] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [ 110.574618][ T77] bcachefs (loop4): fatal error - emergency read only [ 110.592569][ T5233] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [ 110.627141][ T5233] bcachefs (loop4): unshutdown complete, journal seq 14 [ 110.635309][ T5233] bcachefs (loop4): done going read-only, filesystem not clean [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 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 [ 110.722195][ T5233] bcachefs (loop4): shutdown complete [pid 5957] 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 5958] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5953] <... write resumed>) = 16777216 [pid 5953] munmap(0x7fc387600000, 138412032) = 0 [pid 5953] openat(AT_FDCWD, "/dev/loop2", 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 [ 110.889271][ T5953] loop2: detected capacity change from 0 to 32768 [pid 5953] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5957] <... write resumed>) = 16777216 [pid 5957] munmap(0x7fc387600000, 138412032 [pid 5954] <... write resumed>) = 16777216 [pid 5954] munmap(0x7fc387600000, 138412032 [pid 5957] <... munmap resumed>) = 0 [pid 5957] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5954] <... munmap resumed>) = 0 [pid 5957] <... openat resumed>) = 4 [pid 5954] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5957] ioctl(4, LOOP_SET_FD, 3 [pid 5954] ioctl(4, LOOP_SET_FD, 3 [pid 5958] <... write resumed>) = 16777216 [pid 5954] <... ioctl resumed>) = 0 [pid 5958] munmap(0x7fc387600000, 138412032 [pid 5957] <... ioctl resumed>) = 0 [pid 5954] close(3 [pid 5957] close(3 [pid 5954] <... close resumed>) = 0 [pid 5957] <... close resumed>) = 0 [pid 5958] <... munmap resumed>) = 0 [pid 5957] close(4 [pid 5954] close(4 [pid 5958] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5958] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5958] close(3 [pid 5957] <... close resumed>) = 0 [pid 5954] <... close resumed>) = 0 [pid 5957] mkdir("./file0", 0777 [pid 5954] mkdir("./file0", 0777 [pid 5958] <... close resumed>) = 0 [pid 5958] close(4 [pid 5954] <... mkdir resumed>) = 0 [pid 5958] <... close resumed>) = 0 [pid 5958] mkdir("./file0", 0777) = 0 [pid 5957] <... mkdir resumed>) = 0 [pid 5954] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5957] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [ 111.105464][ T5954] loop3: detected capacity change from 0 to 32768 [ 111.112294][ T5957] loop1: detected capacity change from 0 to 32768 [ 111.137969][ T5958] loop0: detected capacity change from 0 to 32768 [ 111.510532][ T5953] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 111.518408][ T5958] 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 [ 111.520048][ T5954] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 111.551212][ T5954] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 111.559973][ T5953] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 111.578525][ T5957] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 111.587929][ T5957] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 5958] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5954] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 111.670149][ T5958] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 111.695969][ T5954] bcachefs: bch2_fs_get_tree() error: EINVAL [ 111.705518][ T5957] bcachefs: bch2_fs_get_tree() error: EINVAL [ 111.712769][ T5958] bcachefs (loop0): Version upgrade required: [pid 5957] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5954] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5957] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5954] <... openat resumed>) = 3 [pid 5957] <... openat resumed>) = 3 [pid 5957] ioctl(3, LOOP_CLR_FD [pid 5954] ioctl(3, LOOP_CLR_FD [pid 5957] <... ioctl resumed>) = 0 [pid 5954] <... ioctl resumed>) = 0 [pid 5957] close(3 [ 111.712769][ T5958] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 111.712769][ T5958] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [pid 5954] close(3 [pid 5953] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5953] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 111.712769][ T5958] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 111.807591][ T5953] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5953] ioctl(3, LOOP_CLR_FD) = 0 [ 111.876996][ T5958] bcachefs (loop0): dropping and reconstructing all alloc info [ 111.918933][ T5958] bcachefs (loop0): check_topology... done [ 111.924867][ T5958] bcachefs (loop0): accounting_read... done [ 111.965179][ T5958] bcachefs (loop0): alloc_read... done [ 112.001115][ T5958] bcachefs (loop0): stripes_read... done [ 112.015684][ T5958] bcachefs (loop0): snapshots_read... done [pid 5953] close(3 [pid 5957] <... close resumed>) = 0 [pid 5954] <... close resumed>) = 0 [pid 5957] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5954] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5957] exit_group(0 [pid 5954] <... openat resumed>) = 3 [pid 5957] <... exit_group resumed>) = ? [pid 5957] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5957, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=48 /* 0.48 s */} --- [pid 5954] exit_group(0 [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5954] <... exit_group resumed>) = ? [pid 5233] <... umount2 resumed>) = 0 [pid 5230] <... restart_syscall resumed>) = 0 [pid 5954] +++ exited with 0 +++ [pid 5230] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./15/file0", [pid 5230] newfstatat(AT_FDCWD, "./19/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./19/binderfs") = 0 [pid 5230] umount2("./19/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./19/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./19/bus" [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5233] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5230] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] newfstatat(AT_FDCWD, "./19/file0", [pid 5233] <... openat resumed>) = 4 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] newfstatat(4, "", [pid 5230] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] getdents64(4, [pid 5230] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] <... openat resumed>) = 4 [pid 5233] getdents64(4, [pid 5230] newfstatat(4, "", [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5954, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=42 /* 0.42 s */} --- [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] getdents64(4, [pid 5233] close(4 [pid 5230] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] <... close resumed>) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5233] rmdir("./15/file0" [pid 5230] rmdir("./19/file0" [pid 5233] <... rmdir resumed>) = 0 [pid 5232] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... rmdir resumed>) = 0 [pid 5233] getdents64(3, [pid 5232] <... openat resumed>) = 3 [pid 5230] getdents64(3, [pid 5232] newfstatat(3, "", [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] close(3 [pid 5232] getdents64(3, [pid 5230] close(3 [pid 5233] <... close resumed>) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5230] <... close resumed>) = 0 [pid 5232] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] rmdir("./15" [pid 5230] rmdir("./19" [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... rmdir resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./16/binderfs", [pid 5230] <... rmdir resumed>) = 0 [pid 5233] mkdir("./16", 0777 [pid 5230] mkdir("./20", 0777 [pid 5233] <... mkdir resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] <... mkdir resumed>) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5233] <... openat resumed>) = 3 [pid 5230] <... openat resumed>) = 3 [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5230] ioctl(3, LOOP_CLR_FD [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5230] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] close(3 [pid 5230] close(3 [pid 5953] <... close resumed>) = 0 [pid 5233] <... close resumed>) = 0 [pid 5232] unlink("./16/binderfs" [pid 5230] <... close resumed>) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555807c5650) = 5989 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5990 attached ./strace-static-x86_64: Process 5989 attached [pid 5989] set_robust_list(0x5555807c5660, 24) = 0 [pid 5232] <... unlink resumed>) = 0 [pid 5990] set_robust_list(0x5555807c5660, 24 [pid 5989] chdir("./16" [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 5990 [pid 5989] <... chdir resumed>) = 0 [pid 5990] <... set_robust_list resumed>) = 0 [pid 5953] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] umount2("./16/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5990] chdir("./20" [pid 5232] newfstatat(AT_FDCWD, "./16/bus", [pid 5989] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5953] <... openat resumed>) = 3 [pid 5990] <... chdir resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5990] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5989] setpgid(0, 0) = 0 [pid 5990] <... prctl resumed>) = 0 [pid 5989] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5990] setpgid(0, 0 [pid 5989] <... openat resumed>) = 3 [pid 5232] unlink("./16/bus" [pid 5989] write(3, "1000", 4 [pid 5990] <... setpgid resumed>) = 0 [pid 5990] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5989] <... write resumed>) = 4 [pid 5989] close(3) = 0 [pid 5989] symlink("/dev/binderfs", "./binderfs"executing program [pid 5990] <... openat resumed>) = 3 [pid 5989] <... symlink resumed>) = 0 [pid 5989] write(1, "executing program\n", 18) = 18 [pid 5990] write(3, "1000", 4 [pid 5989] memfd_create("syzkaller", 0 [pid 5232] <... unlink resumed>) = 0 [pid 5990] <... write resumed>) = 4 [pid 5953] exit_group(0 [pid 5990] close(3) = 0 [pid 5953] <... exit_group resumed>) = ? [pid 5990] symlink("/dev/binderfs", "./binderfs" [pid 5989] <... memfd_create resumed>) = 3 [pid 5989] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5990] <... symlink resumed>) = 0 [pid 5953] +++ exited with 0 +++ [pid 5232] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5953, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=46 /* 0.46 s */} --- [pid 5232] newfstatat(AT_FDCWD, "./16/file0", executing program [pid 5990] write(1, "executing program\n", 18 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5990] <... write resumed>) = 18 [pid 5232] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5990] memfd_create("syzkaller", 0 [pid 5958] <... mount resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5958] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 5231] <... openat resumed>) = 3 [pid 5958] <... openat resumed>) = 3 [pid 5232] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5990] <... memfd_create resumed>) = 3 [pid 5958] chdir("./file0" [pid 5232] <... openat resumed>) = 4 [pid 5990] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5958] <... chdir resumed>) = 0 [pid 5232] newfstatat(4, "", [pid 5231] newfstatat(3, "", [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, [pid 5231] getdents64(3, [pid 5990] <... mmap resumed>) = 0x7fc387600000 [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4) = 0 [pid 5232] rmdir("./16/file0" [pid 5958] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5232] <... rmdir resumed>) = 0 [pid 5231] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5958] <... openat resumed>) = 4 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5958] ioctl(4, LOOP_CLR_FD [pid 5231] newfstatat(AT_FDCWD, "./13/binderfs", [pid 5958] <... ioctl resumed>) = 0 [pid 5232] getdents64(3, [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5958] close(4) = 0 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] unlink("./13/binderfs" [pid 5958] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] close(3 [pid 5231] <... unlink resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5231] umount2("./13/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] rmdir("./16" [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... rmdir resumed>) = 0 [pid 5231] newfstatat(AT_FDCWD, "./13/bus", [pid 5958] <... openat resumed>) = 4 [pid 5231] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] mkdir("./17", 0777 [ 112.022106][ T5958] bcachefs (loop0): check_allocations... done [ 112.173694][ T5958] bcachefs (loop0): going read-write [ 112.202334][ T5958] bcachefs (loop0): done starting filesystem [pid 5231] unlink("./13/bus" [pid 5958] exit_group(0 [pid 5232] <... mkdir resumed>) = 0 [pid 5231] <... unlink resumed>) = 0 [pid 5958] <... exit_group resumed>) = ? [pid 5231] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./13/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5958] +++ exited with 0 +++ [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5231] umount2("./13/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5958, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=37 /* 0.37 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... openat resumed>) = 3 [pid 5231] openat(AT_FDCWD, "./13/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5231] <... openat resumed>) = 4 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] <... restart_syscall resumed>) = 0 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] close(3 [pid 5229] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./13/file0") = 0 [pid 5229] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] getdents64(3, [pid 5229] <... openat resumed>) = 3 [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3 [pid 5229] newfstatat(3, "", [pid 5231] <... close resumed>) = 0 [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] rmdir("./13" [pid 5229] getdents64(3, [pid 5231] <... rmdir resumed>) = 0 [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5229] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./17/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./17/binderfs" [pid 5231] mkdir("./14", 0777 [pid 5229] <... unlink resumed>) = 0 [pid 5229] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... mkdir resumed>) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5993 attached [pid 5232] <... close resumed>) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 5993 ./strace-static-x86_64: Process 5994 attached [pid 5993] set_robust_list(0x5555807c5660, 24) = 0 [pid 5993] chdir("./14") = 0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 5994 [pid 5993] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5994] set_robust_list(0x5555807c5660, 24 [pid 5993] setpgid(0, 0) = 0 [pid 5993] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5994] <... set_robust_list resumed>) = 0 [pid 5993] <... openat resumed>) = 3 [pid 5993] write(3, "1000", 4) = 4 [pid 5994] chdir("./17" [pid 5993] close(3) = 0 [pid 5993] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5994] <... chdir resumed>) = 0 [pid 5994] prctl(PR_SET_PDEATHSIG, SIGKILL executing program [pid 5993] write(1, "executing program\n", 18) = 18 [pid 5993] memfd_create("syzkaller", 0 [pid 5994] <... prctl resumed>) = 0 [pid 5993] <... memfd_create resumed>) = 3 [pid 5994] setpgid(0, 0 [pid 5993] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5994] <... setpgid resumed>) = 0 [pid 5994] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 112.308645][ T5229] bcachefs (loop0): shutting down [ 112.313771][ T5229] bcachefs (loop0): going read-only [ 112.345614][ T5229] bcachefs (loop0): finished waiting for writes to stop [pid 5994] write(3, "1000", 4) = 4 [pid 5994] close(3) = 0 [pid 5994] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5994] write(1, "executing program\n", 18) = 18 [pid 5994] memfd_create("syzkaller", 0) = 3 [pid 5994] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 112.356633][ T5229] bcachefs (loop0): flushing journal and stopping allocators, journal seq 12 [ 112.441950][ T5229] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 15 [ 112.473207][ T5229] bcachefs (loop0): unshutdown complete, journal seq 16 [ 112.496486][ T5229] bcachefs (loop0): done going read-only, filesystem not clean [pid 5990] 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 [ 112.582263][ T5229] bcachefs (loop0): shutdown complete [pid 5994] 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 5993] 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 resumed>) = 16777216 [pid 5994] <... write resumed>) = 16777216 [pid 5994] munmap(0x7fc387600000, 138412032 [pid 5989] munmap(0x7fc387600000, 138412032 [pid 5990] <... write resumed>) = 16777216 [pid 5994] <... munmap resumed>) = 0 [pid 5990] munmap(0x7fc387600000, 138412032 [pid 5989] <... munmap resumed>) = 0 [pid 5994] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5990] <... munmap resumed>) = 0 [pid 5989] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5994] ioctl(4, LOOP_SET_FD, 3 [pid 5989] <... openat resumed>) = 4 [pid 5989] ioctl(4, LOOP_SET_FD, 3 [pid 5994] <... ioctl resumed>) = 0 [pid 5990] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5989] <... ioctl resumed>) = 0 [pid 5994] close(3 [pid 5990] <... openat resumed>) = 4 [pid 5989] close(3 [pid 5994] <... close resumed>) = 0 [pid 5993] <... write resumed>) = 16777216 [pid 5990] ioctl(4, LOOP_SET_FD, 3 [pid 5989] <... close resumed>) = 0 [pid 5993] munmap(0x7fc387600000, 138412032 [pid 5989] close(4 [pid 5994] close(4) = 0 [pid 5989] <... close resumed>) = 0 [pid 5994] mkdir("./file0", 0777 [pid 5989] mkdir("./file0", 0777 [pid 5993] <... munmap resumed>) = 0 [pid 5994] <... mkdir resumed>) = 0 [pid 5990] <... ioctl resumed>) = 0 [pid 5989] <... mkdir resumed>) = 0 [pid 5994] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5989] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5993] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5990] close(3 [pid 5993] <... openat resumed>) = 4 [pid 5990] <... close resumed>) = 0 [ 113.028505][ T5989] loop4: detected capacity change from 0 to 32768 [ 113.035718][ T5994] loop3: detected capacity change from 0 to 32768 [ 113.059026][ T5990] loop1: detected capacity change from 0 to 32768 [pid 5993] ioctl(4, LOOP_SET_FD, 3 [pid 5990] close(4) = 0 [pid 5990] mkdir("./file0", 0777) = 0 [pid 5990] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5993] <... ioctl resumed>) = 0 [pid 5993] close(3) = 0 [pid 5993] close(4) = 0 [pid 5993] mkdir("./file0", 0777) = 0 [ 113.090460][ T5993] loop2: detected capacity change from 0 to 32768 [ 113.390562][ T5990] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 113.390800][ T5989] 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 [ 113.400225][ T5994] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 113.422549][ T5989] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 113.440181][ T5989] bcachefs (loop4): Version upgrade required: [ 113.440181][ T5989] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 113.440181][ T5989] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 113.440181][ T5989] 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.465693][ T5994] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 113.520104][ T5993] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 113.531325][ T5989] bcachefs (loop4): dropping and reconstructing all alloc info [ 113.540117][ T5993] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 113.547579][ T5990] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 113.605479][ T5989] bcachefs (loop4): check_topology... done [ 113.611411][ T5989] bcachefs (loop4): accounting_read... done [ 113.655515][ T5989] bcachefs (loop4): alloc_read... done [ 113.661214][ T5989] bcachefs (loop4): stripes_read... done [ 113.675502][ T5989] bcachefs (loop4): snapshots_read... done [pid 5993] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 5994] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5994] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5994] ioctl(3, LOOP_CLR_FD) = 0 [pid 5993] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 113.681566][ T5989] bcachefs (loop4): check_allocations... [ 113.725869][ T5994] bcachefs: bch2_fs_get_tree() error: EINVAL [ 113.744062][ T5989] done [ 113.751896][ T5989] bcachefs (loop4): going read-write [ 113.766765][ T5993] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5994] close(3 [pid 5993] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5993] ioctl(3, LOOP_CLR_FD) = 0 [pid 5989] <... mount resumed>) = 0 [pid 5993] close(3 [pid 5989] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5989] chdir("./file0") = 0 [ 113.797166][ T5989] bcachefs (loop4): done starting filesystem [pid 5989] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5990] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5989] <... openat resumed>) = 4 [pid 5989] ioctl(4, LOOP_CLR_FD) = 0 [pid 5989] close(4) = 0 [pid 5989] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 5989] exit_group(0) = ? [pid 5990] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5990] ioctl(3, LOOP_CLR_FD) = 0 [pid 5990] close(3 [pid 5989] +++ exited with 0 +++ [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5989, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=42 /* 0.42 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5233] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5233] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./16/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 113.837603][ T5990] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5233] unlink("./16/binderfs") = 0 [pid 5233] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... umount2 resumed>) = 0 [pid 5229] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 113.905598][ T5233] bcachefs (loop4): shutting down [pid 5229] newfstatat(AT_FDCWD, "./17/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./17/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./17") = 0 [pid 5229] mkdir("./18", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6026 attached , child_tidptr=0x5555807c5650) = 6026 [pid 6026] set_robust_list(0x5555807c5660, 24) = 0 [ 113.926874][ T5233] bcachefs (loop4): going read-only [ 113.932411][ T5233] bcachefs (loop4): finished waiting for writes to stop [pid 6026] chdir("./18") = 0 [pid 6026] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6026] setpgid(0, 0) = 0 [pid 6026] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5994] <... close resumed>) = 0 [pid 6026] write(3, "1000", 4 [pid 5994] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6026] <... write resumed>) = 4 [pid 6026] close(3 [pid 5994] <... openat resumed>) = 3 [pid 6026] <... close resumed>) = 0 [pid 5994] exit_group(0 [pid 6026] symlink("/dev/binderfs", "./binderfs" [pid 5994] <... exit_group resumed>) = ? [pid 6026] <... symlink resumed>) = 0 [pid 5994] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5994, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=50 /* 0.50 s */} --- [ 113.980778][ T5233] bcachefs (loop4): flushing journal and stopping allocators, journal seq 12 [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 6026] write(1, "executing program\n", 18executing program [pid 5232] <... restart_syscall resumed>) = 0 [pid 6026] <... write resumed>) = 18 [pid 6026] memfd_create("syzkaller", 0 [pid 5232] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6026] <... memfd_create resumed>) = 3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6026] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6026] <... mmap resumed>) = 0x7fc387600000 [pid 5232] <... openat resumed>) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5993] <... close resumed>) = 0 [pid 5232] newfstatat(AT_FDCWD, "./17/binderfs", [pid 5993] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./17/binderfs" [pid 5993] exit_group(0 [pid 5232] <... unlink resumed>) = 0 [pid 5232] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5993] <... exit_group resumed>) = ? [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5993] +++ exited with 0 +++ [pid 5232] newfstatat(AT_FDCWD, "./17/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5993, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5232] unlink("./17/bus") = 0 [pid 5232] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, [pid 5232] newfstatat(AT_FDCWD, "./17/file0", [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./14/binderfs", [pid 5232] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... openat resumed>) = 4 [pid 5231] unlink("./14/binderfs" [pid 5232] newfstatat(4, "", [pid 5231] <... unlink resumed>) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] umount2("./14/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] getdents64(4, [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] newfstatat(AT_FDCWD, "./14/bus", [pid 5232] getdents64(4, [pid 5231] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] unlink("./14/bus" [pid 5232] close(4 [pid 5231] <... unlink resumed>) = 0 [pid 5232] <... close resumed>) = 0 [pid 5231] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] rmdir("./17/file0" [pid 5231] newfstatat(AT_FDCWD, "./14/file0", [pid 5232] <... rmdir resumed>) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] getdents64(3, [pid 5231] umount2("./14/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] close(3 [pid 5231] openat(AT_FDCWD, "./14/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] <... close resumed>) = 0 [pid 5231] <... openat resumed>) = 4 [pid 5232] rmdir("./17" [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 114.107258][ T987] bcachefs (loop4): bch2_write_super(): fatal error loop4: Superblock write was silently dropped! (seq 0 expected 54) [pid 5231] getdents64(4, [pid 5232] <... rmdir resumed>) = 0 [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] mkdir("./18", 0777) = 0 [pid 5231] getdents64(4, [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3 [pid 5231] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] <... close resumed>) = 0 [pid 5231] close(4 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] <... close resumed>) = 0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 6027 [pid 5231] rmdir("./14/file0"./strace-static-x86_64: Process 6027 attached [ 114.178346][ T987] bcachefs (loop4): fatal error - emergency read only [ 114.186269][ T5233] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 14 [pid 6027] set_robust_list(0x5555807c5660, 24 [pid 5231] <... rmdir resumed>) = 0 [pid 6027] <... set_robust_list resumed>) = 0 [pid 6027] chdir("./18") = 0 [pid 6027] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6027] setpgid(0, 0) = 0 [pid 5231] getdents64(3, [pid 6027] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6027] write(3, "1000", 4) = 4 [pid 6027] close(3) = 0 [pid 6027] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6027] write(1, "executing program\n", 18 [pid 5990] <... close resumed>) = 0 [pid 5231] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3 [pid 6027] <... write resumed>) = 18 [pid 5231] <... close resumed>) = 0 [pid 5231] rmdir("./14" [pid 6027] memfd_create("syzkaller", 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5231] mkdir("./15", 0777 [pid 6027] <... memfd_create resumed>) = 3 [pid 5231] <... mkdir resumed>) = 0 [pid 6027] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5990] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6027] <... mmap resumed>) = 0x7fc387600000 [pid 5990] <... openat resumed>) = 3 [pid 5231] <... openat resumed>) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD [pid 5990] exit_group(0 [pid 5231] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5231] close(3 [pid 5990] <... exit_group resumed>) = ? [pid 5990] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5990, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=44 /* 0.44 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...> [pid 5231] <... close resumed>) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5230] <... restart_syscall resumed>) = 0 [pid 5231] <... clone resumed>, child_tidptr=0x5555807c5650) = 6028 ./strace-static-x86_64: Process 6028 attached [pid 5230] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6028] set_robust_list(0x5555807c5660, 24) = 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6028] chdir("./15" [pid 5230] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6028] <... chdir resumed>) = 0 [pid 6028] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 114.218943][ T5233] bcachefs (loop4): unshutdown complete, journal seq 14 [ 114.256996][ T5233] bcachefs (loop4): done going read-only, filesystem not clean [pid 6028] setpgid(0, 0 [pid 5230] <... openat resumed>) = 3 [pid 6028] <... setpgid resumed>) = 0 [pid 6028] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6028] write(3, "1000", 4) = 4 [pid 6028] close(3) = 0 [pid 6028] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5230] newfstatat(3, "", executing program [pid 6028] write(1, "executing program\n", 18) = 18 [pid 6028] memfd_create("syzkaller", 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6028] <... memfd_create resumed>) = 3 [pid 6028] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 5230] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 6026] 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 5230] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./20/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./20/binderfs") = 0 [pid 5230] umount2("./20/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./20/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./20/bus") = 0 [pid 5230] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./20/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [pid 5230] rmdir("./20/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./20") = 0 [pid 5230] mkdir("./21", 0777) = 0 [ 114.339366][ T5233] bcachefs (loop4): shutdown complete [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5230] close(3) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6029 attached , child_tidptr=0x5555807c5650) = 6029 [pid 6029] set_robust_list(0x5555807c5660, 24) = 0 [pid 6029] chdir("./21") = 0 [pid 6029] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6029] setpgid(0, 0) = 0 [pid 6029] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6029] write(3, "1000", 4) = 4 [pid 6029] close(3executing program ) = 0 [pid 6029] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6029] write(1, "executing program\n", 18) = 18 [pid 6029] memfd_create("syzkaller", 0) = 3 [pid 6029] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 6028] 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 6027] 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 6026] <... write resumed>) = 16777216 [pid 6026] munmap(0x7fc387600000, 138412032) = 0 [pid 6026] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6026] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6026] close(3) = 0 [pid 6026] close(4) = 0 [pid 6026] mkdir("./file0", 0777 [pid 6029] 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 6026] <... mkdir resumed>) = 0 [ 114.738231][ T6026] loop0: detected capacity change from 0 to 32768 [pid 6026] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6027] <... write resumed>) = 16777216 [pid 6027] munmap(0x7fc387600000, 138412032) = 0 [pid 6027] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6027] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6027] close(3) = 0 [pid 6027] close(4 [pid 6028] <... write resumed>) = 16777216 [pid 6027] <... close resumed>) = 0 [pid 6028] munmap(0x7fc387600000, 138412032 [pid 6027] mkdir("./file0", 0777) = 0 [pid 6027] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6028] <... munmap resumed>) = 0 [pid 6028] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 114.942658][ T6027] loop3: detected capacity change from 0 to 32768 [pid 6028] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6028] close(3) = 0 [pid 6028] close(4) = 0 [pid 6028] mkdir("./file0", 0777) = 0 [pid 6028] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6029] <... write resumed>) = 16777216 [pid 6029] munmap(0x7fc387600000, 138412032) = 0 [pid 6029] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [ 115.007931][ T6028] loop2: detected capacity change from 0 to 32768 [pid 6029] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6029] close(3) = 0 [pid 6029] close(4) = 0 [pid 6029] mkdir("./file0", 0777) = 0 [ 115.069280][ T6029] loop1: detected capacity change from 0 to 32768 [ 115.326019][ T6028] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 115.335204][ T6028] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 115.348708][ T6026] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 115.362645][ T6026] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 115.362653][ T6029] 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 [ 115.362799][ T6029] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 115.381638][ T6027] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 115.393905][ T6029] bcachefs (loop1): Version upgrade required: [ 115.393905][ T6029] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 115.393905][ T6029] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 115.393905][ T6029] 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.494701][ T6027] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [pid 6029] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6028] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6028] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 6028] ioctl(3, LOOP_CLR_FD) = 0 [ 115.576342][ T6028] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6028] close(3 [pid 6026] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6026] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 6026] ioctl(3, LOOP_CLR_FD) = 0 [ 115.633133][ T6029] bcachefs (loop1): dropping and reconstructing all alloc info [ 115.641469][ T6026] bcachefs: bch2_fs_get_tree() error: EINVAL [ 115.670961][ T6027] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6026] close(3 [pid 6027] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 115.701770][ T6029] bcachefs (loop1): check_topology... done [pid 6027] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 6027] ioctl(3, LOOP_CLR_FD) = 0 [ 115.742811][ T6029] bcachefs (loop1): accounting_read... done [ 115.754341][ T6029] bcachefs (loop1): alloc_read... done [ 115.795437][ T6029] bcachefs (loop1): stripes_read... done [ 115.801222][ T6029] bcachefs (loop1): snapshots_read... done [pid 6027] close(3 [pid 6028] <... close resumed>) = 0 [pid 5233] <... umount2 resumed>) = 0 [pid 6028] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./16/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5233] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6028] <... openat resumed>) = 3 [pid 5233] <... openat resumed>) = 4 [pid 5233] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5233] close(4) = 0 [pid 5233] rmdir("./16/file0" [pid 6028] exit_group(0) = ? [pid 6028] +++ exited with 0 +++ [pid 5233] <... rmdir resumed>) = 0 [pid 5233] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6028, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=39 /* 0.39 s */} --- [pid 5233] close(3 [pid 5231] restart_syscall(<... resuming interrupted clone ...> [pid 5233] <... close resumed>) = 0 [pid 5233] rmdir("./16" [pid 5231] <... restart_syscall resumed>) = 0 [pid 5233] <... rmdir resumed>) = 0 [pid 5233] mkdir("./17", 0777 [pid 5231] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5231] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5231] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./15/binderfs") = 0 [pid 5231] umount2("./15/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./15/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... mkdir resumed>) = 0 [pid 5231] unlink("./15/bus" [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5231] <... unlink resumed>) = 0 [pid 5231] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... openat resumed>) = 3 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] ioctl(3, LOOP_CLR_FD [ 115.851628][ T6029] bcachefs (loop1): check_allocations... done [ 115.929783][ T6029] bcachefs (loop1): going read-write [pid 5231] newfstatat(AT_FDCWD, "./15/file0", [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5231] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] close(3 [pid 5231] umount2("./15/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... close resumed>) = 0 [pid 5231] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./15/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./15/file0") = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 ./strace-static-x86_64: Process 6059 attached [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 6059 [pid 6059] set_robust_list(0x5555807c5660, 24 [pid 6029] <... mount resumed>) = 0 [pid 5231] rmdir("./15" [pid 6059] <... set_robust_list resumed>) = 0 [pid 5231] <... rmdir resumed>) = 0 [pid 5231] mkdir("./16", 0777) = 0 [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6062 attached , child_tidptr=0x5555807c5650) = 6062 [pid 6062] set_robust_list(0x5555807c5660, 24) = 0 [pid 6062] chdir("./16") = 0 [pid 6062] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6059] chdir("./17" [pid 6062] setpgid(0, 0 [pid 6059] <... chdir resumed>) = 0 [pid 6029] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY [pid 6026] <... close resumed>) = 0 [pid 6059] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6029] <... openat resumed>) = 3 [pid 6026] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6062] <... setpgid resumed>) = 0 [pid 6059] <... prctl resumed>) = 0 [pid 6029] chdir("./file0" [pid 6062] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6059] setpgid(0, 0 [pid 6026] <... openat resumed>) = 3 [pid 6029] <... chdir resumed>) = 0 [pid 6059] <... setpgid resumed>) = 0 [pid 6029] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 6062] <... openat resumed>) = 3 [pid 6029] <... openat resumed>) = 4 [pid 6026] exit_group(0 [pid 6062] write(3, "1000", 4 [pid 6059] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6029] ioctl(4, LOOP_CLR_FD [pid 6026] <... exit_group resumed>) = ? [pid 6062] <... write resumed>) = 4 [pid 6062] close(3) = 0 [pid 6062] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6062] write(1, "executing program\n", 18 [pid 6029] <... ioctl resumed>) = 0 [pid 6062] <... write resumed>) = 18 [pid 6062] memfd_create("syzkaller", 0) = 3 [pid 6062] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 115.985615][ T6029] bcachefs (loop1): done starting filesystem [pid 6059] <... openat resumed>) = 3 [pid 6029] close(4 [pid 6026] +++ exited with 0 +++ [pid 6059] write(3, "1000", 4 [pid 6029] <... close resumed>) = 0 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6026, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=44 /* 0.44 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 6059] <... write resumed>) = 4 [pid 6029] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5229] <... restart_syscall resumed>) = 0 [pid 6059] close(3 [pid 6029] <... openat resumed>) = 4 [pid 6059] <... close resumed>) = 0 [pid 5229] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6059] symlink("/dev/binderfs", "./binderfs" [pid 6029] exit_group(0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./18/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./18/binderfs") = 0 [pid 5229] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./18/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6059] <... symlink resumed>) = 0 [pid 6029] <... exit_group resumed>) = ? [pid 5229] unlink("./18/bus") = 0 [pid 5229] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [pid 6059] write(1, "executing program\n", 18 [pid 6029] +++ exited with 0 +++ [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6029, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=38 /* 0.38 s */} --- [pid 6059] <... write resumed>) = 18 [pid 5229] newfstatat(AT_FDCWD, "./18/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6059] memfd_create("syzkaller", 0 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5230] <... openat resumed>) = 3 [pid 5229] <... openat resumed>) = 4 [pid 5230] newfstatat(3, "", [pid 5229] newfstatat(4, "", [pid 6059] <... memfd_create resumed>) = 3 [pid 5230] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6059] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5230] getdents64(3, [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6059] <... mmap resumed>) = 0x7fc387600000 [pid 5230] <... getdents64 resumed>0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5229] getdents64(4, [pid 5230] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] getdents64(4, [pid 5230] newfstatat(AT_FDCWD, "./21/binderfs", [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] close(4 [pid 5230] unlink("./21/binderfs" [pid 5229] <... close resumed>) = 0 [pid 5230] <... unlink resumed>) = 0 [pid 5229] rmdir("./18/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5229] rmdir("./18" [pid 5230] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... rmdir resumed>) = 0 [pid 5229] mkdir("./19", 0777) = 0 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5229] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6063 attached , child_tidptr=0x5555807c5650) = 6063 [pid 6063] set_robust_list(0x5555807c5660, 24) = 0 [ 116.092003][ T5230] bcachefs (loop1): shutting down [pid 6063] chdir("./19") = 0 [pid 6063] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6063] setpgid(0, 0) = 0 [pid 6063] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6063] write(3, "1000", 4) = 4 [pid 6063] close(3) = 0 [pid 6063] symlink("/dev/binderfs", "./binderfs") = 0 [ 116.126181][ T5230] bcachefs (loop1): going read-only [ 116.131681][ T5230] bcachefs (loop1): finished waiting for writes to stop executing program [pid 6063] write(1, "executing program\n", 18 [pid 6027] <... close resumed>) = 0 [pid 6063] <... write resumed>) = 18 [pid 6027] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6063] memfd_create("syzkaller", 0 [pid 6027] <... openat resumed>) = 3 [pid 6027] exit_group(0) = ? [pid 6027] +++ exited with 0 +++ [pid 6063] <... memfd_create resumed>) = 3 [pid 6063] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6027, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=43 /* 0.43 s */} --- [pid 6063] <... mmap resumed>) = 0x7fc387600000 [pid 5232] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5232] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./18/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./18/binderfs") = 0 [ 116.177415][ T5230] bcachefs (loop1): flushing journal and stopping allocators, journal seq 12 [pid 5232] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./18/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./18/bus") = 0 [pid 5232] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./18/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] close(4) = 0 [pid 5232] rmdir("./18/file0") = 0 [pid 5232] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./18") = 0 [pid 5232] mkdir("./19", 0777) = 0 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6064 attached [ 116.233954][ T77] bcachefs (loop1): bch2_write_super(): fatal error loop1: Superblock write was silently dropped! (seq 0 expected 54) [ 116.268810][ T77] bcachefs (loop1): fatal error - emergency read only [pid 6064] set_robust_list(0x5555807c5660, 24 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 6064 [pid 6064] <... set_robust_list resumed>) = 0 [pid 6064] chdir("./19") = 0 [pid 6064] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6064] setpgid(0, 0) = 0 [pid 6064] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6064] write(3, "1000", 4) = 4 [pid 6064] close(3) = 0 [pid 6064] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6064] write(1, "executing program\n", 18executing program ) = 18 [pid 6062] 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 6064] memfd_create("syzkaller", 0) = 3 [pid 6064] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 116.307051][ T5230] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 14 [ 116.329430][ T5230] bcachefs (loop1): unshutdown complete, journal seq 14 [ 116.347808][ T5230] bcachefs (loop1): done going read-only, filesystem not clean [ 116.428593][ T5230] bcachefs (loop1): shutdown complete [pid 6063] 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 6064] 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 6062] <... write resumed>) = 16777216 [pid 6062] munmap(0x7fc387600000, 138412032) = 0 [pid 6062] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6062] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6062] close(3) = 0 [pid 6062] close(4) = 0 [pid 6062] mkdir("./file0", 0777) = 0 [ 116.763228][ T6062] loop2: detected capacity change from 0 to 32768 [pid 6062] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6063] <... write resumed>) = 16777216 [pid 6063] munmap(0x7fc387600000, 138412032 [pid 6059] <... write resumed>) = 16777216 [pid 6063] <... munmap resumed>) = 0 [pid 6059] munmap(0x7fc387600000, 138412032 [pid 6063] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6063] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6063] close(3 [pid 6059] <... munmap resumed>) = 0 [pid 6059] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6063] <... close resumed>) = 0 [pid 6059] <... openat resumed>) = 4 [pid 6059] ioctl(4, LOOP_SET_FD, 3 [pid 6063] close(4) = 0 [pid 6063] mkdir("./file0", 0777) = 0 [pid 6059] <... ioctl resumed>) = 0 [pid 6059] close(3) = 0 [pid 6059] close(4 [pid 6063] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6059] <... close resumed>) = 0 [pid 6059] mkdir("./file0", 0777) = 0 [ 116.884219][ T6063] loop0: detected capacity change from 0 to 32768 [ 116.914391][ T6059] loop4: detected capacity change from 0 to 32768 [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 6064] <... write resumed>) = 16777216 [pid 6064] munmap(0x7fc387600000, 138412032) = 0 [pid 6064] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6064] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6064] close(3) = 0 [pid 6064] close(4) = 0 [pid 6064] mkdir("./file0", 0777) = 0 [ 117.025315][ T6064] loop3: detected capacity change from 0 to 32768 [ 117.177969][ T6062] 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 [ 117.211693][ T6064] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 117.230194][ T6062] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 117.240429][ T6064] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 117.251176][ T6059] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 117.262108][ T6062] bcachefs (loop2): Version upgrade required: [ 117.262108][ T6062] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 117.262108][ T6062] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 117.262108][ T6062] 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.279719][ T6059] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 117.333772][ T6063] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 117.352866][ T6063] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 117.397504][ T6062] bcachefs (loop2): dropping and reconstructing all alloc info [ 117.500272][ T6062] bcachefs (loop2): check_topology... done [ 117.519038][ T6059] bcachefs: bch2_fs_get_tree() error: EINVAL [ 117.519080][ T6063] bcachefs: bch2_fs_get_tree() error: EINVAL [ 117.535119][ T6062] bcachefs (loop2): accounting_read... done [ 117.537444][ T6064] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6064] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6063] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6059] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6063] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 6059] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6064] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6063] <... openat resumed>) = 3 [pid 6059] <... openat resumed>) = 3 [pid 6064] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 6064] ioctl(3, LOOP_CLR_FD [pid 6063] ioctl(3, LOOP_CLR_FD [pid 6059] ioctl(3, LOOP_CLR_FD [pid 6064] <... ioctl resumed>) = 0 [pid 6064] close(3 [pid 6063] <... ioctl resumed>) = 0 [pid 6059] <... ioctl resumed>) = 0 [pid 6059] close(3 [pid 6063] close(3 [pid 5230] <... umount2 resumed>) = 0 [pid 5230] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./21/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] umount2("./21/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./21/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5230] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5230] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5230] close(4) = 0 [ 117.542489][ T6062] bcachefs (loop2): alloc_read... done [ 117.562916][ T6062] bcachefs (loop2): stripes_read... done [ 117.569986][ T6062] bcachefs (loop2): snapshots_read... done [pid 5230] rmdir("./21/file0") = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5230] close(3) = 0 [pid 5230] rmdir("./21") = 0 [pid 5230] mkdir("./22", 0777) = 0 [pid 5230] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5230] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5230] close(3) = 0 [pid 5230] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6094 attached [pid 6094] set_robust_list(0x5555807c5660, 24 [pid 5230] <... clone resumed>, child_tidptr=0x5555807c5650) = 6094 [pid 6094] <... set_robust_list resumed>) = 0 [pid 6094] chdir("./22") = 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") = 0 executing program [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) = 0x7fc387600000 [ 117.576871][ T6062] bcachefs (loop2): check_allocations... done [ 117.713003][ T6062] bcachefs (loop2): going read-write [pid 6062] <... mount resumed>) = 0 [pid 6062] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6062] chdir("./file0") = 0 [pid 6062] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 117.762530][ T6062] bcachefs (loop2): done starting filesystem [pid 6062] ioctl(4, LOOP_CLR_FD) = 0 [pid 6062] close(4) = 0 [pid 6062] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 6062] exit_group(0) = ? [pid 6062] +++ exited with 0 +++ [pid 5231] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6062, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=42 /* 0.42 s */} --- [pid 5231] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5231] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5231] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./16/binderfs", [pid 6059] <... close resumed>) = 0 [pid 5231] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] unlink("./16/binderfs") = 0 [pid 5231] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6059] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6059] exit_group(0) = ? [pid 6063] <... close resumed>) = 0 [pid 6059] +++ exited with 0 +++ [pid 6064] <... close resumed>) = 0 [pid 6063] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6059, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=40 /* 0.40 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 6064] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6063] <... openat resumed>) = 3 [pid 5233] <... restart_syscall resumed>) = 0 [pid 6063] exit_group(0 [pid 5233] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6064] <... openat resumed>) = 3 [pid 6063] <... exit_group resumed>) = ? [pid 5233] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5233] newfstatat(3, "", [pid 6063] +++ exited with 0 +++ [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6063, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5229] restart_syscall(<... resuming interrupted clone ...> [pid 5233] getdents64(3, [pid 6064] exit_group(0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 6064] <... exit_group resumed>) = ? [pid 5233] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6064] +++ exited with 0 +++ [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6064, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=44 /* 0.44 s */} --- [pid 5229] <... restart_syscall resumed>) = 0 [pid 5229] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5229] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./19/binderfs", [pid 5232] restart_syscall(<... resuming interrupted clone ...> [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] <... restart_syscall resumed>) = 0 [pid 5229] unlink("./19/binderfs" [pid 5233] newfstatat(AT_FDCWD, "./17/binderfs", [pid 5229] <... unlink resumed>) = 0 [pid 5229] umount2("./19/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./19/bus", {st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] unlink("./19/bus") = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] unlink("./17/binderfs" [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(AT_FDCWD, "./19/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5229] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5229] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] close(4) = 0 [pid 5229] rmdir("./19/file0") = 0 [pid 5229] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] close(3) = 0 [pid 5232] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] rmdir("./19" [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... openat resumed>) = 3 [pid 5229] <... rmdir resumed>) = 0 [pid 5233] umount2("./17/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] newfstatat(3, "", [pid 5229] mkdir("./20", 0777) = 0 [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 117.928018][ T5231] bcachefs (loop2): shutting down [ 117.933708][ T5231] bcachefs (loop2): going read-only [ 117.941108][ T5231] bcachefs (loop2): finished waiting for writes to stop [ 117.957266][ T5231] bcachefs (loop2): flushing journal and stopping allocators, journal seq 11 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5232] getdents64(3, [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] newfstatat(AT_FDCWD, "./17/bus", [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5229] <... openat resumed>) = 3 [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./19/binderfs", [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5232] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] unlink("./17/bus" [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] unlink("./19/binderfs" [pid 5233] <... unlink resumed>) = 0 [pid 5232] <... unlink resumed>) = 0 [pid 5229] close(3) = 0 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5232] umount2("./19/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 6097 ./strace-static-x86_64: Process 6097 attached [pid 5233] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6097] set_robust_list(0x5555807c5660, 24 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 118.020744][ T77] bcachefs (loop2): bch2_write_super(): fatal error loop2: Superblock write was silently dropped! (seq 0 expected 54) [ 118.042160][ T77] bcachefs (loop2): fatal error - emergency read only [ 118.050420][ T5231] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 13 [pid 5232] newfstatat(AT_FDCWD, "./19/bus", [pid 6097] <... set_robust_list resumed>) = 0 [pid 5233] newfstatat(AT_FDCWD, "./17/file0", [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] unlink("./19/bus" [pid 6097] chdir("./20" [pid 5232] <... unlink resumed>) = 0 [pid 5232] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6097] <... chdir resumed>) = 0 [pid 6097] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] umount2("./17/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] newfstatat(AT_FDCWD, "./19/file0", [pid 6097] <... prctl resumed>) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6097] setpgid(0, 0 [pid 5233] openat(AT_FDCWD, "./17/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] umount2("./19/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6097] <... setpgid resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... openat resumed>) = 4 [pid 5232] openat(AT_FDCWD, "./19/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6097] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5232] <... openat resumed>) = 4 [pid 6097] <... openat resumed>) = 3 [pid 5232] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 6097] write(3, "1000", 4 [pid 5233] newfstatat(4, "", [pid 5232] close(4) = 0 [pid 6097] <... write resumed>) = 4 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6097] close(3 [pid 5232] rmdir("./19/file0") = 0 [pid 6097] <... close resumed>) = 0 [pid 5232] getdents64(3, [pid 6097] symlink("/dev/binderfs", "./binderfs" [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 6097] <... symlink resumed>) = 0 [pid 5232] close(3) = 0 [pid 5232] rmdir("./19") = 0 executing program [pid 6097] write(1, "executing program\n", 18 [pid 5232] mkdir("./20", 0777) = 0 [pid 6097] <... write resumed>) = 18 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5232] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5232] close(3 [pid 5233] getdents64(4, [pid 5232] <... close resumed>) = 0 [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6098 attached [pid 6097] memfd_create("syzkaller", 0 [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 5233] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] <... clone resumed>, child_tidptr=0x5555807c5650) = 6098 [pid 5233] close(4) = 0 [pid 5233] rmdir("./17/file0") = 0 [pid 5233] getdents64(3, [pid 6098] set_robust_list(0x5555807c5660, 24 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 6097] <... memfd_create resumed>) = 3 [pid 6098] <... set_robust_list resumed>) = 0 [pid 5233] close(3) = 0 [pid 6098] chdir("./20" [pid 6097] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5233] rmdir("./17") = 0 [pid 6097] <... mmap resumed>) = 0x7fc387600000 [pid 5233] mkdir("./18", 0777) = 0 [pid 6098] <... chdir resumed>) = 0 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6098] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] <... openat resumed>) = 3 [ 118.068661][ T5231] bcachefs (loop2): unshutdown complete, journal seq 13 [ 118.087816][ T5231] bcachefs (loop2): done going read-only, filesystem not clean [pid 6098] <... prctl resumed>) = 0 [pid 5233] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 6098] setpgid(0, 0 [pid 5233] close(3) = 0 [pid 6098] <... setpgid resumed>) = 0 [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6098] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC./strace-static-x86_64: Process 6099 attached ) = 3 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 6099 [pid 6099] set_robust_list(0x5555807c5660, 24) = 0 [pid 6099] chdir("./18") = 0 [pid 6098] write(3, "1000", 4 [pid 6099] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6099] setpgid(0, 0) = 0 [pid 6099] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6099] write(3, "1000", 4 [pid 6098] <... write resumed>) = 4 [pid 6099] <... write resumed>) = 4 [pid 6098] close(3 [pid 6099] close(3) = 0 [pid 6098] <... close resumed>) = 0 [pid 6099] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6098] symlink("/dev/binderfs", "./binderfs" [pid 6099] write(1, "executing program\n", 18) = 18 [pid 6099] memfd_create("syzkaller", 0 [pid 6098] <... symlink resumed>) = 0 [pid 6099] <... memfd_create resumed>) = 3 [pid 6098] write(1, "executing program\n", 18executing program [pid 6099] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6098] <... write resumed>) = 18 [pid 6099] <... mmap resumed>) = 0x7fc387600000 [pid 6098] memfd_create("syzkaller", 0) = 3 [pid 6098] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 118.179373][ T5231] bcachefs (loop2): shutdown complete [pid 6097] 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 resumed>) = 16777216 [pid 6094] munmap(0x7fc387600000, 138412032 [pid 6099] 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] <... munmap resumed>) = 0 [pid 6094] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6098] 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] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6094] close(3) = 0 [pid 6094] close(4) = 0 [pid 6094] mkdir("./file0", 0777) = 0 [ 118.556614][ T6094] loop1: detected capacity change from 0 to 32768 [pid 6094] mount("/dev/loop1", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6097] <... write resumed>) = 16777216 [pid 6097] munmap(0x7fc387600000, 138412032) = 0 [pid 6097] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6097] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6097] close(3) = 0 [pid 6097] close(4) = 0 [pid 6097] mkdir("./file0", 0777) = 0 [pid 6097] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6098] <... write resumed>) = 16777216 [ 118.780043][ T6097] loop0: detected capacity change from 0 to 32768 [pid 6098] munmap(0x7fc387600000, 138412032) = 0 [pid 6098] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6098] ioctl(4, LOOP_SET_FD, 3 [pid 6099] <... write resumed>) = 16777216 [pid 6098] <... ioctl resumed>) = 0 [pid 6099] munmap(0x7fc387600000, 138412032 [pid 6098] close(3 [pid 6099] <... munmap resumed>) = 0 [pid 6098] <... close resumed>) = 0 [pid 6099] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6098] close(4 [pid 6099] <... openat resumed>) = 4 [pid 6098] <... close resumed>) = 0 [pid 6098] mkdir("./file0", 0777 [pid 6099] ioctl(4, LOOP_SET_FD, 3 [pid 6098] <... mkdir resumed>) = 0 [pid 6099] <... ioctl resumed>) = 0 [pid 6098] mount("/dev/loop3", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6099] close(3) = 0 [pid 6099] close(4) = 0 [pid 6099] mkdir("./file0", 0777) = 0 [ 118.872873][ T6098] loop3: detected capacity change from 0 to 32768 [ 118.899867][ T6099] loop4: detected capacity change from 0 to 32768 [ 119.112327][ T6094] 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 [ 119.134708][ T6097] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 119.141065][ T6094] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 119.150944][ T6097] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 119.186803][ T6094] bcachefs (loop1): Version upgrade required: [ 119.186803][ T6094] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 119.186803][ T6094] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 119.186803][ T6094] 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.272966][ T6098] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 119.294907][ T6098] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 119.305478][ T6099] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 119.317883][ T6094] bcachefs (loop1): dropping and reconstructing all alloc info [ 119.328764][ T6099] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 119.372066][ T6094] bcachefs (loop1): check_topology... done [pid 6099] mount("/dev/loop4", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6098] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6098] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 6098] ioctl(3, LOOP_CLR_FD) = 0 [ 119.425970][ T6094] bcachefs (loop1): accounting_read... [ 119.462753][ T6098] bcachefs: bch2_fs_get_tree() error: EINVAL [ 119.475728][ T6094] done [ 119.478644][ T6094] bcachefs (loop1): alloc_read... done [ 119.484270][ T6094] bcachefs (loop1): stripes_read... done [ 119.494626][ T6094] bcachefs (loop1): snapshots_read... done [pid 6098] close(3 [pid 6097] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6097] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 6097] ioctl(3, LOOP_CLR_FD) = 0 [pid 6097] close(3 [pid 6099] <... mount resumed>) = -1 EINVAL (Invalid argument) [ 119.503290][ T6094] bcachefs (loop1): check_allocations... [ 119.548409][ T6097] bcachefs: bch2_fs_get_tree() error: EINVAL [ 119.579073][ T6094] done [ 119.583582][ T6099] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 6099] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5231] <... umount2 resumed>) = 0 [pid 6099] <... openat resumed>) = 3 [pid 6099] ioctl(3, LOOP_CLR_FD) = 0 [pid 6099] close(3 [pid 5231] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] newfstatat(AT_FDCWD, "./16/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5231] umount2("./16/file0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5231] openat(AT_FDCWD, "./16/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5231] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5231] getdents64(4, 0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5231] getdents64(4, 0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5231] close(4) = 0 [pid 5231] rmdir("./16/file0") = 0 [pid 5231] getdents64(3, 0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5231] close(3) = 0 [pid 5231] rmdir("./16") = 0 [pid 5231] mkdir("./17", 0777) = 0 [ 119.616717][ T6094] bcachefs (loop1): going read-write [pid 5231] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5231] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5231] close(3) = 0 [pid 5231] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6129 attached , child_tidptr=0x5555807c5650) = 6129 [pid 6129] set_robust_list(0x5555807c5660, 24) = 0 [pid 6129] chdir("./17") = 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 executing program [pid 6129] close(3) = 0 [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) = 0x7fc387600000 [pid 6094] <... mount resumed>) = 0 [pid 6094] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 6094] chdir("./file0") = 0 [ 119.745684][ T6094] bcachefs (loop1): done starting filesystem [pid 6094] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6094] ioctl(4, LOOP_CLR_FD) = 0 [pid 6094] close(4) = 0 [pid 6094] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 4 [pid 6094] exit_group(0) = ? [pid 6094] +++ exited with 0 +++ [pid 5230] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6094, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5230] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5230] umount2("./22", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] openat(AT_FDCWD, "./22", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5230] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5230] getdents64(3, 0x5555807c66f0 /* 4 entries */, 32768) = 112 [pid 5230] umount2("./22/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5230] newfstatat(AT_FDCWD, "./22/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5230] unlink("./22/binderfs") = 0 [pid 5230] umount2("./22/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6098] <... close resumed>) = 0 [pid 6098] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000) = 3 [pid 6098] exit_group(0) = ? [pid 6098] +++ exited with 0 +++ [pid 5232] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6098, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=51 /* 0.51 s */} --- [pid 5232] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6099] <... close resumed>) = 0 [pid 6097] <... close resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5232] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6099] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 5232] getdents64(3, 0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6099] <... openat resumed>) = 3 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 119.909388][ T5230] bcachefs (loop1): shutting down [ 119.914947][ T5230] bcachefs (loop1): going read-only [ 119.945866][ T5230] bcachefs (loop1): finished waiting for writes to stop [pid 6097] openat(AT_FDCWD, "./bus", O_RDWR|O_CREAT|O_NONBLOCK|O_SYNC|O_NOATIME, 000 [pid 6099] exit_group(0 [pid 5232] newfstatat(AT_FDCWD, "./20/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6099] <... exit_group resumed>) = ? [pid 5232] unlink("./20/binderfs" [pid 6097] <... openat resumed>) = 3 [pid 5232] <... unlink resumed>) = 0 [pid 6097] exit_group(0) = ? [pid 6099] +++ exited with 0 +++ [pid 5232] umount2("./20/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6099, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=44 /* 0.44 s */} --- [pid 5233] restart_syscall(<... resuming interrupted clone ...> [pid 6097] +++ exited with 0 +++ [pid 5233] <... restart_syscall resumed>) = 0 [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6097, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=54 /* 0.54 s */} --- [pid 5232] newfstatat(AT_FDCWD, "./20/bus", [pid 5233] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] unlink("./20/bus" [pid 5229] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... openat resumed>) = 3 [pid 5232] <... unlink resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... openat resumed>) = 3 [pid 5233] getdents64(3, [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] newfstatat(3, "", [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5232] newfstatat(AT_FDCWD, "./20/file0", [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5233] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] getdents64(3, [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 5 entries */, 32768) = 136 [pid 5233] newfstatat(AT_FDCWD, "./18/binderfs", [pid 5232] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5229] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5232] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] unlink("./18/binderfs" [pid 5232] <... openat resumed>) = 4 [pid 5229] newfstatat(AT_FDCWD, "./20/binderfs", [pid 5233] <... unlink resumed>) = 0 [pid 5232] newfstatat(4, "", [pid 5229] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] umount2("./18/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5229] unlink("./20/binderfs" [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5229] <... unlink resumed>) = 0 [pid 5233] newfstatat(AT_FDCWD, "./18/bus", [pid 5232] getdents64(4, [pid 5229] umount2("./20/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] unlink("./18/bus") = 0 [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5229] newfstatat(AT_FDCWD, "./20/bus", [pid 5233] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [ 119.981300][ T5230] bcachefs (loop1): flushing journal and stopping allocators, journal seq 12 [pid 5232] getdents64(4, [pid 5229] <... newfstatat resumed>{st_mode=S_IFREG|000, st_size=0, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] unlink("./20/bus" [pid 5233] newfstatat(AT_FDCWD, "./18/file0", [pid 5229] <... unlink resumed>) = 0 [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5229] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] umount2("./18/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5232] close(4 [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5232] <... close resumed>) = 0 [pid 5229] newfstatat(AT_FDCWD, "./20/file0", [pid 5233] openat(AT_FDCWD, "./18/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5232] rmdir("./20/file0" [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5233] <... openat resumed>) = 4 [pid 5229] umount2("./20/file0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5233] newfstatat(4, "", [pid 5229] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5233] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... rmdir resumed>) = 0 [pid 5229] openat(AT_FDCWD, "./20/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5233] getdents64(4, [pid 5232] getdents64(3, [pid 5229] <... openat resumed>) = 4 [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 5233] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5229] newfstatat(4, "", [pid 5232] close(3) = 0 [pid 5232] rmdir("./20" [pid 5229] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5232] <... rmdir resumed>) = 0 [pid 5229] getdents64(4, [pid 5232] mkdir("./21", 0777) = 0 [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 2 entries */, 32768) = 48 [pid 5232] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5229] getdents64(4, [pid 5232] <... openat resumed>) = 3 [pid 5229] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5232] ioctl(3, LOOP_CLR_FD [pid 5229] close(4 [pid 5232] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5232] close(3) = 0 [pid 5232] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6132 attached , child_tidptr=0x5555807c5650) = 6132 [pid 6132] set_robust_list(0x5555807c5660, 24 [pid 5229] <... close resumed>) = 0 [pid 6132] <... set_robust_list resumed>) = 0 [pid 6132] chdir("./21" [pid 5233] getdents64(4, [pid 5229] rmdir("./20/file0" [pid 6132] <... chdir resumed>) = 0 [pid 6132] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5233] <... getdents64 resumed>0x5555807ce730 /* 0 entries */, 32768) = 0 [pid 5229] <... rmdir resumed>) = 0 [pid 6132] <... prctl resumed>) = 0 [pid 6132] setpgid(0, 0) = 0 [pid 6132] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6132] write(3, "1000", 4) = 4 [pid 6132] close(3) = 0 [pid 5229] getdents64(3, [pid 5233] close(4 [pid 6132] symlink("/dev/binderfs", "./binderfs" [pid 5229] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 5233] <... close resumed>) = 0 [pid 5229] close(3 [pid 5233] rmdir("./18/file0" [pid 5229] <... close resumed>) = 0 [pid 6132] <... symlink resumed>) = 0 [pid 5233] <... rmdir resumed>) = 0 [pid 5229] rmdir("./20" [pid 5233] getdents64(3, executing program [pid 6132] write(1, "executing program\n", 18) = 18 [pid 5229] <... rmdir resumed>) = 0 [pid 6132] memfd_create("syzkaller", 0 [pid 5233] <... getdents64 resumed>0x5555807c66f0 /* 0 entries */, 32768) = 0 [pid 6132] <... memfd_create resumed>) = 3 [pid 5233] close(3 [pid 5229] mkdir("./21", 0777 [pid 6132] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5233] <... close resumed>) = 0 [pid 6132] <... mmap resumed>) = 0x7fc387600000 [ 120.069510][ T5230] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 13 [pid 5233] rmdir("./18") = 0 [pid 5229] <... mkdir resumed>) = 0 [pid 5233] mkdir("./19", 0777 [pid 5229] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5233] <... mkdir resumed>) = 0 [pid 5229] <... openat resumed>) = 3 [pid 5233] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5229] ioctl(3, LOOP_CLR_FD [pid 5233] <... openat resumed>) = 3 [pid 5229] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5233] ioctl(3, LOOP_CLR_FD [pid 5229] close(3 [pid 5233] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5229] <... close resumed>) = 0 [pid 5233] close(3 [pid 5229] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5233] <... close resumed>) = 0 [pid 5229] <... clone resumed>, child_tidptr=0x5555807c5650) = 6133 ./strace-static-x86_64: Process 6133 attached [pid 5233] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6133] set_robust_list(0x5555807c5660, 24) = 0 [pid 5233] <... clone resumed>, child_tidptr=0x5555807c5650) = 6134 [pid 6133] chdir("./21"./strace-static-x86_64: Process 6134 attached ) = 0 [pid 6133] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6134] set_robust_list(0x5555807c5660, 24 [pid 6133] <... prctl resumed>) = 0 [pid 6134] <... set_robust_list resumed>) = 0 [pid 6133] setpgid(0, 0) = 0 [pid 6134] chdir("./19" [pid 6133] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6134] <... chdir resumed>) = 0 [pid 6133] <... openat resumed>) = 3 [pid 6134] prctl(PR_SET_PDEATHSIG, SIGKILL [ 120.117068][ T987] bcachefs (loop1): bch2_write_super(): fatal error loop1: Superblock write was silently dropped! (seq 0 expected 54) [ 120.143697][ T5230] bcachefs (loop1): unshutdown complete, journal seq 14 [pid 6133] write(3, "1000", 4executing program [pid 6134] <... prctl resumed>) = 0 [pid 6133] <... write resumed>) = 4 [pid 6134] setpgid(0, 0 [pid 6133] close(3 [pid 6134] <... setpgid resumed>) = 0 [pid 6133] <... close resumed>) = 0 [pid 6134] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6133] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6133] write(1, "executing program\n", 18) = 18 [pid 6133] memfd_create("syzkaller", 0) = 3 [pid 6134] <... openat resumed>) = 3 [pid 6133] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [pid 6134] write(3, "1000", 4) = 4 [pid 6134] close(3) = 0 [pid 6134] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6134] write(1, "executing program\n", 18) = 18 [pid 6134] memfd_create("syzkaller", 0) = 3 [pid 6134] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fc387600000 [ 120.208508][ T987] bcachefs (loop1): fatal error - emergency read only [ 120.227729][ T987] ------------[ cut here ]------------ [ 120.233854][ T987] kernel BUG at fs/bcachefs/journal.h:375! [ 120.241977][ T987] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 120.249469][ T987] CPU: 1 UID: 0 PID: 987 Comm: kworker/u8:5 Not tainted 6.12.0-rc3-syzkaller-00183-g6efbea77b390 #0 [ 120.261101][ T987] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 120.271944][ T987] Workqueue: btree_update btree_interior_update_work [ 120.279724][ T987] RIP: 0010:__bch2_trans_commit+0x9232/0x93c0 [ 120.285864][ T987] Code: fd 90 0f 0b e8 6f d2 78 fd 90 0f 0b e8 67 d2 78 fd 90 0f 0b e8 5f d2 78 fd 90 0f 0b e8 57 d2 78 fd 90 0f 0b e8 4f d2 78 fd 90 <0f> 0b e8 47 d2 78 fd 90 0f 0b e8 3f d2 78 fd 90 0f 0b e8 37 d2 78 [ 120.307997][ T987] RSP: 0018:ffffc900041876c0 EFLAGS: 00010293 [ 120.314204][ T987] RAX: ffffffff841c1561 RBX: 0000000000000000 RCX: ffff888026118000 [ 120.324010][ T987] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 120.332732][ T987] RBP: ffffc90004187890 R08: ffffffff841bb898 R09: 1ffff1100bfd94a8 [ 120.341288][ T987] R10: dffffc0000000000 R11: ffffed100bfd94a9 R12: ffff88805fe80000 [ 120.350181][ T987] R13: ffff88805feca500 R14: 0000000000000044 R15: ffff88802c3780d0 [ 120.359034][ T987] FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 120.368201][ T987] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 120.378493][ T987] CR2: 00007fff6010f058 CR3: 000000002e462000 CR4: 00000000003526f0 [ 120.388717][ T987] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 120.398861][ T987] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 120.408651][ T987] Call Trace: [ 120.412562][ T987] [ 120.416222][ T987] ? __die_body+0x5f/0xb0 [ 120.421539][ T987] ? die+0x9e/0xc0 [ 120.425741][ T987] ? do_trap+0x15a/0x3a0 [ 120.430645][ T987] ? __bch2_trans_commit+0x9232/0x93c0 [ 120.436510][ T987] ? do_error_trap+0x1dc/0x2c0 [ 120.442269][ T987] ? __bch2_trans_commit+0x9232/0x93c0 [ 120.448345][ T987] ? __pfx_do_error_trap+0x10/0x10 [ 120.453806][ T987] ? report_bug+0x3e8/0x500 [ 120.458475][ T987] ? handle_invalid_op+0x34/0x40 [ 120.463637][ T987] ? __bch2_trans_commit+0x9232/0x93c0 [ 120.469487][ T987] ? exc_invalid_op+0x38/0x50 [ 120.474577][ T987] ? asm_exc_invalid_op+0x1a/0x20 [ 120.480127][ T987] ? __bch2_trans_commit+0x3568/0x93c0 [ 120.485843][ T987] ? __bch2_trans_commit+0x9231/0x93c0 [ 120.491467][ T987] ? __bch2_trans_commit+0x9232/0x93c0 [ 120.497063][ T987] ? __pfx___bch2_trans_commit+0x10/0x10 [ 120.502858][ T987] ? bch2_dev_btree_bitmap_marked+0x2f/0xda0 [ 120.510033][ T987] ? __bch2_trans_jset_entry_alloc+0x2c7/0x4b0 [ 120.517395][ T987] ? btree_interior_update_work+0x117a/0x2b10 [ 120.524487][ T987] btree_interior_update_work+0x1492/0x2b10 [ 120.531672][ T987] ? __pfx_btree_interior_update_work+0x10/0x10 [ 120.538338][ T987] ? __pfx_lock_acquire+0x10/0x10 [ 120.544480][ T987] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 120.550997][ T987] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 120.558709][ T987] ? process_scheduled_works+0x976/0x1850 [ 120.565831][ T987] process_scheduled_works+0xa63/0x1850 [ 120.573412][ T987] ? __pfx_process_scheduled_works+0x10/0x10 [ 120.580404][ T987] ? assign_work+0x364/0x3d0 [ 120.585869][ T987] worker_thread+0x870/0xd30 [ 120.592236][ T987] ? __kthread_parkme+0x169/0x1d0 [ 120.599182][ T987] ? __pfx_worker_thread+0x10/0x10 [ 120.604457][ T987] kthread+0x2f0/0x390 [ 120.609394][ T987] ? __pfx_worker_thread+0x10/0x10 [ 120.616425][ T987] ? __pfx_kthread+0x10/0x10 [ 120.621343][ T987] ret_from_fork+0x4b/0x80 [ 120.626250][ T987] ? __pfx_kthread+0x10/0x10 [ 120.632298][ T987] ret_from_fork_asm+0x1a/0x30 [ 120.636641][ T6129] loop2: detected capacity change from 0 to 32768 [ 120.637552][ T987] [ 120.650839][ T987] Modules linked in: [pid 6129] <... write resumed>) = 16777216 [pid 6132] 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 6129] munmap(0x7fc387600000, 138412032) = 0 [pid 6129] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6129] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6129] close(3) = 0 [pid 6129] close(4) = 0 [pid 6129] mkdir("./file0", 0777) = 0 [ 120.656186][ T987] ---[ end trace 0000000000000000 ]--- [pid 6129] mount("/dev/loop2", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6133] 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 [ 120.696147][ T987] RIP: 0010:__bch2_trans_commit+0x9232/0x93c0 [ 120.703782][ T987] Code: fd 90 0f 0b e8 6f d2 78 fd 90 0f 0b e8 67 d2 78 fd 90 0f 0b e8 5f d2 78 fd 90 0f 0b e8 57 d2 78 fd 90 0f 0b e8 4f d2 78 fd 90 <0f> 0b e8 47 d2 78 fd 90 0f 0b e8 3f d2 78 fd 90 0f 0b e8 37 d2 78 [ 120.760443][ T6129] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 120.771076][ T6129] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 120.795652][ T987] RSP: 0018:ffffc900041876c0 EFLAGS: 00010293 [ 120.803260][ T987] RAX: ffffffff841c1561 RBX: 0000000000000000 RCX: ffff888026118000 [pid 6134] 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 6133] <... write resumed>) = 16777216 [pid 6133] munmap(0x7fc387600000, 138412032) = 0 [ 120.855532][ T987] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 120.885420][ T987] RBP: ffffc90004187890 R08: ffffffff841bb898 R09: 1ffff1100bfd94a8 [pid 6133] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6133] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6133] close(3) = 0 [pid 6133] close(4) = 0 [pid 6133] mkdir("./file0", 0777) = 0 [ 120.905572][ T6133] loop0: detected capacity change from 0 to 32768 [ 120.905610][ T987] R10: dffffc0000000000 R11: ffffed100bfd94a9 R12: ffff88805fe80000 [ 120.933443][ T987] R13: ffff88805feca500 R14: 0000000000000044 R15: ffff88802c3780d0 [pid 6133] mount("/dev/loop0", "./file0", "bcachefs", MS_POSIXACL, "fsck,inline_data,nocow,degraded,str_hash=siphash,norecovery,discard,reconstruct_alloc,erasure_code,a"... [pid 6132] <... write resumed>) = 16777216 [pid 6132] munmap(0x7fc387600000, 138412032 [pid 6129] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 6132] <... munmap resumed>) = 0 [pid 6132] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 6129] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6132] <... openat resumed>) = 4 [ 120.960401][ T6129] bcachefs: bch2_fs_get_tree() error: EINVAL [ 120.970821][ T987] FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 120.986055][ T987] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 120.999479][ T987] CR2: 00007fff6010f058 CR3: 0000000028daa000 CR4: 00000000003526f0 [pid 6132] ioctl(4, LOOP_SET_FD, 3 [pid 6129] <... openat resumed>) = 3 [pid 6132] <... ioctl resumed>) = 0 [pid 6132] close(3 [pid 6129] ioctl(3, LOOP_CLR_FD [pid 6132] <... close resumed>) = 0 [pid 6132] close(4 [pid 6129] <... ioctl resumed>) = 0 [pid 6132] <... close resumed>) = 0 [ 121.005550][ T6132] loop3: detected capacity change from 0 to 32768 [ 121.009355][ T987] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 121.023668][ T987] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 121.033342][ T987] Kernel panic - not syncing: Fatal exception [ 121.039988][ T987] Kernel Offset: disabled [ 121.045083][ T987] Rebooting in 86400 seconds..