./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2177167144 <...> Warning: Permanently added '10.128.1.194' (ED25519) to the list of known hosts. execve("./syz-executor2177167144", ["./syz-executor2177167144"], 0x7fff5b7ed460 /* 10 vars */) = 0 brk(NULL) = 0x5555901c6000 brk(0x5555901c6e00) = 0x5555901c6e00 arch_prctl(ARCH_SET_FS, 0x5555901c6480) = 0 set_tid_address(0x5555901c6750) = 5836 set_robust_list(0x5555901c6760, 24) = 0 rseq(0x5555901c6da0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2177167144", 4096) = 28 getrandom("\xea\xb4\xd8\x8b\x52\xed\x0a\x28", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x5555901c6e00 brk(0x5555901e7e00) = 0x5555901e7e00 brk(0x5555901e8000) = 0x5555901e8000 mprotect(0x7fbbf3dfa000, 16384, PROT_READ) = 0 mmap(0x1ffffffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffffffff000 mmap(0x200000000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200000000000 mmap(0x200001000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x200001000000 rt_sigaction(SIGRTMIN, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=0}, NULL, 8) = 0 rt_sigaction(SIGSEGV, {sa_handler=0x7fbbf3d4b9a0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fbbf3d54290}, NULL, 8) = 0 rt_sigaction(SIGBUS, {sa_handler=0x7fbbf3d4b9a0, sa_mask=[], sa_flags=SA_RESTORER|SA_NODEFER|SA_SIGINFO, sa_restorer=0x7fbbf3d54290}, NULL, 8) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5837 attached , child_tidptr=0x5555901c6750) = 5837 [pid 5837] set_robust_list(0x5555901c6760, 24) = 0 [pid 5836] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5837] mkdir("./syzkaller.qMT9T0", 0700./strace-static-x86_64: Process 5838 attached [pid 5836] <... clone resumed>, child_tidptr=0x5555901c6750) = 5838 [pid 5838] set_robust_list(0x5555901c6760, 24 [pid 5836] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5838] <... set_robust_list resumed>) = 0 [pid 5837] <... mkdir resumed>) = 0 [pid 5838] mkdir("./syzkaller.bQXTYO", 0700 [pid 5837] chmod("./syzkaller.qMT9T0", 0777./strace-static-x86_64: Process 5839 attached [pid 5838] <... mkdir resumed>) = 0 [pid 5839] set_robust_list(0x5555901c6760, 24) = 0 [pid 5837] <... chmod resumed>) = 0 [pid 5836] <... clone resumed>, child_tidptr=0x5555901c6750) = 5839 [pid 5839] mkdir("./syzkaller.LmGK5b", 0700 [pid 5837] chdir("./syzkaller.qMT9T0" [pid 5836] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5838] chmod("./syzkaller.bQXTYO", 0777) = 0 [pid 5839] <... mkdir resumed>) = 0 [pid 5838] chdir("./syzkaller.bQXTYO") = 0 [pid 5838] mkdir("./0", 0777./strace-static-x86_64: Process 5840 attached [pid 5836] <... clone resumed>, child_tidptr=0x5555901c6750) = 5840 [pid 5839] chmod("./syzkaller.LmGK5b", 0777 [pid 5837] <... chdir resumed>) = 0 [pid 5838] <... mkdir resumed>) = 0 [pid 5836] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5840] set_robust_list(0x5555901c6760, 24 [pid 5839] <... chmod resumed>) = 0 [pid 5838] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5837] mkdir("./0", 0777 [pid 5840] <... set_robust_list resumed>) = 0 [pid 5839] chdir("./syzkaller.LmGK5b") = 0 ./strace-static-x86_64: Process 5841 attached [pid 5839] mkdir("./0", 0777 [pid 5838] <... openat resumed>) = 3 [pid 5840] mkdir("./syzkaller.IFj95z", 0700 [pid 5841] set_robust_list(0x5555901c6760, 24 [pid 5840] <... mkdir resumed>) = 0 [pid 5839] <... mkdir resumed>) = 0 [pid 5836] <... clone resumed>, child_tidptr=0x5555901c6750) = 5841 [pid 5838] ioctl(3, LOOP_CLR_FD [pid 5837] <... mkdir resumed>) = 0 [pid 5841] <... set_robust_list resumed>) = 0 [pid 5838] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5840] chmod("./syzkaller.IFj95z", 0777 [pid 5838] close(3 [pid 5837] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5841] mkdir("./syzkaller.vKqdXf", 0700 [pid 5840] <... chmod resumed>) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5838] <... close resumed>) = 0 [pid 5837] <... openat resumed>) = 3 [pid 5840] chdir("./syzkaller.IFj95z" [pid 5837] ioctl(3, LOOP_CLR_FD [pid 5841] <... mkdir resumed>) = 0 [pid 5840] <... chdir resumed>) = 0 [pid 5838] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5837] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5837] close(3) = 0 [pid 5837] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5841] chmod("./syzkaller.vKqdXf", 0777./strace-static-x86_64: Process 5843 attached ) = 0 ./strace-static-x86_64: Process 5844 attached [pid 5843] set_robust_list(0x5555901c6760, 24 [pid 5840] mkdir("./0", 0777 [pid 5839] <... openat resumed>) = 3 [pid 5837] <... clone resumed>, child_tidptr=0x5555901c6750) = 5843 [pid 5844] set_robust_list(0x5555901c6760, 24 [pid 5843] <... set_robust_list resumed>) = 0 [pid 5841] chdir("./syzkaller.vKqdXf" [pid 5839] ioctl(3, LOOP_CLR_FD [pid 5838] <... clone resumed>, child_tidptr=0x5555901c6750) = 5844 [pid 5844] <... set_robust_list resumed>) = 0 [pid 5840] <... mkdir resumed>) = 0 [pid 5839] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5844] chdir("./0" [pid 5843] chdir("./0" [pid 5841] <... chdir resumed>) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5839] close(3 [pid 5844] <... chdir resumed>) = 0 [pid 5844] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5843] <... chdir resumed>) = 0 [pid 5841] mkdir("./0", 0777 [pid 5840] <... openat resumed>) = 3 [pid 5839] <... close resumed>) = 0 [pid 5844] <... prctl resumed>) = 0 [pid 5843] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5841] <... mkdir resumed>) = 0 [pid 5840] ioctl(3, LOOP_CLR_FD [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5843] <... prctl resumed>) = 0 [pid 5844] setpgid(0, 0) = 0 [pid 5843] setpgid(0, 0 [pid 5840] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5844] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5840] close(3 [pid 5844] <... openat resumed>) = 3 [pid 5840] <... close resumed>) = 0 ./strace-static-x86_64: Process 5845 attached [pid 5843] <... setpgid resumed>) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5846 attached [pid 5843] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 5845 [pid 5844] write(3, "1000", 4 [pid 5843] <... openat resumed>) = 3 [pid 5841] <... openat resumed>) = 3 [pid 5845] set_robust_list(0x5555901c6760, 24 [pid 5844] <... write resumed>) = 4 [pid 5843] write(3, "1000", 4 [pid 5841] ioctl(3, LOOP_CLR_FD [pid 5846] set_robust_list(0x5555901c6760, 24 [pid 5845] <... set_robust_list resumed>) = 0 [pid 5844] close(3 [pid 5843] <... write resumed>) = 4 [pid 5846] <... set_robust_list resumed>) = 0 [pid 5845] chdir("./0" [pid 5844] <... close resumed>) = 0 [pid 5843] close(3 [pid 5841] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5846] chdir("./0" [pid 5844] symlink("/dev/binderfs", "./binderfs" [pid 5843] <... close resumed>) = 0 [pid 5841] close(3 [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 5846 [pid 5846] <... chdir resumed>) = 0 [pid 5845] <... chdir resumed>) = 0 [pid 5844] <... symlink resumed>) = 0 [pid 5843] symlink("/dev/binderfs", "./binderfs" [pid 5841] <... close resumed>) = 0 [pid 5846] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5845] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5846] <... prctl resumed>) = 0 [pid 5845] <... prctl resumed>) = 0 executing program executing program [pid 5844] write(1, "executing program\n", 18 [pid 5843] <... symlink resumed>) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5846] setpgid(0, 0 [pid 5845] setpgid(0, 0 [pid 5844] <... write resumed>) = 18 [pid 5846] <... setpgid resumed>) = 0 [pid 5846] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5844] memfd_create("syzkaller", 0 [pid 5845] <... setpgid resumed>) = 0 [pid 5843] write(1, "executing program\n", 18 [pid 5845] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5843] <... write resumed>) = 18 ./strace-static-x86_64: Process 5847 attached [pid 5845] <... openat resumed>) = 3 [pid 5847] set_robust_list(0x5555901c6760, 24 [pid 5845] write(3, "1000", 4 [pid 5843] memfd_create("syzkaller", 0 [pid 5847] <... set_robust_list resumed>) = 0 [pid 5845] <... write resumed>) = 4 [pid 5845] close(3 [pid 5847] chdir("./0" [pid 5845] <... close resumed>) = 0 [pid 5841] <... clone resumed>, child_tidptr=0x5555901c6750) = 5847 [pid 5845] symlink("/dev/binderfs", "./binderfs" [pid 5843] <... memfd_create resumed>) = 3 [pid 5845] <... symlink resumed>) = 0 [pid 5847] <... chdir resumed>) = 0 [pid 5843] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5847] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5846] <... openat resumed>) = 3 [pid 5845] write(1, "executing program\n", 18 [pid 5844] <... memfd_create resumed>) = 3 [pid 5843] <... mmap resumed>) = 0x7fbbeb93a000 executing program [pid 5847] <... prctl resumed>) = 0 [pid 5846] write(3, "1000", 4 [pid 5845] <... write resumed>) = 18 [pid 5844] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5846] <... write resumed>) = 4 [pid 5847] setpgid(0, 0) = 0 [pid 5844] <... mmap resumed>) = 0x7fbbeb93a000 [pid 5847] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5846] close(3 [pid 5845] memfd_create("syzkaller", 0 [pid 5846] <... close resumed>) = 0 [pid 5847] <... openat resumed>) = 3 [pid 5846] symlink("/dev/binderfs", "./binderfs" [pid 5845] <... memfd_create resumed>) = 3 [pid 5846] <... symlink resumed>) = 0 [pid 5845] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 5847] write(3, "1000", 4) = 4 [pid 5847] close(3) = 0 [pid 5847] symlink("/dev/binderfs", "./binderfs" [pid 5846] write(1, "executing program\n", 18executing program [pid 5847] <... symlink resumed>) = 0 [pid 5846] <... write resumed>) = 18 [pid 5846] memfd_create("syzkaller", 0 [pid 5847] write(1, "executing program\n", 18) = 18 [pid 5846] <... memfd_create resumed>) = 3 executing program [pid 5847] memfd_create("syzkaller", 0 [pid 5846] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5847] <... memfd_create resumed>) = 3 [pid 5846] <... mmap resumed>) = 0x7fbbeb93a000 [pid 5847] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 5844] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5843] 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 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 5843] <... write resumed>) = 16777216 [pid 5843] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5843] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5843] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5843] close(3) = 0 [pid 5843] close(4) = 0 [pid 5843] mkdir("./file1", 0777) = 0 [pid 5843] mount("/dev/loop0", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5844] <... write resumed>) = 16777216 [pid 5844] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5844] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [ 72.542042][ T5843] loop0: detected capacity change from 0 to 32768 [pid 5844] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5844] close(3) = 0 [pid 5844] close(4) = 0 [pid 5844] mkdir("./file1", 0777) = 0 [pid 5844] mount("/dev/loop1", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5846] <... write resumed>) = 16777216 [pid 5846] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5847] <... write resumed>) = 16777216 [pid 5846] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5845] <... write resumed>) = 16777216 [pid 5847] munmap(0x7fbbeb93a000, 138412032 [pid 5846] <... openat resumed>) = 4 [pid 5847] <... munmap resumed>) = 0 [pid 5846] ioctl(4, LOOP_SET_FD, 3 [pid 5845] munmap(0x7fbbeb93a000, 138412032 [pid 5847] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5845] <... munmap resumed>) = 0 [pid 5847] <... openat resumed>) = 4 [ 72.609958][ T5844] loop1: detected capacity change from 0 to 32768 [pid 5847] ioctl(4, LOOP_SET_FD, 3 [pid 5846] <... ioctl resumed>) = 0 [pid 5847] <... ioctl resumed>) = 0 [pid 5846] close(3 [pid 5847] close(3 [pid 5845] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5847] <... close resumed>) = 0 [pid 5847] close(4) = 0 [pid 5846] <... close resumed>) = 0 [pid 5845] <... openat resumed>) = 4 [pid 5845] ioctl(4, LOOP_SET_FD, 3 [pid 5847] mkdir("./file1", 0777 [pid 5846] close(4) = 0 [pid 5846] mkdir("./file1", 0777 [pid 5847] <... mkdir resumed>) = 0 [pid 5846] <... mkdir resumed>) = 0 [pid 5846] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5847] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5845] <... ioctl resumed>) = 0 [pid 5845] close(3) = 0 [pid 5845] close(4) = 0 [pid 5845] mkdir("./file1", 0777) = 0 [ 72.675968][ T5846] loop3: detected capacity change from 0 to 32768 [ 72.686969][ T5847] loop4: detected capacity change from 0 to 32768 [ 72.701741][ T5845] loop2: detected capacity change from 0 to 32768 [ 72.886064][ T5843] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 72.886087][ T5843] allowing incompatible features above 0.0: (unknown version) [ 72.886098][ T5843] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 72.886123][ T5843] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 72.933135][ T5844] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 72.933157][ T5844] allowing incompatible features above 0.0: (unknown version) [ 72.933168][ T5844] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 72.933191][ T5844] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 72.933368][ T5844] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 72.933602][ T5844] bcachefs (loop1): Version upgrade required: [ 72.933602][ T5844] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 72.933602][ T5844] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 72.933602][ T5844] 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,check_rebalance_work,set_fs_needs_rebalance [ 72.952956][ T5846] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 72.952981][ T5846] allowing incompatible features above 0.0: (unknown version) [ 72.952993][ T5846] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 72.953019][ T5846] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 72.953144][ T5846] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 72.953380][ T5846] bcachefs (loop3): Version upgrade required: [ 72.953380][ T5846] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 72.953380][ T5846] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 72.953380][ T5846] 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,check_rebalance_work,set_fs_needs_rebalance [ 72.970136][ T5847] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 72.970162][ T5847] allowing incompatible features above 0.0: (unknown version) [ 72.970174][ T5847] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 72.970200][ T5847] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 72.970325][ T5847] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 72.970561][ T5847] bcachefs (loop4): Version upgrade required: [ 72.970561][ T5847] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 72.970561][ T5847] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 72.970561][ 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,check_rebalance_work,set_fs_needs_rebalance [ 72.971013][ T5843] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 72.971243][ T5843] bcachefs (loop0): Version upgrade required: [ 72.971243][ T5843] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 72.971243][ T5843] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 72.971243][ T5843] 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,check_rebalance_work,set_fs_needs_rebalance [ 73.125867][ T5844] bcachefs (loop1): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 73.125890][ T5844] size != 0, deleting [ 73.128665][ T5847] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 73.128685][ T5847] size != 0, deleting [ 73.137139][ T5847] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 73.137624][ T5844] bcachefs (loop1): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 73.139719][ T5846] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 73.139739][ T5846] size != 0, deleting [ 73.150797][ T5843] bcachefs (loop0): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 73.150820][ T5843] size != 0, deleting [ 73.156855][ T5846] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 73.157676][ T5844] bcachefs (loop1): check_topology... [ 73.159661][ T5847] bcachefs (loop4): check_topology... [ 73.168379][ T5843] bcachefs (loop0): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 73.189643][ T5846] bcachefs (loop3): check_topology... [ 73.201402][ T5847] done [ 73.201437][ T5847] bcachefs (loop4): accounting_read... [ 73.201827][ T5846] done [ 73.201839][ T5846] bcachefs (loop3): accounting_read... [ 73.204269][ T5843] bcachefs (loop0): check_topology... [ 73.205416][ T5844] done [ 73.205431][ T5844] bcachefs (loop1): accounting_read... [ 73.205848][ T5843] done [ 73.205860][ T5843] bcachefs (loop0): accounting_read... done [ 73.262571][ T5843] bcachefs (loop0): alloc_read... [ 73.263826][ T5847] done [ 73.263840][ T5847] bcachefs (loop4): alloc_read... [ 73.264348][ T5846] done [ 73.264362][ T5846] bcachefs (loop3): alloc_read... [ 73.264971][ T5844] done [ 73.264984][ T5844] bcachefs (loop1): alloc_read... done [ 73.266495][ T5844] bcachefs (loop1): snapshots_read... [ 73.267228][ T5847] done [ 73.267242][ T5847] bcachefs (loop4): snapshots_read... [ 73.268281][ T5846] done [ 73.268299][ T5846] bcachefs (loop3): snapshots_read... [ 73.268726][ T5847] done [ 73.268739][ T5847] bcachefs (loop4): check_allocations... [ 73.276836][ T5844] done [ 73.276852][ T5844] bcachefs (loop1): check_allocations... [ 73.278568][ T5843] done [ 73.278582][ T5843] bcachefs (loop0): snapshots_read... [ 73.279046][ T5846] done [ 73.279056][ T5846] bcachefs (loop3): check_allocations... [ 73.281499][ T5843] done [ 73.281513][ T5843] bcachefs (loop0): check_allocations... [ 73.284831][ T5844] bcachefs (loop1): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 73.284848][ T5844] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 73.290896][ T5847] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 73.290913][ T5847] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 73.292964][ T5843] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 73.292979][ T5843] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 73.294828][ T5846] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 73.294842][ T5846] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 73.297025][ T5844] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 73.297039][ T5844] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 73.313202][ T5847] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 73.313224][ T5847] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 73.314414][ T5846] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 73.314429][ T5846] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 73.315498][ T5844] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 73.315513][ T5844] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 73.319705][ T5843] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 73.319723][ T5843] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 73.321275][ T5847] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 73.321289][ T5847] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 73.322600][ T5846] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 73.322614][ T5846] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 73.324881][ T5844] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 73.324897][ T5844] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 73.328058][ T5843] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 73.328074][ T5843] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 73.334402][ T5846] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 73.334420][ T5846] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 73.337076][ T5847] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 73.337093][ T5847] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 73.361449][ T5843] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 73.361468][ T5843] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 73.362941][ T5844] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 73.362957][ T5844] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 73.364025][ T5844] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.364196][ T5844] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.364897][ T5844] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.365003][ T5844] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.365416][ T5844] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.365515][ T5844] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.365749][ T5844] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.365849][ T5844] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.366041][ T5844] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.366160][ T5844] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.366362][ T5844] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.366466][ T5844] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.366678][ T5844] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.366783][ T5844] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.367004][ T5844] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.367103][ T5844] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 73.367320][ T5844] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.367423][ T5844] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.367634][ T5844] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.367737][ T5844] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.367966][ T5844] bcachefs (loop1): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.367981][ T5844] Ratelimiting new instances of previous error [ 73.368160][ T5844] bcachefs (loop1): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.368176][ T5844] Ratelimiting new instances of previous error [ 73.371146][ T5846] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 73.371163][ T5846] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 73.372136][ T5846] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.372258][ T5846] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.372795][ T5846] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.372899][ T5846] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.373356][ T5846] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.373460][ T5846] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.373703][ T5846] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.373808][ T5846] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.374003][ T5846] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.374106][ T5846] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.374303][ T5846] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.374406][ T5846] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.374628][ T5846] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.374734][ T5846] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.374931][ T5846] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.375036][ T5846] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 73.375234][ T5846] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.375339][ T5846] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.375536][ T5846] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.375666][ T5846] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.375901][ T5846] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.375915][ T5846] Ratelimiting new instances of previous error [ 73.376041][ T5846] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.376057][ T5846] Ratelimiting new instances of previous error [ 73.394920][ T5843] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 73.394939][ T5843] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 73.395984][ T5843] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5845] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5844] <... mount resumed>) = 0 [ 73.396112][ T5843] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.396676][ T5843] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.396782][ T5843] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.397195][ T5843] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.397310][ T5843] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5843] <... mount resumed>) = 0 [pid 5846] <... mount resumed>) = 0 [pid 5844] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5843] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5846] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5843] <... openat resumed>) = 3 [pid 5846] <... openat resumed>) = 3 [pid 5844] chdir("./file1" [pid 5843] chdir("./file1" [pid 5846] chdir("./file1" [pid 5844] <... chdir resumed>) = 0 [pid 5843] <... chdir resumed>) = 0 [pid 5846] <... chdir resumed>) = 0 [pid 5843] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5844] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5846] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5844] <... openat resumed>) = 4 [pid 5843] <... openat resumed>) = 4 [pid 5846] <... openat resumed>) = 4 [pid 5846] ioctl(4, LOOP_CLR_FD [pid 5843] ioctl(4, LOOP_CLR_FD [pid 5846] <... ioctl resumed>) = 0 [pid 5844] ioctl(4, LOOP_CLR_FD [pid 5843] <... ioctl resumed>) = 0 [pid 5846] close(4 [pid 5844] <... ioctl resumed>) = 0 [pid 5843] close(4 [pid 5846] <... close resumed>) = 0 [pid 5844] close(4 [pid 5843] <... close resumed>) = 0 [pid 5846] write(-1, NULL, 0 [pid 5844] <... close resumed>) = 0 [pid 5843] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5846] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5843] exit_group(0 [pid 5846] exit_group(0 [pid 5844] write(-1, NULL, 0 [pid 5843] <... exit_group resumed>) = ? [pid 5846] <... exit_group resumed>) = ? [pid 5844] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5846] +++ exited with 0 +++ [ 73.397510][ T5843] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.397627][ T5843] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.397843][ T5843] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.397947][ T5843] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.398145][ T5843] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5844] exit_group(0) = ? [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5846, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5840] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5843] +++ exited with 0 +++ [pid 5840] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5837] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5843, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=37 /* 0.37 s */} --- [pid 5844] +++ exited with 0 +++ [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5837] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5844, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=35 /* 0.35 s */} --- [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5838] restart_syscall(<... resuming interrupted clone ...> [pid 5840] getdents64(3, [pid 5837] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5837] newfstatat(3, "", [pid 5840] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5837] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5837] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5837] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] <... restart_syscall resumed>) = 0 [pid 5838] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5838] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 73.398248][ T5843] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.398477][ T5843] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.398590][ T5843] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.398792][ T5843] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.398894][ T5843] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 73.399108][ T5843] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.399211][ T5843] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.399665][ T5847] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 73.399681][ T5847] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 73.400788][ T5847] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.400930][ T5847] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.401544][ T5847] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.401653][ T5847] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.402082][ T5847] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.402186][ T5847] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.402386][ T5847] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.402508][ T5847] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.402713][ T5847] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.402808][ T5847] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.403054][ T5847] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.430052][ T5847] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.430271][ T5847] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.430371][ T5847] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.430660][ T5847] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.430759][ T5847] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 73.430981][ T5847] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.431086][ T5847] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.431306][ T5847] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.431409][ T5847] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.434292][ T5843] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.434405][ T5843] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.434642][ T5843] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.434657][ T5843] Ratelimiting new instances of previous error [pid 5838] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5845] <... mount resumed>) = 0 [pid 5845] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5845] chdir("./file1") = 0 [pid 5845] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5845] ioctl(4, LOOP_CLR_FD) = 0 [ 73.434782][ T5843] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.434797][ T5843] Ratelimiting new instances of previous error [ 73.450179][ T5847] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.450199][ T5847] Ratelimiting new instances of previous error [pid 5845] close(4) = 0 [pid 5845] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5845] exit_group(0) = ? [pid 5845] +++ exited with 0 +++ [ 73.450347][ T5847] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.450602][ T5847] Ratelimiting new instances of previous error [ 73.497867][ T5845] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 73.497892][ T5845] allowing incompatible features above 0.0: (unknown version) [ 73.497904][ T5845] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5845, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=31 /* 0.31 s */} --- [pid 5839] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 73.497930][ T5845] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 73.498054][ T5845] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 73.498287][ T5845] bcachefs (loop2): Version upgrade required: [ 73.498287][ T5845] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 73.498287][ T5845] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5847] <... mount resumed>) = 0 [pid 5847] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 73.498287][ T5845] 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,check_rebalance_work,set_fs_needs_rebalance [ 73.499410][ T5844] done [ 73.502222][ T5846] done [ 73.505533][ T5844] bcachefs (loop1): going read-write [pid 5847] chdir("./file1") = 0 [pid 5847] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5847] ioctl(4, LOOP_CLR_FD) = 0 [ 73.515508][ T5846] bcachefs (loop3): going read-write [ 73.539860][ T5844] bcachefs (loop1): journal_replay... [ 73.540416][ T5843] done [ 73.541567][ T5846] bcachefs (loop3): journal_replay... [ 73.549719][ T5843] bcachefs (loop0): going read-write [ 73.550560][ T5847] done [ 73.573319][ T5847] bcachefs (loop4): going read-write [ 73.593556][ T5843] bcachefs (loop0): journal_replay... [ 73.652728][ T5847] bcachefs (loop4): journal_replay... [pid 5847] close(4) = 0 [pid 5847] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5847] exit_group(0) = ? [pid 5847] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5847, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=41 /* 0.41 s */} --- [pid 5841] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 73.707293][ T5845] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 73.707318][ T5845] size != 0, deleting [ 73.709027][ T5845] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 73.726158][ T5844] done [ 73.726767][ T5844] bcachefs (loop1): check_alloc_info... [ 73.736759][ T5845] bcachefs (loop2): check_topology... [ 73.740789][ T5846] done [ 73.741375][ T5846] bcachefs (loop3): check_alloc_info... [ 73.746085][ T5846] bcachefs (loop3): bucket incorrectly unset in need_discard btree [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 73.746104][ T5846] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 73.746114][ T5846] gen 0 oldest_gen 0 data_type need_discard [ 73.746125][ T5846] journal_seq_nonempty 6 [ 73.746134][ T5846] journal_seq_empty 0 [ 73.746142][ T5846] need_discard 1 [ 73.746151][ T5846] need_inc_gen 1 [ 73.746160][ T5846] dirty_sectors 0 [ 73.746170][ T5846] stripe_sectors 0 [ 73.746179][ T5846] cached_sectors 0 [ 73.746188][ T5846] stripe 0 [ 73.746197][ T5846] stripe_redundancy 0 [ 73.746206][ T5846] io_time[READ] 1 [ 73.746215][ T5846] io_time[WRITE] 768 [ 73.746224][ T5846] fragmentation 0 [ 73.746232][ T5846] bp_start 8 [ 73.746241][ T5846] , fixing [ 73.752573][ T5844] bcachefs (loop1): bucket incorrectly unset in need_discard btree [ 73.752592][ T5844] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 73.752602][ T5844] gen 0 oldest_gen 0 data_type need_discard [ 73.752612][ T5844] journal_seq_nonempty 6 [ 73.752622][ T5844] journal_seq_empty 0 [ 73.752631][ T5844] need_discard 1 [ 73.752640][ T5844] need_inc_gen 1 [ 73.752649][ T5844] dirty_sectors 0 [ 73.752669][ T5844] stripe_sectors 0 [ 73.752679][ T5844] cached_sectors 0 [ 73.752688][ T5844] stripe 0 [ 73.752697][ T5844] stripe_redundancy 0 [ 73.752706][ T5844] io_time[READ] 1 [ 73.752715][ T5844] io_time[WRITE] 768 [ 73.752724][ T5844] fragmentation 0 [ 73.752732][ T5844] bp_start 8 [ 73.752741][ T5844] , fixing [ 73.762805][ T5845] done [ 73.762822][ T5845] bcachefs (loop2): accounting_read... [ 73.762878][ T5843] done [ 73.764826][ T5843] bcachefs (loop0): check_alloc_info... [ 73.766677][ T5843] bcachefs (loop0): bucket incorrectly unset in need_discard btree [ 73.766694][ T5843] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 73.766705][ T5843] gen 0 oldest_gen 0 data_type need_discard [ 73.766715][ T5843] journal_seq_nonempty 6 [ 73.766724][ T5843] journal_seq_empty 0 [ 73.766733][ T5843] need_discard 1 [ 73.766742][ T5843] need_inc_gen 1 [ 73.766751][ T5843] dirty_sectors 0 [ 73.766760][ T5843] stripe_sectors 0 [ 73.766773][ T5843] cached_sectors 0 [ 73.766782][ T5843] stripe 0 [ 73.766791][ T5843] stripe_redundancy 0 [ 73.766800][ T5843] io_time[READ] 1 [ 73.766809][ T5843] io_time[WRITE] 768 [ 73.766818][ T5843] fragmentation 0 [ 73.766827][ T5843] bp_start 8 [ 73.766836][ T5843] , fixing [ 73.810136][ T5846] done [ 73.814030][ T5846] bcachefs (loop3): check_lrus... [ 73.818715][ T5845] done [ 73.818734][ T5845] bcachefs (loop2): alloc_read... [ 73.822099][ T5847] done [ 73.822600][ T5845] done [ 73.822612][ T5845] bcachefs (loop2): snapshots_read... [ 73.823585][ T5846] done [ 73.823976][ T5847] bcachefs (loop4): check_alloc_info... [ 73.825776][ T5847] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 73.825792][ T5847] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 73.825803][ T5847] gen 0 oldest_gen 0 data_type need_discard [ 73.825813][ T5847] journal_seq_nonempty 6 [ 73.825822][ T5847] journal_seq_empty 0 [ 73.825831][ T5847] need_discard 1 [ 73.825840][ T5847] need_inc_gen 1 [ 73.825849][ T5847] dirty_sectors 0 [ 73.825858][ T5847] stripe_sectors 0 [ 73.825867][ T5847] cached_sectors 0 [ 73.825876][ T5847] stripe 0 [ 73.825885][ T5847] stripe_redundancy 0 [ 73.825894][ T5847] io_time[READ] 1 [ 73.825903][ T5847] io_time[WRITE] 768 [ 73.825912][ T5847] fragmentation 0 [ 73.825922][ T5847] bp_start 8 [ 73.825931][ T5847] , fixing [ 73.831841][ T5845] done [ 73.831856][ T5845] bcachefs (loop2): check_allocations... [ 73.834110][ T5845] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 73.834128][ T5845] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 73.844729][ T5846] bcachefs (loop3): check_btree_backpointers... [ 73.847852][ T5845] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 73.847870][ T5845] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 73.848851][ T5846] done [ 73.848865][ T5846] bcachefs (loop3): check_backpointers_to_extents... [ 73.851924][ T5844] done [ 73.852540][ T5844] bcachefs (loop1): check_lrus... [ 73.857656][ T5845] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 73.857674][ T5845] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 73.858894][ T5844] done [ 73.858909][ T5844] bcachefs (loop1): check_btree_backpointers... [ 73.863006][ T5846] done [ 73.863558][ T5846] bcachefs (loop3): check_extents_to_backpointers... [ 73.864938][ T5846] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 73.870547][ T5843] done [ 73.871629][ T5843] bcachefs (loop0): check_lrus... [ 73.877876][ T5844] done [ 73.877892][ T5844] bcachefs (loop1): check_backpointers_to_extents... [ 73.879624][ T5845] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 73.879643][ T5845] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 73.884190][ T5843] done [ 73.884204][ T5843] bcachefs (loop0): check_btree_backpointers... [ 73.885929][ T5846] done [ 73.886872][ T5846] bcachefs (loop3): check_alloc_to_lru_refs... [ 73.888885][ T5846] bcachefs (loop3): missing fragmentation lru entry [ 73.888917][ T5846] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 73.888929][ T5846] gen 0 oldest_gen 0 data_type user [ 73.888938][ T5846] journal_seq_nonempty 5 [ 73.888947][ T5846] journal_seq_empty 134217728 [ 73.888957][ T5846] need_discard 1 [ 73.888966][ T5846] need_inc_gen 1 [ 73.888975][ T5846] dirty_sectors 16 [ 73.888984][ T5846] stripe_sectors 1802251 [ 73.888994][ T5846] cached_sectors 0 [ 73.889003][ T5846] stripe 0 [ 73.889012][ T5846] stripe_redundancy 0 [ 73.889021][ T5846] io_time[READ] 1 [ 73.889030][ T5846] io_time[WRITE] 512 [ 73.889039][ T5846] fragmentation 0 [ 73.889048][ T5846] bp_start 7 [ 73.889056][ T5846] , fixing [ 73.890110][ T5844] done [ 73.891173][ T5845] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 73.891189][ T5845] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 73.892309][ T5845] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.892431][ T5845] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.892988][ T5845] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.893091][ T5845] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.893527][ T5845] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.893650][ T5845] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.893849][ T5845] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.893953][ T5845] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.894450][ T5844] bcachefs (loop1): check_extents_to_backpointers... [ 73.895777][ T5844] bcachefs (loop1): scanning for missing backpointers in 5/128 buckets [ 73.904783][ T5843] done [ 73.904799][ T5843] bcachefs (loop0): check_backpointers_to_extents... [ 73.908487][ T5844] done [ 73.910940][ T5844] bcachefs (loop1): check_alloc_to_lru_refs... [ 73.912511][ T5844] bcachefs (loop1): missing fragmentation lru entry [pid 5841] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = 0 [pid 5838] <... umount2 resumed>) = 0 [pid 5840] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] newfstatat(AT_FDCWD, "./0/file1", [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5838] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] newfstatat(AT_FDCWD, "./0/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 73.912527][ T5844] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 73.912537][ T5844] gen 0 oldest_gen 0 data_type user [ 73.912549][ T5844] journal_seq_nonempty 5 [ 73.912558][ T5844] journal_seq_empty 134217728 [ 73.912568][ T5844] need_discard 1 [ 73.912577][ T5844] need_inc_gen 1 [ 73.912586][ T5844] dirty_sectors 16 [ 73.912596][ T5844] stripe_sectors 1802251 [ 73.912606][ T5844] cached_sectors 0 [ 73.912615][ T5844] stripe 0 [ 73.912624][ T5844] stripe_redundancy 0 [pid 5838] newfstatat(4, "", [pid 5840] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(4, [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, [pid 5838] <... getdents64 resumed>0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5838] getdents64(4, [pid 5840] close(4 [pid 5838] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] <... close resumed>) = 0 [pid 5838] close(4 [pid 5840] rmdir("./0/file1" [pid 5838] <... close resumed>) = 0 [pid 5840] <... rmdir resumed>) = 0 [pid 5838] rmdir("./0/file1" [pid 5837] <... umount2 resumed>) = 0 [pid 5838] <... rmdir resumed>) = 0 [pid 5838] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5840] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5838] unlink("./0/binderfs" [pid 5840] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5838] <... unlink resumed>) = 0 [pid 5840] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] getdents64(3, [pid 5840] unlink("./0/binderfs" [pid 5838] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] <... unlink resumed>) = 0 [pid 5838] close(3 [pid 5840] getdents64(3, [pid 5838] <... close resumed>) = 0 [pid 5840] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5838] rmdir("./0" [pid 5840] close(3 [pid 5838] <... rmdir resumed>) = 0 [pid 5840] <... close resumed>) = 0 [pid 5838] mkdir("./1", 0777 [pid 5840] rmdir("./0" [pid 5838] <... mkdir resumed>) = 0 [pid 5840] <... rmdir resumed>) = 0 [pid 5838] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5837] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] mkdir("./1", 0777 [pid 5838] <... openat resumed>) = 3 [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] <... mkdir resumed>) = 0 [pid 5838] ioctl(3, LOOP_CLR_FD [ 73.912633][ T5844] io_time[READ] 1 [ 73.912642][ T5844] io_time[WRITE] 512 [ 73.912651][ T5844] fragmentation 0 [ 73.912660][ T5844] bp_start 7 [ 73.912668][ T5844] , fixing [ 73.914073][ T5845] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.914198][ T5845] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5837] newfstatat(AT_FDCWD, "./0/file1", [pid 5838] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5837] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5838] close(3 [pid 5837] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... openat resumed>) = 3 [pid 5838] <... close resumed>) = 0 [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5837] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5840] close(3 [pid 5837] <... openat resumed>) = 4 [pid 5838] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5840] <... close resumed>) = 0 [pid 5837] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5837] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5837] getdents64(4, [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5837] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5837] close(4) = 0 [pid 5837] rmdir("./0/file1"./strace-static-x86_64: Process 5907 attached ) = 0 [pid 5837] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5837] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5838] <... clone resumed>, child_tidptr=0x5555901c6750) = 5907 [pid 5837] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5837] unlink("./0/binderfs" [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 5908 [pid 5837] <... unlink resumed>) = 0 ./strace-static-x86_64: Process 5908 attached [pid 5907] set_robust_list(0x5555901c6760, 24 [pid 5837] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5837] close(3) = 0 [pid 5837] rmdir("./0") = 0 [pid 5837] mkdir("./1", 0777) = 0 [pid 5837] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5837] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5837] close(3 [pid 5908] set_robust_list(0x5555901c6760, 24 [pid 5837] <... close resumed>) = 0 [pid 5908] <... set_robust_list resumed>) = 0 [pid 5837] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5908] chdir("./1") = 0 [pid 5908] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5837] <... clone resumed>, child_tidptr=0x5555901c6750) = 5909 [pid 5908] <... prctl resumed>) = 0 [pid 5908] setpgid(0, 0) = 0 [pid 5908] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC./strace-static-x86_64: Process 5909 attached ) = 3 [ 73.914518][ T5845] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.914622][ T5845] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.914850][ T5845] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 73.914974][ T5845] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 73.915175][ T5845] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5907] <... set_robust_list resumed>) = 0 [pid 5908] write(3, "1000", 4 [pid 5907] chdir("./1" [pid 5908] <... write resumed>) = 4 [pid 5908] close(3) = 0 [pid 5908] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5909] set_robust_list(0x5555901c6760, 24 [pid 5908] write(1, "executing program\n", 18 [pid 5909] <... set_robust_list resumed>) = 0 [pid 5909] chdir("./1" [pid 5908] <... write resumed>) = 18 [pid 5908] memfd_create("syzkaller", 0) = 3 [pid 5909] <... chdir resumed>) = 0 [pid 5908] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5909] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5908] <... mmap resumed>) = 0x7fbbeb93a000 [pid 5909] <... prctl resumed>) = 0 [pid 5909] setpgid(0, 0) = 0 [pid 5909] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 73.915278][ T5845] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 73.915481][ T5845] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.915592][ T5845] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.915791][ T5845] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.915914][ T5845] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5907] <... chdir resumed>) = 0 [pid 5909] write(3, "1000", 4 [pid 5907] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5909] <... write resumed>) = 4 [pid 5909] close(3) = 0 [pid 5909] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5907] setpgid(0, 0 [pid 5909] write(1, "executing program\n", 18 [pid 5907] <... setpgid resumed>) = 0 [pid 5909] <... write resumed>) = 18 [pid 5907] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5909] memfd_create("syzkaller", 0) = 3 [ 73.916140][ T5845] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 73.916155][ T5845] Ratelimiting new instances of previous error [ 73.916282][ T5845] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 73.916297][ T5845] Ratelimiting new instances of previous error [ 73.926866][ T5843] done [ 73.927828][ T5843] bcachefs (loop0): check_extents_to_backpointers... [pid 5909] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 5907] <... openat resumed>) = 3 [pid 5907] write(3, "1000", 4) = 4 [pid 5907] close(3) = 0 [pid 5907] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 5907] write(1, "executing program\n", 18) = 18 [ 73.929201][ T5843] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 73.929528][ T5847] done [ 73.931280][ T5847] bcachefs (loop4): check_lrus... done [ 73.938457][ T5844] done [ 73.940737][ T5846] done [ 73.941394][ T5843] done [ 73.942350][ T5843] bcachefs (loop0): check_alloc_to_lru_refs... [ 73.943882][ T5843] bcachefs (loop0): missing fragmentation lru entry [ 73.943898][ T5843] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 73.943908][ T5843] gen 0 oldest_gen 0 data_type user [ 73.943917][ T5843] journal_seq_nonempty 5 [pid 5907] memfd_create("syzkaller", 0) = 3 [pid 5907] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 73.943927][ T5843] journal_seq_empty 134217728 [ 73.943936][ T5843] need_discard 1 [ 73.943945][ T5843] need_inc_gen 1 [ 73.943954][ T5843] dirty_sectors 16 [ 73.943963][ T5843] stripe_sectors 1802251 [ 73.943973][ T5843] cached_sectors 0 [ 73.943982][ T5843] stripe 0 [ 73.943991][ T5843] stripe_redundancy 0 [ 73.944000][ T5843] io_time[READ] 1 [ 73.944009][ T5843] io_time[WRITE] 512 [ 73.944018][ T5843] fragmentation 0 [ 73.944026][ T5843] bp_start 7 [ 73.944035][ T5843] , fixing [ 73.948878][ T5846] bcachefs (loop3): bucket_gens_init... done [ 73.968970][ T5843] done [ 73.969819][ T5846] bcachefs (loop3): check_snapshot_trees... [ 73.972580][ T5844] bcachefs (loop1): bucket_gens_init... [ 73.973754][ T5846] done [ 73.973768][ T5846] bcachefs (loop3): check_snapshots... [ 73.974518][ T5846] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 73.974534][ T5846] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 73.980895][ T5844] done [ 73.981467][ T5844] bcachefs (loop1): check_snapshot_trees... done [ 73.982221][ T5844] bcachefs (loop1): check_snapshots... [ 73.982800][ T5844] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 73.982814][ T5844] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 73.989944][ T5847] bcachefs (loop4): check_btree_backpointers... done [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./0/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 74.000392][ T5847] bcachefs (loop4): check_backpointers_to_extents... [ 74.002154][ T5845] done [ 74.009088][ T5843] bcachefs (loop0): bucket_gens_init... [ 74.012052][ T5845] bcachefs (loop2): going read-write [ 74.013212][ T5847] done [ 74.014607][ T5843] done [ 74.015137][ T5847] bcachefs (loop4): check_extents_to_backpointers... [ 74.016855][ T5847] bcachefs (loop4): scanning for missing backpointers in 6/128 buckets [ 74.018516][ T5843] bcachefs (loop0): check_snapshot_trees... done [pid 5839] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./0/file1") = 0 [pid 5839] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./0/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./0") = 0 [pid 5839] mkdir("./1", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 74.023406][ T5843] bcachefs (loop0): check_snapshots... [ 74.023996][ T5843] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 74.024011][ T5843] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 74.036824][ T5846] done [ 74.037838][ T5844] done [ 74.040519][ T5844] bcachefs (loop1): check_subvols... [ 74.041397][ T5846] bcachefs (loop3): check_subvols... [ 74.042641][ T5847] done [ 74.043768][ T5847] bcachefs (loop4): check_alloc_to_lru_refs... [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5910 attached , child_tidptr=0x5555901c6750) = 5910 [pid 5910] set_robust_list(0x5555901c6760, 24) = 0 [ 74.045688][ T5847] bcachefs (loop4): missing fragmentation lru entry [ 74.045704][ T5847] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 74.045714][ T5847] gen 0 oldest_gen 0 data_type user [ 74.045724][ T5847] journal_seq_nonempty 5 [ 74.045733][ T5847] journal_seq_empty 134217728 [ 74.045743][ T5847] need_discard 1 [ 74.045752][ T5847] need_inc_gen 1 [ 74.045761][ T5847] dirty_sectors 16 [ 74.045770][ T5847] stripe_sectors 1802251 [pid 5910] chdir("./1") = 0 [pid 5910] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 74.045780][ T5847] cached_sectors 0 [ 74.045789][ T5847] stripe 0 [ 74.045798][ T5847] stripe_redundancy 0 [ 74.045807][ T5847] io_time[READ] 1 [ 74.045815][ T5847] io_time[WRITE] 512 [ 74.045825][ T5847] fragmentation 0 [ 74.045833][ T5847] bp_start 7 [ 74.045841][ T5847] , fixing [ 74.051250][ T5845] bcachefs (loop2): journal_replay... [ 74.054180][ T5846] done [ 74.055041][ T5844] done [ 74.056020][ T5847] done [pid 5910] setpgid(0, 0) = 0 [pid 5910] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 74.067026][ T5847] bcachefs (loop4): bucket_gens_init... done [ 74.071592][ T5847] bcachefs (loop4): check_snapshot_trees... done [ 74.074590][ T5847] bcachefs (loop4): check_snapshots... [ 74.075196][ T5847] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 74.075212][ T5847] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 74.083999][ T5843] done [ 74.084242][ T5846] bcachefs (loop3): check_subvol_children... [ 74.084760][ T5844] bcachefs (loop1): check_subvol_children... done [pid 5910] write(3, "1000", 4) = 4 [pid 5910] close(3) = 0 [pid 5910] symlink("/dev/binderfs", "./binderfs") = 0 [ 74.090171][ T5844] bcachefs (loop1): delete_dead_snapshots... [ 74.091886][ T5846] done [ 74.091900][ T5846] bcachefs (loop3): delete_dead_snapshots... done [ 74.093128][ T5846] bcachefs (loop3): check_inodes... [ 74.094363][ T5846] bcachefs (loop3): inode points to missing dirent [ 74.094379][ T5846] inum: 4098:4294967295 [ 74.094388][ T5846] mode=40755 [ 74.094395][ T5846] flags=(15300000) [ 74.094404][ T5846] journal_seq=4 [ 74.094410][ T5846] hash_seed=ece93825deac2443 [pid 5910] write(1, "executing program\n", 18executing program ) = 18 [ 74.094418][ T5846] hash_type=siphash [ 74.094426][ T5846] bi_size=0 [ 74.094435][ T5846] bi_sectors=0 [ 74.094443][ T5846] bi_version=0 [ 74.094452][ T5846] bi_atime=2770562249 [ 74.094461][ T5846] bi_ctime=2780562352 [ 74.094470][ T5846] bi_mtime=2780562352 [ 74.094488][ T5846] bi_otime=2770562249 [ 74.094497][ T5846] bi_uid=0 [ 74.094504][ T5846] bi_gid=0 [ 74.094512][ T5846] bi_nlink=0 [ 74.094520][ T5846] bi_generation=0 [ 74.094529][ T5846] bi_dev=0 [pid 5910] memfd_create("syzkaller", 0 [ 74.094535][ T5846] bi_data_checksum=0 [ 74.094542][ T5846] bi_compression=0 [ 74.094551][ T5846] bi_project=0 [ 74.094559][ T5846] bi_background_compression=0 [ 74.094569][ T5846] bi_data_replicas=0 [ 74.094577][ T5846] bi_promote_target=0 [ 74.094586][ T5846] bi_foreground_target=64 [ 74.094595][ T5846] bi_background_target=1 [ 74.094604][ T5846] bi_erasure_code=0 [ 74.094613][ T5846] bi_fields_set=0 [ 74.094622][ T5846] bi_dir=0 [ 74.094630][ T5846] bi_dir_offset=32 [pid 5908] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5910] <... memfd_create resumed>) = 3 [pid 5909] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5910] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 74.094637][ T5846] bi_subvol=0 [ 74.094645][ T5846] bi_parent_subvol=0 [ 74.094654][ T5846] bi_nocow=0 [ 74.094662][ T5846] bi_depth=0 [ 74.094671][ T5846] bi_inodes_32bit=0 [ 74.094679][ T5846] bi_casefold=0, fixing [ 74.099418][ T5844] done [ 74.099432][ T5844] bcachefs (loop1): check_inodes... [ 74.100666][ T5844] bcachefs (loop1): inode points to missing dirent [ 74.100682][ T5844] inum: 4098:4294967295 [ 74.100692][ T5844] mode=40755 [ 74.100700][ T5844] flags=(15300000) [ 74.100709][ T5844] journal_seq=4 [ 74.100718][ T5844] hash_seed=ece93825deac2443 [ 74.100727][ T5844] hash_type=siphash [ 74.100735][ T5844] bi_size=0 [ 74.100743][ T5844] bi_sectors=0 [ 74.100751][ T5844] bi_version=0 [ 74.100760][ T5844] bi_atime=2770562249 [ 74.100769][ T5844] bi_ctime=2780562352 [ 74.100778][ T5844] bi_mtime=2780562352 [ 74.100786][ T5844] bi_otime=2770562249 [ 74.100795][ T5844] bi_uid=0 [ 74.100803][ T5844] bi_gid=0 [ 74.100810][ T5844] bi_nlink=0 [ 74.100818][ T5844] bi_generation=0 [ 74.100827][ T5844] bi_dev=0 [ 74.100835][ T5844] bi_data_checksum=0 [ 74.100844][ T5844] bi_compression=0 [ 74.100853][ T5844] bi_project=0 [ 74.100861][ T5844] bi_background_compression=0 [ 74.100871][ T5844] bi_data_replicas=0 [ 74.100879][ T5844] bi_promote_target=0 [ 74.100888][ T5844] bi_foreground_target=64 [ 74.100897][ T5844] bi_background_target=1 [ 74.100906][ T5844] bi_erasure_code=0 [ 74.100915][ T5844] bi_fields_set=0 [ 74.100923][ T5844] bi_dir=0 [ 74.100932][ T5844] bi_dir_offset=32 [ 74.100940][ T5844] bi_subvol=0 [ 74.100947][ T5844] bi_parent_subvol=0 [ 74.100956][ T5844] bi_nocow=0 [ 74.100964][ T5844] bi_depth=0 [ 74.100973][ T5844] bi_inodes_32bit=0 [ 74.100981][ T5844] bi_casefold=0, fixing [ 74.108582][ T5843] bcachefs (loop0): check_subvols... [ 74.111549][ T5846] done [ 74.112187][ T5846] bcachefs (loop3): check_extents... [ 74.116043][ T5844] done [ 74.117350][ T5843] done [ 74.117856][ T5844] bcachefs (loop1): check_extents... [ 74.120220][ T5843] bcachefs (loop0): check_subvol_children... done [ 74.125786][ T5843] bcachefs (loop0): delete_dead_snapshots... [ 74.126494][ T5846] done [ 74.126506][ T5846] bcachefs (loop3): check_indirect_extents... [ 74.127834][ T5844] done [ 74.127847][ T5844] bcachefs (loop1): check_indirect_extents... [ 74.131335][ T5843] done [ 74.131758][ T5846] done [ 74.134036][ T5843] bcachefs (loop0): check_inodes... [ 74.135148][ T5843] bcachefs (loop0): inode points to missing dirent [ 74.135164][ T5843] inum: 4098:4294967295 [ 74.135173][ T5843] mode=40755 [ 74.135182][ T5843] flags=(15300000) [ 74.135191][ T5843] journal_seq=4 [ 74.135199][ T5843] hash_seed=ece93825deac2443 [ 74.135208][ T5843] hash_type=siphash [ 74.135217][ T5843] bi_size=0 [ 74.135225][ T5843] bi_sectors=0 [ 74.135234][ T5843] bi_version=0 [ 74.135240][ T5843] bi_atime=2770562249 [ 74.135249][ T5843] bi_ctime=2780562352 [ 74.135258][ T5843] bi_mtime=2780562352 [ 74.135267][ T5843] bi_otime=2770562249 [ 74.135276][ T5843] bi_uid=0 [ 74.135284][ T5843] bi_gid=0 [ 74.135292][ T5843] bi_nlink=0 [ 74.135301][ T5843] bi_generation=0 [ 74.135309][ T5843] bi_dev=0 [ 74.135317][ T5843] bi_data_checksum=0 [ 74.135326][ T5843] bi_compression=0 [ 74.135335][ T5843] bi_project=0 [ 74.135354][ T5843] bi_background_compression=0 [ 74.135364][ T5843] bi_data_replicas=0 [ 74.135371][ T5843] bi_promote_target=0 [ 74.135379][ T5843] bi_foreground_target=64 [ 74.135389][ T5843] bi_background_target=1 [ 74.135398][ T5843] bi_erasure_code=0 [ 74.135406][ T5843] bi_fields_set=0 [ 74.135415][ T5843] bi_dir=0 [ 74.135423][ T5843] bi_dir_offset=32 [ 74.135431][ T5843] bi_subvol=0 [ 74.135439][ T5843] bi_parent_subvol=0 [ 74.135448][ T5843] bi_nocow=0 [ 74.135456][ T5843] bi_depth=0 [ 74.135466][ T5843] bi_inodes_32bit=0 [ 74.135483][ T5843] bi_casefold=0, fixing [ 74.136735][ T5844] done [ 74.136748][ T5844] bcachefs (loop1): check_dirents... [ 74.138631][ T5844] bcachefs (loop1): directory with missing backpointer [ 74.138645][ T5844] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 74.138659][ T5844] inum: 4098:4294967295 [ 74.138668][ T5844] mode=40755 [ 74.138676][ T5844] flags=(11300000) [ 74.138686][ T5844] journal_seq=23 [pid 5907] 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 5908] <... write resumed>) = 16777216 [ 74.140322][ T5846] bcachefs (loop3): check_dirents... [ 74.142040][ T5846] bcachefs (loop3): directory with missing backpointer [ 74.142056][ T5846] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 74.142068][ T5846] inum: 4098:4294967295 [ 74.142077][ T5846] mode=40755 [ 74.142086][ T5846] flags=(11300000) [ 74.142095][ T5846] journal_seq=24 [ 74.142103][ T5846] hash_seed=ece93825deac2443 [ 74.142113][ T5846] hash_type=siphash [ 74.142121][ T5846] bi_size=0 [pid 5908] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5908] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 74.142130][ T5846] bi_sectors=0 [ 74.142138][ T5846] bi_version=0 [ 74.142147][ T5846] bi_atime=2770562249 [ 74.142156][ T5846] bi_ctime=2780562352 [ 74.142165][ T5846] bi_mtime=2780562352 [ 74.142174][ T5846] bi_otime=2770562249 [ 74.142182][ T5846] bi_uid=0 [ 74.142190][ T5846] bi_gid=0 [ 74.142199][ T5846] bi_nlink=0 [ 74.142207][ T5846] bi_generation=0 [ 74.142215][ T5846] bi_dev=0 [ 74.142222][ T5846] bi_data_checksum=0 [ 74.142231][ T5846] bi_compression=0 [pid 5908] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5908] close(3) = 0 [pid 5908] close(4) = 0 [pid 5908] mkdir("./file1", 0777) = 0 [pid 5908] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5909] <... write resumed>) = 16777216 [pid 5909] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5907] <... write resumed>) = 16777216 [ 74.142240][ T5846] bi_project=0 [ 74.142248][ T5846] bi_background_compression=0 [ 74.142257][ T5846] bi_data_replicas=0 [ 74.142266][ T5846] bi_promote_target=0 [ 74.142275][ T5846] bi_foreground_target=64 [ 74.142284][ T5846] bi_background_target=1 [ 74.142293][ T5846] bi_erasure_code=0 [ 74.142301][ T5846] bi_fields_set=0 [ 74.142310][ T5846] bi_dir=0 [ 74.142318][ T5846] bi_dir_offset=0 [ 74.142327][ T5846] bi_subvol=0 [ 74.142334][ T5846] bi_parent_subvol=0 [pid 5909] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5907] munmap(0x7fbbeb93a000, 138412032 [pid 5909] <... openat resumed>) = 4 [pid 5909] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5909] close(3) = 0 [pid 5909] close(4) = 0 [ 74.142342][ T5846] bi_nocow=0 [ 74.142351][ T5846] bi_depth=0 [ 74.142359][ T5846] bi_inodes_32bit=0 [ 74.142368][ T5846] bi_casefold=0, fixing [ 74.149665][ T5844] hash_seed=ece93825deac2443 [ 74.149681][ T5844] hash_type=siphash [ 74.149688][ T5844] bi_size=0 [ 74.149697][ T5844] bi_sectors=0 [ 74.149705][ T5844] bi_version=0 [ 74.149714][ T5844] bi_atime=2770562249 [ 74.149723][ T5844] bi_ctime=2780562352 [ 74.149731][ T5844] bi_mtime=2780562352 [pid 5909] mkdir("./file1", 0777) = 0 [pid 5909] mount("/dev/loop0", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5907] <... munmap resumed>) = 0 [pid 5907] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5907] ioctl(4, LOOP_SET_FD, 3) = 0 [ 74.149740][ T5844] bi_otime=2770562249 [ 74.149749][ T5844] bi_uid=0 [ 74.149756][ T5844] bi_gid=0 [ 74.149764][ T5844] bi_nlink=0 [ 74.149772][ T5844] bi_generation=0 [ 74.149793][ T5844] bi_dev=0 [ 74.149802][ T5844] bi_data_checksum=0 [ 74.149810][ T5844] bi_compression=0 [ 74.149819][ T5844] bi_project=0 [ 74.149827][ T5844] bi_background_compression=0 [ 74.149836][ T5844] bi_data_replicas=0 [ 74.149844][ T5844] bi_promote_target=0 [pid 5907] close(3) = 0 [pid 5907] close(4) = 0 [pid 5907] mkdir("./file1", 0777) = 0 [ 74.149852][ T5844] bi_foreground_target=64 [ 74.149861][ T5844] bi_background_target=1 [ 74.149870][ T5844] bi_erasure_code=0 [ 74.149878][ T5844] bi_fields_set=0 [ 74.149886][ T5844] bi_dir=0 [ 74.149893][ T5844] bi_dir_offset=0 [ 74.149901][ T5844] bi_subvol=0 [ 74.149910][ T5844] bi_parent_subvol=0 [ 74.149918][ T5844] bi_nocow=0 [ 74.149926][ T5844] bi_depth=0 [ 74.149934][ T5844] bi_inodes_32bit=0 [ 74.149943][ T5844] bi_casefold=0, fixing [ 74.152883][ T5847] done [ 74.154117][ T5847] bcachefs (loop4): check_subvols... [ 74.157982][ T5843] done [ 74.159852][ T5843] bcachefs (loop0): check_extents... [ 74.166469][ T5847] done [ 74.166538][ T5845] done [ 74.168326][ T5845] bcachefs (loop2): check_alloc_info... [ 74.170496][ T5844] done [ 74.171478][ T5844] bcachefs (loop1): check_xattrs... [ 74.172377][ T5843] done [ 74.172390][ T5843] bcachefs (loop0): check_indirect_extents... [ 74.172869][ T5846] done [ 74.173522][ T5846] bcachefs (loop3): check_xattrs... [ 74.175278][ T5845] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 74.175295][ T5845] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 74.175306][ T5845] gen 0 oldest_gen 0 data_type need_discard [ 74.175316][ T5845] journal_seq_nonempty 6 [ 74.175326][ T5845] journal_seq_empty 0 [ 74.175334][ T5845] need_discard 1 [ 74.175343][ T5845] need_inc_gen 1 [ 74.175352][ T5845] dirty_sectors 0 [ 74.175361][ T5845] stripe_sectors 0 [ 74.175370][ T5845] cached_sectors 0 [ 74.175380][ T5845] stripe 0 [ 74.175389][ T5845] stripe_redundancy 0 [ 74.175397][ T5845] io_time[READ] 1 [ 74.175406][ T5845] io_time[WRITE] 768 [ 74.175415][ T5845] fragmentation 0 [ 74.175424][ T5845] bp_start 8 [ 74.175441][ T5845] , fixing [ 74.176711][ T5843] done [ 74.176723][ T5843] bcachefs (loop0): check_dirents... [ 74.179715][ T5844] done [ 74.179730][ T5844] bcachefs (loop1): check_root... [pid 5907] mount("/dev/loop1", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 74.182552][ T5843] bcachefs (loop0): directory with missing backpointer [ 74.182568][ T5843] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 74.182582][ T5843] inum: 4098:4294967295 [ 74.182592][ T5843] mode=40755 [ 74.182599][ T5843] flags=(11300000) [ 74.182607][ T5843] journal_seq=25 [ 74.182616][ T5843] hash_seed=ece93825deac2443 [ 74.182625][ T5843] hash_type=siphash [ 74.182634][ T5843] bi_size=0 [ 74.182643][ T5843] bi_sectors=0 [ 74.182651][ T5843] bi_version=0 [ 74.182659][ T5843] bi_atime=2770562249 [ 74.182669][ T5843] bi_ctime=2780562352 [ 74.182677][ T5843] bi_mtime=2780562352 [ 74.182685][ T5843] bi_otime=2770562249 [ 74.182693][ T5843] bi_uid=0 [ 74.182702][ T5843] bi_gid=0 [ 74.182710][ T5843] bi_nlink=0 [ 74.182718][ T5843] bi_generation=0 [ 74.182727][ T5843] bi_dev=0 [ 74.182735][ T5843] bi_data_checksum=0 [ 74.182744][ T5843] bi_compression=0 [ 74.182752][ T5843] bi_project=0 [ 74.182761][ T5843] bi_background_compression=0 [ 74.182770][ T5843] bi_data_replicas=0 [ 74.182779][ T5843] bi_promote_target=0 [ 74.182788][ T5843] bi_foreground_target=64 [ 74.182797][ T5843] bi_background_target=1 [ 74.182806][ T5843] bi_erasure_code=0 [ 74.182814][ T5843] bi_fields_set=0 [ 74.182822][ T5843] bi_dir=0 [ 74.182830][ T5843] bi_dir_offset=0 [ 74.182838][ T5843] bi_subvol=0 [ 74.182847][ T5843] bi_parent_subvol=0 [ 74.182855][ T5843] bi_nocow=0 [ 74.182864][ T5843] bi_depth=0 [ 74.182872][ T5843] bi_inodes_32bit=0 [ 74.182881][ T5843] bi_casefold=0, fixing [ 74.188996][ T5846] done [ 74.189012][ T5846] bcachefs (loop3): check_root... [ 74.192803][ T5847] bcachefs (loop4): check_subvol_children... done [ 74.193940][ T5847] bcachefs (loop4): delete_dead_snapshots... [ 74.195077][ T5844] done [ 74.195092][ T5844] bcachefs (loop1): check_unreachable_inodes... [ 74.195860][ T5846] done [ 74.195872][ T5846] bcachefs (loop3): check_unreachable_inodes... [ 74.197365][ T5847] done [ 74.197378][ T5847] bcachefs (loop4): check_inodes... [ 74.204760][ T5847] bcachefs (loop4): inode points to missing dirent [ 74.204778][ T5847] inum: 4098:4294967295 [ 74.204790][ T5847] mode=40755 [ 74.204797][ T5847] flags=(15300000) [ 74.204805][ T5847] journal_seq=4 [ 74.204814][ T5847] hash_seed=ece93825deac2443 [ 74.204823][ T5847] hash_type=siphash [ 74.204832][ T5847] bi_size=0 [ 74.204841][ T5847] bi_sectors=0 [ 74.204849][ T5847] bi_version=0 [ 74.204858][ T5847] bi_atime=2770562249 [pid 5910] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5910] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5910] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 74.204866][ T5847] bi_ctime=2780562352 [ 74.204875][ T5847] bi_mtime=2780562352 [ 74.204884][ T5847] bi_otime=2770562249 [ 74.204893][ T5847] bi_uid=0 [ 74.204901][ T5847] bi_gid=0 [ 74.204910][ T5847] bi_nlink=0 [ 74.204918][ T5847] bi_generation=0 [ 74.204927][ T5847] bi_dev=0 [ 74.204935][ T5847] bi_data_checksum=0 [ 74.204944][ T5847] bi_compression=0 [ 74.204951][ T5847] bi_project=0 [ 74.204959][ T5847] bi_background_compression=0 [pid 5910] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5910] close(3) = 0 [pid 5910] close(4) = 0 [pid 5910] mkdir("./file1", 0777) = 0 [ 74.204969][ T5847] bi_data_replicas=0 [ 74.204977][ T5847] bi_promote_target=0 [ 74.204986][ T5847] bi_foreground_target=64 [ 74.204995][ T5847] bi_background_target=1 [ 74.205004][ T5847] bi_erasure_code=0 [ 74.205013][ T5847] bi_fields_set=0 [ 74.205021][ T5847] bi_dir=0 [ 74.205030][ T5847] bi_dir_offset=32 [ 74.205038][ T5847] bi_subvol=0 [ 74.205047][ T5847] bi_parent_subvol=0 [ 74.205056][ T5847] bi_nocow=0 [ 74.205064][ T5847] bi_depth=0 [ 74.205072][ T5847] bi_inodes_32bit=0 [ 74.205081][ T5847] bi_casefold=0, fixing [ 74.207036][ T5844] done [ 74.207051][ T5844] bcachefs (loop1): check_subvolume_structure... [ 74.207806][ T5846] done [ 74.207820][ T5846] bcachefs (loop3): check_subvolume_structure... [ 74.208358][ T5843] done [ 74.209040][ T5843] bcachefs (loop0): check_xattrs... [ 74.211954][ T5844] done [ 74.211969][ T5844] bcachefs (loop1): check_directory_structure... [ 74.212649][ T5846] done [ 74.212661][ T5846] bcachefs (loop3): check_directory_structure... [ 74.214750][ T5844] done [ 74.214763][ T5844] bcachefs (loop1): check_nlinks... [ 74.215517][ T5844] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 74.218168][ T5843] done [ 74.218179][ T5843] bcachefs (loop0): check_root... [ 74.218956][ T5846] done [ 74.218970][ T5846] bcachefs (loop3): check_nlinks... [ 74.219818][ T5846] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 74.223521][ T5847] done [ 74.224293][ T5843] done [ 74.224305][ T5843] bcachefs (loop0): check_unreachable_inodes... [ 74.224932][ T5847] bcachefs (loop4): check_extents... [ 74.227067][ T5844] done [ 74.227968][ T5844] bcachefs (loop1): check_rebalance_work... [ 74.229733][ T5843] done [ 74.229747][ T5843] bcachefs (loop0): check_subvolume_structure... [ 74.230627][ T5846] done [ 74.231632][ T5846] bcachefs (loop3): check_rebalance_work... [ 74.235242][ T5847] done [ 74.235256][ T5847] bcachefs (loop4): check_indirect_extents... [ 74.235810][ T5844] done [ 74.235822][ T5844] bcachefs (loop1): resume_logged_ops... [ 74.239202][ T5843] done [ 74.239215][ T5843] bcachefs (loop0): check_directory_structure... [ 74.244711][ T5846] done [ 74.244995][ T5847] done [ 74.245006][ T5847] bcachefs (loop4): check_dirents... [ 74.246862][ T5844] done [ 74.246877][ T5844] bcachefs (loop1): delete_dead_inodes... [ 74.252712][ T5846] bcachefs (loop3): resume_logged_ops... [ 74.253331][ T5843] done [ 74.255736][ T5843] bcachefs (loop0): check_nlinks... [ 74.256508][ T5843] bcachefs (loop0): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 74.257608][ T5847] bcachefs (loop4): directory with missing backpointer [ 74.257622][ T5847] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 74.257636][ T5847] inum: 4098:4294967295 [ 74.257645][ T5847] mode=40755 [ 74.257653][ T5847] flags=(11300000) [ 74.257662][ T5847] journal_seq=25 [ 74.257671][ T5847] hash_seed=ece93825deac2443 [ 74.257680][ T5847] hash_type=siphash [ 74.257689][ T5847] bi_size=0 [ 74.257695][ T5847] bi_sectors=0 [ 74.257704][ T5847] bi_version=0 [ 74.257712][ T5847] bi_atime=2770562249 [ 74.257721][ T5847] bi_ctime=2780562352 [ 74.257730][ T5847] bi_mtime=2780562352 [ 74.257739][ T5847] bi_otime=2770562249 [ 74.257747][ T5847] bi_uid=0 [ 74.257754][ T5847] bi_gid=0 [ 74.257762][ T5847] bi_nlink=0 [ 74.257770][ T5847] bi_generation=0 [ 74.257779][ T5847] bi_dev=0 [ 74.257787][ T5847] bi_data_checksum=0 [ 74.257796][ T5847] bi_compression=0 [ 74.257804][ T5847] bi_project=0 [ 74.257813][ T5847] bi_background_compression=0 [ 74.257822][ T5847] bi_data_replicas=0 [ 74.257830][ T5847] bi_promote_target=0 [ 74.257839][ T5847] bi_foreground_target=64 [ 74.257848][ T5847] bi_background_target=1 [ 74.257857][ T5847] bi_erasure_code=0 [ 74.257864][ T5847] bi_fields_set=0 [ 74.257873][ T5847] bi_dir=0 [ 74.257881][ T5847] bi_dir_offset=0 [ 74.257889][ T5847] bi_subvol=0 [ 74.257898][ T5847] bi_parent_subvol=0 [ 74.257906][ T5847] bi_nocow=0 [ 74.257915][ T5847] bi_depth=0 [ 74.257923][ T5847] bi_inodes_32bit=0 [ 74.257931][ T5847] bi_casefold=0, fixing [ 74.260716][ T5846] done [ 74.260731][ T5846] bcachefs (loop3): delete_dead_inodes... [ 74.265999][ T5843] done [ 74.269935][ T5843] bcachefs (loop0): check_rebalance_work... done [ 74.272204][ T5843] bcachefs (loop0): resume_logged_ops... [ 74.275894][ T5847] done [ 74.276582][ T5847] bcachefs (loop4): check_xattrs... [ 74.279548][ T5843] done [ 74.279565][ T5843] bcachefs (loop0): delete_dead_inodes... [ 74.286666][ T5847] done [ 74.286682][ T5847] bcachefs (loop4): check_root... done [ 74.291018][ T5847] bcachefs (loop4): check_unreachable_inodes... [ 74.293657][ T5844] done [ 74.300419][ T5846] done [ 74.300434][ T5846] bcachefs (loop3): set_fs_needs_rebalance... [ 74.308655][ T5847] done [ 74.308674][ T5847] bcachefs (loop4): check_subvolume_structure... done [ 74.309892][ T5847] bcachefs (loop4): check_directory_structure... [ 74.311037][ T5845] done [ 74.312506][ T5845] bcachefs (loop2): check_lrus... [ 74.321750][ T5847] done [ 74.321767][ T5847] bcachefs (loop4): check_nlinks... [ 74.322545][ T5847] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 74.324237][ T5844] bcachefs (loop1): set_fs_needs_rebalance... [ 74.329869][ T5845] done [pid 5910] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./0/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [ 74.329883][ T5845] bcachefs (loop2): check_btree_backpointers... [ 74.331406][ T5843] done [ 74.331421][ T5843] bcachefs (loop0): set_fs_needs_rebalance... [ 74.334133][ T5847] done [ 74.334970][ T5847] bcachefs (loop4): check_rebalance_work... done [ 74.337820][ T5847] bcachefs (loop4): resume_logged_ops... [ 74.340172][ T5845] done [ 74.340188][ T5845] bcachefs (loop2): check_backpointers_to_extents... [ 74.342491][ T5847] done [ 74.342505][ T5847] bcachefs (loop4): delete_dead_inodes... [ 74.348319][ T5846] done [pid 5841] rmdir("./0/file1") = 0 [pid 5841] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./0/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./0") = 0 [pid 5841] mkdir("./1", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5941 attached [pid 5941] set_robust_list(0x5555901c6760, 24) = 0 [pid 5941] chdir("./1" [pid 5841] <... clone resumed>, child_tidptr=0x5555901c6750) = 5941 [pid 5941] <... chdir resumed>) = 0 [pid 5941] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5941] setpgid(0, 0) = 0 [pid 5941] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5941] write(3, "1000", 4) = 4 [pid 5941] close(3) = 0 [pid 5941] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5941] write(1, "executing program\n", 18executing program ) = 18 [ 74.350582][ T5845] done [ 74.351573][ T5845] bcachefs (loop2): check_extents_to_backpointers... [ 74.353412][ T5845] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 74.357713][ T5844] done [ 74.362848][ T5888] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.362867][ T5888] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 74.367126][ T5845] done [ 74.368138][ T5844] bcachefs (loop1): check_extents_to_backpointers... [pid 5941] memfd_create("syzkaller", 0) = 3 [pid 5941] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 74.373913][ T5847] done [ 74.385283][ T5845] bcachefs (loop2): check_alloc_to_lru_refs... [ 74.394985][ T5845] bcachefs (loop2): missing fragmentation lru entry [ 74.395003][ T5845] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 74.395015][ T5845] gen 0 oldest_gen 0 data_type user [ 74.395025][ T5845] journal_seq_nonempty 5 [ 74.395034][ T5845] journal_seq_empty 134217728 [ 74.395043][ T5845] need_discard 1 [ 74.395052][ T5845] need_inc_gen 1 [ 74.395061][ T5845] dirty_sectors 16 [ 74.395070][ T5845] stripe_sectors 1802251 [ 74.395080][ T5845] cached_sectors 0 [ 74.395089][ T5845] stripe 0 [ 74.395097][ T5845] stripe_redundancy 0 [ 74.395106][ T5845] io_time[READ] 1 [ 74.395115][ T5845] io_time[WRITE] 512 [ 74.395124][ T5845] fragmentation 0 [ 74.395133][ T5845] bp_start 7 [ 74.395141][ T5845] , fixing [ 74.401648][ T5894] bcachefs (loop0): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.401668][ T5894] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 74.408377][ T5891] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.408396][ T5891] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 74.411163][ T5843] done [ 74.412391][ T5843] bcachefs (loop0): check_extents_to_backpointers... [ 74.413352][ T5843] bcachefs (loop0): scanning for missing backpointers in 2/128 buckets [ 74.414192][ T5844] bcachefs (loop1): scanning for missing backpointers in 1/128 buckets [ 74.417835][ T5888] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.419088][ T5847] bcachefs (loop4): set_fs_needs_rebalance... [ 74.427648][ T5846] bcachefs (loop3): check_extents_to_backpointers... [ 74.428644][ T5846] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 74.431291][ T5894] bcachefs (loop0): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.431882][ T5845] done [ 74.435034][ T5844] done [ 74.442708][ T5843] done [ 74.443850][ T5845] bcachefs (loop2): bucket_gens_init... [ 74.447853][ T5846] done [ 74.452360][ T5845] done [ 74.463732][ T5845] bcachefs (loop2): check_snapshot_trees... done [ 74.467159][ T5845] bcachefs (loop2): check_snapshots... [ 74.467765][ T5845] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 74.467779][ T5845] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 74.473906][ T5847] done [ 74.479437][ T5844] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 74.479460][ T5844] bcachefs (loop1): check_alloc_info... [ 74.484055][ T5843] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 74.484076][ T5843] bcachefs (loop0): check_alloc_info... [ 74.492564][ T5846] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 74.492586][ T5846] bcachefs (loop3): check_alloc_info... [ 74.505845][ T5843] done [ 74.505864][ T5843] bcachefs (loop0): check_lrus... [ 74.506870][ T5844] done [ 74.506882][ T5844] bcachefs (loop1): check_lrus... [ 74.508066][ T5843] done [ 74.508080][ T5843] bcachefs (loop0): check_btree_backpointers... [ 74.509065][ T5844] done [ 74.509077][ T5844] bcachefs (loop1): check_btree_backpointers... [ 74.513678][ T5846] done [ 74.513695][ T5846] bcachefs (loop3): check_lrus... [ 74.514579][ T5847] bcachefs (loop4): check_extents_to_backpointers... [ 74.516313][ T5847] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 74.517226][ T5843] done [ 74.517239][ T5843] bcachefs (loop0): check_backpointers_to_extents... [ 74.518336][ T5844] done [ 74.518348][ T5844] bcachefs (loop1): check_backpointers_to_extents... [ 74.520885][ T5846] done [ 74.520900][ T5846] bcachefs (loop3): check_btree_backpointers... [ 74.524922][ T5843] done [ 74.524937][ T5843] bcachefs (loop0): check_extents_to_backpointers... [ 74.525861][ T5843] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 74.526242][ T5844] done [ 74.526253][ T5844] bcachefs (loop1): check_extents_to_backpointers... [ 74.527157][ T5844] bcachefs (loop1): scanning for missing backpointers in 1/128 buckets [ 74.528724][ T5846] done [ 74.528737][ T5846] bcachefs (loop3): check_backpointers_to_extents... [ 74.529590][ T5845] done [ 74.531575][ T5845] bcachefs (loop2): check_subvols... [ 74.537288][ T5846] done [ 74.537303][ T5846] bcachefs (loop3): check_extents_to_backpointers... [ 74.540148][ T5844] done [ 74.540164][ T5844] bcachefs (loop1): check_alloc_to_lru_refs... [ 74.541363][ T5843] done [ 74.541375][ T5843] bcachefs (loop0): check_alloc_to_lru_refs... [ 74.542921][ T5845] done [ 74.543897][ T5843] done [ 74.544254][ T5844] done [ 74.547172][ T5846] done [ 74.547184][ T5846] bcachefs (loop3): check_alloc_to_lru_refs... [ 74.549565][ T5843] bcachefs (loop0): bucket_gens_init... [ 74.550245][ T5844] bcachefs (loop1): bucket_gens_init... [ 74.552131][ T5846] done [ 74.553434][ T5843] done [ 74.554052][ T5843] bcachefs (loop0): check_snapshot_trees... [ 74.555019][ T5844] done [ 74.555723][ T5844] bcachefs (loop1): check_snapshot_trees... [ 74.557969][ T5846] bcachefs (loop3): bucket_gens_init... [ 74.560494][ T5843] done [ 74.560508][ T5843] bcachefs (loop0): check_snapshots... [ 74.561783][ T5844] done [ 74.561795][ T5844] bcachefs (loop1): check_snapshots... [ 74.562947][ T5843] done [ 74.562961][ T5843] bcachefs (loop0): check_subvols... [ 74.564062][ T5844] done [ 74.564077][ T5844] bcachefs (loop1): check_subvols... [ 74.564741][ T5846] done [ 74.565301][ T5846] bcachefs (loop3): check_snapshot_trees... [ 74.566749][ T5844] done [ 74.566764][ T5844] bcachefs (loop1): check_subvol_children... [ 74.567766][ T5843] done [ 74.567780][ T5843] bcachefs (loop0): check_subvol_children... [ 74.568614][ T5846] done [ 74.568627][ T5846] bcachefs (loop3): check_snapshots... [ 74.572309][ T5844] done [ 74.572324][ T5844] bcachefs (loop1): delete_dead_snapshots... [ 74.572773][ T5843] done [ 74.572785][ T5843] bcachefs (loop0): delete_dead_snapshots... [ 74.575049][ T5846] done [ 74.575063][ T5846] bcachefs (loop3): check_subvols... [ 74.575859][ T5844] done [ 74.575873][ T5844] bcachefs (loop1): check_inodes... [ 74.576693][ T5843] done [ 74.576705][ T5843] bcachefs (loop0): check_inodes... [ 74.578904][ T5846] done [ 74.578917][ T5846] bcachefs (loop3): check_subvol_children... [ 74.579759][ T5845] bcachefs (loop2): check_subvol_children... [ 74.584564][ T5846] done [ 74.584578][ T5846] bcachefs (loop3): delete_dead_snapshots... [ 74.585359][ T5845] done [ 74.586825][ T5844] done [ 74.586839][ T5844] bcachefs (loop1): check_extents... [ 74.588186][ T5845] bcachefs (loop2): delete_dead_snapshots... [ 74.589525][ T5843] done [ 74.589541][ T5843] bcachefs (loop0): check_extents... [ 74.591686][ T5845] done [ 74.591699][ T5845] bcachefs (loop2): check_inodes... [ 74.592756][ T5845] bcachefs (loop2): inode points to missing dirent [ 74.592770][ T5845] inum: 4098:4294967295 [ 74.592779][ T5845] mode=40755 [ 74.592787][ T5845] flags=(15300000) [ 74.592796][ T5845] journal_seq=4 [ 74.592804][ T5845] hash_seed=ece93825deac2443 [ 74.592814][ T5845] hash_type=siphash [ 74.592823][ T5845] bi_size=0 [ 74.592831][ T5845] bi_sectors=0 [ 74.592839][ T5845] bi_version=0 [ 74.592848][ T5845] bi_atime=2770562249 [ 74.592857][ T5845] bi_ctime=2780562352 [ 74.592865][ T5845] bi_mtime=2780562352 [ 74.592873][ T5845] bi_otime=2770562249 [ 74.592881][ T5845] bi_uid=0 [ 74.592890][ T5845] bi_gid=0 [ 74.592898][ T5845] bi_nlink=0 [ 74.592906][ T5845] bi_generation=0 [ 74.592915][ T5845] bi_dev=0 [ 74.592923][ T5845] bi_data_checksum=0 [ 74.592932][ T5845] bi_compression=0 [ 74.592941][ T5845] bi_project=0 [ 74.592949][ T5845] bi_background_compression=0 [ 74.592958][ T5845] bi_data_replicas=0 [ 74.592967][ T5845] bi_promote_target=0 [ 74.592976][ T5845] bi_foreground_target=64 [ 74.592985][ T5845] bi_background_target=1 [ 74.592994][ T5845] bi_erasure_code=0 [ 74.593002][ T5845] bi_fields_set=0 [ 74.593011][ T5845] bi_dir=0 [ 74.593018][ T5845] bi_dir_offset=32 [ 74.593026][ T5845] bi_subvol=0 [ 74.593035][ T5845] bi_parent_subvol=0 [ 74.593043][ T5845] bi_nocow=0 [ 74.593052][ T5845] bi_depth=0 [ 74.593060][ T5845] bi_inodes_32bit=0 [ 74.593069][ T5845] bi_casefold=0, fixing [ 74.594327][ T5846] done [ 74.594341][ T5846] bcachefs (loop3): check_inodes... [ 74.595827][ T5844] done [ 74.595839][ T5844] bcachefs (loop1): check_indirect_extents... [ 74.596236][ T5843] done [ 74.596249][ T5843] bcachefs (loop0): check_indirect_extents... [ 74.598002][ T5846] done [ 74.598015][ T5846] bcachefs (loop3): check_extents... [ 74.599064][ T5843] done [ 74.599077][ T5843] bcachefs (loop0): check_dirents... [ 74.600829][ T5844] done [ 74.600844][ T5844] bcachefs (loop1): check_dirents... [ 74.602235][ T5897] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.602252][ T5897] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 74.605807][ T5846] done [ 74.605818][ T5846] bcachefs (loop3): check_indirect_extents... [ 74.607065][ T5847] done [ 74.608474][ T5844] done [ 74.608487][ T5844] bcachefs (loop1): check_xattrs... [ 74.609464][ T5845] done [ 74.611119][ T5845] bcachefs (loop2): check_extents... [ 74.613483][ T5846] done [ 74.613498][ T5846] bcachefs (loop3): check_dirents... [ 74.617175][ T5843] done [ 74.617193][ T5843] bcachefs (loop0): check_xattrs... [ 74.617798][ T5844] done [ 74.617812][ T5844] bcachefs (loop1): check_root... [ 74.619762][ T5845] done [ 74.619778][ T5845] bcachefs (loop2): check_indirect_extents... [ 74.620215][ T5843] done [ 74.620229][ T5843] bcachefs (loop0): check_root... [ 74.621130][ T5844] done [ 74.621143][ T5844] bcachefs (loop1): check_unreachable_inodes... [ 74.623609][ T5846] done [ 74.623625][ T5846] bcachefs (loop3): check_xattrs... [ 74.625371][ T5845] done [ 74.625384][ T5845] bcachefs (loop2): check_dirents... [ 74.627152][ T5845] bcachefs (loop2): directory with missing backpointer [ 74.627166][ T5845] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 74.627180][ T5845] inum: 4098:4294967295 [ 74.627189][ T5845] mode=40755 [ 74.627198][ T5845] flags=(11300000) [ 74.627207][ T5845] journal_seq=24 [ 74.627215][ T5845] hash_seed=ece93825deac2443 [ 74.627224][ T5845] hash_type=siphash [ 74.627233][ T5845] bi_size=0 [ 74.627240][ T5845] bi_sectors=0 [ 74.627248][ T5845] bi_version=0 [ 74.627257][ T5845] bi_atime=2770562249 [ 74.627266][ T5845] bi_ctime=2780562352 [ 74.627276][ T5845] bi_mtime=2780562352 [ 74.627285][ T5845] bi_otime=2770562249 [ 74.627294][ T5845] bi_uid=0 [ 74.627302][ T5845] bi_gid=0 [ 74.627311][ T5845] bi_nlink=0 [ 74.627319][ T5845] bi_generation=0 [ 74.627328][ T5845] bi_dev=0 [ 74.627336][ T5845] bi_data_checksum=0 [ 74.627345][ T5845] bi_compression=0 [ 74.627354][ T5845] bi_project=0 [ 74.627364][ T5845] bi_background_compression=0 [ 74.627373][ T5845] bi_data_replicas=0 [ 74.627382][ T5845] bi_promote_target=0 [ 74.627391][ T5845] bi_foreground_target=64 [ 74.627400][ T5845] bi_background_target=1 [ 74.627409][ T5845] bi_erasure_code=0 [ 74.627418][ T5845] bi_fields_set=0 [ 74.627427][ T5845] bi_dir=0 [ 74.627435][ T5845] bi_dir_offset=0 [ 74.627444][ T5845] bi_subvol=0 [ 74.627452][ T5845] bi_parent_subvol=0 [ 74.627461][ T5845] bi_nocow=0 [ 74.627468][ T5845] bi_depth=0 [ 74.627484][ T5845] bi_inodes_32bit=0 [ 74.627492][ T5845] bi_casefold=0, fixing [ 74.629662][ T5843] done [ 74.629677][ T5843] bcachefs (loop0): check_unreachable_inodes... [ 74.630358][ T5844] done [ 74.630372][ T5844] bcachefs (loop1): check_subvolume_structure... [ 74.631473][ T5846] done [ 74.631495][ T5846] bcachefs (loop3): check_root... [ 74.634489][ T5844] done [ 74.634504][ T5844] bcachefs (loop1): check_directory_structure... [ 74.634950][ T5843] done [ 74.634962][ T5843] bcachefs (loop0): check_subvolume_structure... [ 74.635679][ T5846] done [ 74.635691][ T5846] bcachefs (loop3): check_unreachable_inodes... done [ 74.637728][ T5846] bcachefs (loop3): check_subvolume_structure... [ 74.639191][ T5843] done [ 74.639206][ T5843] bcachefs (loop0): check_directory_structure... [ 74.640171][ T5844] done [ 74.640186][ T5844] bcachefs (loop1): check_nlinks... [ 74.641849][ T5846] done [ 74.641864][ T5846] bcachefs (loop3): check_directory_structure... [ 74.642324][ T5843] done [ 74.642338][ T5843] bcachefs (loop0): check_nlinks... [ 74.644419][ T5844] done [ 74.645453][ T5844] bcachefs (loop1): check_rebalance_work... [ 74.646720][ T5846] done [ 74.646734][ T5846] bcachefs (loop3): check_nlinks... [ 74.649000][ T5843] done [ 74.649014][ T5843] bcachefs (loop0): check_rebalance_work... [ 74.649919][ T5844] done [ 74.649934][ T5844] bcachefs (loop1): resume_logged_ops... [ 74.652902][ T5846] done [ 74.652919][ T5846] bcachefs (loop3): check_rebalance_work... [ 74.654237][ T5844] done [ 74.654252][ T5844] bcachefs (loop1): delete_dead_inodes... [ 74.654700][ T5845] done [ 74.655183][ T5843] done [ 74.655194][ T5843] bcachefs (loop0): resume_logged_ops... [ 74.656427][ T5845] bcachefs (loop2): check_xattrs... [ 74.660479][ T5843] done [ 74.660496][ T5843] bcachefs (loop0): delete_dead_inodes... [ 74.661074][ T5846] done [ 74.661088][ T5846] bcachefs (loop3): resume_logged_ops... [ 74.662104][ T5844] done [ 74.662117][ T5844] bcachefs (loop1): set_fs_needs_rebalance... [ 74.664661][ T5845] done [ 74.664677][ T5845] bcachefs (loop2): check_root... [ 74.665901][ T5846] done [ 74.665916][ T5846] bcachefs (loop3): delete_dead_inodes... [ 74.666366][ T5843] done [ 74.666378][ T5843] bcachefs (loop0): set_fs_needs_rebalance... [ 74.667409][ T5844] done [ 74.670141][ T5846] done [ 74.673229][ T5843] done [ 74.673674][ T5846] bcachefs (loop3): set_fs_needs_rebalance... [pid 5941] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 74.674447][ T5845] done [ 74.674461][ T5845] bcachefs (loop2): check_unreachable_inodes... [ 74.678149][ T5844] bcachefs (loop1): done starting filesystem [ 74.679095][ T5846] done [ 74.681550][ T5845] done [ 74.681565][ T5845] bcachefs (loop2): check_subvolume_structure... [ 74.683847][ T5843] bcachefs (loop0): done starting filesystem [ 74.692356][ T5845] done [ 74.692371][ T5845] bcachefs (loop2): check_directory_structure... done [ 74.696176][ T5846] bcachefs (loop3): done starting filesystem [pid 5909] <... mount resumed>) = 0 [pid 5909] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5909] chdir("./file1") = 0 [pid 5909] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5909] ioctl(4, LOOP_CLR_FD) = 0 [pid 5909] close(4 [pid 5910] <... mount resumed>) = 0 [pid 5909] <... close resumed>) = 0 [pid 5907] <... mount resumed>) = 0 [pid 5941] munmap(0x7fbbeb93a000, 138412032 [pid 5910] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5909] write(-1, NULL, 0 [pid 5910] <... openat resumed>) = 3 [pid 5909] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5907] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5909] exit_group(0 [ 74.699157][ T5845] bcachefs (loop2): check_nlinks... [ 74.700028][ T5845] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 74.706730][ T5845] done [ 74.709676][ T5845] bcachefs (loop2): check_rebalance_work... done [ 74.713317][ T5845] bcachefs (loop2): resume_logged_ops... done [ 74.714170][ T5845] bcachefs (loop2): delete_dead_inodes... done [ 74.747036][ T5846] syz-executor217 (5846) used greatest stack depth: 15112 bytes left [pid 5910] chdir("./file1" [pid 5909] <... exit_group resumed>) = ? [pid 5907] chdir("./file1" [pid 5941] <... munmap resumed>) = 0 [pid 5910] <... chdir resumed>) = 0 [pid 5909] +++ exited with 0 +++ [pid 5907] <... chdir resumed>) = 0 [pid 5910] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5907] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5910] <... openat resumed>) = 4 [pid 5907] <... openat resumed>) = 4 [pid 5837] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5909, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=37 /* 0.37 s */} --- [pid 5907] ioctl(4, LOOP_CLR_FD) = 0 [pid 5837] restart_syscall(<... resuming interrupted clone ...> [pid 5907] close(4 [pid 5910] ioctl(4, LOOP_CLR_FD [pid 5907] <... close resumed>) = 0 [pid 5910] <... ioctl resumed>) = 0 [pid 5907] write(-1, NULL, 0 [pid 5910] close(4 [pid 5907] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5837] <... restart_syscall resumed>) = 0 [pid 5910] <... close resumed>) = 0 [pid 5907] exit_group(0 [pid 5910] write(-1, NULL, 0 [pid 5907] <... exit_group resumed>) = ? [pid 5910] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5907] +++ exited with 0 +++ [pid 5837] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5910] exit_group(0 [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5941] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5910] <... exit_group resumed>) = ? [pid 5838] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5907, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=41 /* 0.41 s */} --- [pid 5837] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5941] <... openat resumed>) = 4 [pid 5838] restart_syscall(<... resuming interrupted clone ...> [pid 5837] <... openat resumed>) = 3 [pid 5837] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5837] getdents64(3, [pid 5941] ioctl(4, LOOP_SET_FD, 3 [pid 5838] <... restart_syscall resumed>) = 0 [pid 5837] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5941] <... ioctl resumed>) = 0 [pid 5837] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5941] close(3 [pid 5910] +++ exited with 0 +++ [pid 5838] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5941] <... close resumed>) = 0 [pid 5838] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5941] close(4 [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5910, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=39 /* 0.39 s */} --- [pid 5838] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5941] <... close resumed>) = 0 [pid 5839] restart_syscall(<... resuming interrupted clone ...> [pid 5838] <... openat resumed>) = 3 [pid 5941] mkdir("./file1", 0777 [pid 5838] newfstatat(3, "", [pid 5941] <... mkdir resumed>) = 0 [ 74.759842][ T5844] syz-executor217 (5844) used greatest stack depth: 14600 bytes left [ 74.767645][ T5845] bcachefs (loop2): set_fs_needs_rebalance... done [ 74.802191][ T5840] bcachefs (loop3): shutting down [ 74.802210][ T5840] bcachefs (loop3): going read-only [ 74.802238][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 74.804231][ T5904] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.804250][ T5904] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [pid 5839] <... restart_syscall resumed>) = 0 [pid 5838] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5941] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5838] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5839] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, [pid 5908] <... mount resumed>) = 0 [pid 5839] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5908] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5839] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5908] <... openat resumed>) = 3 [pid 5908] chdir("./file1") = 0 [pid 5908] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5908] ioctl(4, LOOP_CLR_FD) = 0 [pid 5908] close(4) = 0 [pid 5908] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5908] exit_group(0) = ? [ 74.808038][ T5845] bcachefs (loop2): check_extents_to_backpointers... [ 74.809000][ T5845] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 74.816918][ T5904] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 74.821679][ T5845] done [ 74.831108][ T5838] bcachefs (loop1): shutting down [ 74.831125][ T5838] bcachefs (loop1): going read-only [ 74.831153][ T5838] bcachefs (loop1): finished waiting for writes to stop [ 74.832342][ T5837] bcachefs (loop0): shutting down [pid 5908] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5908, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=43 /* 0.43 s */} --- [pid 5840] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 74.832357][ T5837] bcachefs (loop0): going read-only [ 74.832383][ T5837] bcachefs (loop0): finished waiting for writes to stop [ 74.832874][ T5845] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 74.832892][ T5845] bcachefs (loop2): check_alloc_info... done [ 74.856226][ T5845] bcachefs (loop2): check_lrus... done [ 74.857359][ T5845] bcachefs (loop2): check_btree_backpointers... done [ 74.860861][ T5845] bcachefs (loop2): check_backpointers_to_extents... [ 74.862242][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 38 [ 74.862417][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 38 [ 74.863251][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 39 [ 74.865057][ T5840] bcachefs (loop3): marking filesystem clean [ 74.871232][ T5845] done [ 74.871248][ T5845] bcachefs (loop2): check_extents_to_backpointers... [ 74.872161][ T5845] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 74.879987][ T5845] done [ 74.880279][ T5845] bcachefs (loop2): check_alloc_to_lru_refs... [ 74.889679][ T5838] bcachefs (loop1): flushing journal and stopping allocators, journal seq 35 [ 74.889832][ T5838] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 35 [ 74.890740][ T5838] bcachefs (loop1): clean shutdown complete, journal seq 36 [ 74.906227][ T5838] bcachefs (loop1): marking filesystem clean [ 74.906827][ T5845] done [ 74.909833][ T5845] bcachefs (loop2): bucket_gens_init... [ 74.933332][ T5837] bcachefs (loop0): flushing journal and stopping allocators, journal seq 35 [ 74.933495][ T5837] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 35 [ 74.935061][ T5845] done [ 74.935998][ T5845] bcachefs (loop2): check_snapshot_trees... [ 74.936769][ T5837] bcachefs (loop0): clean shutdown complete, journal seq 36 [ 74.938605][ T5837] bcachefs (loop0): marking filesystem clean [ 74.946420][ T5845] done [ 74.946437][ T5845] bcachefs (loop2): check_snapshots... [ 74.952138][ T5847] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 74.952159][ T5847] bcachefs (loop4): check_alloc_info... [ 74.957627][ T5845] done [ 74.957642][ T5845] bcachefs (loop2): check_subvols... done [ 74.967787][ T5845] bcachefs (loop2): check_subvol_children... done [ 74.979569][ T5845] bcachefs (loop2): delete_dead_snapshots... done [ 74.983758][ T5845] bcachefs (loop2): check_inodes... done [ 75.015563][ T5845] bcachefs (loop2): check_extents... [ 75.016881][ T5847] done [ 75.016897][ T5847] bcachefs (loop4): check_lrus... done [ 75.025786][ T5847] bcachefs (loop4): check_btree_backpointers... [ 75.026856][ T5845] done [ 75.026871][ T5845] bcachefs (loop2): check_indirect_extents... done [ 75.039368][ T5845] bcachefs (loop2): check_dirents... [ 75.042600][ T5847] done [ 75.042615][ T5847] bcachefs (loop4): check_backpointers_to_extents... done [ 75.045045][ T5847] bcachefs (loop4): check_extents_to_backpointers... [ 75.046534][ T5845] done [ 75.051473][ T5845] bcachefs (loop2): check_xattrs... done [ 75.052306][ T5845] bcachefs (loop2): check_root... done [ 75.053098][ T5845] bcachefs (loop2): check_unreachable_inodes... done [ 75.054073][ T5845] bcachefs (loop2): check_subvolume_structure... [ 75.055416][ T5847] done [ 75.055429][ T5847] bcachefs (loop4): check_alloc_to_lru_refs... [ 75.056886][ T5845] done [ 75.056900][ T5845] bcachefs (loop2): check_directory_structure... done [ 75.060457][ T5845] bcachefs (loop2): check_nlinks... [ 75.061513][ T5847] done [ 75.062226][ T5847] bcachefs (loop4): bucket_gens_init... [ 75.065840][ T5845] done [ 75.065855][ T5845] bcachefs (loop2): check_rebalance_work... [ 75.080393][ T5847] done [ 75.086791][ T5847] bcachefs (loop4): check_snapshot_trees... [ 75.088962][ T5845] done [ 75.088979][ T5845] bcachefs (loop2): resume_logged_ops... [ 75.092675][ T5847] done [ 75.092691][ T5847] bcachefs (loop4): check_snapshots... [ 75.093209][ T5845] done [ 75.093221][ T5845] bcachefs (loop2): delete_dead_inodes... done [ 75.101157][ T5845] bcachefs (loop2): set_fs_needs_rebalance... [ 75.101748][ T5847] done [ 75.101762][ T5847] bcachefs (loop4): check_subvols... [ 75.102607][ T5845] done [ 75.103028][ T5847] done [ 75.103039][ T5847] bcachefs (loop4): check_subvol_children... done [ 75.105042][ T5847] bcachefs (loop4): delete_dead_snapshots... [ 75.139486][ T5845] bcachefs (loop2): done starting filesystem [ 75.141864][ T5847] done [ 75.141880][ T5847] bcachefs (loop4): check_inodes... done [ 75.144700][ T5847] bcachefs (loop4): check_extents... done [ 75.151155][ T5847] bcachefs (loop4): check_indirect_extents... done [ 75.160247][ T5847] bcachefs (loop4): check_dirents... done [ 75.162134][ T5847] bcachefs (loop4): check_xattrs... done [ 75.169778][ T5847] bcachefs (loop4): check_root... [ 75.175285][ T5840] bcachefs (loop3): shutdown complete [ 75.177759][ T5838] bcachefs (loop1): shutdown complete [ 75.231501][ T5847] done [ 75.231520][ T5847] bcachefs (loop4): check_unreachable_inodes... done [ 75.233435][ T5847] bcachefs (loop4): check_subvolume_structure... done [ 75.234502][ T5847] bcachefs (loop4): check_directory_structure... done [ 75.243238][ T5847] bcachefs (loop4): check_nlinks... done [ 75.244835][ T5847] bcachefs (loop4): check_rebalance_work... done [ 75.245660][ T5847] bcachefs (loop4): resume_logged_ops... done [ 75.246368][ T5847] bcachefs (loop4): delete_dead_inodes... done [ 75.249978][ T5847] bcachefs (loop4): set_fs_needs_rebalance... done [ 75.280136][ T5847] bcachefs (loop4): done starting filesystem [ 75.287991][ T5837] bcachefs (loop0): shutdown complete [ 75.346128][ T5839] bcachefs (loop2): shutting down [ 75.346148][ T5839] bcachefs (loop2): going read-only [ 75.346421][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 75.378111][ T5847] syz-executor217 (5847) used greatest stack depth: 14288 bytes left [ 75.489611][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 37 [ 75.489756][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 37 [ 75.490694][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 38 [ 75.492491][ T5839] bcachefs (loop2): marking filesystem clean [ 75.579416][ T5841] bcachefs (loop4): shutting down [ 75.579435][ T5841] bcachefs (loop4): going read-only [ 75.579463][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 75.705510][ T5839] bcachefs (loop2): shutdown complete [ 75.970850][ T3803] bcachefs (loop4): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 75.970850][ T3803] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 75.971040][ T3803] bcachefs (loop4): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 75.971056][ T3803] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 75.971074][ T3803] loop4 checksum error [ 76.000055][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 35 [ 76.000209][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 35 [ 76.011201][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 36 [ 76.013013][ T5841] bcachefs (loop4): marking filesystem clean [ 76.152751][ T5841] bcachefs (loop4): shutdown complete [ 77.611456][ T5908] loop3: detected capacity change from 0 to 32768 [ 77.696902][ T5909] loop0: detected capacity change from 0 to 32768 [ 77.749609][ T5907] loop1: detected capacity change from 0 to 32768 [ 78.265422][ T5910] loop2: detected capacity change from 0 to 32768 [ 78.528971][ T5907] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 78.528995][ T5907] allowing incompatible features above 0.0: (unknown version) [ 78.529006][ T5907] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 78.529050][ T5907] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 78.529196][ T5907] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 78.529641][ T5907] bcachefs (loop1): Version upgrade required: [ 78.529641][ T5907] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.529641][ T5907] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 78.529641][ T5907] 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,check_rebalance_work,set_fs_needs_rebalance [ 78.560444][ T5909] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 78.560465][ T5909] allowing incompatible features above 0.0: (unknown version) [ 78.560475][ T5909] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 78.560496][ T5909] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 78.560620][ T5909] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 78.560837][ T5909] bcachefs (loop0): Version upgrade required: [ 78.560837][ T5909] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.560837][ T5909] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 78.560837][ T5909] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,check_rebalance_work,set_fs_needs_rebalance [ 78.584576][ T5908] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 78.584602][ T5908] allowing incompatible features above 0.0: (unknown version) [ 78.584613][ T5908] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 78.584639][ T5908] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 78.584767][ T5908] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 78.585058][ T5908] bcachefs (loop3): Version upgrade required: [ 78.585058][ T5908] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.585058][ T5908] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 78.585058][ T5908] 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,check_rebalance_work,set_fs_needs_rebalance [ 78.646682][ T5910] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 78.646707][ T5910] allowing incompatible features above 0.0: (unknown version) [ 78.646719][ T5910] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 78.646745][ T5910] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 78.646870][ T5910] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 78.647122][ T5910] bcachefs (loop2): Version upgrade required: [ 78.647122][ T5910] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 78.647122][ T5910] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 78.647122][ T5910] 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,check_rebalance_work,set_fs_needs_rebalance [ 78.681413][ T5909] bcachefs (loop0): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 78.681437][ T5909] size != 0, deleting [ 78.682297][ T5907] bcachefs (loop1): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 78.682315][ T5907] size != 0, deleting [ 78.690157][ T5907] bcachefs (loop1): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 78.691366][ T5909] bcachefs (loop0): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 78.712751][ T5909] bcachefs (loop0): check_topology... [ 78.714606][ T5907] bcachefs (loop1): check_topology... [ 78.721895][ T5909] done [ 78.721911][ T5909] bcachefs (loop0): accounting_read... [ 78.725204][ T5907] done [ 78.725223][ T5907] bcachefs (loop1): accounting_read... [ 78.728164][ T5908] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 78.728185][ T5908] size != 0, deleting [ 78.735009][ T5908] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 78.745886][ T5908] bcachefs (loop3): check_topology... [ 78.772870][ T5910] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 78.772888][ T5910] size != 0, deleting [ 78.774016][ T5910] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 78.775812][ T5908] done [ 78.775826][ T5908] bcachefs (loop3): accounting_read... [ 78.777712][ T5910] bcachefs (loop2): check_topology... done [ 78.789898][ T5910] bcachefs (loop2): accounting_read... [ 79.014622][ T5908] done [ 79.014640][ T5908] bcachefs (loop3): alloc_read... [ 79.015761][ T5910] done [ 79.015774][ T5910] bcachefs (loop2): alloc_read... done [ 79.016581][ T5910] bcachefs (loop2): snapshots_read... done [ 79.017334][ T5910] bcachefs (loop2): check_allocations... [ 79.019211][ T5910] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 79.019304][ T5910] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 79.022166][ T5908] done [ 79.022179][ T5908] bcachefs (loop3): snapshots_read... done [ 79.023007][ T5908] bcachefs (loop3): check_allocations... [ 79.024874][ T5908] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 79.024892][ T5908] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 79.032367][ T5907] done [ 79.032382][ T5907] bcachefs (loop1): alloc_read... [ 79.033115][ T5909] done [ 79.033128][ T5909] bcachefs (loop0): alloc_read... done [ 79.034034][ T5909] bcachefs (loop0): snapshots_read... done [ 79.034791][ T5909] bcachefs (loop0): check_allocations... [ 79.037032][ T5910] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 79.037050][ T5910] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 79.038330][ T5907] done [ 79.038342][ T5907] bcachefs (loop1): snapshots_read... done [ 79.039600][ T5907] bcachefs (loop1): check_allocations... [ 79.041395][ T5909] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 79.041413][ T5909] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 79.048088][ T5908] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 79.048107][ T5908] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 79.049746][ T5910] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 79.049780][ T5910] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 79.052015][ T5907] bcachefs (loop1): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 79.052030][ T5907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 79.055481][ T5908] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 79.055497][ T5908] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 79.056653][ T5910] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 5840] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] <... umount2 resumed>) = 0 [pid 5838] <... umount2 resumed>) = 0 [pid 5840] <... umount2 resumed>) = 0 [pid 5837] <... umount2 resumed>) = 0 [pid 5840] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5839] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./1/file1", [pid 5839] newfstatat(AT_FDCWD, "./1/file1", [pid 5838] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] newfstatat(AT_FDCWD, "./1/file1", [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5839] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5838] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5839] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5838] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... openat resumed>) = 4 [pid 5839] <... openat resumed>) = 4 [pid 5840] newfstatat(4, "", [pid 5838] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] newfstatat(4, "", [pid 5840] getdents64(4, [pid 5838] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5840] <... getdents64 resumed>0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] <... openat resumed>) = 4 [pid 5840] getdents64(4, [pid 5839] getdents64(4, [pid 5838] newfstatat(4, "", [pid 5840] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] <... getdents64 resumed>0x5555901cf830 /* 2 entries */, 32768) = 48 [ 79.056668][ T5910] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 79.058279][ T5909] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 79.058295][ T5909] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 79.072956][ T5908] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 5837] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] close(4 [pid 5838] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] <... close resumed>) = 0 [pid 5839] getdents64(4, [pid 5838] getdents64(4, [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] rmdir("./1/file1" [pid 5839] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5838] <... getdents64 resumed>0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5837] newfstatat(AT_FDCWD, "./1/file1", [pid 5840] <... rmdir resumed>) = 0 [pid 5839] close(4 [pid 5838] getdents64(4, [pid 5837] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] <... close resumed>) = 0 [pid 5838] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5837] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5839] rmdir("./1/file1" [pid 5838] close(4 [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5839] <... rmdir resumed>) = 0 [pid 5838] <... close resumed>) = 0 [pid 5837] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5840] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./1/binderfs" [pid 5838] rmdir("./1/file1" [pid 5837] <... openat resumed>) = 4 [pid 5840] <... unlink resumed>) = 0 [pid 5839] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5838] <... rmdir resumed>) = 0 [pid 5837] newfstatat(4, "", [pid 5840] getdents64(3, [pid 5839] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5837] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5838] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] close(3 [pid 5839] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5837] getdents64(4, [pid 5840] <... close resumed>) = 0 [pid 5839] unlink("./1/binderfs" [pid 5838] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5837] <... getdents64 resumed>0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] rmdir("./1" [pid 5839] <... unlink resumed>) = 0 [pid 5838] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5837] getdents64(4, [pid 5838] unlink("./1/binderfs" [pid 5837] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [ 79.072975][ T5908] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 79.075006][ T5907] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 79.075022][ T5907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 79.076284][ T5909] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 5840] <... rmdir resumed>) = 0 [pid 5839] getdents64(3, [pid 5838] <... unlink resumed>) = 0 [pid 5837] close(4 [pid 5839] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5838] getdents64(3, [pid 5837] <... close resumed>) = 0 [pid 5839] close(3 [pid 5838] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5837] rmdir("./1/file1" [pid 5840] mkdir("./2", 0777 [pid 5839] <... close resumed>) = 0 [pid 5838] close(3 [pid 5837] <... rmdir resumed>) = 0 [pid 5840] <... mkdir resumed>) = 0 [pid 5839] rmdir("./1" [pid 5838] <... close resumed>) = 0 [pid 5837] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] <... rmdir resumed>) = 0 [pid 5838] rmdir("./1" [pid 5837] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5838] <... rmdir resumed>) = 0 [pid 5837] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5837] unlink("./1/binderfs" [pid 5838] mkdir("./2", 0777 [pid 5837] <... unlink resumed>) = 0 [pid 5839] mkdir("./2", 0777 [pid 5838] <... mkdir resumed>) = 0 [pid 5837] getdents64(3, [pid 5839] <... mkdir resumed>) = 0 [pid 5837] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5838] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5837] close(3 [pid 5840] <... openat resumed>) = 3 [pid 5839] <... openat resumed>) = 3 [pid 5838] <... openat resumed>) = 3 [pid 5837] <... close resumed>) = 0 [pid 5840] ioctl(3, LOOP_CLR_FD [pid 5839] ioctl(3, LOOP_CLR_FD [pid 5838] ioctl(3, LOOP_CLR_FD [pid 5837] rmdir("./1" [pid 5839] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5838] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5839] close(3 [pid 5838] close(3 [pid 5837] <... rmdir resumed>) = 0 [pid 5839] <... close resumed>) = 0 [pid 5840] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5840] close(3 [pid 5838] <... close resumed>) = 0 [pid 5840] <... close resumed>) = 0 [pid 5838] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5972 attached [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5837] mkdir("./2", 0777./strace-static-x86_64: Process 5974 attached [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 5973 [pid 5837] <... mkdir resumed>) = 0 ./strace-static-x86_64: Process 5973 attached [pid 5838] <... clone resumed>, child_tidptr=0x5555901c6750) = 5972 [pid 5973] set_robust_list(0x5555901c6760, 24 [pid 5972] set_robust_list(0x5555901c6760, 24 [pid 5974] set_robust_list(0x5555901c6760, 24 [pid 5837] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 5974 [pid 5837] <... openat resumed>) = 3 [pid 5974] <... set_robust_list resumed>) = 0 [pid 5837] ioctl(3, LOOP_CLR_FD [pid 5974] chdir("./2" [pid 5837] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5972] <... set_robust_list resumed>) = 0 [pid 5837] close(3 [pid 5974] <... chdir resumed>) = 0 [pid 5972] chdir("./2" [pid 5837] <... close resumed>) = 0 [ 79.076300][ T5909] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 79.082127][ T5907] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 79.082143][ T5907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 79.087938][ T5910] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5974] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5973] <... set_robust_list resumed>) = 0 [pid 5837] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5975 attached [pid 5974] <... prctl resumed>) = 0 [pid 5973] chdir("./2" [pid 5974] setpgid(0, 0 [pid 5973] <... chdir resumed>) = 0 [pid 5974] <... setpgid resumed>) = 0 [pid 5973] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5975] set_robust_list(0x5555901c6760, 24 [pid 5974] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5973] <... prctl resumed>) = 0 [pid 5973] setpgid(0, 0) = 0 [pid 5975] <... set_robust_list resumed>) = 0 [pid 5973] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5975] chdir("./2" [pid 5974] <... openat resumed>) = 3 [pid 5973] <... openat resumed>) = 3 [pid 5975] <... chdir resumed>) = 0 [pid 5974] write(3, "1000", 4 [pid 5973] write(3, "1000", 4 [pid 5837] <... clone resumed>, child_tidptr=0x5555901c6750) = 5975 [pid 5975] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5974] <... write resumed>) = 4 [pid 5973] <... write resumed>) = 4 [pid 5975] <... prctl resumed>) = 0 [pid 5974] close(3 [pid 5973] close(3 [pid 5975] setpgid(0, 0 [pid 5973] <... close resumed>) = 0 [pid 5975] <... setpgid resumed>) = 0 [pid 5974] <... close resumed>) = 0 [pid 5973] symlink("/dev/binderfs", "./binderfs" [pid 5975] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5974] symlink("/dev/binderfs", "./binderfs" [pid 5973] <... symlink resumed>) = 0 [pid 5972] <... chdir resumed>) = 0 [pid 5941] <... mount resumed>) = 0 [ 79.087955][ T5910] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 79.088935][ T5910] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.089053][ T5910] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.089608][ T5909] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree executing program executing program [pid 5975] <... openat resumed>) = 3 [pid 5974] <... symlink resumed>) = 0 [pid 5973] write(1, "executing program\n", 18 [pid 5941] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5973] <... write resumed>) = 18 [pid 5941] <... openat resumed>) = 3 [pid 5972] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5975] write(3, "1000", 4 [pid 5973] memfd_create("syzkaller", 0 [pid 5941] chdir("./file1" [pid 5975] <... write resumed>) = 4 [pid 5974] write(1, "executing program\n", 18 [pid 5973] <... memfd_create resumed>) = 3 [pid 5941] <... chdir resumed>) = 0 [pid 5975] close(3 [pid 5974] <... write resumed>) = 18 [pid 5973] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5941] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5975] <... close resumed>) = 0 [pid 5974] memfd_create("syzkaller", 0 [pid 5973] <... mmap resumed>) = 0x7fbbeb93a000 [pid 5975] symlink("/dev/binderfs", "./binderfs" [pid 5972] <... prctl resumed>) = 0 [pid 5941] <... openat resumed>) = 4 [pid 5975] <... symlink resumed>) = 0 [pid 5972] setpgid(0, 0 [pid 5974] <... memfd_create resumed>) = 3 executing program [pid 5975] write(1, "executing program\n", 18 [pid 5972] <... setpgid resumed>) = 0 [pid 5941] ioctl(4, LOOP_CLR_FD [pid 5972] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5941] <... ioctl resumed>) = 0 [pid 5975] <... write resumed>) = 18 [pid 5941] close(4 [pid 5975] memfd_create("syzkaller", 0 [pid 5941] <... close resumed>) = 0 [pid 5974] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5941] write(-1, NULL, 0 [pid 5974] <... mmap resumed>) = 0x7fbbeb93a000 [pid 5941] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5941] exit_group(0 [pid 5975] <... memfd_create resumed>) = 3 [pid 5972] <... openat resumed>) = 3 [pid 5975] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 5941] <... exit_group resumed>) = ? [pid 5941] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5941, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=51 /* 0.51 s */} --- [ 79.089624][ T5909] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 79.092042][ T5907] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 79.092056][ T5907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 79.096672][ T5908] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 79.096689][ T5908] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [pid 5841] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5841] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5972] write(3, "1000", 4) = 4 [pid 5972] close(3) = 0 executing program [pid 5972] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5972] write(1, "executing program\n", 18) = 18 [ 79.097717][ T5908] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.097892][ T5908] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.098442][ T5908] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.098547][ T5908] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5972] memfd_create("syzkaller", 0) = 3 [pid 5972] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 79.098970][ T5908] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.099085][ T5908] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.100721][ T5910] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.100828][ T5910] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.101256][ T5910] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.101362][ T5910] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.101560][ T5910] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.101661][ T5910] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.101858][ T5910] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.101962][ T5910] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.102157][ T5910] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.102292][ T5910] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.102511][ T5910] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.102614][ T5910] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.102821][ T5910] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.102924][ T5910] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 79.103120][ T5910] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.103232][ T5910] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.103450][ T5910] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.103553][ T5910] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.103783][ T5910] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.103797][ T5910] Ratelimiting new instances of previous error [ 79.103922][ T5910] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.103937][ T5910] Ratelimiting new instances of previous error [ 79.111638][ T5909] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 79.111655][ T5909] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 79.112662][ T5909] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.112817][ T5909] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.113358][ T5909] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.113459][ T5909] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.113863][ T5909] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.113962][ T5909] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.114175][ T5909] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.114289][ T5909] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.114512][ T5909] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.114614][ T5909] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.114811][ T5909] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.114913][ T5909] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.115107][ T5909] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.115211][ T5909] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.115413][ T5909] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.115514][ T5909] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 79.121901][ T5908] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.122010][ T5908] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.122263][ T5908] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.122368][ T5908] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.122574][ T5908] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.122672][ T5908] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.122866][ T5908] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.122965][ T5908] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.123176][ T5908] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.123281][ T5908] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 79.123490][ T5908] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.123589][ T5908] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.123782][ T5908] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.123880][ T5908] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.124095][ T5908] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.124116][ T5908] Ratelimiting new instances of previous error [ 79.124293][ T5908] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.124308][ T5908] Ratelimiting new instances of previous error [ 79.129616][ T5907] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 79.129633][ T5907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 79.130676][ T5907] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.130798][ T5907] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.131339][ T5907] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.131452][ T5907] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.131889][ T5907] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.131986][ T5907] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5973] 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.132215][ T5907] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.132345][ T5907] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.132558][ T5907] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.132662][ T5907] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.132863][ T5907] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.132956][ T5907] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.133150][ T5907] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 79.133264][ T5907] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 79.133459][ T5907] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5975] 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 5974] 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.133581][ T5907] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 79.133777][ T5907] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.133882][ T5907] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.134078][ T5907] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.134190][ T5907] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.134428][ T5907] bcachefs (loop1): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.134442][ T5907] Ratelimiting new instances of previous error [ 79.134568][ T5907] bcachefs (loop1): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.134584][ T5907] Ratelimiting new instances of previous error [ 79.150855][ T5909] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.150988][ T5909] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.151238][ T5909] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.151345][ T5909] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.151616][ T5909] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 79.151632][ T5909] Ratelimiting new instances of previous error [ 79.151759][ T5909] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 79.151775][ T5909] Ratelimiting new instances of previous error [ 79.209831][ T5910] done [ 79.216884][ T5908] done [ 79.219751][ T5907] done [ 79.221137][ T5910] bcachefs (loop2): going read-write [ 79.224679][ T5908] bcachefs (loop3): going read-write [ 79.228005][ T5907] bcachefs (loop1): going read-write [ 79.229224][ T5909] done [ 79.245947][ T5908] bcachefs (loop3): journal_replay... [ 79.246576][ T5907] bcachefs (loop1): journal_replay... [ 79.252887][ T5910] bcachefs (loop2): journal_replay... [ 79.255331][ T5909] bcachefs (loop0): going read-write [ 79.274650][ T5909] bcachefs (loop0): journal_replay... [ 79.405725][ T5907] done [ 79.406309][ T5907] bcachefs (loop1): check_alloc_info... [ 79.408120][ T5907] bcachefs (loop1): bucket incorrectly unset in need_discard btree [ 79.408138][ T5907] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 79.408149][ T5907] gen 0 oldest_gen 0 data_type need_discard [ 79.408161][ T5907] journal_seq_nonempty 6 [ 79.408169][ T5907] journal_seq_empty 0 [ 79.408179][ T5907] need_discard 1 [ 79.408189][ T5907] need_inc_gen 1 [ 79.408204][ T5907] dirty_sectors 0 [ 79.408213][ T5907] stripe_sectors 0 [ 79.408222][ T5907] cached_sectors 0 [ 79.408232][ T5907] stripe 0 [ 79.408241][ T5907] stripe_redundancy 0 [ 79.408250][ T5907] io_time[READ] 1 [ 79.408259][ T5907] io_time[WRITE] 768 [ 79.408268][ T5907] fragmentation 0 [ 79.408277][ T5907] bp_start 8 [ 79.408286][ T5907] , fixing [ 79.441913][ T5908] done [ 79.443590][ T5910] done [ 79.447151][ T5910] bcachefs (loop2): check_alloc_info... [ 79.448978][ T5910] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 79.448996][ T5910] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 79.449006][ T5910] gen 0 oldest_gen 0 data_type need_discard [ 79.449018][ T5910] journal_seq_nonempty 6 [ 79.449026][ T5910] journal_seq_empty 0 [ 79.449036][ T5910] need_discard 1 [ 79.449045][ T5910] need_inc_gen 1 [ 79.449054][ T5910] dirty_sectors 0 [ 79.449063][ T5910] stripe_sectors 0 [ 79.449072][ T5910] cached_sectors 0 [ 79.449081][ T5910] stripe 0 [ 79.449090][ T5910] stripe_redundancy 0 [ 79.449100][ T5910] io_time[READ] 1 [ 79.449109][ T5910] io_time[WRITE] 768 [ 79.449119][ T5910] fragmentation 0 [ 79.449127][ T5910] bp_start 8 [ 79.449136][ T5910] , fixing [ 79.449331][ T5908] bcachefs (loop3): check_alloc_info... [ 79.451105][ T5908] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 79.451122][ T5908] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 79.451132][ T5908] gen 0 oldest_gen 0 data_type need_discard [ 79.451142][ T5908] journal_seq_nonempty 6 [ 79.451152][ T5908] journal_seq_empty 0 [ 79.451161][ T5908] need_discard 1 [ 79.451171][ T5908] need_inc_gen 1 [ 79.451180][ T5908] dirty_sectors 0 [ 79.451191][ T5908] stripe_sectors 0 [ 79.451200][ T5908] cached_sectors 0 [ 79.451209][ T5908] stripe 0 [ 79.451217][ T5908] stripe_redundancy 0 [ 79.451227][ T5908] io_time[READ] 1 [ 79.451236][ T5908] io_time[WRITE] 768 [ 79.451245][ T5908] fragmentation 0 [ 79.451254][ T5908] bp_start 8 [ 79.451264][ T5908] , fixing [ 79.458181][ T5909] done [ 79.459200][ T5909] bcachefs (loop0): check_alloc_info... [ 79.461360][ T5909] bcachefs (loop0): bucket incorrectly unset in need_discard btree [ 79.461379][ T5909] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 79.461389][ T5909] gen 0 oldest_gen 0 data_type need_discard [ 79.461400][ T5909] journal_seq_nonempty 6 [ 79.461409][ T5909] journal_seq_empty 0 [ 79.461419][ T5909] need_discard 1 [ 79.461428][ T5909] need_inc_gen 1 [ 79.461437][ T5909] dirty_sectors 0 [ 79.461447][ T5909] stripe_sectors 0 [ 79.461456][ T5909] cached_sectors 0 [ 79.461467][ T5909] stripe 0 [pid 5972] 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 5975] <... write resumed>) = 16777216 [ 79.461476][ T5909] stripe_redundancy 0 [ 79.461485][ T5909] io_time[READ] 1 [ 79.461494][ T5909] io_time[WRITE] 768 [ 79.461504][ T5909] fragmentation 0 [ 79.461513][ T5909] bp_start 8 [ 79.461522][ T5909] , fixing [ 79.520763][ T5907] done [ 79.526666][ T5907] bcachefs (loop1): check_lrus... done [ 79.539663][ T5907] bcachefs (loop1): check_btree_backpointers... done [ 79.541540][ T5907] bcachefs (loop1): check_backpointers_to_extents... done [ 79.552585][ T5909] done [pid 5975] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 5975] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5975] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5975] close(3) = 0 [pid 5975] close(4) = 0 [pid 5975] mkdir("./file1", 0777) = 0 [pid 5975] mount("/dev/loop0", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5973] <... write resumed>) = 16777216 [pid 5972] <... write resumed>) = 16777216 [pid 5973] munmap(0x7fbbeb93a000, 138412032) = 0 [ 79.553763][ T5909] bcachefs (loop0): check_lrus... done [ 79.560863][ T5909] bcachefs (loop0): check_btree_backpointers... done [ 79.563731][ T5909] bcachefs (loop0): check_backpointers_to_extents... done [ 79.569408][ T5909] bcachefs (loop0): check_extents_to_backpointers... [ 79.570687][ T5909] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 79.580153][ T5907] bcachefs (loop1): check_extents_to_backpointers... [ 79.581460][ T5907] bcachefs (loop1): scanning for missing backpointers in 6/128 buckets [pid 5974] <... write resumed>) = 16777216 [pid 5973] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5973] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5973] close(3) = 0 [pid 5973] close(4) = 0 [pid 5973] mkdir("./file1", 0777) = 0 [pid 5973] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 79.583729][ T5910] done [ 79.584390][ T5910] bcachefs (loop2): check_lrus... [ 79.585388][ T5908] done [ 79.586056][ T5908] bcachefs (loop3): check_lrus... [ 79.586795][ T5910] done [ 79.586808][ T5910] bcachefs (loop2): check_btree_backpointers... [ 79.590374][ T5909] done [ 79.590497][ T5908] done [ 79.590507][ T5908] bcachefs (loop3): check_btree_backpointers... [ 79.592150][ T5910] done [ 79.592164][ T5910] bcachefs (loop2): check_backpointers_to_extents... [ 79.594939][ T5907] done [pid 5972] munmap(0x7fbbeb93a000, 138412032 [pid 5974] munmap(0x7fbbeb93a000, 138412032 [pid 5972] <... munmap resumed>) = 0 [pid 5972] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5972] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5972] close(3) = 0 [pid 5972] close(4) = 0 [pid 5974] <... munmap resumed>) = 0 [ 79.596541][ T5907] bcachefs (loop1): check_alloc_to_lru_refs... [ 79.598512][ T5907] bcachefs (loop1): missing fragmentation lru entry [ 79.598527][ T5907] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 79.598539][ T5907] gen 0 oldest_gen 0 data_type user [ 79.598549][ T5907] journal_seq_nonempty 5 [ 79.598559][ T5907] journal_seq_empty 134217728 [ 79.598569][ T5907] need_discard 1 [ 79.598578][ T5907] need_inc_gen 1 [ 79.598587][ T5907] dirty_sectors 16 [pid 5972] mkdir("./file1", 0777) = 0 [pid 5974] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5972] mount("/dev/loop1", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5974] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5974] close(3) = 0 [pid 5974] close(4) = 0 [pid 5974] mkdir("./file1", 0777) = 0 [ 79.598597][ T5907] stripe_sectors 1802251 [ 79.598606][ T5907] cached_sectors 0 [ 79.598615][ T5907] stripe 0 [ 79.598625][ T5907] stripe_redundancy 0 [ 79.598634][ T5907] io_time[READ] 1 [ 79.598644][ T5907] io_time[WRITE] 512 [ 79.598653][ T5907] fragmentation 0 [ 79.598662][ T5907] bp_start 7 [ 79.598671][ T5907] , fixing [ 79.615206][ T5908] done [ 79.615222][ T5908] bcachefs (loop3): check_backpointers_to_extents... [ 79.617359][ T5909] bcachefs (loop0): check_alloc_to_lru_refs... [ 79.620870][ T5910] done [ 79.621902][ T5910] bcachefs (loop2): check_extents_to_backpointers... [ 79.623249][ T5910] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 79.625167][ T5907] done [ 79.627626][ T5907] bcachefs (loop1): bucket_gens_init... [ 79.629010][ T5909] bcachefs (loop0): missing fragmentation lru entry [ 79.629027][ T5909] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 79.629040][ T5909] gen 0 oldest_gen 0 data_type user [ 79.629049][ T5909] journal_seq_nonempty 5 [ 79.629059][ T5909] journal_seq_empty 134217728 [ 79.629069][ T5909] need_discard 1 [ 79.629078][ T5909] need_inc_gen 1 [ 79.629087][ T5909] dirty_sectors 16 [ 79.629097][ T5909] stripe_sectors 1802251 [ 79.629106][ T5909] cached_sectors 0 [ 79.629116][ T5909] stripe 0 [ 79.629125][ T5909] stripe_redundancy 0 [ 79.629134][ T5909] io_time[READ] 1 [ 79.629144][ T5909] io_time[WRITE] 512 [ 79.629153][ T5909] fragmentation 0 [ 79.629162][ T5909] bp_start 7 [ 79.629171][ T5909] , fixing [ 79.630887][ T5908] done [ 79.631502][ T5908] bcachefs (loop3): check_extents_to_backpointers... [ 79.632864][ T5908] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 79.650974][ T5907] done [ 79.651601][ T5909] done [ 79.652355][ T5910] done [ 79.654066][ T5910] bcachefs (loop2): check_alloc_to_lru_refs... [ 79.655980][ T5910] bcachefs (loop2): missing fragmentation lru entry [ 79.655996][ T5910] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 79.656006][ T5910] gen 0 oldest_gen 0 data_type user [ 79.656015][ T5910] journal_seq_nonempty 5 [ 79.656024][ T5910] journal_seq_empty 134217728 [ 79.656033][ T5910] need_discard 1 [ 79.656041][ T5910] need_inc_gen 1 [ 79.656050][ T5910] dirty_sectors 16 [ 79.656059][ T5910] stripe_sectors 1802251 [ 79.656068][ T5910] cached_sectors 0 [ 79.656076][ T5910] stripe 0 [ 79.656085][ T5910] stripe_redundancy 0 [ 79.656094][ T5910] io_time[READ] 1 [ 79.656103][ T5910] io_time[WRITE] 512 [ 79.656112][ T5910] fragmentation 0 [ 79.656120][ T5910] bp_start 7 [ 79.656128][ T5910] , fixing [ 79.657271][ T5907] bcachefs (loop1): check_snapshot_trees... [ 79.657833][ T5908] done [ 79.660662][ T5908] bcachefs (loop3): check_alloc_to_lru_refs... [ 79.662512][ T5909] bcachefs (loop0): bucket_gens_init... [ 79.665057][ T5908] bcachefs (loop3): missing fragmentation lru entry [ 79.665074][ T5908] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 79.665085][ T5908] gen 0 oldest_gen 0 data_type user [ 79.665095][ T5908] journal_seq_nonempty 5 [ 79.665104][ T5908] journal_seq_empty 134217728 [ 79.665114][ T5908] need_discard 1 [ 79.665123][ T5908] need_inc_gen 1 [ 79.665134][ T5908] dirty_sectors 16 [ 79.665143][ T5908] stripe_sectors 1802251 [ 79.665153][ T5908] cached_sectors 0 [ 79.665162][ T5908] stripe 0 [ 79.665178][ T5908] stripe_redundancy 0 [ 79.665187][ T5908] io_time[READ] 1 [ 79.665196][ T5908] io_time[WRITE] 512 [ 79.665205][ T5908] fragmentation 0 [ 79.665215][ T5908] bp_start 7 [ 79.665223][ T5908] , fixing [ 79.666855][ T5907] done [ 79.666867][ T5907] bcachefs (loop1): check_snapshots... [ 79.667449][ T5907] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 79.667464][ T5907] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 79.672264][ T5909] done [ 79.672880][ T5909] bcachefs (loop0): check_snapshot_trees... done [ 79.675634][ T5909] bcachefs (loop0): check_snapshots... [ 79.676211][ T5909] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 79.676228][ T5909] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 79.690992][ T5908] done [ 79.693002][ T5910] done [ 79.708066][ T5910] bcachefs (loop2): bucket_gens_init... [ 79.709221][ T5907] done [ 79.710913][ T5910] done [ 79.711539][ T5910] bcachefs (loop2): check_snapshot_trees... done [ 79.716092][ T5910] bcachefs (loop2): check_snapshots... [ 79.716660][ T5910] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 79.716676][ T5910] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 79.720848][ T5909] done [ 79.724827][ T5908] bcachefs (loop3): bucket_gens_init... [ 79.726458][ T5909] bcachefs (loop0): check_subvols... [ 79.727592][ T5908] done [ 79.729222][ T5908] bcachefs (loop3): check_snapshot_trees... done [ 79.732303][ T5908] bcachefs (loop3): check_snapshots... [ 79.732904][ T5908] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 79.732921][ T5908] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 79.755468][ T5909] done [ 79.755743][ T5907] bcachefs (loop1): check_subvols... done [ 79.760894][ T5907] bcachefs (loop1): check_subvol_children... done [ 79.761697][ T5907] bcachefs (loop1): delete_dead_snapshots... done [ 79.763112][ T5907] bcachefs (loop1): check_inodes... [ 79.765321][ T5907] bcachefs (loop1): inode points to missing dirent [ 79.765338][ T5907] inum: 4098:4294967295 [ 79.765348][ T5907] mode=40755 [ 79.765356][ T5907] flags=(15300000) [ 79.765366][ T5907] journal_seq=4 [ 79.765374][ T5907] hash_seed=ece93825deac2443 [ 79.765384][ T5907] hash_type=siphash [ 79.765393][ T5907] bi_size=0 [ 79.765402][ T5907] bi_sectors=0 [ 79.765409][ T5907] bi_version=0 [ 79.765418][ T5907] bi_atime=2770562249 [ 79.765427][ T5907] bi_ctime=2780562352 [ 79.765436][ T5907] bi_mtime=2780562352 [ 79.765445][ T5907] bi_otime=2770562249 [ 79.765454][ T5907] bi_uid=0 [ 79.765463][ T5907] bi_gid=0 [ 79.765471][ T5907] bi_nlink=0 [ 79.765480][ T5907] bi_generation=0 [ 79.765488][ T5907] bi_dev=0 [ 79.765497][ T5907] bi_data_checksum=0 [ 79.765506][ T5907] bi_compression=0 [ 79.765514][ T5907] bi_project=0 [ 79.765522][ T5907] bi_background_compression=0 [ 79.765531][ T5907] bi_data_replicas=0 [ 79.765540][ T5907] bi_promote_target=0 [ 79.765550][ T5907] bi_foreground_target=64 [ 79.765559][ T5907] bi_background_target=1 [ 79.765568][ T5907] bi_erasure_code=0 [ 79.765577][ T5907] bi_fields_set=0 [ 79.765586][ T5907] bi_dir=0 [ 79.765594][ T5907] bi_dir_offset=32 [ 79.765604][ T5907] bi_subvol=0 [ 79.765612][ T5907] bi_parent_subvol=0 [ 79.765621][ T5907] bi_nocow=0 [ 79.765630][ T5907] bi_depth=0 [ 79.765638][ T5907] bi_inodes_32bit=0 [ 79.765648][ T5907] bi_casefold=0, fixing [ 79.766654][ T5910] done [ 79.767402][ T5910] bcachefs (loop2): check_subvols... done [ 79.792376][ T5907] done [ 79.797247][ T5907] bcachefs (loop1): check_extents... [ 79.798626][ T5909] bcachefs (loop0): check_subvol_children... [ 79.800170][ T5908] done [ 79.800765][ T5909] done [ 79.800779][ T5909] bcachefs (loop0): delete_dead_snapshots... done [ 79.803955][ T5909] bcachefs (loop0): check_inodes... [ 79.805051][ T5909] bcachefs (loop0): inode points to missing dirent [ 79.805067][ T5909] inum: 4098:4294967295 [ 79.805076][ T5909] mode=40755 [ 79.805085][ T5909] flags=(15300000) [ 79.805094][ T5909] journal_seq=4 [ 79.805103][ T5909] hash_seed=ece93825deac2443 [ 79.805112][ T5909] hash_type=siphash [ 79.805121][ T5909] bi_size=0 [ 79.805130][ T5909] bi_sectors=0 [ 79.805137][ T5909] bi_version=0 [ 79.805146][ T5909] bi_atime=2770562249 [ 79.805155][ T5909] bi_ctime=2780562352 [ 79.805164][ T5909] bi_mtime=2780562352 [ 79.805173][ T5909] bi_otime=2770562249 [ 79.805182][ T5909] bi_uid=0 [ 79.805190][ T5909] bi_gid=0 [ 79.805199][ T5909] bi_nlink=0 [ 79.805206][ T5909] bi_generation=0 [ 79.805215][ T5909] bi_dev=0 [ 79.805223][ T5909] bi_data_checksum=0 [ 79.805232][ T5909] bi_compression=0 [ 79.805241][ T5909] bi_project=0 [ 79.805249][ T5909] bi_background_compression=0 [ 79.805259][ T5909] bi_data_replicas=0 [ 79.805268][ T5909] bi_promote_target=0 [ 79.805277][ T5909] bi_foreground_target=64 [ 79.805286][ T5909] bi_background_target=1 [ 79.805295][ T5909] bi_erasure_code=0 [ 79.805306][ T5909] bi_fields_set=0 [ 79.805314][ T5909] bi_dir=0 [ 79.805322][ T5909] bi_dir_offset=32 [ 79.805331][ T5909] bi_subvol=0 [ 79.805340][ T5909] bi_parent_subvol=0 [ 79.805349][ T5909] bi_nocow=0 [ 79.805357][ T5909] bi_depth=0 [ 79.805365][ T5909] bi_inodes_32bit=0 [ 79.805375][ T5909] bi_casefold=0, fixing [ 79.808237][ T5908] bcachefs (loop3): check_subvols... [ 79.810443][ T5907] done [ 79.810458][ T5907] bcachefs (loop1): check_indirect_extents... [ 79.814123][ T5910] bcachefs (loop2): check_subvol_children... [ 79.816170][ T4660] bcachefs (loop1): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 79.816170][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 79.816344][ T4660] bcachefs (loop1): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 79.816361][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 79.816379][ T4660] loop1 checksum error [ 79.819926][ T5950] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 79.819947][ T5950] running recovery pass check_extents_to_backpointers (17), currently at check_indirect_extents (30) [ 79.821699][ T5910] done [ 79.821715][ T5910] bcachefs (loop2): delete_dead_snapshots... [ 79.822328][ T5908] done [ 79.824094][ T5907] done [ 79.824145][ T5908] bcachefs (loop3): check_subvol_children... [ 79.825228][ T5909] done [ 79.825934][ T5909] bcachefs (loop0): check_extents... [ 79.827507][ T5910] done [ 79.827522][ T5910] bcachefs (loop2): check_inodes... [ 79.828529][ T5908] done [ 79.828542][ T5908] bcachefs (loop3): delete_dead_snapshots... done [ 79.829444][ T5908] bcachefs (loop3): check_inodes... [ 79.830652][ T5908] bcachefs (loop3): inode points to missing dirent [ 79.830669][ T5908] inum: 4098:4294967295 [ 79.830678][ T5908] mode=40755 [ 79.830687][ T5908] flags=(15300000) [ 79.830696][ T5908] journal_seq=4 [ 79.830705][ T5908] hash_seed=ece93825deac2443 [ 79.830714][ T5908] hash_type=siphash [ 79.830723][ T5908] bi_size=0 [ 79.830732][ T5908] bi_sectors=0 [ 79.830741][ T5908] bi_version=0 [ 79.830749][ T5908] bi_atime=2770562249 [ 79.830758][ T5908] bi_ctime=2780562352 [ 79.830767][ T5908] bi_mtime=2780562352 [ 79.830776][ T5908] bi_otime=2770562249 [ 79.830785][ T5908] bi_uid=0 [ 79.830794][ T5908] bi_gid=0 [ 79.830802][ T5908] bi_nlink=0 [ 79.830811][ T5908] bi_generation=0 [ 79.830818][ T5908] bi_dev=0 [ 79.830827][ T5908] bi_data_checksum=0 [ 79.830835][ T5908] bi_compression=0 [ 79.830844][ T5908] bi_project=0 [ 79.830852][ T5908] bi_background_compression=0 [ 79.830862][ T5908] bi_data_replicas=0 [ 79.830871][ T5908] bi_promote_target=0 [ 79.830889][ T5908] bi_foreground_target=64 [ 79.830899][ T5908] bi_background_target=1 [ 79.830908][ T5908] bi_erasure_code=0 [ 79.830917][ T5908] bi_fields_set=0 [ 79.830926][ T5908] bi_dir=0 [ 79.830935][ T5908] bi_dir_offset=32 [ 79.830943][ T5908] bi_subvol=0 [ 79.830952][ T5908] bi_parent_subvol=0 [ 79.830961][ T5908] bi_nocow=0 [ 79.830969][ T5908] bi_depth=0 [ 79.830977][ T5908] bi_inodes_32bit=0 [ 79.830984][ T5908] bi_casefold=0, fixing [ 79.832570][ T5910] bcachefs (loop2): inode points to missing dirent [ 79.832584][ T5910] inum: 4098:4294967295 [ 79.832593][ T5910] mode=40755 [ 79.832602][ T5910] flags=(15300000) [ 79.832609][ T5910] journal_seq=4 [ 79.832617][ T5910] hash_seed=ece93825deac2443 [ 79.832626][ T5910] hash_type=siphash [ 79.832634][ T5910] bi_size=0 [ 79.832643][ T5910] bi_sectors=0 [ 79.832652][ T5910] bi_version=0 [ 79.832660][ T5910] bi_atime=2770562249 [ 79.832669][ T5910] bi_ctime=2780562352 [ 79.832677][ T5910] bi_mtime=2780562352 [ 79.832686][ T5910] bi_otime=2770562249 [ 79.832694][ T5910] bi_uid=0 [ 79.832703][ T5910] bi_gid=0 [ 79.832711][ T5910] bi_nlink=0 [ 79.832719][ T5910] bi_generation=0 [ 79.832728][ T5910] bi_dev=0 [ 79.832736][ T5910] bi_data_checksum=0 [ 79.832745][ T5910] bi_compression=0 [ 79.832754][ T5910] bi_project=0 [ 79.832762][ T5910] bi_background_compression=0 [ 79.832773][ T5910] bi_data_replicas=0 [ 79.832782][ T5910] bi_promote_target=0 [ 79.832790][ T5910] bi_foreground_target=64 [ 79.832799][ T5910] bi_background_target=1 [ 79.832808][ T5910] bi_erasure_code=0 [ 79.832816][ T5910] bi_fields_set=0 [ 79.832827][ T5910] bi_dir=0 [ 79.832835][ T5910] bi_dir_offset=32 [ 79.832843][ T5910] bi_subvol=0 [ 79.832851][ T5910] bi_parent_subvol=0 [ 79.832858][ T5910] bi_nocow=0 [pid 5974] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./1/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 79.832867][ T5910] bi_depth=0 [ 79.832875][ T5910] bi_inodes_32bit=0 [ 79.832891][ T5910] bi_casefold=0, fixing [ 79.836831][ T5909] done [ 79.836844][ T5909] bcachefs (loop0): check_indirect_extents... done [ 79.841092][ T5909] bcachefs (loop0): check_dirents... [ 79.842796][ T5909] bcachefs (loop0): directory with missing backpointer [ 79.842822][ T5909] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 79.842835][ T5909] inum: 4098:4294967295 [ 79.842845][ T5909] mode=40755 [pid 5841] close(4) = 0 [pid 5841] rmdir("./1/file1") = 0 [pid 5841] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./1/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./1") = 0 [pid 5841] mkdir("./2", 0777) = 0 [ 79.842855][ T5909] flags=(11300000) [ 79.842862][ T5909] journal_seq=23 [ 79.842873][ T5909] hash_seed=ece93825deac2443 [ 79.842891][ T5909] hash_type=siphash [ 79.842900][ T5909] bi_size=0 [ 79.842908][ T5909] bi_sectors=0 [ 79.842918][ T5909] bi_version=0 [ 79.842927][ T5909] bi_atime=2770562249 [ 79.842937][ T5909] bi_ctime=2780562352 [ 79.842946][ T5909] bi_mtime=2780562352 [ 79.842955][ T5909] bi_otime=2770562249 [ 79.842963][ T5909] bi_uid=0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6007 attached , child_tidptr=0x5555901c6750) = 6007 [pid 6007] set_robust_list(0x5555901c6760, 24) = 0 [ 79.842972][ T5909] bi_gid=0 [ 79.842980][ T5909] bi_nlink=0 [ 79.842989][ T5909] bi_generation=0 [ 79.842998][ T5909] bi_dev=0 [ 79.843006][ T5909] bi_data_checksum=0 [ 79.843015][ T5909] bi_compression=0 [ 79.843024][ T5909] bi_project=0 [ 79.843033][ T5909] bi_background_compression=0 [ 79.843042][ T5909] bi_data_replicas=0 [ 79.843052][ T5909] bi_promote_target=0 [ 79.843060][ T5909] bi_foreground_target=64 [ 79.843070][ T5909] bi_background_target=1 [pid 6007] chdir("./2") = 0 [pid 6007] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 79.843079][ T5909] bi_erasure_code=0 [ 79.843088][ T5909] bi_fields_set=0 [ 79.843097][ T5909] bi_dir=0 [ 79.843106][ T5909] bi_dir_offset=0 [ 79.843114][ T5909] bi_subvol=0 [ 79.843123][ T5909] bi_parent_subvol=0 [ 79.843130][ T5909] bi_nocow=0 [ 79.843139][ T5909] bi_depth=0 [ 79.843147][ T5909] bi_inodes_32bit=0 [ 79.843156][ T5909] bi_casefold=0, fixing [ 79.848086][ T5910] done [ 79.848891][ T5910] bcachefs (loop2): check_extents... [ 79.851086][ T5908] done [pid 6007] setpgid(0, 0) = 0 [pid 6007] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 79.855521][ T5908] bcachefs (loop3): check_extents... [ 79.861261][ T5907] bcachefs (loop1): check_extents_to_backpointers... [ 79.862228][ T5907] bcachefs (loop1): scanning for missing backpointers in 2/128 buckets [ 79.867105][ T5910] done [ 79.867119][ T5910] bcachefs (loop2): check_indirect_extents... [ 79.869000][ T5908] done [ 79.869013][ T5908] bcachefs (loop3): check_indirect_extents... [ 79.870413][ T5910] done [ 79.870441][ T5910] bcachefs (loop2): check_dirents... [pid 6007] write(3, "1000", 4) = 4 [pid 6007] close(3) = 0 [pid 6007] symlink("/dev/binderfs", "./binderfs") = 0 [ 79.873026][ T5910] bcachefs (loop2): directory with missing backpointer [ 79.873041][ T5910] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 79.873055][ T5910] inum: 4098:4294967295 [ 79.873065][ T5910] mode=40755 [ 79.873074][ T5910] flags=(11300000) [ 79.873083][ T5910] journal_seq=23 [ 79.873092][ T5910] hash_seed=ece93825deac2443 [ 79.873101][ T5910] hash_type=siphash [ 79.873110][ T5910] bi_size=0 [ 79.873119][ T5910] bi_sectors=0 [ 79.873125][ T5910] bi_version=0 executing program [pid 6007] write(1, "executing program\n", 18) = 18 [pid 6007] memfd_create("syzkaller", 0) = 3 [pid 6007] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 79.873134][ T5910] bi_atime=2770562249 [ 79.873143][ T5910] bi_ctime=2780562352 [ 79.873152][ T5910] bi_mtime=2780562352 [ 79.873161][ T5910] bi_otime=2770562249 [ 79.873170][ T5910] bi_uid=0 [ 79.873179][ T5910] bi_gid=0 [ 79.873187][ T5910] bi_nlink=0 [ 79.873195][ T5910] bi_generation=0 [ 79.873204][ T5910] bi_dev=0 [ 79.873213][ T5910] bi_data_checksum=0 [ 79.873222][ T5910] bi_compression=0 [ 79.873230][ T5910] bi_project=0 [ 79.873240][ T5910] bi_background_compression=0 [ 79.873249][ T5910] bi_data_replicas=0 [ 79.873258][ T5910] bi_promote_target=0 [ 79.873267][ T5910] bi_foreground_target=64 [ 79.873276][ T5910] bi_background_target=1 [ 79.873286][ T5910] bi_erasure_code=0 [ 79.873294][ T5910] bi_fields_set=0 [ 79.873303][ T5910] bi_dir=0 [ 79.873312][ T5910] bi_dir_offset=0 [ 79.873320][ T5910] bi_subvol=0 [ 79.873329][ T5910] bi_parent_subvol=0 [ 79.873338][ T5910] bi_nocow=0 [ 79.873346][ T5910] bi_depth=0 [ 79.873354][ T5910] bi_inodes_32bit=0 [ 79.873362][ T5910] bi_casefold=0, fixing [ 79.890335][ T5908] done [ 79.890352][ T5908] bcachefs (loop3): check_dirents... [ 79.892083][ T5908] bcachefs (loop3): directory with missing backpointer [ 79.892097][ T5908] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 79.892111][ T5908] inum: 4098:4294967295 [ 79.892120][ T5908] mode=40755 [ 79.892127][ T5908] flags=(11300000) [ 79.892136][ T5908] journal_seq=24 [ 79.892144][ T5908] hash_seed=ece93825deac2443 [ 79.892153][ T5908] hash_type=siphash [ 79.892162][ T5908] bi_size=0 [ 79.892170][ T5908] bi_sectors=0 [ 79.892179][ T5908] bi_version=0 [ 79.892187][ T5908] bi_atime=2770562249 [ 79.892196][ T5908] bi_ctime=2780562352 [ 79.892205][ T5908] bi_mtime=2780562352 [ 79.892213][ T5908] bi_otime=2770562249 [ 79.892222][ T5908] bi_uid=0 [ 79.892231][ T5908] bi_gid=0 [ 79.892239][ T5908] bi_nlink=0 [ 79.892247][ T5908] bi_generation=0 [ 79.892256][ T5908] bi_dev=0 [ 79.892262][ T5908] bi_data_checksum=0 [ 79.892271][ T5908] bi_compression=0 [ 79.892279][ T5908] bi_project=0 [ 79.892288][ T5908] bi_background_compression=0 [ 79.892314][ T5908] bi_data_replicas=0 [ 79.892324][ T5908] bi_promote_target=0 [ 79.892332][ T5908] bi_foreground_target=64 [ 79.892342][ T5908] bi_background_target=1 [ 79.892352][ T5908] bi_erasure_code=0 [ 79.892360][ T5908] bi_fields_set=0 [ 79.892368][ T5908] bi_dir=0 [ 79.892377][ T5908] bi_dir_offset=0 [ 79.892386][ T5908] bi_subvol=0 [ 79.892395][ T5908] bi_parent_subvol=0 [ 79.892404][ T5908] bi_nocow=0 [ 79.892412][ T5908] bi_depth=0 [ 79.892421][ T5908] bi_inodes_32bit=0 [ 79.892430][ T5908] bi_casefold=0, fixing [ 79.895851][ T5907] done [ 79.896252][ T5909] done [ 79.908028][ T5907] bcachefs (loop1): check_dirents... [ 79.909888][ T5909] bcachefs (loop0): check_xattrs... [ 79.911496][ T5908] done [ 79.912040][ T5910] done [ 79.912847][ T5908] bcachefs (loop3): check_xattrs... [ 79.913941][ T5910] bcachefs (loop2): check_xattrs... [ 79.915095][ T5909] done [ 79.918043][ T5909] bcachefs (loop0): check_root... [ 79.919474][ T5908] done [ 79.919489][ T5908] bcachefs (loop3): check_root... [ 79.921644][ T5907] bcachefs (loop1): directory with missing backpointer [ 79.921660][ T5907] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 79.921674][ T5907] inum: 4098:4294967295 [ 79.921683][ T5907] mode=40755 [ 79.921692][ T5907] flags=(11300000) [ 79.921700][ T5907] journal_seq=23 [ 79.921709][ T5907] hash_seed=ece93825deac2443 [ 79.921718][ T5907] hash_type=siphash [ 79.921726][ T5907] bi_size=0 [ 79.921734][ T5907] bi_sectors=0 [ 79.921742][ T5907] bi_version=0 [ 79.921751][ T5907] bi_atime=2770562249 [ 79.921760][ T5907] bi_ctime=2780562352 [ 79.921768][ T5907] bi_mtime=2780562352 [ 79.921777][ T5907] bi_otime=2770562249 [ 79.921786][ T5907] bi_uid=0 [ 79.921794][ T5907] bi_gid=0 [ 79.921802][ T5907] bi_nlink=0 [ 79.921810][ T5907] bi_generation=0 [ 79.921818][ T5907] bi_dev=0 [ 79.921826][ T5907] bi_data_checksum=0 [ 79.921835][ T5907] bi_compression=0 [ 79.921843][ T5907] bi_project=0 [ 79.921850][ T5907] bi_background_compression=0 [ 79.921859][ T5907] bi_data_replicas=0 [ 79.921868][ T5907] bi_promote_target=0 [ 79.921901][ T5907] bi_foreground_target=64 [ 79.921911][ T5907] bi_background_target=1 [ 79.921920][ T5907] bi_erasure_code=0 [ 79.921929][ T5907] bi_fields_set=0 [ 79.921938][ T5907] bi_dir=0 [ 79.921947][ T5907] bi_dir_offset=0 [ 79.921956][ T5907] bi_subvol=0 [ 79.921964][ T5907] bi_parent_subvol=0 [ 79.921973][ T5907] bi_nocow=0 [ 79.921981][ T5907] bi_depth=0 [ 79.921990][ T5907] bi_inodes_32bit=0 [ 79.921999][ T5907] bi_casefold=0, fixing [ 79.925555][ T5908] done [ 79.925568][ T5908] bcachefs (loop3): check_unreachable_inodes... [ 79.926709][ T5909] done [ 79.926724][ T5909] bcachefs (loop0): check_unreachable_inodes... [ 79.927348][ T5910] done [ 79.927362][ T5910] bcachefs (loop2): check_root... [ 79.928576][ T5908] done [ 79.928591][ T5908] bcachefs (loop3): check_subvolume_structure... [ 79.929642][ T5910] done [ 79.929657][ T5910] bcachefs (loop2): check_unreachable_inodes... [ 79.931238][ T5909] done [ 79.931252][ T5909] bcachefs (loop0): check_subvolume_structure... [ 79.931844][ T5908] done [ 79.931857][ T5908] bcachefs (loop3): check_directory_structure... [ 79.933734][ T5910] done [ 79.933748][ T5910] bcachefs (loop2): check_subvolume_structure... [ 79.934262][ T5908] done [ 79.934275][ T5908] bcachefs (loop3): check_nlinks... [ 79.935794][ T5908] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 79.937448][ T5909] done [ 79.937460][ T5909] bcachefs (loop0): check_directory_structure... [ 79.939564][ T5910] done [ 79.939660][ T5910] bcachefs (loop2): check_directory_structure... [ 79.941658][ T5907] done [ 79.942569][ T5910] done [ 79.942582][ T5910] bcachefs (loop2): check_nlinks... [ 79.943306][ T5910] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 79.944807][ T5907] bcachefs (loop1): check_xattrs... [ 79.946361][ T5909] done [ 79.946376][ T5909] bcachefs (loop0): check_nlinks... [ 79.947104][ T5909] bcachefs (loop0): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 79.948846][ T5908] done [ 79.949679][ T5908] bcachefs (loop3): check_rebalance_work... [ 79.951556][ T5907] done [ 79.951572][ T5907] bcachefs (loop1): check_root... [ 79.957159][ T5909] done [ 79.958012][ T5910] done [ 79.960265][ T5909] bcachefs (loop0): check_rebalance_work... [ 79.962752][ T5910] bcachefs (loop2): check_rebalance_work... [ 79.965212][ T5908] done [ 79.965228][ T5908] bcachefs (loop3): resume_logged_ops... [ 79.965699][ T5907] done [ 79.965713][ T5907] bcachefs (loop1): check_unreachable_inodes... [ 79.966738][ T5909] done [ 79.966752][ T5909] bcachefs (loop0): resume_logged_ops... [pid 5975] <... mount resumed>) = 0 [ 79.967374][ T5908] done [ 79.967387][ T5908] bcachefs (loop3): delete_dead_inodes... [ 79.972527][ T5910] done [ 79.973403][ T5907] done [ 79.973781][ T5910] bcachefs (loop2): resume_logged_ops... [ 79.974632][ T5907] bcachefs (loop1): check_subvolume_structure... [ 79.975215][ T5909] done [ 79.976687][ T5909] bcachefs (loop0): delete_dead_inodes... [ 79.982791][ T5907] done [ 79.982808][ T5907] bcachefs (loop1): check_directory_structure... [ 79.983266][ T5910] done [pid 5975] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5975] chdir("./file1") = 0 [pid 5975] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5975] ioctl(4, LOOP_CLR_FD) = 0 [pid 5975] close(4) = 0 [pid 5975] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5975] exit_group(0) = ? [pid 5975] +++ exited with 0 +++ [pid 5837] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5975, si_uid=0, si_status=0, si_utime=2 /* 0.02 s */, si_stime=43 /* 0.43 s */} --- [pid 5837] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5837] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5837] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 79.983280][ T5910] bcachefs (loop2): delete_dead_inodes... [ 79.995743][ T5907] done [ 79.995762][ T5907] bcachefs (loop1): check_nlinks... [ 79.996490][ T5907] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 80.023689][ T5907] done [ 80.024507][ T5908] done [ 80.025942][ T5907] bcachefs (loop1): check_rebalance_work... done [ 80.028575][ T5907] bcachefs (loop1): resume_logged_ops... [ 80.029658][ T5908] bcachefs (loop3): set_fs_needs_rebalance... [ 80.031209][ T5909] done [pid 5837] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5837] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 80.031224][ T5909] bcachefs (loop0): set_fs_needs_rebalance... [ 80.033721][ T5910] done [ 80.033735][ T5910] bcachefs (loop2): set_fs_needs_rebalance... [ 80.047242][ T5907] done [ 80.047261][ T5907] bcachefs (loop1): delete_dead_inodes... done [ 80.049129][ T5907] bcachefs (loop1): set_fs_needs_rebalance... [ 80.062940][ T5909] done [ 80.066775][ T5910] done [ 80.078992][ T5909] bcachefs (loop0): check_extents_to_backpointers... [ 80.080821][ T5909] bcachefs (loop0): scanning for missing backpointers in 2/128 buckets [ 80.083268][ T5945] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 80.083288][ T5945] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 80.087184][ T5953] bcachefs (loop0): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 80.087204][ T5953] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 80.089075][ T5910] bcachefs (loop2): check_extents_to_backpointers... [pid 5837] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6007] 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 5972] <... mount resumed>) = 0 [pid 5972] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5972] chdir("./file1") = 0 [pid 5972] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [ 80.090129][ T5910] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 80.093070][ T5907] done [ 80.106034][ T5945] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 80.111822][ T5946] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 80.111842][ T5946] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 80.123068][ T5909] done [ 80.126190][ T5910] done [ 80.126646][ T5908] done [pid 5972] ioctl(4, LOOP_CLR_FD) = 0 [pid 5972] close(4) = 0 [pid 5972] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5972] exit_group(0) = ? [pid 5972] +++ exited with 0 +++ [pid 5838] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5972, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=40 /* 0.40 s */} --- [pid 5838] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5838] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 80.127482][ T5908] bcachefs (loop3): check_extents_to_backpointers... [ 80.128433][ T5908] bcachefs (loop3): scanning for missing backpointers in 1/128 buckets [ 80.140979][ T5908] done [ 80.142731][ T5909] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 80.142754][ T5909] bcachefs (loop0): check_alloc_info... [ 80.159552][ T5910] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 80.159578][ T5910] bcachefs (loop2): check_alloc_info... [ 80.166525][ T5907] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 80.166548][ T5907] bcachefs (loop1): check_alloc_info... [ 80.169794][ T5909] done [ 80.169810][ T5909] bcachefs (loop0): check_lrus... done [ 80.171593][ T5909] bcachefs (loop0): check_btree_backpointers... [ 80.180233][ T5910] done [ 80.180250][ T5910] bcachefs (loop2): check_lrus... [ 80.183038][ T5909] done [ 80.183052][ T5909] bcachefs (loop0): check_backpointers_to_extents... [ 80.184470][ T5907] done [ 80.184483][ T5907] bcachefs (loop1): check_lrus... [ 80.185837][ T5909] done [ 80.185859][ T5909] bcachefs (loop0): check_extents_to_backpointers... [ 80.187118][ T5910] done [ 80.187132][ T5910] bcachefs (loop2): check_btree_backpointers... [ 80.188329][ T5907] done [ 80.188344][ T5907] bcachefs (loop1): check_btree_backpointers... [ 80.193127][ T5910] done [ 80.193141][ T5910] bcachefs (loop2): check_backpointers_to_extents... [ 80.194772][ T5909] done [ 80.194785][ T5909] bcachefs (loop0): check_alloc_to_lru_refs... [ 80.195930][ T5907] done [ 80.195942][ T5907] bcachefs (loop1): check_backpointers_to_extents... [ 80.198125][ T5910] done [ 80.198139][ T5910] bcachefs (loop2): check_extents_to_backpointers... [ 80.199034][ T5910] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 80.202475][ T5909] done [ 80.205329][ T5907] done [ 80.205342][ T5907] bcachefs (loop1): check_extents_to_backpointers... [ 80.207334][ T5909] bcachefs (loop0): bucket_gens_init... [ 80.212700][ T5910] done [ 80.212717][ T5910] bcachefs (loop2): check_alloc_to_lru_refs... [ 80.214875][ T5907] done [ 80.214891][ T5907] bcachefs (loop1): check_alloc_to_lru_refs... [ 80.216421][ T5909] done [ 80.217597][ T5909] bcachefs (loop0): check_snapshot_trees... [ 80.229971][ T5907] done [ 80.230604][ T5909] done [ 80.230616][ T5909] bcachefs (loop0): check_snapshots... [ 80.231150][ T5910] done [ 80.232071][ T5907] bcachefs (loop1): bucket_gens_init... [ 80.233211][ T5910] bcachefs (loop2): bucket_gens_init... [ 80.234861][ T5909] done [ 80.234874][ T5909] bcachefs (loop0): check_subvols... done [pid 5838] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5974] <... mount resumed>) = 0 [pid 5973] <... mount resumed>) = 0 [pid 5974] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5974] chdir("./file1") = 0 [ 80.235658][ T5909] bcachefs (loop0): check_subvol_children... [ 80.238981][ T5908] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 80.239002][ T5908] bcachefs (loop3): check_alloc_info... [ 80.240677][ T5907] done [ 80.241099][ T5909] done [ 80.241110][ T5909] bcachefs (loop0): delete_dead_snapshots... [ 80.241885][ T5910] done [ 80.242636][ T5907] bcachefs (loop1): check_snapshot_trees... [ 80.243519][ T5910] bcachefs (loop2): check_snapshot_trees... [ 80.252030][ T5909] done [pid 5974] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5973] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5974] <... openat resumed>) = 4 [pid 5973] <... openat resumed>) = 3 [pid 5974] ioctl(4, LOOP_CLR_FD [pid 5973] chdir("./file1" [pid 5974] <... ioctl resumed>) = 0 [pid 5973] <... chdir resumed>) = 0 [pid 5974] close(4 [pid 5973] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5974] <... close resumed>) = 0 [pid 5973] <... openat resumed>) = 4 [pid 5974] write(-1, NULL, 0 [pid 5973] ioctl(4, LOOP_CLR_FD [pid 5974] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5973] <... ioctl resumed>) = 0 [pid 5973] close(4) = 0 [pid 5973] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 5973] exit_group(0) = ? [ 80.252048][ T5909] bcachefs (loop0): check_inodes... [ 80.254322][ T5907] done [ 80.254338][ T5907] bcachefs (loop1): check_snapshots... [ 80.254814][ T5910] done [ 80.254828][ T5910] bcachefs (loop2): check_snapshots... [ 80.255708][ T5909] done [ 80.255721][ T5909] bcachefs (loop0): check_extents... [ 80.257047][ T5910] done [ 80.257060][ T5910] bcachefs (loop2): check_subvols... [ 80.257920][ T5907] done [ 80.257933][ T5907] bcachefs (loop1): check_subvols... [ 80.260912][ T5910] done [ 80.260928][ T5910] bcachefs (loop2): check_subvol_children... [ 80.263575][ T5909] done [ 80.263588][ T5909] bcachefs (loop0): check_indirect_extents... [ 80.264254][ T5907] done [ 80.264267][ T5907] bcachefs (loop1): check_subvol_children... [ 80.265076][ T5910] done [ 80.265103][ T5910] bcachefs (loop2): delete_dead_snapshots... [ 80.265830][ T5909] done [ 80.265843][ T5909] bcachefs (loop0): check_dirents... [ 80.269800][ T5907] done [ 80.269814][ T5907] bcachefs (loop1): delete_dead_snapshots... [ 80.271911][ T5910] done [pid 5974] exit_group(0 [pid 5973] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5973, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=39 /* 0.39 s */} --- [pid 5974] <... exit_group resumed>) = ? [pid 5974] +++ exited with 0 +++ [pid 5840] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5974, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=47 /* 0.47 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...> [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5840] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5839] <... restart_syscall resumed>) = 0 [pid 5839] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 80.271924][ T5910] bcachefs (loop2): check_inodes... [ 80.274305][ T5907] done [ 80.274318][ T5907] bcachefs (loop1): check_inodes... [ 80.280043][ T5908] done [ 80.280060][ T5908] bcachefs (loop3): check_lrus... [ 80.280950][ T5909] done [ 80.280965][ T5909] bcachefs (loop0): check_xattrs... [ 80.282244][ T5910] done [ 80.282256][ T5910] bcachefs (loop2): check_extents... [ 80.282620][ T5907] done [ 80.282631][ T5907] bcachefs (loop1): check_extents... [ 80.294927][ T5909] done [ 80.294945][ T5909] bcachefs (loop0): check_root... [ 80.295886][ T5907] done [ 80.295900][ T5907] bcachefs (loop1): check_indirect_extents... [ 80.296712][ T5908] done [ 80.296726][ T5908] bcachefs (loop3): check_btree_backpointers... [ 80.298005][ T5909] done [ 80.298020][ T5909] bcachefs (loop0): check_unreachable_inodes... [ 80.300629][ T5910] done [ 80.300645][ T5910] bcachefs (loop2): check_indirect_extents... [ 80.301483][ T5907] done [ 80.301498][ T5907] bcachefs (loop1): check_dirents... [ 80.302980][ T5908] done [ 80.303000][ T5908] bcachefs (loop3): check_backpointers_to_extents... [ 80.304436][ T5910] done [ 80.304449][ T5910] bcachefs (loop2): check_dirents... [ 80.305876][ T5909] done [ 80.305890][ T5909] bcachefs (loop0): check_subvolume_structure... [ 80.306534][ T5907] done [ 80.306548][ T5907] bcachefs (loop1): check_xattrs... [ 80.307404][ T5909] done [ 80.307416][ T5909] bcachefs (loop0): check_directory_structure... [ 80.313639][ T5908] done [ 80.313655][ T5908] bcachefs (loop3): check_extents_to_backpointers... [ 80.315271][ T5909] done [ 80.315787][ T5907] done [ 80.315801][ T5907] bcachefs (loop1): check_root... [ 80.316397][ T5910] done [ 80.316410][ T5910] bcachefs (loop2): check_xattrs... [ 80.317086][ T5909] bcachefs (loop0): check_nlinks... [ 80.320151][ T5910] done [ 80.320168][ T5910] bcachefs (loop2): check_root... [ 80.321024][ T5907] done [ 80.321038][ T5907] bcachefs (loop1): check_unreachable_inodes... [ 80.324394][ T5908] done [ 80.324410][ T5908] bcachefs (loop3): check_alloc_to_lru_refs... [ 80.325644][ T5909] done [ 80.325657][ T5909] bcachefs (loop0): check_rebalance_work... [ 80.327241][ T5910] done [ 80.327254][ T5910] bcachefs (loop2): check_unreachable_inodes... [ 80.328114][ T5907] done [ 80.328136][ T5907] bcachefs (loop1): check_subvolume_structure... [ 80.328940][ T5909] done [ 80.328954][ T5909] bcachefs (loop0): resume_logged_ops... [ 80.334065][ T5910] done [ 80.334082][ T5910] bcachefs (loop2): check_subvolume_structure... [ 80.335157][ T5909] done [ 80.335171][ T5909] bcachefs (loop0): delete_dead_inodes... [ 80.335987][ T5907] done [ 80.336001][ T5907] bcachefs (loop1): check_directory_structure... [ 80.336456][ T5908] done [ 80.338739][ T5910] done [ 80.338753][ T5910] bcachefs (loop2): check_directory_structure... [ 80.341318][ T5908] bcachefs (loop3): bucket_gens_init... [ 80.341893][ T5909] done [ 80.341905][ T5909] bcachefs (loop0): set_fs_needs_rebalance... [ 80.342886][ T5907] done [ 80.343613][ T5907] bcachefs (loop1): check_nlinks... [ 80.346388][ T5910] done [ 80.347356][ T5910] bcachefs (loop2): check_nlinks... [ 80.348794][ T5909] done [ 80.358519][ T5907] done [ 80.358535][ T5907] bcachefs (loop1): check_rebalance_work... [ 80.359695][ T5908] done [ 80.361286][ T5908] bcachefs (loop3): check_snapshot_trees... [ 80.362897][ T5910] done [ 80.362912][ T5910] bcachefs (loop2): check_rebalance_work... [ 80.364003][ T5908] done [ 80.364019][ T5908] bcachefs (loop3): check_snapshots... [ 80.365747][ T5909] bcachefs (loop0): done starting filesystem [ 80.367530][ T5907] done [ 80.367542][ T5907] bcachefs (loop1): resume_logged_ops... [ 80.368335][ T5908] done [ 80.368350][ T5908] bcachefs (loop3): check_subvols... [ 80.368828][ T5910] done [ 80.368840][ T5910] bcachefs (loop2): resume_logged_ops... done [ 80.372477][ T5910] bcachefs (loop2): delete_dead_inodes... [ 80.373528][ T5907] done [ 80.373543][ T5907] bcachefs (loop1): delete_dead_inodes... [ 80.373978][ T5908] done [ 80.373991][ T5908] bcachefs (loop3): check_subvol_children... [ 80.374852][ T5910] done [ 80.374865][ T5910] bcachefs (loop2): set_fs_needs_rebalance... [ 80.375922][ T5907] done [ 80.375935][ T5907] bcachefs (loop1): set_fs_needs_rebalance... [ 80.376459][ T5908] done [ 80.376471][ T5908] bcachefs (loop3): delete_dead_snapshots... [ 80.380589][ T5910] done [ 80.383071][ T5908] done [ 80.383085][ T5908] bcachefs (loop3): check_inodes... [ 80.386271][ T5907] done [ 80.390936][ T5908] done [ 80.390950][ T5908] bcachefs (loop3): check_extents... [ 80.394340][ T5910] bcachefs (loop2): done starting filesystem [ 80.397424][ T5907] bcachefs (loop1): done starting filesystem [ 80.406174][ T5908] done [ 80.406191][ T5908] bcachefs (loop3): check_indirect_extents... done [ 80.413361][ T5908] bcachefs (loop3): check_dirents... done [ 80.421194][ T5908] bcachefs (loop3): check_xattrs... done [ 80.429120][ T5908] bcachefs (loop3): check_root... done [ 80.439735][ T5908] bcachefs (loop3): check_unreachable_inodes... done [ 80.444621][ T5908] bcachefs (loop3): check_subvolume_structure... [ 80.453476][ T5941] loop4: detected capacity change from 0 to 32768 [ 80.453997][ T5908] done [ 80.454838][ T5908] bcachefs (loop3): check_directory_structure... done [ 80.456541][ T5908] bcachefs (loop3): check_nlinks... done [ 80.461638][ T5908] bcachefs (loop3): check_rebalance_work... done [ 80.463037][ T5908] bcachefs (loop3): resume_logged_ops... done [ 80.473499][ T5908] bcachefs (loop3): delete_dead_inodes... done [ 80.474386][ T5908] bcachefs (loop3): set_fs_needs_rebalance... done [ 80.481390][ T5837] bcachefs (loop0): shutting down [ 80.481407][ T5837] bcachefs (loop0): going read-only [ 80.481435][ T5837] bcachefs (loop0): finished waiting for writes to stop [ 80.502275][ T5908] bcachefs (loop3): done starting filesystem [ 80.529739][ T5838] bcachefs (loop1): shutting down [ 80.529759][ T5838] bcachefs (loop1): going read-only [ 80.529788][ T5838] bcachefs (loop1): finished waiting for writes to stop [ 80.543809][ T5837] bcachefs (loop0): flushing journal and stopping allocators, journal seq 34 [pid 5839] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6007] <... write resumed>) = 16777216 [pid 6007] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6007] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6007] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6007] close(3) = 0 [pid 6007] close(4) = 0 [ 80.543964][ T5837] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 34 [ 80.550156][ T5837] bcachefs (loop0): clean shutdown complete, journal seq 35 [ 80.551948][ T5837] bcachefs (loop0): marking filesystem clean [ 80.563968][ T5839] bcachefs (loop2): shutting down [ 80.563985][ T5839] bcachefs (loop2): going read-only [ 80.564012][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 80.599557][ T5840] bcachefs (loop3): shutting down [ 80.599576][ T5840] bcachefs (loop3): going read-only [pid 6007] mkdir("./file1", 0777) = 0 [ 80.599604][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 80.628753][ T5838] bcachefs (loop1): flushing journal and stopping allocators, journal seq 35 [ 80.628904][ T5838] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 35 [ 80.641351][ T5838] bcachefs (loop1): clean shutdown complete, journal seq 36 [ 80.643206][ T5838] bcachefs (loop1): marking filesystem clean [ 80.644336][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 35 [ 80.644483][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 35 [ 80.650806][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 36 [ 80.652618][ T5839] bcachefs (loop2): marking filesystem clean [ 80.685968][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 35 [ 80.686124][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 35 [ 80.759812][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 36 [ 80.761621][ T5840] bcachefs (loop3): marking filesystem clean [ 80.983829][ T5941] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 80.983856][ T5941] allowing incompatible features above 0.0: (unknown version) [ 80.983868][ T5941] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 80.983895][ T5941] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 80.984066][ T5941] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 80.984311][ T5941] bcachefs (loop4): Version upgrade required: [ 80.984311][ T5941] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 80.984311][ T5941] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 80.984311][ T5941] 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,check_rebalance_work,set_fs_needs_rebalance [ 80.985889][ T5837] bcachefs (loop0): shutdown complete [ 81.024266][ T5838] bcachefs (loop1): shutdown complete [ 81.026533][ T5839] bcachefs (loop2): shutdown complete [ 81.103979][ T5840] bcachefs (loop3): shutdown complete [ 81.136690][ T5941] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 81.136715][ T5941] size != 0, deleting [ 81.155373][ T5941] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 81.159083][ T5941] bcachefs (loop4): check_topology... done [ 81.181600][ T5941] bcachefs (loop4): accounting_read... done [ 81.275120][ T5941] bcachefs (loop4): alloc_read... done [ 81.275957][ T5941] bcachefs (loop4): snapshots_read... done [ 81.276967][ T5941] bcachefs (loop4): check_allocations... [ 81.278890][ T5941] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 81.278908][ T5941] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 81.285045][ T5941] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 81.285063][ T5941] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 81.286385][ T5941] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 81.286402][ T5941] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 81.287852][ T5941] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 81.287869][ T5941] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 81.328570][ T5941] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 81.328592][ T5941] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 81.329703][ T5941] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.329829][ T5941] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 81.330387][ T5941] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.330494][ T5941] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 81.330895][ T5941] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.331003][ T5941] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 81.331234][ T5941] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6007] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5837] <... umount2 resumed>) = 0 [pid 5837] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5837] newfstatat(AT_FDCWD, "./2/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5837] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5837] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5837] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5837] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5837] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5837] close(4) = 0 [pid 5837] rmdir("./2/file1") = 0 [pid 5837] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5837] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5837] unlink("./2/binderfs") = 0 [pid 5837] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5837] close(3) = 0 [pid 5837] rmdir("./2") = 0 [pid 5837] mkdir("./3", 0777) = 0 [pid 5837] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5837] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5837] close(3) = 0 [pid 5837] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6018 ./strace-static-x86_64: Process 6018 attached [ 81.331340][ T5941] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 81.331554][ T5941] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.331668][ T5941] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 81.331867][ T5941] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.331971][ T5941] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6018] set_robust_list(0x5555901c6760, 24) = 0 [pid 6018] chdir("./3") = 0 [ 81.332178][ T5941] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.332285][ T5941] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 81.332507][ T5941] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 81.332612][ T5941] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 5838] <... umount2 resumed>) = 0 [pid 6018] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5838] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] newfstatat(AT_FDCWD, "./2/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6018] setpgid(0, 0 [pid 5838] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5838] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5838] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5838] close(4) = 0 [pid 5838] rmdir("./2/file1") = 0 [pid 5838] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 6018] <... setpgid resumed>) = 0 [pid 5838] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] unlink("./2/binderfs" [pid 6018] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5838] <... unlink resumed>) = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5838] close(3) = 0 [pid 5838] rmdir("./2") = 0 [ 81.332809][ T5941] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 81.332914][ T5941] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 81.333142][ T5941] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 81.333248][ T5941] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 81.333535][ T5941] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5838] mkdir("./3", 0777) = 0 [pid 5838] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5838] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5838] close(3) = 0 [pid 6018] <... openat resumed>) = 3 [pid 5838] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6019 ./strace-static-x86_64: Process 6019 attached [pid 6019] set_robust_list(0x5555901c6760, 24) = 0 [pid 6019] chdir("./3") = 0 [pid 6019] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6019] setpgid(0, 0) = 0 [pid 6019] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6019] write(3, "1000", 4) = 4 [pid 6019] close(3) = 0 [pid 6019] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6019] write(1, "executing program\n", 18) = 18 [ 81.333551][ T5941] Ratelimiting new instances of previous error [ 81.333694][ T5941] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 81.333711][ T5941] Ratelimiting new instances of previous error [ 81.400038][ T5941] done [ 81.458764][ T5941] bcachefs (loop4): going read-write [ 81.502027][ T5941] bcachefs (loop4): journal_replay... done [ 81.551135][ T5941] bcachefs (loop4): check_alloc_info... [ 81.552953][ T5941] bcachefs (loop4): bucket incorrectly unset in need_discard btree [pid 6019] memfd_create("syzkaller", 0) = 3 [pid 6019] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6018] write(3, "1000", 4) = 4 [pid 6018] close(3) = 0 [pid 6018] symlink("/dev/binderfs", "./binderfs") = 0 [ 81.552971][ T5941] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 81.552989][ T5941] gen 0 oldest_gen 0 data_type need_discard [ 81.553000][ T5941] journal_seq_nonempty 6 [ 81.553010][ T5941] journal_seq_empty 0 [ 81.553019][ T5941] need_discard 1 [ 81.553029][ T5941] need_inc_gen 1 [ 81.553038][ T5941] dirty_sectors 0 [ 81.553047][ T5941] stripe_sectors 0 [ 81.553057][ T5941] cached_sectors 0 [ 81.553065][ T5941] stripe 0 executing program [pid 6018] write(1, "executing program\n", 18) = 18 [ 81.553075][ T5941] stripe_redundancy 0 [ 81.553084][ T5941] io_time[READ] 1 [ 81.553093][ T5941] io_time[WRITE] 768 [ 81.553103][ T5941] fragmentation 0 [ 81.553111][ T5941] bp_start 8 [ 81.553121][ T5941] , fixing [ 81.663223][ T5941] done [ 81.665690][ T5941] bcachefs (loop4): check_lrus... done [ 81.724878][ T5941] bcachefs (loop4): check_btree_backpointers... done [ 81.737923][ T5941] bcachefs (loop4): check_backpointers_to_extents... done [pid 6018] memfd_create("syzkaller", 0) = 3 [ 81.782833][ T5941] bcachefs (loop4): check_extents_to_backpointers... [ 81.784276][ T5941] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 81.793139][ T5941] done [ 81.795828][ T5941] bcachefs (loop4): check_alloc_to_lru_refs... [ 81.797369][ T5941] bcachefs (loop4): missing fragmentation lru entry [ 81.797387][ T5941] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 81.797398][ T5941] gen 0 oldest_gen 0 data_type user [ 81.797408][ T5941] journal_seq_nonempty 5 [ 81.797418][ T5941] journal_seq_empty 134217728 [pid 6018] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 81.797428][ T5941] need_discard 1 [ 81.797437][ T5941] need_inc_gen 1 [ 81.797446][ T5941] dirty_sectors 16 [ 81.797456][ T5941] stripe_sectors 1802251 [ 81.797465][ T5941] cached_sectors 0 [ 81.797475][ T5941] stripe 0 [ 81.797484][ T5941] stripe_redundancy 0 [ 81.797493][ T5941] io_time[READ] 1 [ 81.797503][ T5941] io_time[WRITE] 512 [ 81.797512][ T5941] fragmentation 0 [ 81.797521][ T5941] bp_start 7 [ 81.797530][ T5941] , fixing [ 81.833888][ T5941] done [ 81.837221][ T5941] bcachefs (loop4): bucket_gens_init... done [ 81.842297][ T5941] bcachefs (loop4): check_snapshot_trees... done [ 81.843306][ T5941] bcachefs (loop4): check_snapshots... [ 81.843896][ T5941] bcachefs (loop4): snapshot points to missing/incorrect tree: [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./2/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./2/file1") = 0 [pid 5839] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./2/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./2") = 0 [pid 5839] mkdir("./3", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [ 81.843913][ T5941] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 81.850101][ T10] cfg80211: failed to load regulatory.db [ 81.919188][ T5941] done [ 81.921889][ T5941] bcachefs (loop4): check_subvols... done [ 81.924182][ T5941] bcachefs (loop4): check_subvol_children... done [ 81.949583][ T5941] bcachefs (loop4): delete_dead_snapshots... done [ 81.953533][ T5941] bcachefs (loop4): check_inodes... [ 81.954635][ T5941] bcachefs (loop4): inode points to missing dirent [ 81.954649][ T5941] inum: 4098:4294967295 [ 81.954661][ T5941] mode=40755 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6020 attached , child_tidptr=0x5555901c6750) = 6020 [pid 6020] set_robust_list(0x5555901c6760, 24) = 0 [pid 6020] chdir("./3") = 0 [pid 6020] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6020] setpgid(0, 0) = 0 [pid 6020] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6020] write(3, "1000", 4) = 4 [pid 6020] close(3) = 0 [pid 6020] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6020] write(1, "executing program\n", 18) = 18 [pid 6020] memfd_create("syzkaller", 0) = 3 [pid 6020] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 81.954668][ T5941] flags=(15300000) [ 81.954678][ T5941] journal_seq=4 [ 81.954686][ T5941] hash_seed=ece93825deac2443 [ 81.954697][ T5941] hash_type=siphash [ 81.954704][ T5941] bi_size=0 [ 81.954713][ T5941] bi_sectors=0 [ 81.954721][ T5941] bi_version=0 [ 81.954730][ T5941] bi_atime=2770562249 [ 81.954739][ T5941] bi_ctime=2780562352 [ 81.954748][ T5941] bi_mtime=2780562352 [ 81.954758][ T5941] bi_otime=2770562249 [ 81.954767][ T5941] bi_uid=0 [ 81.954774][ T5941] bi_gid=0 [ 81.954782][ T5941] bi_nlink=0 [ 81.954791][ T5941] bi_generation=0 [ 81.954799][ T5941] bi_dev=0 [ 81.954807][ T5941] bi_data_checksum=0 [ 81.954816][ T5941] bi_compression=0 [ 81.954825][ T5941] bi_project=0 [ 81.954834][ T5941] bi_background_compression=0 [ 81.954844][ T5941] bi_data_replicas=0 [ 81.954852][ T5941] bi_promote_target=0 [ 81.954866][ T5941] bi_foreground_target=64 [ 81.954875][ T5941] bi_background_target=1 [ 81.954885][ T5941] bi_erasure_code=0 [ 81.954894][ T5941] bi_fields_set=0 [ 81.954902][ T5941] bi_dir=0 [ 81.954911][ T5941] bi_dir_offset=32 [ 81.954918][ T5941] bi_subvol=0 [ 81.954927][ T5941] bi_parent_subvol=0 [ 81.954936][ T5941] bi_nocow=0 [ 81.954944][ T5941] bi_depth=0 [ 81.954953][ T5941] bi_inodes_32bit=0 [ 81.954962][ T5941] bi_casefold=0, fixing [ 81.968582][ T5941] done [ 81.969199][ T5941] bcachefs (loop4): check_extents... done [ 81.974685][ T5941] bcachefs (loop4): check_indirect_extents... done [ 81.976155][ T5941] bcachefs (loop4): check_dirents... [ 81.977964][ T5941] bcachefs (loop4): directory with missing backpointer [ 81.977981][ T5941] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 81.977996][ T5941] inum: 4098:4294967295 [ 81.978012][ T5941] mode=40755 [ 81.978021][ T5941] flags=(11300000) [ 81.978030][ T5941] journal_seq=25 [ 81.978039][ T5941] hash_seed=ece93825deac2443 [ 81.978048][ T5941] hash_type=siphash [ 81.978057][ T5941] bi_size=0 [ 81.978066][ T5941] bi_sectors=0 [ 81.978074][ T5941] bi_version=0 [ 81.978084][ T5941] bi_atime=2770562249 [ 81.978093][ T5941] bi_ctime=2780562352 [ 81.978102][ T5941] bi_mtime=2780562352 [ 81.978111][ T5941] bi_otime=2770562249 [ 81.978120][ T5941] bi_uid=0 [ 81.978128][ T5941] bi_gid=0 [ 81.978137][ T5941] bi_nlink=0 [ 81.978145][ T5941] bi_generation=0 [ 81.978154][ T5941] bi_dev=0 [ 81.978163][ T5941] bi_data_checksum=0 [ 81.978172][ T5941] bi_compression=0 [ 81.978181][ T5941] bi_project=0 [ 81.978189][ T5941] bi_background_compression=0 [ 81.978199][ T5941] bi_data_replicas=0 [ 81.978208][ T5941] bi_promote_target=0 [ 81.978217][ T5941] bi_foreground_target=64 [ 81.978226][ T5941] bi_background_target=1 [ 81.978235][ T5941] bi_erasure_code=0 [ 81.978244][ T5941] bi_fields_set=0 [ 81.978253][ T5941] bi_dir=0 [ 81.978262][ T5941] bi_dir_offset=0 [ 81.978271][ T5941] bi_subvol=0 [pid 6019] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [ 81.978279][ T5941] bi_parent_subvol=0 [ 81.978287][ T5941] bi_nocow=0 [ 81.978295][ T5941] bi_depth=0 [ 81.978303][ T5941] bi_inodes_32bit=0 [ 81.978313][ T5941] bi_casefold=0, fixing [ 81.981931][ T5941] done [ 81.990279][ T5941] bcachefs (loop4): check_xattrs... done [ 81.994153][ T5941] bcachefs (loop4): check_root... done [ 81.995253][ T5941] bcachefs (loop4): check_unreachable_inodes... done [ 81.996229][ T5941] bcachefs (loop4): check_subvolume_structure... done [pid 6020] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 6019] <... write resumed>) = 16777216 [pid 6019] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6019] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6019] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6019] close(3) = 0 [ 82.013662][ T5941] bcachefs (loop4): check_directory_structure... done [ 82.021313][ T5941] bcachefs (loop4): check_nlinks... [ 82.050346][ T5941] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 82.054886][ T5941] done [ 82.055503][ T5941] bcachefs (loop4): check_rebalance_work... done [ 82.056663][ T5941] bcachefs (loop4): resume_logged_ops... done [ 82.060225][ T5941] bcachefs (loop4): delete_dead_inodes... done [ 82.078125][ T5941] bcachefs (loop4): set_fs_needs_rebalance... done [pid 6019] close(4) = 0 [pid 6019] mkdir("./file1", 0777) = 0 [ 82.201297][ T5970] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 82.201326][ T5970] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 82.203626][ T5941] bcachefs (loop4): check_extents_to_backpointers... [ 82.204602][ T5941] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 82.213737][ T5941] done [ 82.260461][ T5941] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 82.260489][ T5941] bcachefs (loop4): check_alloc_info... done [ 82.268765][ T5941] bcachefs (loop4): check_lrus... done [ 82.277473][ T5941] bcachefs (loop4): check_btree_backpointers... done [ 82.278693][ T5941] bcachefs (loop4): check_backpointers_to_extents... done [ 82.280662][ T5941] bcachefs (loop4): check_extents_to_backpointers... done [ 82.287364][ T5941] bcachefs (loop4): check_alloc_to_lru_refs... done [ 82.289659][ T5941] bcachefs (loop4): bucket_gens_init... done [ 82.292154][ T5941] bcachefs (loop4): check_snapshot_trees... done [ 82.293239][ T5941] bcachefs (loop4): check_snapshots... done [ 82.294037][ T5941] bcachefs (loop4): check_subvols... done [ 82.294881][ T5941] bcachefs (loop4): check_subvol_children... done [ 82.296306][ T5941] bcachefs (loop4): delete_dead_snapshots... done [ 82.297794][ T5941] bcachefs (loop4): check_inodes... done [ 82.305509][ T5941] bcachefs (loop4): check_extents... done [ 82.314439][ T5941] bcachefs (loop4): check_indirect_extents... done [ 82.317053][ T5941] bcachefs (loop4): check_dirents... done [ 82.322817][ T5941] bcachefs (loop4): check_xattrs... done [pid 6019] mount("/dev/loop1", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6020] <... write resumed>) = 16777216 [ 82.335794][ T5941] bcachefs (loop4): check_root... done [ 82.339421][ T5941] bcachefs (loop4): check_unreachable_inodes... done [ 82.345989][ T5941] bcachefs (loop4): check_subvolume_structure... done [ 82.347587][ T5941] bcachefs (loop4): check_directory_structure... done [ 82.354707][ T5941] bcachefs (loop4): check_nlinks... done [ 82.361117][ T5941] bcachefs (loop4): check_rebalance_work... done [ 82.365351][ T5941] bcachefs (loop4): resume_logged_ops... done [ 82.377123][ T5941] bcachefs (loop4): delete_dead_inodes... done [pid 6020] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6020] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6020] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6020] close(3) = 0 [pid 6020] close(4) = 0 [pid 6020] mkdir("./file1", 0777) = 0 [ 82.380061][ T5941] bcachefs (loop4): set_fs_needs_rebalance... done [ 82.395642][ T5941] bcachefs (loop4): done starting filesystem [ 82.590058][ T5841] bcachefs (loop4): shutting down [ 82.590079][ T5841] bcachefs (loop4): going read-only [ 82.590335][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 82.678866][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 36 [ 82.679020][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 36 [ 82.739757][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 37 [ 82.741573][ T5841] bcachefs (loop4): marking filesystem clean [ 82.901583][ T5841] bcachefs (loop4): shutdown complete [ 83.943930][ T5975] loop0: detected capacity change from 0 to 32768 [ 84.023250][ T5973] loop3: detected capacity change from 0 to 32768 [ 84.078117][ T5972] loop1: detected capacity change from 0 to 32768 [ 84.118823][ T5974] loop2: detected capacity change from 0 to 32768 [ 85.166272][ T5975] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 85.166297][ T5975] allowing incompatible features above 0.0: (unknown version) [ 85.166309][ T5975] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 85.166334][ T5975] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 85.166454][ T5975] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 85.166688][ T5975] bcachefs (loop0): Version upgrade required: [ 85.166688][ T5975] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 85.166688][ T5975] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 85.166688][ T5975] 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,check_rebalance_work,set_fs_needs_rebalance [ 85.224325][ T5975] bcachefs (loop0): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 85.224351][ T5975] size != 0, deleting [ 85.226748][ T5972] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 6020] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 85.226771][ T5972] allowing incompatible features above 0.0: (unknown version) [ 85.226783][ T5972] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 85.226810][ T5972] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 85.226931][ T5972] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 85.227191][ T5972] bcachefs (loop1): Version upgrade required: [ 85.227191][ T5972] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 85.227191][ T5972] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 85.227191][ T5972] 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,check_rebalance_work,set_fs_needs_rebalance [ 85.228912][ T5975] bcachefs (loop0): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 85.241962][ T5975] bcachefs (loop0): check_topology... done [ 85.259458][ T5975] bcachefs (loop0): accounting_read... [ 85.299601][ T5974] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 85.299628][ T5974] allowing incompatible features above 0.0: (unknown version) [ 85.299640][ T5974] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 85.299666][ T5974] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 85.299800][ T5974] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 85.300033][ T5974] bcachefs (loop2): Version upgrade required: [ 85.300033][ T5974] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 85.300033][ T5974] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 85.300033][ T5974] 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,check_rebalance_work,set_fs_needs_rebalance [ 85.306098][ T5975] done [ 85.306116][ T5975] bcachefs (loop0): alloc_read... done [ 85.310768][ T5975] bcachefs (loop0): snapshots_read... done [ 85.340740][ T5975] bcachefs (loop0): check_allocations... [ 85.343588][ T5972] bcachefs (loop1): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 85.343610][ T5972] size != 0, deleting [ 85.345028][ T5975] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 85.345044][ T5975] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 85.346970][ T5972] bcachefs (loop1): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 85.349620][ T5975] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 85.349639][ T5975] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 85.356247][ T5975] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 85.356265][ T5975] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 85.357976][ T5972] bcachefs (loop1): check_topology... [ 85.360078][ T5975] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 85.360097][ T5975] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 85.368783][ T5973] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 85.368808][ T5973] allowing incompatible features above 0.0: (unknown version) [ 85.368821][ T5973] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 85.368866][ T5973] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 85.369001][ T5973] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 85.377264][ T5973] bcachefs (loop3): Version upgrade required: [ 85.377264][ T5973] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [pid 6018] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6018] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6018] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 6018] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6018] close(3) = 0 [pid 6018] close(4) = 0 [pid 6018] mkdir("./file1", 0777) = 0 [ 85.377264][ T5973] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 85.377264][ T5973] 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,check_rebalance_work,set_fs_needs_rebalance [ 85.377825][ T5975] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 85.377842][ T5975] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 85.378945][ T5975] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.379071][ T5975] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.382822][ T5975] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.382933][ T5975] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.383339][ T5975] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.383465][ T5975] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.383666][ T5975] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.383777][ T5975] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.384043][ T5975] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.384152][ T5975] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.384350][ T5975] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.384454][ T5975] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.384693][ T5975] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.384816][ T5975] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.385015][ T5975] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.385117][ T5975] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 85.385314][ T5975] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.385418][ T5975] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.385615][ T5975] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.385728][ T5975] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.385977][ T5975] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.385993][ T5975] Ratelimiting new instances of previous error [ 85.386122][ T5975] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.386136][ T5975] Ratelimiting new instances of previous error [ 85.390514][ T5972] done [ 85.390529][ T5972] bcachefs (loop1): accounting_read... [ 85.410354][ T5974] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 85.410377][ T5974] size != 0, deleting [ 85.417237][ T5974] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 85.421930][ T5972] done [ 85.421944][ T5972] bcachefs (loop1): alloc_read... done [ 85.422803][ T5972] bcachefs (loop1): snapshots_read... done [ 85.424530][ T5972] bcachefs (loop1): check_allocations... [ 85.428225][ T5974] bcachefs (loop2): check_topology... [ 85.437303][ T5972] bcachefs (loop1): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 85.437325][ T5972] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 85.447961][ T5974] done [ 85.447978][ T5974] bcachefs (loop2): accounting_read... [ 85.450121][ T5972] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 85.450142][ T5972] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [pid 6018] mount("/dev/loop0", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5841] kill(-6007, SIGKILL) = 0 [pid 5841] kill(6007, SIGKILL) = 0 [ 85.453686][ T5973] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 85.453706][ T5973] size != 0, deleting [ 85.454411][ T5972] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 85.454427][ T5972] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 85.455972][ T5972] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 85.455989][ T5972] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 85.457528][ T5973] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 85.462753][ T5972] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 85.462772][ T5972] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 85.463782][ T5972] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.463906][ T5972] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.464453][ T5972] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.464559][ T5972] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.464962][ T5972] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.465066][ T5972] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.466419][ T5975] done [ 85.472572][ T5973] bcachefs (loop3): check_topology... [ 85.475888][ T5975] bcachefs (loop0): going read-write [ 85.482567][ T5972] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.482699][ T5972] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.482952][ T5972] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.483057][ T5972] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.483261][ T5972] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.483369][ T5972] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.483567][ T5972] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.483680][ T5972] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.483878][ T5972] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.483980][ T5972] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 85.484205][ T5972] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.484311][ T5972] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.484509][ T5972] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.484616][ T5972] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.484853][ T5972] bcachefs (loop1): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.484868][ T5972] Ratelimiting new instances of previous error [ 85.484994][ T5972] bcachefs (loop1): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.485010][ T5972] Ratelimiting new instances of previous error [ 85.491382][ T5973] done [ 85.491396][ T5973] bcachefs (loop3): accounting_read... [ 85.491514][ T5974] done [ 85.491525][ T5974] bcachefs (loop2): alloc_read... done [ 85.492929][ T5974] bcachefs (loop2): snapshots_read... [ 85.494501][ T5975] bcachefs (loop0): journal_replay... [ 85.497164][ T5974] done [ 85.497178][ T5974] bcachefs (loop2): check_allocations... [ 85.505751][ T5974] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 85.505772][ T5974] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 85.521880][ T5974] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 85.521902][ T5974] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 85.549905][ T5974] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 85.549927][ T5974] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 85.558335][ T5974] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 85.558358][ T5974] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 85.562065][ T5973] done [ 85.562159][ T5973] bcachefs (loop3): alloc_read... done [ 85.565368][ T5973] bcachefs (loop3): snapshots_read... [ 85.566308][ T5974] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 85.566327][ T5974] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 85.567283][ T5974] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.567409][ T5974] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.567961][ T5974] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.568064][ T5974] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.568470][ T5974] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.568573][ T5974] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.568793][ T5974] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.568898][ T5974] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.569122][ T5974] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.569229][ T5974] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.569582][ T5973] done [ 85.569596][ T5973] bcachefs (loop3): check_allocations... [ 85.575662][ T5973] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 85.575682][ T5973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 85.577237][ T5972] done [ 85.582571][ T5972] bcachefs (loop1): going read-write [ 85.584554][ T5973] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 5841] openat(AT_FDCWD, "/sys/fs/fuse/connections", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 2 entries */, 32768) = 48 [ 85.584575][ T5973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 85.590361][ T5974] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.590471][ T5974] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.590691][ T5974] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.590794][ T5974] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [ 85.590994][ T5974] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.591097][ T5974] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 85.591295][ T5974] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.591442][ T5974] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.591713][ T5974] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.591819][ T5974] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.592046][ T5974] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.592062][ T5974] Ratelimiting new instances of previous error [ 85.592188][ T5974] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.592203][ T5974] Ratelimiting new instances of previous error [ 85.593937][ T5973] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 85.593954][ T5973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 85.595576][ T5972] bcachefs (loop1): journal_replay... [ 85.596858][ T5973] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 85.596876][ T5973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 85.637601][ T5973] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 85.637622][ T5973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 85.638661][ T5973] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.638788][ T5973] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.645767][ T5973] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.645882][ T5973] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.646296][ T5973] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.646411][ T5973] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.646614][ T5973] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.646716][ T5973] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.646934][ T5973] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.647038][ T5973] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.647258][ T5973] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.647361][ T5973] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.647565][ T5973] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.647668][ T5973] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 85.647890][ T5973] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 85.647993][ T5973] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 85.648209][ T5973] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.648313][ T5973] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.648519][ T5973] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.648624][ T5973] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.648870][ T5973] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 85.648884][ T5973] Ratelimiting new instances of previous error [ 85.649013][ T5973] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 85.649027][ T5973] Ratelimiting new instances of previous error [ 85.655092][ T5975] done [ 85.657778][ T5975] bcachefs (loop0): check_alloc_info... [ 85.665482][ T5975] bcachefs (loop0): bucket incorrectly unset in need_discard btree [ 85.665501][ T5975] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 85.665514][ T5975] gen 0 oldest_gen 0 data_type need_discard [pid 6019] <... mount resumed>) = 0 [pid 6019] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6019] chdir("./file1") = 0 [pid 6019] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6019] ioctl(4, LOOP_CLR_FD) = 0 [ 85.665525][ T5975] journal_seq_nonempty 6 [ 85.665535][ T5975] journal_seq_empty 0 [ 85.665545][ T5975] need_discard 1 [ 85.665554][ T5975] need_inc_gen 1 [ 85.665563][ T5975] dirty_sectors 0 [ 85.665573][ T5975] stripe_sectors 0 [ 85.665582][ T5975] cached_sectors 0 [ 85.665591][ T5975] stripe 0 [ 85.665600][ T5975] stripe_redundancy 0 [ 85.665620][ T5975] io_time[READ] 1 [ 85.665629][ T5975] io_time[WRITE] 768 [pid 6019] close(4) = 0 [pid 6019] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6019] exit_group(0) = ? [pid 6019] +++ exited with 0 +++ [pid 5838] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6019, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=38 /* 0.38 s */} --- [pid 5838] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5838] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5838] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(3, [pid 6007] <... mount resumed>) = ? [pid 5838] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 85.665639][ T5975] fragmentation 0 [ 85.665648][ T5975] bp_start 8 [ 85.665657][ T5975] , fixing [ 85.698699][ T5973] done [ 85.703346][ T5973] bcachefs (loop3): going read-write [ 85.709121][ T5973] bcachefs (loop3): journal_replay... [ 85.733795][ T5972] done [ 85.734390][ T5972] bcachefs (loop1): check_alloc_info... [ 85.738936][ T5975] done [ 85.740169][ T5975] bcachefs (loop0): check_lrus... [ 85.746542][ T5974] done [ 85.748438][ T5975] done [pid 5838] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6007] +++ killed by SIGKILL +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=6007, si_uid=0, si_status=SIGKILL, si_utime=14 /* 0.14 s */, si_stime=40 /* 0.40 s */} --- [pid 5841] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5841] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./2/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./2/file1") = 0 [ 85.748451][ T5975] bcachefs (loop0): check_btree_backpointers... [ 85.749607][ T5972] bcachefs (loop1): bucket incorrectly unset in need_discard btree [ 85.749625][ T5972] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 85.749638][ T5972] gen 0 oldest_gen 0 data_type need_discard [ 85.749649][ T5972] journal_seq_nonempty 6 [ 85.749658][ T5972] journal_seq_empty 0 [ 85.749667][ T5972] need_discard 1 [ 85.749676][ T5972] need_inc_gen 1 [ 85.749686][ T5972] dirty_sectors 0 [ 85.749695][ T5972] stripe_sectors 0 [pid 5841] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./2/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./2") = 0 [pid 5841] mkdir("./3", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = 0 [ 85.749705][ T5972] cached_sectors 0 [ 85.749714][ T5972] stripe 0 [ 85.749723][ T5972] stripe_redundancy 0 [ 85.749733][ T5972] io_time[READ] 1 [ 85.749742][ T5972] io_time[WRITE] 768 [ 85.749751][ T5972] fragmentation 0 [ 85.749760][ T5972] bp_start 8 [ 85.749769][ T5972] , fixing [ 85.760917][ T5975] done [ 85.760934][ T5975] bcachefs (loop0): check_backpointers_to_extents... [ 85.764259][ T5974] bcachefs (loop2): going read-write [ 85.785110][ T5975] done [ 85.786912][ T5975] bcachefs (loop0): check_extents_to_backpointers... [ 85.788265][ T5975] bcachefs (loop0): scanning for missing backpointers in 5/128 buckets [ 85.795357][ T5974] bcachefs (loop2): journal_replay... [ 85.798541][ T5975] done [ 85.812144][ T5975] bcachefs (loop0): check_alloc_to_lru_refs... [ 85.814052][ T5975] bcachefs (loop0): missing fragmentation lru entry [ 85.814069][ T5975] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 85.814080][ T5975] gen 0 oldest_gen 0 data_type user [ 85.814090][ T5975] journal_seq_nonempty 5 [ 85.814100][ T5975] journal_seq_empty 134217728 [ 85.814115][ T5975] need_discard 1 [ 85.814125][ T5975] need_inc_gen 1 [ 85.814134][ T5975] dirty_sectors 16 [ 85.814143][ T5975] stripe_sectors 1802251 [ 85.814153][ T5975] cached_sectors 0 [ 85.814162][ T5975] stripe 0 [ 85.814171][ T5975] stripe_redundancy 0 [ 85.814181][ T5975] io_time[READ] 1 [pid 5841] close(3 [pid 6020] <... mount resumed>) = 0 [pid 6020] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6020] <... openat resumed>) = 3 [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./2/file1", [pid 6020] chdir("./file1" [pid 5840] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6020] <... chdir resumed>) = 0 [pid 5840] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6020] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6020] <... openat resumed>) = 4 [pid 5840] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6020] ioctl(4, LOOP_CLR_FD [pid 5840] <... openat resumed>) = 4 [pid 6020] <... ioctl resumed>) = 0 [pid 5840] newfstatat(4, "", [pid 6020] close(4 [pid 5840] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, [pid 6020] <... close resumed>) = 0 [pid 5840] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 6020] write(-1, NULL, 0 [pid 5840] close(4 [pid 6020] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5840] <... close resumed>) = 0 [pid 6020] exit_group(0 [pid 5840] rmdir("./2/file1" [pid 6020] <... exit_group resumed>) = ? [pid 5840] <... rmdir resumed>) = 0 [pid 6020] +++ exited with 0 +++ [pid 5840] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6020, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=43 /* 0.43 s */} --- [pid 5840] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] unlink("./2/binderfs" [pid 5839] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] <... unlink resumed>) = 0 [ 85.814190][ T5975] io_time[WRITE] 512 [ 85.814199][ T5975] fragmentation 0 [ 85.814209][ T5975] bp_start 7 [ 85.814218][ T5975] , fixing [ 85.824747][ T5975] done [ 85.828388][ T5975] bcachefs (loop0): bucket_gens_init... done [ 85.831946][ T5975] bcachefs (loop0): check_snapshot_trees... done [ 85.834688][ T5975] bcachefs (loop0): check_snapshots... [ 85.835269][ T5975] bcachefs (loop0): snapshot points to missing/incorrect tree: [pid 5840] getdents64(3, [pid 5839] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./2") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5839] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] mkdir("./3", 0777) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6055 attached , child_tidptr=0x5555901c6750) = 6055 [ 85.835286][ T5975] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 85.871699][ T5973] done [ 85.872260][ T5973] bcachefs (loop3): check_alloc_info... [ 85.874044][ T5973] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 85.874061][ T5973] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 85.874071][ T5973] gen 0 oldest_gen 0 data_type need_discard [ 85.874083][ T5973] journal_seq_nonempty 6 [ 85.874092][ T5973] journal_seq_empty 0 [ 85.874100][ T5973] need_discard 1 [pid 6055] set_robust_list(0x5555901c6760, 24) = 0 [pid 6055] chdir("./3") = 0 [ 85.874115][ T5973] need_inc_gen 1 [ 85.874124][ T5973] dirty_sectors 0 [ 85.874133][ T5973] stripe_sectors 0 [ 85.874142][ T5973] cached_sectors 0 [ 85.874150][ T5973] stripe 0 [ 85.874178][ T5973] stripe_redundancy 0 [ 85.874187][ T5973] io_time[READ] 1 [ 85.874196][ T5973] io_time[WRITE] 768 [ 85.874205][ T5973] fragmentation 0 [ 85.874215][ T5973] bp_start 8 [ 85.874224][ T5973] , fixing [ 85.882184][ T5972] done [pid 6055] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6055] setpgid(0, 0) = 0 [pid 6055] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 85.887685][ T5972] bcachefs (loop1): check_lrus... done [ 85.893477][ T5972] bcachefs (loop1): check_btree_backpointers... done [ 85.895783][ T5972] bcachefs (loop1): check_backpointers_to_extents... [ 85.903100][ T5975] done [ 85.904004][ T5975] bcachefs (loop0): check_subvols... [ 85.906709][ T5972] done [ 85.907280][ T5972] bcachefs (loop1): check_extents_to_backpointers... [ 85.908633][ T5972] bcachefs (loop1): scanning for missing backpointers in 5/128 buckets [ 85.911978][ T5975] done [ 85.916910][ T5972] done [pid 6055] write(3, "1000", 4) = 4 [pid 6055] close(3) = 0 [ 85.917944][ T5972] bcachefs (loop1): check_alloc_to_lru_refs... [ 85.920748][ T5972] bcachefs (loop1): missing fragmentation lru entry [ 85.920766][ T5972] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 85.920777][ T5972] gen 0 oldest_gen 0 data_type user [ 85.920789][ T5972] journal_seq_nonempty 5 [ 85.920796][ T5972] journal_seq_empty 134217728 [ 85.920808][ T5972] need_discard 1 [ 85.920818][ T5972] need_inc_gen 1 [ 85.920827][ T5972] dirty_sectors 16 [pid 6055] symlink("/dev/binderfs", "./binderfs") = 0 [ 85.920836][ T5972] stripe_sectors 1802251 [ 85.920846][ T5972] cached_sectors 0 [ 85.920855][ T5972] stripe 0 [ 85.932843][ T5972] stripe_redundancy 0 [ 85.932857][ T5972] io_time[READ] 1 [ 85.932869][ T5972] io_time[WRITE] 512 [ 85.932879][ T5972] fragmentation 0 [ 85.932888][ T5972] bp_start 7 [ 85.932897][ T5972] , fixing [ 85.933439][ T5974] done [ 85.939458][ T5974] bcachefs (loop2): check_alloc_info... [pid 6055] write(1, "executing program\n", 18executing program ) = 18 [ 85.941532][ T5974] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 85.941551][ T5974] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 85.941562][ T5974] gen 0 oldest_gen 0 data_type need_discard [ 85.941573][ T5974] journal_seq_nonempty 6 [ 85.941591][ T5974] journal_seq_empty 0 [ 85.941600][ T5974] need_discard 1 [ 85.941609][ T5974] need_inc_gen 1 [ 85.941618][ T5974] dirty_sectors 0 [ 85.941628][ T5974] stripe_sectors 0 [ 85.941637][ T5974] cached_sectors 0 [pid 6055] memfd_create("syzkaller", 0) = 3 [pid 6055] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 85.941647][ T5974] stripe 0 [ 85.941656][ T5974] stripe_redundancy 0 [ 85.941666][ T5974] io_time[READ] 1 [ 85.941675][ T5974] io_time[WRITE] 768 [ 85.941684][ T5974] fragmentation 0 [ 85.941693][ T5974] bp_start 8 [ 85.941702][ T5974] , fixing [ 85.950251][ T5975] bcachefs (loop0): check_subvol_children... done [ 85.952252][ T5975] bcachefs (loop0): delete_dead_snapshots... done [ 85.952985][ T5975] bcachefs (loop0): check_inodes... [ 85.954069][ T5975] bcachefs (loop0): inode points to missing dirent [ 85.954085][ T5975] inum: 4098:4294967295 [ 85.954094][ T5975] mode=40755 [ 85.954103][ T5975] flags=(15300000) [ 85.954119][ T5975] journal_seq=4 [ 85.954128][ T5975] hash_seed=ece93825deac2443 [ 85.954138][ T5975] hash_type=siphash [ 85.954146][ T5975] bi_size=0 [ 85.954156][ T5975] bi_sectors=0 [ 85.954164][ T5975] bi_version=0 [ 85.954173][ T5975] bi_atime=2770562249 [ 85.954182][ T5975] bi_ctime=2780562352 [ 85.954191][ T5975] bi_mtime=2780562352 [ 85.954201][ T5975] bi_otime=2770562249 [ 85.954210][ T5975] bi_uid=0 [ 85.954218][ T5975] bi_gid=0 [ 85.954227][ T5975] bi_nlink=0 [ 85.954234][ T5975] bi_generation=0 [ 85.954242][ T5975] bi_dev=0 [ 85.954251][ T5975] bi_data_checksum=0 [ 85.954260][ T5975] bi_compression=0 [ 85.954268][ T5975] bi_project=0 [ 85.954277][ T5975] bi_background_compression=0 [pid 5841] <... close resumed>) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6059 ./strace-static-x86_64: Process 6059 attached [pid 6059] set_robust_list(0x5555901c6760, 24) = 0 [pid 6059] chdir("./3") = 0 [ 85.954287][ T5975] bi_data_replicas=0 [ 85.954296][ T5975] bi_promote_target=0 [ 85.954305][ T5975] bi_foreground_target=64 [ 85.954314][ T5975] bi_background_target=1 [ 85.954323][ T5975] bi_erasure_code=0 [ 85.954337][ T5975] bi_fields_set=0 [ 85.954346][ T5975] bi_dir=0 [ 85.954354][ T5975] bi_dir_offset=32 [ 85.954363][ T5975] bi_subvol=0 [ 85.954372][ T5975] bi_parent_subvol=0 [ 85.954381][ T5975] bi_nocow=0 [ 85.954388][ T5975] bi_depth=0 [pid 6059] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6059] setpgid(0, 0) = 0 [ 85.954402][ T5975] bi_inodes_32bit=0 [ 85.954410][ T5975] bi_casefold=0, fixing [ 85.961531][ T5973] done [ 85.968105][ T5973] bcachefs (loop3): check_lrus... [ 85.981553][ T5975] done [ 85.982227][ T5972] done [ 85.983293][ T5975] bcachefs (loop0): check_extents... [ 85.986243][ T5973] done [ 85.986259][ T5973] bcachefs (loop3): check_btree_backpointers... [ 85.987221][ T5972] bcachefs (loop1): bucket_gens_init... [ 85.994843][ T5975] done [ 85.994860][ T5975] bcachefs (loop0): check_indirect_extents... [pid 6059] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 85.996328][ T5973] done [ 85.996344][ T5973] bcachefs (loop3): check_backpointers_to_extents... [ 85.998812][ T5975] done [ 85.998826][ T5975] bcachefs (loop0): check_dirents... [ 86.001360][ T5975] bcachefs (loop0): directory with missing backpointer [ 86.001376][ T5975] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 86.001391][ T5975] inum: 4098:4294967295 [ 86.001400][ T5975] mode=40755 [ 86.001408][ T5975] flags=(11300000) [ 86.001418][ T5975] journal_seq=24 [pid 6059] write(3, "1000", 4) = 4 [pid 6059] close(3) = 0 [ 86.001426][ T5975] hash_seed=ece93825deac2443 [ 86.001435][ T5975] hash_type=siphash [ 86.001445][ T5975] bi_size=0 [ 86.001454][ T5975] bi_sectors=0 [ 86.001462][ T5975] bi_version=0 [ 86.001470][ T5975] bi_atime=2770562249 [ 86.001480][ T5975] bi_ctime=2780562352 [ 86.001490][ T5975] bi_mtime=2780562352 [ 86.001499][ T5975] bi_otime=2770562249 [ 86.001508][ T5975] bi_uid=0 [ 86.001515][ T5975] bi_gid=0 [ 86.001524][ T5975] bi_nlink=0 [pid 6059] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6059] write(1, "executing program\n", 18) = 18 [ 86.001532][ T5975] bi_generation=0 [ 86.001541][ T5975] bi_dev=0 [ 86.001550][ T5975] bi_data_checksum=0 [ 86.001559][ T5975] bi_compression=0 [ 86.001568][ T5975] bi_project=0 [ 86.001585][ T5975] bi_background_compression=0 [ 86.001595][ T5975] bi_data_replicas=0 [ 86.001604][ T5975] bi_promote_target=0 [ 86.001613][ T5975] bi_foreground_target=64 [ 86.001623][ T5975] bi_background_target=1 [ 86.001634][ T5975] bi_erasure_code=0 [ 86.001643][ T5975] bi_fields_set=0 [pid 6059] memfd_create("syzkaller", 0) = 3 [pid 6059] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 86.001650][ T5975] bi_dir=0 [ 86.001659][ T5975] bi_dir_offset=0 [ 86.001667][ T5975] bi_subvol=0 [ 86.001676][ T5975] bi_parent_subvol=0 [ 86.001684][ T5975] bi_nocow=0 [ 86.001691][ T5975] bi_depth=0 [ 86.001932][ T5972] done [ 86.002734][ T5972] bcachefs (loop1): check_snapshot_trees... done [ 86.006286][ T5972] bcachefs (loop1): check_snapshots... [ 86.006893][ T5972] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 86.006910][ T5972] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 86.010835][ T5973] done [ 86.012171][ T5975] bi_inodes_32bit=0 [ 86.012185][ T5975] bi_casefold=0, fixing [ 86.020687][ T5975] done [ 86.021356][ T5975] bcachefs (loop0): check_xattrs... done [ 86.022919][ T5975] bcachefs (loop0): check_root... done [ 86.028743][ T5975] bcachefs (loop0): check_unreachable_inodes... done [ 86.033984][ T5975] bcachefs (loop0): check_subvolume_structure... done [ 86.035025][ T5975] bcachefs (loop0): check_directory_structure... done [ 86.035753][ T5975] bcachefs (loop0): check_nlinks... [ 86.036452][ T5975] bcachefs (loop0): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 86.047691][ T5973] bcachefs (loop3): check_extents_to_backpointers... [ 86.049078][ T5973] bcachefs (loop3): scanning for missing backpointers in 6/128 buckets [ 86.062522][ T5975] done [ 86.065276][ T5973] done [ 86.065968][ T5975] bcachefs (loop0): check_rebalance_work... [ 86.067099][ T5972] done [ 86.068401][ T5973] bcachefs (loop3): check_alloc_to_lru_refs... [ 86.071031][ T5973] bcachefs (loop3): missing fragmentation lru entry [ 86.071048][ T5973] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 86.071060][ T5973] gen 0 oldest_gen 0 data_type user [ 86.071072][ T5973] journal_seq_nonempty 5 [ 86.071081][ T5973] journal_seq_empty 134217728 [ 86.071091][ T5973] need_discard 1 [ 86.071100][ T5973] need_inc_gen 1 [ 86.071110][ T5973] dirty_sectors 16 [ 86.071119][ T5973] stripe_sectors 1802251 [ 86.071129][ T5973] cached_sectors 0 [ 86.071138][ T5973] stripe 0 [ 86.071147][ T5973] stripe_redundancy 0 [ 86.071156][ T5973] io_time[READ] 1 [ 86.071165][ T5973] io_time[WRITE] 512 [ 86.071175][ T5973] fragmentation 0 [ 86.071184][ T5973] bp_start 7 [ 86.071193][ T5973] , fixing [ 86.073009][ T5975] done [ 86.073021][ T5975] bcachefs (loop0): resume_logged_ops... [ 86.073797][ T5974] done [ 86.078329][ T5974] bcachefs (loop2): check_lrus... [ 86.081172][ T5972] bcachefs (loop1): check_subvols... [ 86.082808][ T5974] done [ 86.082824][ T5974] bcachefs (loop2): check_btree_backpointers... [ 86.084199][ T5975] done [ 86.084211][ T5975] bcachefs (loop0): delete_dead_inodes... [ 86.091681][ T5972] done [ 86.091752][ T5974] done [ 86.091763][ T5974] bcachefs (loop2): check_backpointers_to_extents... [ 86.094697][ T5973] done [ 86.096024][ T5973] bcachefs (loop3): bucket_gens_init... [ 86.099109][ T5974] done [pid 6055] 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 5838] <... umount2 resumed>) = 0 [pid 5838] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 86.102639][ T5974] bcachefs (loop2): check_extents_to_backpointers... [ 86.104117][ T5974] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 86.105897][ T5973] done [ 86.106786][ T5973] bcachefs (loop3): check_snapshot_trees... done [ 86.107585][ T5973] bcachefs (loop3): check_snapshots... [ 86.108188][ T5973] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 86.108205][ T5973] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [pid 5838] newfstatat(AT_FDCWD, "./3/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./3/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5838] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5838] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5838] close(4) = 0 [pid 5838] rmdir("./3/file1") = 0 [pid 5838] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] unlink("./3/binderfs") = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5838] close(3) = 0 [pid 5838] rmdir("./3") = 0 [pid 5838] mkdir("./4", 0777) = 0 [ 86.113268][ T5972] bcachefs (loop1): check_subvol_children... done [ 86.114076][ T5972] bcachefs (loop1): delete_dead_snapshots... done [ 86.114833][ T5972] bcachefs (loop1): check_inodes... [ 86.120137][ T5972] bcachefs (loop1): inode points to missing dirent [ 86.120155][ T5972] inum: 4098:4294967295 [ 86.120165][ T5972] mode=40755 [ 86.120173][ T5972] flags=(15300000) [ 86.120182][ T5972] journal_seq=4 [ 86.120191][ T5972] hash_seed=ece93825deac2443 [ 86.120200][ T5972] hash_type=siphash [pid 5838] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5838] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5838] close(3) = 0 [pid 5838] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6060 ./strace-static-x86_64: Process 6060 attached [ 86.120210][ T5972] bi_size=0 [ 86.120218][ T5972] bi_sectors=0 [ 86.120226][ T5972] bi_version=0 [ 86.120235][ T5972] bi_atime=2770562249 [ 86.120244][ T5972] bi_ctime=2780562352 [ 86.120253][ T5972] bi_mtime=2780562352 [ 86.120263][ T5972] bi_otime=2770562249 [ 86.120272][ T5972] bi_uid=0 [ 86.120282][ T5972] bi_gid=0 [ 86.120290][ T5972] bi_nlink=0 [ 86.120299][ T5972] bi_generation=0 [ 86.120308][ T5972] bi_dev=0 [ 86.120314][ T5972] bi_data_checksum=0 [pid 6060] set_robust_list(0x5555901c6760, 24) = 0 [pid 6060] chdir("./4") = 0 [pid 6060] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6060] setpgid(0, 0) = 0 [pid 6060] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6060] write(3, "1000", 4) = 4 [pid 6060] close(3) = 0 [pid 6060] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5837] kill(-6018, SIGKILL [pid 6060] write(1, "executing program\n", 18 [pid 5837] <... kill resumed>) = 0 executing program [pid 6060] <... write resumed>) = 18 [pid 5837] kill(6018, SIGKILL [pid 6060] memfd_create("syzkaller", 0 [pid 5837] <... kill resumed>) = 0 [pid 6060] <... memfd_create resumed>) = 3 [ 86.120323][ T5972] bi_compression=0 [ 86.120332][ T5972] bi_project=0 [ 86.120341][ T5972] bi_background_compression=0 [ 86.120352][ T5972] bi_data_replicas=0 [ 86.120362][ T5972] bi_promote_target=0 [ 86.120370][ T5972] bi_foreground_target=64 [ 86.120380][ T5972] bi_background_target=1 [ 86.120389][ T5972] bi_erasure_code=0 [ 86.120398][ T5972] bi_fields_set=0 [ 86.120407][ T5972] bi_dir=0 [ 86.120415][ T5972] bi_dir_offset=32 [ 86.120424][ T5972] bi_subvol=0 [pid 6060] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 86.120432][ T5972] bi_parent_subvol=0 [ 86.120440][ T5972] bi_nocow=0 [ 86.120448][ T5972] bi_depth=0 [ 86.120457][ T5972] bi_inodes_32bit=0 [ 86.120466][ T5972] bi_casefold=0, fixing [ 86.127281][ T5975] done [ 86.130169][ T5974] done [ 86.132528][ T5974] bcachefs (loop2): check_alloc_to_lru_refs... [ 86.134394][ T5974] bcachefs (loop2): missing fragmentation lru entry [ 86.134411][ T5974] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 86.134421][ T5974] gen 0 oldest_gen 0 data_type user [ 86.134431][ T5974] journal_seq_nonempty 5 [ 86.134440][ T5974] journal_seq_empty 134217728 [ 86.134450][ T5974] need_discard 1 [ 86.134459][ T5974] need_inc_gen 1 [ 86.134468][ T5974] dirty_sectors 16 [ 86.134477][ T5974] stripe_sectors 1802251 [ 86.134487][ T5974] cached_sectors 0 [ 86.134496][ T5974] stripe 0 [ 86.134506][ T5974] stripe_redundancy 0 [ 86.134515][ T5974] io_time[READ] 1 [ 86.134524][ T5974] io_time[WRITE] 512 [ 86.134534][ T5974] fragmentation 0 [ 86.134541][ T5974] bp_start 7 [ 86.134550][ T5974] , fixing [ 86.136015][ T5975] bcachefs (loop0): set_fs_needs_rebalance... [ 86.140854][ T5972] done [ 86.141452][ T5972] bcachefs (loop1): check_extents... done [ 86.155977][ T5974] done [ 86.157186][ T5972] bcachefs (loop1): check_indirect_extents... done [ 86.161893][ T5972] bcachefs (loop1): check_dirents... [ 86.163602][ T5972] bcachefs (loop1): directory with missing backpointer [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./3/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./3/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./3/file1") = 0 [pid 5839] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./3/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./3") = 0 [ 86.163619][ T5972] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 86.163634][ T5972] inum: 4098:4294967295 [ 86.163643][ T5972] mode=40755 [ 86.163652][ T5972] flags=(11300000) [ 86.163661][ T5972] journal_seq=23 [ 86.163669][ T5972] hash_seed=ece93825deac2443 [ 86.163679][ T5972] hash_type=siphash [ 86.163688][ T5972] bi_size=0 [ 86.163697][ T5972] bi_sectors=0 [ 86.163705][ T5972] bi_version=0 [ 86.163712][ T5972] bi_atime=2770562249 [pid 5839] mkdir("./4", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6061 attached , child_tidptr=0x5555901c6750) = 6061 [ 86.163723][ T5972] bi_ctime=2780562352 [ 86.163730][ T5972] bi_mtime=2780562352 [ 86.163740][ T5972] bi_otime=2770562249 [ 86.163749][ T5972] bi_uid=0 [ 86.163757][ T5972] bi_gid=0 [ 86.163766][ T5972] bi_nlink=0 [ 86.163774][ T5972] bi_generation=0 [ 86.163783][ T5972] bi_dev=0 [ 86.163792][ T5972] bi_data_checksum=0 [ 86.163801][ T5972] bi_compression=0 [ 86.163810][ T5972] bi_project=0 [ 86.163819][ T5972] bi_background_compression=0 [pid 6061] set_robust_list(0x5555901c6760, 24) = 0 [pid 6061] chdir("./4") = 0 [pid 6061] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6061] setpgid(0, 0) = 0 [pid 6061] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6061] write(3, "1000", 4) = 4 [pid 6061] close(3) = 0 [pid 6061] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6061] write(1, "executing program\n", 18) = 18 [pid 6061] memfd_create("syzkaller", 0) = 3 [pid 6061] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 86.163828][ T5972] bi_data_replicas=0 [ 86.163837][ T5972] bi_promote_target=0 [ 86.163846][ T5972] bi_foreground_target=64 [ 86.163855][ T5972] bi_background_target=1 [ 86.163864][ T5972] bi_erasure_code=0 [ 86.163874][ T5972] bi_fields_set=0 [ 86.163882][ T5972] bi_dir=0 [ 86.163891][ T5972] bi_dir_offset=0 [ 86.163900][ T5972] bi_subvol=0 [ 86.163908][ T5972] bi_parent_subvol=0 [ 86.163917][ T5972] bi_nocow=0 [ 86.163925][ T5972] bi_depth=0 [ 86.163934][ T5972] bi_inodes_32bit=0 [ 86.163943][ T5972] bi_casefold=0, fixing [ 86.168070][ T5974] bcachefs (loop2): bucket_gens_init... done [ 86.173869][ T5974] bcachefs (loop2): check_snapshot_trees... [ 86.175602][ T5973] done [ 86.176761][ T5974] done [ 86.176773][ T5974] bcachefs (loop2): check_snapshots... [ 86.177846][ T5973] bcachefs (loop3): check_subvols... [ 86.178945][ T5974] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 86.178963][ T5974] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 86.182373][ T5975] done [ 86.192627][ T5972] done [ 86.194366][ T5972] bcachefs (loop1): check_xattrs... [ 86.195619][ T6005] bcachefs (loop0): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.195639][ T6005] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 86.198973][ T5973] done [ 86.202369][ T5972] done [ 86.202382][ T5972] bcachefs (loop1): check_root... [ 86.204203][ T5975] bcachefs (loop0): check_extents_to_backpointers... [ 86.205139][ T5975] bcachefs (loop0): scanning for missing backpointers in 1/128 buckets [ 86.206886][ T5972] done [ 86.206900][ T5972] bcachefs (loop1): check_unreachable_inodes... done [ 86.210244][ T5972] bcachefs (loop1): check_subvolume_structure... [ 86.216698][ T5973] bcachefs (loop3): check_subvol_children... [ 86.218109][ T5972] done [ 86.218124][ T5972] bcachefs (loop1): check_directory_structure... [ 86.218674][ T5973] done [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 5837] openat(AT_FDCWD, "/sys/fs/fuse/connections", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5837] newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0 [pid 5837] getdents64(3, 0x5555901c77f0 /* 2 entries */, 32768) = 48 [pid 5837] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5837] close(3) = 0 [ 86.218686][ T5973] bcachefs (loop3): delete_dead_snapshots... [ 86.220663][ T5972] done [ 86.220679][ T5972] bcachefs (loop1): check_nlinks... [ 86.221472][ T5972] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 86.223308][ T5973] done [ 86.223322][ T5973] bcachefs (loop3): check_inodes... [ 86.224424][ T5973] bcachefs (loop3): inode points to missing dirent [ 86.224440][ T5973] inum: 4098:4294967295 [ 86.224449][ T5973] mode=40755 [ 86.224459][ T5973] flags=(15300000) [ 86.224467][ T5973] journal_seq=4 [ 86.224477][ T5973] hash_seed=ece93825deac2443 [ 86.224486][ T5973] hash_type=siphash [ 86.224495][ T5973] bi_size=0 [ 86.224502][ T5973] bi_sectors=0 [ 86.224511][ T5973] bi_version=0 [ 86.224520][ T5973] bi_atime=2770562249 [ 86.224529][ T5973] bi_ctime=2780562352 [ 86.224538][ T5973] bi_mtime=2780562352 [ 86.224547][ T5973] bi_otime=2770562249 [ 86.224565][ T5973] bi_uid=0 [ 86.224573][ T5973] bi_gid=0 [ 86.224581][ T5973] bi_nlink=0 [ 86.224590][ T5973] bi_generation=0 [ 86.224597][ T5973] bi_dev=0 [ 86.224606][ T5973] bi_data_checksum=0 [ 86.224615][ T5973] bi_compression=0 [ 86.224624][ T5973] bi_project=0 [ 86.224633][ T5973] bi_background_compression=0 [ 86.224642][ T5973] bi_data_replicas=0 [ 86.224651][ T5973] bi_promote_target=0 [ 86.224660][ T5973] bi_foreground_target=64 [ 86.224670][ T5973] bi_background_target=1 [ 86.224679][ T5973] bi_erasure_code=0 [ 86.224688][ T5973] bi_fields_set=0 [pid 6055] <... write resumed>) = 16777216 [pid 6055] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6055] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6055] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6055] close(3) = 0 [pid 6055] close(4) = 0 [pid 6055] mkdir("./file1", 0777) = 0 [ 86.224696][ T5973] bi_dir=0 [ 86.224705][ T5973] bi_dir_offset=32 [ 86.224714][ T5973] bi_subvol=0 [ 86.224723][ T5973] bi_parent_subvol=0 [ 86.224731][ T5973] bi_nocow=0 [ 86.224740][ T5973] bi_depth=0 [ 86.224749][ T5973] bi_inodes_32bit=0 [ 86.224757][ T5973] bi_casefold=0, fixing [ 86.232771][ T5972] done [ 86.233618][ T5972] bcachefs (loop1): check_rebalance_work... [ 86.240495][ T5974] done [ 86.242246][ T5974] bcachefs (loop2): check_subvols... [ 86.243471][ T5972] done [pid 6055] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 86.243486][ T5972] bcachefs (loop1): resume_logged_ops... done [ 86.249076][ T5972] bcachefs (loop1): delete_dead_inodes... [ 86.251108][ T5975] done [ 86.260653][ T5974] done [ 86.261259][ T5973] done [ 86.262668][ T5973] bcachefs (loop3): check_extents... [ 86.274795][ T5975] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 86.274821][ T5975] bcachefs (loop0): check_alloc_info... [ 86.279772][ T5973] done [ 86.283649][ T5973] bcachefs (loop3): check_indirect_extents... [ 86.284518][ T5972] done [ 86.285477][ T5973] done [ 86.285491][ T5973] bcachefs (loop3): check_dirents... [ 86.287257][ T5973] bcachefs (loop3): directory with missing backpointer [ 86.287272][ T5973] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 86.287287][ T5973] inum: 4098:4294967295 [ 86.287297][ T5973] mode=40755 [ 86.287305][ T5973] flags=(11300000) [ 86.287314][ T5973] journal_seq=23 [ 86.287323][ T5973] hash_seed=ece93825deac2443 [ 86.287333][ T5973] hash_type=siphash [ 86.287342][ T5973] bi_size=0 [ 86.287350][ T5973] bi_sectors=0 [ 86.287359][ T5973] bi_version=0 [ 86.287367][ T5973] bi_atime=2770562249 [ 86.287375][ T5973] bi_ctime=2780562352 [ 86.287383][ T5973] bi_mtime=2780562352 [ 86.287393][ T5973] bi_otime=2770562249 [ 86.287401][ T5973] bi_uid=0 [ 86.287410][ T5973] bi_gid=0 [ 86.287418][ T5973] bi_nlink=0 [ 86.287427][ T5973] bi_generation=0 [ 86.287436][ T5973] bi_dev=0 [ 86.287444][ T5973] bi_data_checksum=0 [ 86.287453][ T5973] bi_compression=0 [ 86.287462][ T5973] bi_project=0 [ 86.287470][ T5973] bi_background_compression=0 [ 86.287480][ T5973] bi_data_replicas=0 [ 86.287489][ T5973] bi_promote_target=0 [ 86.287499][ T5973] bi_foreground_target=64 [ 86.287515][ T5973] bi_background_target=1 [ 86.287525][ T5973] bi_erasure_code=0 [ 86.287533][ T5973] bi_fields_set=0 [ 86.287542][ T5973] bi_dir=0 [ 86.287551][ T5973] bi_dir_offset=0 [ 86.287559][ T5973] bi_subvol=0 [ 86.287566][ T5973] bi_parent_subvol=0 [ 86.287575][ T5973] bi_nocow=0 [ 86.287584][ T5973] bi_depth=0 [ 86.287592][ T5973] bi_inodes_32bit=0 [ 86.287601][ T5973] bi_casefold=0, fixing [ 86.290062][ T5972] bcachefs (loop1): set_fs_needs_rebalance... [ 86.303221][ T5975] done [ 86.303239][ T5975] bcachefs (loop0): check_lrus... [ 86.304341][ T5974] bcachefs (loop2): check_subvol_children... done [ 86.305802][ T5974] bcachefs (loop2): delete_dead_snapshots... [ 86.306393][ T5975] done [pid 6060] 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 [ 86.306405][ T5975] bcachefs (loop0): check_btree_backpointers... [ 86.307690][ T5974] done [ 86.307704][ T5974] bcachefs (loop2): check_inodes... [ 86.308814][ T5974] bcachefs (loop2): inode points to missing dirent [ 86.308830][ T5974] inum: 4098:4294967295 [ 86.308840][ T5974] mode=40755 [ 86.308849][ T5974] flags=(15300000) [ 86.308857][ T5974] journal_seq=4 [ 86.308866][ T5974] hash_seed=ece93825deac2443 [ 86.308876][ T5974] hash_type=siphash [ 86.308885][ T5974] bi_size=0 [ 86.308891][ T5974] bi_sectors=0 [ 86.308901][ T5974] bi_version=0 [ 86.308910][ T5974] bi_atime=2770562249 [ 86.308919][ T5974] bi_ctime=2780562352 [ 86.308928][ T5974] bi_mtime=2780562352 [ 86.308938][ T5974] bi_otime=2770562249 [ 86.308946][ T5974] bi_uid=0 [ 86.308954][ T5974] bi_gid=0 [ 86.308962][ T5974] bi_nlink=0 [ 86.308971][ T5974] bi_generation=0 [ 86.308980][ T5974] bi_dev=0 [ 86.308988][ T5974] bi_data_checksum=0 [pid 6061] 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 resumed>) = 16777216 [ 86.308997][ T5974] bi_compression=0 [ 86.309006][ T5974] bi_project=0 [ 86.309014][ T5974] bi_background_compression=0 [ 86.309024][ T5974] bi_data_replicas=0 [ 86.309033][ T5974] bi_promote_target=0 [ 86.309042][ T5974] bi_foreground_target=64 [ 86.309052][ T5974] bi_background_target=1 [ 86.309061][ T5974] bi_erasure_code=0 [ 86.309070][ T5974] bi_fields_set=0 [ 86.309079][ T5974] bi_dir=0 [ 86.309088][ T5974] bi_dir_offset=32 [ 86.309096][ T5974] bi_subvol=0 [ 86.309105][ T5974] bi_parent_subvol=0 [pid 6059] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6059] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6059] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6059] close(3) = 0 [pid 6059] close(4) = 0 [pid 6059] mkdir("./file1", 0777) = 0 [ 86.309114][ T5974] bi_nocow=0 [ 86.309122][ T5974] bi_depth=0 [ 86.309131][ T5974] bi_inodes_32bit=0 [ 86.309140][ T5974] bi_casefold=0, fixing [ 86.311559][ T5975] done [ 86.311572][ T5975] bcachefs (loop0): check_backpointers_to_extents... [ 86.312873][ T5973] done [ 86.314091][ T5973] bcachefs (loop3): check_xattrs... [ 86.317254][ T5975] done [ 86.317269][ T5975] bcachefs (loop0): check_extents_to_backpointers... [ 86.320967][ T5973] done [ 86.320982][ T5973] bcachefs (loop3): check_root... done [ 86.327344][ T5973] bcachefs (loop3): check_unreachable_inodes... [ 86.330829][ T5974] done [ 86.331451][ T5974] bcachefs (loop2): check_extents... [ 86.337106][ T5973] done [ 86.337160][ T5973] bcachefs (loop3): check_subvolume_structure... [ 86.337945][ T5975] done [ 86.337959][ T5975] bcachefs (loop0): check_alloc_to_lru_refs... [ 86.341420][ T5974] done [ 86.343340][ T5974] bcachefs (loop2): check_indirect_extents... [ 86.344030][ T5973] done [ 86.344043][ T5973] bcachefs (loop3): check_directory_structure... [ 86.346174][ T5974] done [ 86.346188][ T5974] bcachefs (loop2): check_dirents... [ 86.347964][ T5974] bcachefs (loop2): directory with missing backpointer [ 86.347981][ T5974] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 86.347994][ T5974] inum: 4098:4294967295 [ 86.348006][ T5974] mode=40755 [ 86.348013][ T5974] flags=(11300000) [ 86.348022][ T5974] journal_seq=23 [ 86.348031][ T5974] hash_seed=ece93825deac2443 [ 86.348040][ T5974] hash_type=siphash [ 86.348051][ T5974] bi_size=0 [ 86.348057][ T5974] bi_sectors=0 [ 86.348066][ T5974] bi_version=0 [ 86.348075][ T5974] bi_atime=2770562249 [ 86.348084][ T5974] bi_ctime=2780562352 [ 86.348093][ T5974] bi_mtime=2780562352 [ 86.348102][ T5974] bi_otime=2770562249 [ 86.348111][ T5974] bi_uid=0 [ 86.348119][ T5974] bi_gid=0 [ 86.348128][ T5974] bi_nlink=0 [ 86.348136][ T5974] bi_generation=0 [ 86.348145][ T5974] bi_dev=0 [ 86.348154][ T5974] bi_data_checksum=0 [ 86.348163][ T5974] bi_compression=0 [ 86.348171][ T5974] bi_project=0 [ 86.348180][ T5974] bi_background_compression=0 [ 86.348188][ T5974] bi_data_replicas=0 [ 86.348197][ T5974] bi_promote_target=0 [ 86.348207][ T5974] bi_foreground_target=64 [ 86.348216][ T5974] bi_background_target=1 [ 86.348226][ T5974] bi_erasure_code=0 [ 86.348235][ T5974] bi_fields_set=0 [ 86.348244][ T5974] bi_dir=0 [ 86.348252][ T5974] bi_dir_offset=0 [ 86.348262][ T5974] bi_subvol=0 [ 86.348270][ T5974] bi_parent_subvol=0 [ 86.348279][ T5974] bi_nocow=0 [ 86.348288][ T5974] bi_depth=0 [ 86.348297][ T5974] bi_inodes_32bit=0 [ 86.348307][ T5974] bi_casefold=0, fixing [ 86.349682][ T5975] done [ 86.351029][ T5973] done [ 86.351041][ T5973] bcachefs (loop3): check_nlinks... [ 86.351721][ T5973] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 86.356337][ T5975] bcachefs (loop0): bucket_gens_init... done [ 86.363582][ T5973] done [ 86.364563][ T5973] bcachefs (loop3): check_rebalance_work... [ 86.365278][ T5975] bcachefs (loop0): check_snapshot_trees... [ 86.366449][ T5972] done [ 86.372024][ T5975] done [ 86.372037][ T5975] bcachefs (loop0): check_snapshots... [ 86.373945][ T5973] done [ 86.373958][ T5973] bcachefs (loop3): resume_logged_ops... [ 86.375032][ T5975] done [ 86.375046][ T5975] bcachefs (loop0): check_subvols... [pid 6059] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6060] <... write resumed>) = 16777216 [pid 6060] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6060] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6060] ioctl(4, LOOP_SET_FD, 3) = 0 [ 86.375614][ T6009] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.375633][ T6009] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 86.381952][ T5974] done [ 86.383317][ T5974] bcachefs (loop2): check_xattrs... [ 86.384343][ T5973] done [ 86.384356][ T5973] bcachefs (loop3): delete_dead_inodes... [ 86.389413][ T5972] bcachefs (loop1): check_extents_to_backpointers... [ 86.390439][ T5972] bcachefs (loop1): scanning for missing backpointers in 3/128 buckets [ 86.391666][ T5975] done [pid 6060] close(3) = 0 [pid 6060] close(4) = 0 [pid 6060] mkdir("./file1", 0777) = 0 [ 86.391679][ T5975] bcachefs (loop0): check_subvol_children... [ 86.393283][ T5974] done [ 86.393298][ T5974] bcachefs (loop2): check_root... [ 86.400045][ T5975] done [ 86.400061][ T5975] bcachefs (loop0): delete_dead_snapshots... done [ 86.401590][ T5975] bcachefs (loop0): check_inodes... [ 86.405399][ T6009] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.408586][ T5974] done [ 86.408600][ T5974] bcachefs (loop2): check_unreachable_inodes... [ 86.410663][ T5975] done [ 86.410678][ T5975] bcachefs (loop0): check_extents... [ 86.414249][ T5974] done [ 86.414263][ T5974] bcachefs (loop2): check_subvolume_structure... [ 86.415360][ T5972] done [ 86.416323][ T5974] done [ 86.416334][ T5974] bcachefs (loop2): check_directory_structure... [ 86.421176][ T5975] done [ 86.421193][ T5975] bcachefs (loop0): check_indirect_extents... [ 86.422282][ T5974] done [ 86.422297][ T5974] bcachefs (loop2): check_nlinks... [ 86.422992][ T5974] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 86.424951][ T5975] done [ 86.424964][ T5975] bcachefs (loop0): check_dirents... [ 86.429679][ T5973] done [ 86.430362][ T5973] bcachefs (loop3): set_fs_needs_rebalance... [ 86.433756][ T5975] done [ 86.433770][ T5975] bcachefs (loop0): check_xattrs... [ 86.436503][ T5974] done [ 86.438300][ T5974] bcachefs (loop2): check_rebalance_work... [ 86.441434][ T5972] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 86.441456][ T5972] bcachefs (loop1): check_alloc_info... [ 86.447003][ T5975] done [ 86.447018][ T5975] bcachefs (loop0): check_root... [ 86.447744][ T5974] done [ 86.447758][ T5974] bcachefs (loop2): resume_logged_ops... [ 86.450983][ T5975] done [ 86.450998][ T5975] bcachefs (loop0): check_unreachable_inodes... [ 86.452575][ T5974] done [ 86.452588][ T5974] bcachefs (loop2): delete_dead_inodes... [ 86.456889][ T5975] done [ 86.456907][ T5975] bcachefs (loop0): check_subvolume_structure... done [ 86.461998][ T5975] bcachefs (loop0): check_directory_structure... done [ 86.463957][ T5975] bcachefs (loop0): check_nlinks... [ 86.465424][ T5972] done [ 86.465439][ T5972] bcachefs (loop1): check_lrus... [ 86.467878][ T5975] done [ 86.467894][ T5975] bcachefs (loop0): check_rebalance_work... done [ 86.470458][ T5975] bcachefs (loop0): resume_logged_ops... [ 86.471330][ T5972] done [ 86.471343][ T5972] bcachefs (loop1): check_btree_backpointers... [ 86.472521][ T5975] done [ 86.472532][ T5975] bcachefs (loop0): delete_dead_inodes... done [pid 6060] mount("/dev/loop1", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6061] <... write resumed>) = 16777216 [ 86.473358][ T5975] bcachefs (loop0): set_fs_needs_rebalance... [ 86.481689][ T5972] done [ 86.481707][ T5972] bcachefs (loop1): check_backpointers_to_extents... [ 86.483032][ T5975] done [ 86.487845][ T5975] bcachefs (loop0): done starting filesystem [ 86.490436][ T5972] done [ 86.490452][ T5972] bcachefs (loop1): check_extents_to_backpointers... [ 86.491356][ T5972] bcachefs (loop1): scanning for missing backpointers in 1/128 buckets [ 86.502062][ T5974] done [ 86.503116][ T5974] bcachefs (loop2): set_fs_needs_rebalance... [pid 6061] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6061] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6061] ioctl(4, LOOP_SET_FD, 3) = 0 [ 86.511257][ T5972] done [ 86.511285][ T5972] bcachefs (loop1): check_alloc_to_lru_refs... [ 86.522284][ T5973] done [ 86.525128][ T5972] done [ 86.528313][ T5972] bcachefs (loop1): bucket_gens_init... [ 86.531945][ T6012] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.531968][ T6012] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 86.541736][ T5972] done [ 86.543634][ T5972] bcachefs (loop1): check_snapshot_trees... done [pid 6061] close(3) = 0 [pid 6061] close(4) = 0 [pid 6061] mkdir("./file1", 0777) = 0 [ 86.546460][ T5972] bcachefs (loop1): check_snapshots... done [ 86.548467][ T5972] bcachefs (loop1): check_subvols... done [ 86.549166][ T5972] bcachefs (loop1): check_subvol_children... done [ 86.549952][ T5972] bcachefs (loop1): delete_dead_snapshots... done [ 86.561166][ T5972] bcachefs (loop1): check_inodes... done [ 86.562346][ T5972] bcachefs (loop1): check_extents... done [ 86.563690][ T5972] bcachefs (loop1): check_indirect_extents... done [ 86.564356][ T5972] bcachefs (loop1): check_dirents... [ 86.583528][ T5973] bcachefs (loop3): check_extents_to_backpointers... [ 86.584522][ T5973] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 86.585735][ T5972] done [ 86.585749][ T5972] bcachefs (loop1): check_xattrs... done [ 86.587325][ T5972] bcachefs (loop1): check_root... done [ 86.588760][ T5972] bcachefs (loop1): check_unreachable_inodes... [ 86.589458][ T6015] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.589479][ T6015] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 86.596021][ T6012] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.598401][ T5837] bcachefs (loop0): shutting down [ 86.598417][ T5837] bcachefs (loop0): going read-only [ 86.598445][ T5837] bcachefs (loop0): finished waiting for writes to stop [ 86.599720][ T5972] done [ 86.599735][ T5972] bcachefs (loop1): check_subvolume_structure... [ 86.600159][ T5974] done [ 86.601684][ T5974] bcachefs (loop2): check_extents_to_backpointers... [ 86.602625][ T5974] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 86.611028][ T5972] done [ 86.611044][ T5972] bcachefs (loop1): check_directory_structure... [ 86.612722][ T5973] done [ 86.613480][ T5972] done [ 86.613492][ T5972] bcachefs (loop1): check_nlinks... [ 86.616666][ T6015] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 86.622134][ T5972] done [ 86.622150][ T5972] bcachefs (loop1): check_rebalance_work... [ 86.642392][ T5974] done [ 86.644668][ T5973] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 86.644690][ T5973] bcachefs (loop3): check_alloc_info... [ 86.650447][ T5972] done [ 86.651145][ T5972] bcachefs (loop1): resume_logged_ops... done [ 86.656449][ T5972] bcachefs (loop1): delete_dead_inodes... done [ 86.660182][ T5972] bcachefs (loop1): set_fs_needs_rebalance... done [ 86.663711][ T5972] bcachefs (loop1): done starting filesystem [ 86.667091][ T5974] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 86.667111][ T5974] bcachefs (loop2): check_alloc_info... [ 86.682276][ T5973] done [ 86.682296][ T5973] bcachefs (loop3): check_lrus... [ 86.683109][ T5837] bcachefs (loop0): flushing journal and stopping allocators, journal seq 34 [ 86.683273][ T5837] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 34 [ 86.685977][ T5837] bcachefs (loop0): clean shutdown complete, journal seq 35 [ 86.687793][ T5837] bcachefs (loop0): marking filesystem clean [ 86.692721][ T5973] done [ 86.692737][ T5973] bcachefs (loop3): check_btree_backpointers... done [ 86.702776][ T5973] bcachefs (loop3): check_backpointers_to_extents... [ 86.711541][ T5974] done [ 86.711557][ T5974] bcachefs (loop2): check_lrus... [ 86.713352][ T5973] done [ 86.713368][ T5973] bcachefs (loop3): check_extents_to_backpointers... [ 86.714276][ T5973] bcachefs (loop3): scanning for missing backpointers in 1/128 buckets [ 86.718480][ T5974] done [ 86.718495][ T5974] bcachefs (loop2): check_btree_backpointers... done [ 86.722279][ T5974] bcachefs (loop2): check_backpointers_to_extents... [ 86.730838][ T5973] done [ 86.730856][ T5973] bcachefs (loop3): check_alloc_to_lru_refs... done [ 86.743593][ T5974] done [ 86.743607][ T5974] bcachefs (loop2): check_extents_to_backpointers... [ 86.744531][ T5974] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 86.746764][ T5973] bcachefs (loop3): bucket_gens_init... [ 86.759379][ T5974] done [ 86.759398][ T5974] bcachefs (loop2): check_alloc_to_lru_refs... [ 86.760609][ T5973] done [ 86.780275][ T5974] done [ 86.781440][ T5974] bcachefs (loop2): bucket_gens_init... [ 86.782891][ T5973] bcachefs (loop3): check_snapshot_trees... [ 86.783897][ T5974] done [ 86.784553][ T5974] bcachefs (loop2): check_snapshot_trees... [ 86.786439][ T5973] done [ 86.786452][ T5973] bcachefs (loop3): check_snapshots... [ 86.786945][ T5974] done [ 86.788819][ T5974] bcachefs (loop2): check_snapshots... [ 86.790971][ T5973] done [ 86.790987][ T5973] bcachefs (loop3): check_subvols... [ 86.792597][ T5974] done [ 86.792610][ T5974] bcachefs (loop2): check_subvols... done [ 86.793398][ T5974] bcachefs (loop2): check_subvol_children... done [ 86.794097][ T5974] bcachefs (loop2): delete_dead_snapshots... [ 86.794787][ T5973] done [ 86.794801][ T5973] bcachefs (loop3): check_subvol_children... done [ 86.795532][ T5973] bcachefs (loop3): delete_dead_snapshots... [ 86.796281][ T5974] done [ 86.796295][ T5974] bcachefs (loop2): check_inodes... [ 86.797365][ T5973] done [ 86.797380][ T5973] bcachefs (loop3): check_inodes... [ 86.798475][ T5974] done [ 86.798489][ T5974] bcachefs (loop2): check_extents... [ 86.801626][ T5973] done [ 86.801639][ T5973] bcachefs (loop3): check_extents... done [ 86.814834][ T5973] bcachefs (loop3): check_indirect_extents... done [ 86.815574][ T5973] bcachefs (loop3): check_dirents... [ 86.819400][ T5974] done [ 86.819416][ T5974] bcachefs (loop2): check_indirect_extents... [ 86.826869][ T5838] bcachefs (loop1): shutting down [ 86.826888][ T5838] bcachefs (loop1): going read-only [ 86.826915][ T5838] bcachefs (loop1): finished waiting for writes to stop [ 86.827598][ T5974] done [ 86.827610][ T5974] bcachefs (loop2): check_dirents... [ 86.858433][ T5973] done [ 86.859360][ T5974] done [ 86.859375][ T5974] bcachefs (loop2): check_xattrs... [ 86.859927][ T5973] bcachefs (loop3): check_xattrs... done [ 86.863659][ T5973] bcachefs (loop3): check_root... [ 86.864463][ T5974] done [ 86.864477][ T5974] bcachefs (loop2): check_root... done [ 86.865478][ T5974] bcachefs (loop2): check_unreachable_inodes... [ 86.866081][ T5973] done [ 86.866093][ T5973] bcachefs (loop3): check_unreachable_inodes... [ 86.868006][ T5974] done [ 86.868020][ T5974] bcachefs (loop2): check_subvolume_structure... [ 86.868738][ T5973] done [ 86.868750][ T5973] bcachefs (loop3): check_subvolume_structure... [ 86.869451][ T5974] done [ 86.869464][ T5974] bcachefs (loop2): check_directory_structure... [ 86.881022][ T5973] done [ 86.881039][ T5973] bcachefs (loop3): check_directory_structure... [ 86.891185][ T5974] done [ 86.891202][ T5974] bcachefs (loop2): check_nlinks... [ 86.892455][ T5973] done [ 86.892468][ T5973] bcachefs (loop3): check_nlinks... [ 86.893270][ T5838] bcachefs (loop1): flushing journal and stopping allocators, journal seq 36 [ 86.893414][ T5838] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 36 [ 86.908443][ T5974] done [ 86.908459][ T5974] bcachefs (loop2): check_rebalance_work... [ 86.908998][ T5973] done [ 86.909011][ T5973] bcachefs (loop3): check_rebalance_work... done [pid 6061] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6055] <... mount resumed>) = 0 [pid 6055] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6055] chdir("./file1") = 0 [pid 6055] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6055] ioctl(4, LOOP_CLR_FD) = 0 [pid 6055] close(4) = 0 [pid 6055] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6055] exit_group(0) = ? [pid 6055] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6055, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=46 /* 0.46 s */} --- [pid 5840] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 86.912527][ T5973] bcachefs (loop3): resume_logged_ops... [ 86.912956][ T5974] done [ 86.912970][ T5974] bcachefs (loop2): resume_logged_ops... [ 86.913944][ T5973] done [ 86.913957][ T5973] bcachefs (loop3): delete_dead_inodes... [ 86.914407][ T5974] done [ 86.914420][ T5974] bcachefs (loop2): delete_dead_inodes... [ 86.915156][ T5838] bcachefs (loop1): clean shutdown complete, journal seq 37 [ 86.916825][ T5838] bcachefs (loop1): marking filesystem clean [ 86.917895][ T5974] done [ 86.917908][ T5974] bcachefs (loop2): set_fs_needs_rebalance... [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 86.921144][ T5973] done [ 86.921159][ T5973] bcachefs (loop3): set_fs_needs_rebalance... done [ 86.932391][ T5974] done [ 86.982349][ T5974] bcachefs (loop2): done starting filesystem [ 86.987319][ T5837] bcachefs (loop0): shutdown complete [ 86.988066][ T5973] bcachefs (loop3): done starting filesystem [ 87.154258][ T5840] bcachefs (loop3): shutting down [ 87.154277][ T5840] bcachefs (loop3): going read-only [ 87.154307][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 87.157270][ T5838] bcachefs (loop1): shutdown complete [ 87.158041][ T5839] bcachefs (loop2): shutting down [ 87.158057][ T5839] bcachefs (loop2): going read-only [ 87.158084][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 87.319720][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 36 [ 87.319898][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 36 [ 87.320181][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 36 [ 87.320313][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 36 [ 87.322314][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 37 [ 87.324125][ T5839] bcachefs (loop2): marking filesystem clean [ 87.324634][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 37 [ 87.326419][ T5840] bcachefs (loop3): marking filesystem clean [ 87.537364][ T5840] bcachefs (loop3): shutdown complete [ 87.552780][ T5839] bcachefs (loop2): shutdown complete [ 87.752139][ T6007] loop4: detected capacity change from 0 to 32768 [ 89.159813][ T6019] loop1: detected capacity change from 0 to 32768 [ 89.380067][ T6020] loop2: detected capacity change from 0 to 32768 [ 89.875025][ T6019] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 89.875052][ T6019] allowing incompatible features above 0.0: (unknown version) [ 89.875065][ T6019] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 89.875091][ T6019] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 89.875224][ T6019] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 89.875482][ T6019] bcachefs (loop1): Version upgrade required: [ 89.875482][ T6019] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 89.875482][ T6019] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5840] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6059] <... mount resumed>) = 0 [pid 6059] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6059] chdir("./file1") = 0 [pid 6059] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6059] ioctl(4, LOOP_CLR_FD) = 0 [pid 6059] close(4) = 0 [pid 6059] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6059] exit_group(0) = ? [pid 6059] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6059, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=35 /* 0.35 s */} --- [pid 5841] umount2("./3", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 89.875482][ T6019] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,check_rebalance_work,set_fs_needs_rebalance [ 89.952893][ T6019] bcachefs (loop1): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 89.952919][ T6019] size != 0, deleting [ 89.956113][ T6019] bcachefs (loop1): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 89.965528][ T6020] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 89.965562][ T6020] allowing incompatible features above 0.0: (unknown version) [ 89.965574][ T6020] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 89.965773][ T6020] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 89.965902][ T6020] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 89.966136][ T6020] bcachefs (loop2): Version upgrade required: [ 89.966136][ T6020] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 89.966136][ T6020] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 89.966136][ T6020] 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,check_rebalance_work,set_fs_needs_rebalance [ 89.974842][ T6007] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 89.974866][ T6007] allowing incompatible features above 0.0: (unknown version) [ 89.974880][ T6007] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 89.974907][ T6007] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 89.975030][ T6007] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 89.976643][ T6007] bcachefs (loop4): Version upgrade required: [ 89.976643][ T6007] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 89.976643][ T6007] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 89.976643][ T6007] 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,check_rebalance_work,set_fs_needs_rebalance [ 89.985329][ T6019] bcachefs (loop1): check_topology... done [ 89.986856][ T6019] bcachefs (loop1): accounting_read... [ 90.050878][ T6020] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 90.050904][ T6020] size != 0, deleting [ 90.053730][ T6020] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 90.056121][ T6019] done [ 90.056134][ T6019] bcachefs (loop1): alloc_read... done [ 90.056986][ T6019] bcachefs (loop1): snapshots_read... done [ 90.057744][ T6019] bcachefs (loop1): check_allocations... [ 90.062622][ T6019] bcachefs (loop1): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 90.062644][ T6019] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 90.064841][ T6007] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 90.064860][ T6007] size != 0, deleting [ 90.067830][ T6019] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 90.067846][ T6019] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 90.072898][ T6020] bcachefs (loop2): check_topology... [pid 5841] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6060] <... mount resumed>) = 0 [pid 6060] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6060] chdir("./file1") = 0 [pid 6060] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6060] ioctl(4, LOOP_CLR_FD) = 0 [pid 6060] close(4) = 0 [ 90.074569][ T6007] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 90.075798][ T6019] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 90.075815][ T6019] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 90.080402][ T6020] done [ 90.080417][ T6020] bcachefs (loop2): accounting_read... [ 90.084753][ T6019] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 6060] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6060] exit_group(0) = ? [pid 6060] +++ exited with 0 +++ [pid 5838] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6060, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=41 /* 0.41 s */} --- [pid 5838] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5838] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 90.084775][ T6019] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 90.086432][ T6007] bcachefs (loop4): check_topology... done [ 90.097452][ T6007] bcachefs (loop4): accounting_read... [ 90.098042][ T6019] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 90.098060][ T6019] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 90.099386][ T6019] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.099514][ T6019] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 90.100057][ T6019] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.100162][ T6019] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 90.100600][ T6019] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.100706][ T6019] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 90.100926][ T6019] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.101030][ T6019] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 90.101237][ T6019] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.101339][ T6019] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 90.101538][ T6019] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.101666][ T6019] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 90.101863][ T6019] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.101967][ T6019] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5838] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6061] <... mount resumed>) = 0 [pid 6061] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6061] chdir("./file1") = 0 [pid 6061] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6061] ioctl(4, LOOP_CLR_FD) = 0 [pid 6061] close(4) = 0 [pid 6061] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6061] exit_group(0) = ? [pid 6061] +++ exited with 0 +++ [ 90.102162][ T6019] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 90.102273][ T6019] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 90.102472][ T6019] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 90.102577][ T6019] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6061, si_uid=0, si_status=0, si_utime=15 /* 0.15 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 90.102795][ T6019] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 90.102899][ T6019] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 90.103131][ T6019] bcachefs (loop1): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 90.103147][ T6019] Ratelimiting new instances of previous error [ 90.103288][ T6019] bcachefs (loop1): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 90.103303][ T6019] Ratelimiting new instances of previous error [ 90.126197][ T6019] done [ 90.128429][ T6019] bcachefs (loop1): going read-write [ 90.141524][ T6019] bcachefs (loop1): journal_replay... [ 90.152321][ T6018] loop0: detected capacity change from 0 to 32768 [ 91.044279][ T6007] done [ 91.044296][ T6007] bcachefs (loop4): alloc_read... done [ 91.045728][ T6007] bcachefs (loop4): snapshots_read... done [ 91.046452][ T6007] bcachefs (loop4): check_allocations... [ 91.047723][ T6020] done [ 91.047736][ T6020] bcachefs (loop2): alloc_read... [ 91.055866][ T6019] done [ 91.056461][ T6019] bcachefs (loop1): check_alloc_info... [ 91.058381][ T6019] bcachefs (loop1): bucket incorrectly unset in need_discard btree [ 91.058398][ T6019] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 91.058409][ T6019] gen 0 oldest_gen 0 data_type need_discard [ 91.058418][ T6019] journal_seq_nonempty 6 [ 91.058428][ T6019] journal_seq_empty 0 [ 91.058437][ T6019] need_discard 1 [ 91.058446][ T6019] need_inc_gen 1 [ 91.058455][ T6019] dirty_sectors 0 [ 91.058464][ T6019] stripe_sectors 0 [ 91.058473][ T6019] cached_sectors 0 [ 91.058482][ T6019] stripe 0 [ 91.058490][ T6019] stripe_redundancy 0 [ 91.058499][ T6019] io_time[READ] 1 [ 91.058508][ T6019] io_time[WRITE] 768 [ 91.058517][ T6019] fragmentation 0 [ 91.058526][ T6019] bp_start 8 [ 91.058535][ T6019] , fixing [ 91.061790][ T6007] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 91.061806][ T6007] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 91.067265][ T6020] done [ 91.067280][ T6020] bcachefs (loop2): snapshots_read... done [ 91.068441][ T6020] bcachefs (loop2): check_allocations... [ 91.071904][ T6020] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 91.071923][ T6020] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 91.075608][ T6007] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 91.075627][ T6007] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 91.080833][ T6020] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 91.080852][ T6020] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [pid 5839] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./3/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./3/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] close(4) = 0 [pid 5840] rmdir("./3/file1") = 0 [pid 5840] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./3/binderfs") = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./3") = 0 [pid 5840] mkdir("./4", 0777) = 0 [ 91.090214][ T6020] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 91.090235][ T6020] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 91.093396][ T6007] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 91.093414][ T6007] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6103 ./strace-static-x86_64: Process 6103 attached [pid 6103] set_robust_list(0x5555901c6760, 24) = 0 [ 91.099220][ T6020] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 91.099340][ T6020] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 91.102856][ T6007] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 91.102926][ T6007] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 6103] chdir("./4") = 0 [pid 6103] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6103] setpgid(0, 0) = 0 [ 91.106109][ T6020] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 91.106127][ T6020] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 91.107101][ T6020] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.107225][ T6020] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6103] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6103] write(3, "1000", 4) = 4 [pid 6103] close(3) = 0 [pid 6103] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6103] write(1, "executing program\n", 18) = 18 [pid 6103] memfd_create("syzkaller", 0) = 3 [pid 6103] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 91.107814][ T6020] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.107930][ T6020] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.108371][ T6020] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.108475][ T6020] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.108675][ T6020] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.108778][ T6020] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.108985][ T6020] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.109088][ T6020] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.113266][ T6007] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 91.113284][ T6007] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 91.114877][ T6007] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.128618][ T6020] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.128733][ T6020] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.129017][ T6020] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./3/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./3/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./3/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./3/file1") = 0 [pid 5841] umount2("./3/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./3/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./3") = 0 [pid 5841] mkdir("./4", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [ 91.129118][ T6020] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.129470][ T6020] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.129571][ T6020] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 91.129791][ T6020] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 91.129902][ T6020] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6104 ./strace-static-x86_64: Process 6104 attached [pid 6104] set_robust_list(0x5555901c6760, 24) = 0 [pid 6104] chdir("./4") = 0 [pid 6104] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6104] setpgid(0, 0) = 0 [pid 6104] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 91.130094][ T6020] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 91.130218][ T6020] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 91.130470][ T6020] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 91.130486][ T6020] Ratelimiting new instances of previous error [ 91.130614][ T6020] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6104] write(3, "1000", 4) = 4 [pid 6104] close(3) = 0 [pid 6104] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6104] write(1, "executing program\n", 18) = 18 [pid 6104] memfd_create("syzkaller", 0) = 3 [pid 6104] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 91.130630][ T6020] Ratelimiting new instances of previous error [ 91.138984][ T6007] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.139731][ T6007] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.139845][ T6007] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.140233][ T6007] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.140352][ T6007] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.140574][ T6007] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.140678][ T6007] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.140887][ T6007] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.140992][ T6007] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.141190][ T6007] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.141293][ T6007] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.141519][ T6007] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.141623][ T6007] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 91.141839][ T6007] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 91.141938][ T6007] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 91.142150][ T6007] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 91.142255][ T6007] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 91.142455][ T6007] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 91.142561][ T6007] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 91.142816][ T6007] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 91.142830][ T6007] Ratelimiting new instances of previous error [ 91.142962][ T6007] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 91.142977][ T6007] Ratelimiting new instances of previous error [ 91.162527][ T6019] done [ 91.169059][ T6019] bcachefs (loop1): check_lrus... done [pid 5838] <... umount2 resumed>) = 0 [pid 5838] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] newfstatat(AT_FDCWD, "./4/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] openat(AT_FDCWD, "./4/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5838] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [ 91.170827][ T6019] bcachefs (loop1): check_btree_backpointers... done [ 91.173045][ T6019] bcachefs (loop1): check_backpointers_to_extents... done [ 91.181512][ T6019] bcachefs (loop1): check_extents_to_backpointers... [ 91.182980][ T6019] bcachefs (loop1): scanning for missing backpointers in 5/128 buckets [ 91.189764][ T6019] done [ 91.191570][ T6019] bcachefs (loop1): check_alloc_to_lru_refs... [ 91.196821][ T6019] bcachefs (loop1): missing fragmentation lru entry [ 91.196839][ T6019] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [pid 5838] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5838] close(4) = 0 [pid 5838] rmdir("./4/file1") = 0 [pid 5838] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5838] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5838] unlink("./4/binderfs") = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5838] close(3) = 0 [pid 5838] rmdir("./4") = 0 [pid 5838] mkdir("./5", 0777) = 0 [pid 5838] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 3 [pid 5838] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5838] close(3) = 0 [ 91.196850][ T6019] gen 0 oldest_gen 0 data_type user [ 91.203019][ T6020] done [ 91.206114][ T6020] bcachefs (loop2): going read-write [ 91.212172][ T6019] journal_seq_nonempty 5 [ 91.212188][ T6019] journal_seq_empty 134217728 [ 91.212198][ T6019] need_discard 1 [ 91.212207][ T6019] need_inc_gen 1 [ 91.212216][ T6019] dirty_sectors 16 [ 91.212226][ T6019] stripe_sectors 1802251 [ 91.212236][ T6019] cached_sectors 0 [pid 5838] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6103] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216./strace-static-x86_64: Process 6105 attached [pid 6105] set_robust_list(0x5555901c6760, 24 [pid 5838] <... clone resumed>, child_tidptr=0x5555901c6750) = 6105 [pid 6105] <... set_robust_list resumed>) = 0 [ 91.212245][ T6019] stripe 0 [ 91.212254][ T6019] stripe_redundancy 0 [ 91.212264][ T6019] io_time[READ] 1 [ 91.212273][ T6019] io_time[WRITE] 512 [ 91.212283][ T6019] fragmentation 0 [ 91.212292][ T6019] bp_start 7 [ 91.212301][ T6019] , fixing [ 91.215910][ T6020] bcachefs (loop2): journal_replay... [ 91.232066][ T6019] done [ 91.233579][ T6019] bcachefs (loop1): bucket_gens_init... [ 91.236978][ T6007] done [ 91.238002][ T6019] done [pid 6105] chdir("./5") = 0 [pid 6105] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6105] setpgid(0, 0) = 0 [pid 6105] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6105] write(3, "1000", 4) = 4 [ 91.242241][ T6019] bcachefs (loop1): check_snapshot_trees... done [ 91.243185][ T6019] bcachefs (loop1): check_snapshots... [ 91.243763][ T6019] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 91.243779][ T6019] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 91.253220][ T6007] bcachefs (loop4): going read-write [ 91.262116][ T6007] bcachefs (loop4): bch2_journal_reclaim_start(): error creating journal reclaim thread EINTR [pid 6105] close(3) = 0 executing program [pid 6105] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6105] write(1, "executing program\n", 18) = 18 [pid 6105] memfd_create("syzkaller", 0) = 3 [pid 6105] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 91.262196][ T6007] bcachefs (loop4): flushing journal and stopping allocators, journal seq 10 [ 91.262353][ T6007] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 10 [ 91.264271][ T6007] bcachefs (loop4): unclean shutdown complete, journal seq 11 [ 91.271538][ T6007] bcachefs (loop4): error in recovery: EINTR [ 91.271554][ T6007] emergency read only at seq 11 [ 91.271584][ T6007] bcachefs (loop4): bch2_fs_start(): error starting filesystem EINTR [ 91.271601][ T6007] bcachefs (loop4): shutting down [ 91.296588][ T6019] done [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./4/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./4/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./4/file1") = 0 [pid 5839] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./4/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./4") = 0 [pid 5839] mkdir("./5", 0777) = 0 [ 91.297435][ T6019] bcachefs (loop1): check_subvols... done [ 91.302370][ T6019] bcachefs (loop1): check_subvol_children... done [ 91.303163][ T6019] bcachefs (loop1): delete_dead_snapshots... done [ 91.303917][ T6019] bcachefs (loop1): check_inodes... [ 91.305014][ T6019] bcachefs (loop1): inode points to missing dirent [ 91.305031][ T6019] inum: 4098:4294967295 [ 91.305040][ T6019] mode=40755 [ 91.305057][ T6019] flags=(15300000) [ 91.305066][ T6019] journal_seq=4 [ 91.305075][ T6019] hash_seed=ece93825deac2443 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6106 attached , child_tidptr=0x5555901c6750) = 6106 [pid 6104] 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 6106] set_robust_list(0x5555901c6760, 24) = 0 [ 91.305084][ T6019] hash_type=siphash [ 91.305093][ T6019] bi_size=0 [ 91.305101][ T6019] bi_sectors=0 [ 91.305110][ T6019] bi_version=0 [ 91.305119][ T6019] bi_atime=2770562249 [ 91.305128][ T6019] bi_ctime=2780562352 [ 91.305137][ T6019] bi_mtime=2780562352 [ 91.305146][ T6019] bi_otime=2770562249 [ 91.305155][ T6019] bi_uid=0 [ 91.312831][ T6019] bi_gid=0 [ 91.312844][ T6019] bi_nlink=0 [ 91.312853][ T6019] bi_generation=0 [ 91.312863][ T6019] bi_dev=0 [pid 6106] chdir("./5") = 0 [pid 6106] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 91.312871][ T6019] bi_data_checksum=0 [ 91.312880][ T6019] bi_compression=0 [ 91.312889][ T6019] bi_project=0 [ 91.312898][ T6019] bi_background_compression=0 [ 91.312907][ T6019] bi_data_replicas=0 [ 91.312917][ T6019] bi_promote_target=0 [ 91.312926][ T6019] bi_foreground_target=64 [ 91.312935][ T6019] bi_background_target=1 [ 91.312944][ T6019] bi_erasure_code=0 [ 91.312953][ T6019] bi_fields_set=0 [ 91.312962][ T6019] bi_dir=0 [pid 6106] setpgid(0, 0) = 0 [pid 6106] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6106] write(3, "1000", 4) = 4 [pid 6106] close(3) = 0 [pid 6106] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6106] write(1, "executing program\n", 18) = 18 [ 91.312971][ T6019] bi_dir_offset=32 [ 91.312979][ T6019] bi_subvol=0 [ 91.312988][ T6019] bi_parent_subvol=0 [ 91.312997][ T6019] bi_nocow=0 [ 91.313005][ T6019] bi_depth=0 [ 91.313014][ T6019] bi_inodes_32bit=0 [ 91.313023][ T6019] bi_casefold=0, fixing [ 91.320456][ T6020] done [ 91.323843][ T6020] bcachefs (loop2): check_alloc_info... [ 91.325725][ T6020] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 91.325743][ T6020] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [pid 6106] memfd_create("syzkaller", 0) = 3 [pid 6106] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 91.325755][ T6020] gen 0 oldest_gen 0 data_type need_discard [ 91.325766][ T6020] journal_seq_nonempty 6 [ 91.325775][ T6020] journal_seq_empty 0 [ 91.325785][ T6020] need_discard 1 [ 91.325794][ T6020] need_inc_gen 1 [ 91.325802][ T6020] dirty_sectors 0 [ 91.325812][ T6020] stripe_sectors 0 [ 91.325821][ T6020] cached_sectors 0 [ 91.325830][ T6020] stripe 0 [ 91.325839][ T6020] stripe_redundancy 0 [ 91.325849][ T6020] io_time[READ] 1 [ 91.325859][ T6020] io_time[WRITE] 768 [ 91.325868][ T6020] fragmentation 0 [ 91.325876][ T6020] bp_start 8 [ 91.325885][ T6020] , fixing [ 91.339341][ T6019] done [ 91.340232][ T6019] bcachefs (loop1): check_extents... done [ 91.341898][ T6019] bcachefs (loop1): check_indirect_extents... done [ 91.342650][ T6019] bcachefs (loop1): check_dirents... [ 91.345544][ T6019] bcachefs (loop1): directory with missing backpointer [ 91.345561][ T6019] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 91.345574][ T6019] inum: 4098:4294967295 [ 91.345584][ T6019] mode=40755 [ 91.345593][ T6019] flags=(11300000) [ 91.345601][ T6019] journal_seq=22 [ 91.345610][ T6019] hash_seed=ece93825deac2443 [ 91.345620][ T6019] hash_type=siphash [ 91.345629][ T6019] bi_size=0 [ 91.345637][ T6019] bi_sectors=0 [ 91.345646][ T6019] bi_version=0 [ 91.345654][ T6019] bi_atime=2770562249 [ 91.345664][ T6019] bi_ctime=2780562352 [ 91.345673][ T6019] bi_mtime=2780562352 [ 91.345682][ T6019] bi_otime=2770562249 [ 91.345691][ T6019] bi_uid=0 [ 91.345700][ T6019] bi_gid=0 [ 91.345708][ T6019] bi_nlink=0 [ 91.345717][ T6019] bi_generation=0 [ 91.345725][ T6019] bi_dev=0 [ 91.345733][ T6019] bi_data_checksum=0 [ 91.345743][ T6019] bi_compression=0 [ 91.345751][ T6019] bi_project=0 [ 91.345759][ T6019] bi_background_compression=0 [ 91.345769][ T6019] bi_data_replicas=0 [ 91.345778][ T6019] bi_promote_target=0 [ 91.345787][ T6019] bi_foreground_target=64 [ 91.345795][ T6019] bi_background_target=1 [ 91.345804][ T6019] bi_erasure_code=0 [ 91.345813][ T6019] bi_fields_set=0 [ 91.345822][ T6019] bi_dir=0 [ 91.345831][ T6019] bi_dir_offset=0 [ 91.345839][ T6019] bi_subvol=0 [ 91.345848][ T6019] bi_parent_subvol=0 [ 91.345858][ T6019] bi_nocow=0 [ 91.345867][ T6019] bi_depth=0 [ 91.345876][ T6019] bi_inodes_32bit=0 [ 91.345885][ T6019] bi_casefold=0, fixing [ 91.359719][ T6019] done [ 91.360353][ T6019] bcachefs (loop1): check_xattrs... done [ 91.363097][ T6019] bcachefs (loop1): check_root... done [ 91.371990][ T6019] bcachefs (loop1): check_unreachable_inodes... [ 91.374225][ T6007] bcachefs (loop4): shutdown complete [ 91.380625][ T6019] done [ 91.380641][ T6019] bcachefs (loop1): check_subvolume_structure... done [ 91.381881][ T6019] bcachefs (loop1): check_directory_structure... [ 91.392750][ T6020] done [ 91.393313][ T6019] done [ 91.393327][ T6019] bcachefs (loop1): check_nlinks... [pid 6105] 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 6103] <... write resumed>) = 16777216 [pid 6103] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6103] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6103] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6103] close(3) = 0 [ 91.394119][ T6019] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 91.400968][ T6020] bcachefs (loop2): check_lrus... done [ 91.402151][ T6020] bcachefs (loop2): check_btree_backpointers... [ 91.403121][ T6019] done [ 91.404165][ T6019] bcachefs (loop1): check_rebalance_work... [ 91.405272][ T6020] done [ 91.405285][ T6020] bcachefs (loop2): check_backpointers_to_extents... [ 91.409691][ T6019] done [ 91.409707][ T6019] bcachefs (loop1): resume_logged_ops... done [pid 6103] close(4) = 0 [pid 6103] mkdir("./file1", 0777) = 0 [ 91.412311][ T6019] bcachefs (loop1): delete_dead_inodes... [ 91.421237][ T6020] done [ 91.421856][ T6020] bcachefs (loop2): check_extents_to_backpointers... [ 91.423333][ T6020] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 91.442227][ T6020] done [ 91.443275][ T6020] bcachefs (loop2): check_alloc_to_lru_refs... [ 91.445191][ T6020] bcachefs (loop2): missing fragmentation lru entry [ 91.445207][ T6020] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 91.445218][ T6020] gen 0 oldest_gen 0 data_type user [ 91.445230][ T6020] journal_seq_nonempty 5 [ 91.445240][ T6020] journal_seq_empty 134217728 [ 91.445250][ T6020] need_discard 1 [ 91.445261][ T6020] need_inc_gen 1 [ 91.445270][ T6020] dirty_sectors 16 [ 91.445279][ T6020] stripe_sectors 1802251 [ 91.445289][ T6020] cached_sectors 0 [ 91.445298][ T6020] stripe 0 [ 91.445307][ T6020] stripe_redundancy 0 [ 91.445329][ T6020] io_time[READ] 1 [ 91.445338][ T6020] io_time[WRITE] 512 [ 91.445347][ T6020] fragmentation 0 [ 91.445356][ T6020] bp_start 7 [ 91.445364][ T6020] , fixing [ 91.445932][ T6019] done [ 91.445944][ T6019] bcachefs (loop1): set_fs_needs_rebalance... [ 91.469418][ T6020] done [ 91.473341][ T6020] bcachefs (loop2): bucket_gens_init... [ 91.474577][ T6019] done [ 91.476459][ T6042] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 6103] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6104] <... write resumed>) = 16777216 [ 91.476478][ T6042] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 91.478991][ T6020] done [ 91.482014][ T6020] bcachefs (loop2): check_snapshot_trees... [ 91.484265][ T6019] bcachefs (loop1): check_extents_to_backpointers... [ 91.485206][ T6019] bcachefs (loop1): scanning for missing backpointers in 2/128 buckets [ 91.495503][ T6020] done [ 91.495520][ T6020] bcachefs (loop2): check_snapshots... [ 91.496094][ T6020] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 6104] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6104] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6104] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6106] 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 [ 91.496109][ T6020] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 91.500742][ T6042] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 91.508156][ T6019] done [ 91.529538][ T6019] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 91.529562][ T6019] bcachefs (loop1): check_alloc_info... [ 91.539879][ T6020] done [ 91.540855][ T6020] bcachefs (loop2): check_subvols... [ 91.555954][ T6019] done [pid 6104] close(3) = 0 [pid 6104] close(4) = 0 [pid 6104] mkdir("./file1", 0777) = 0 [ 91.555976][ T6019] bcachefs (loop1): check_lrus... done [ 91.557491][ T6019] bcachefs (loop1): check_btree_backpointers... [ 91.558772][ T6020] done [ 91.560290][ T6020] bcachefs (loop2): check_subvol_children... [ 91.560691][ T6019] done [ 91.560703][ T6019] bcachefs (loop1): check_backpointers_to_extents... [ 91.562669][ T6020] done [ 91.562685][ T6020] bcachefs (loop2): delete_dead_snapshots... done [ 91.564487][ T6020] bcachefs (loop2): check_inodes... [ 91.565616][ T6020] bcachefs (loop2): inode points to missing dirent [ 91.565631][ T6020] inum: 4098:4294967295 [ 91.565641][ T6020] mode=40755 [ 91.565650][ T6020] flags=(15300000) [ 91.565658][ T6020] journal_seq=4 [ 91.565667][ T6020] hash_seed=ece93825deac2443 [ 91.565676][ T6020] hash_type=siphash [ 91.565685][ T6020] bi_size=0 [ 91.565693][ T6020] bi_sectors=0 [ 91.565702][ T6020] bi_version=0 [ 91.565710][ T6020] bi_atime=2770562249 [ 91.565719][ T6020] bi_ctime=2780562352 [ 91.565729][ T6020] bi_mtime=2780562352 [ 91.565738][ T6020] bi_otime=2770562249 [ 91.565747][ T6020] bi_uid=0 [ 91.565755][ T6020] bi_gid=0 [ 91.565764][ T6020] bi_nlink=0 [ 91.565772][ T6020] bi_generation=0 [ 91.565780][ T6020] bi_dev=0 [ 91.565789][ T6020] bi_data_checksum=0 [ 91.565798][ T6020] bi_compression=0 [ 91.565816][ T6020] bi_project=0 [ 91.565825][ T6020] bi_background_compression=0 [ 91.565834][ T6020] bi_data_replicas=0 [ 91.565843][ T6020] bi_promote_target=0 [ 91.565851][ T6020] bi_foreground_target=64 [ 91.565860][ T6020] bi_background_target=1 [ 91.565869][ T6020] bi_erasure_code=0 [ 91.565878][ T6020] bi_fields_set=0 [ 91.565885][ T6020] bi_dir=0 [ 91.565911][ T6020] bi_dir_offset=32 [ 91.565919][ T6020] bi_subvol=0 [ 91.565928][ T6020] bi_parent_subvol=0 [ 91.565937][ T6020] bi_nocow=0 [ 91.565946][ T6020] bi_depth=0 [ 91.565954][ T6020] bi_inodes_32bit=0 [ 91.565963][ T6020] bi_casefold=0, fixing [ 91.567523][ T6019] done [ 91.567535][ T6019] bcachefs (loop1): check_extents_to_backpointers... [ 91.568437][ T6019] bcachefs (loop1): scanning for missing backpointers in 1/128 buckets [ 91.571832][ T6020] done [ 91.574971][ T6020] bcachefs (loop2): check_extents... [ 91.579609][ T6019] done [ 91.579625][ T6019] bcachefs (loop1): check_alloc_to_lru_refs... [ 91.582914][ T6020] done [ 91.582930][ T6020] bcachefs (loop2): check_indirect_extents... [ 91.584544][ T6019] done [ 91.585626][ T6020] done [ 91.585650][ T6020] bcachefs (loop2): check_dirents... [ 91.587435][ T6020] bcachefs (loop2): directory with missing backpointer [ 91.587450][ T6020] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 91.587464][ T6020] inum: 4098:4294967295 [ 91.587473][ T6020] mode=40755 [ 91.587481][ T6020] flags=(11300000) [ 91.587490][ T6020] journal_seq=23 [ 91.587499][ T6020] hash_seed=ece93825deac2443 [ 91.587508][ T6020] hash_type=siphash [ 91.587516][ T6020] bi_size=0 [ 91.587525][ T6020] bi_sectors=0 [ 91.587533][ T6020] bi_version=0 [ 91.587540][ T6020] bi_atime=2770562249 [ 91.587548][ T6020] bi_ctime=2780562352 [ 91.587556][ T6020] bi_mtime=2780562352 [ 91.587565][ T6020] bi_otime=2770562249 [ 91.587573][ T6020] bi_uid=0 [ 91.587582][ T6020] bi_gid=0 [ 91.587590][ T6020] bi_nlink=0 [ 91.587598][ T6020] bi_generation=0 [ 91.587607][ T6020] bi_dev=0 [ 91.587615][ T6020] bi_data_checksum=0 [ 91.587624][ T6020] bi_compression=0 [ 91.587632][ T6020] bi_project=0 [ 91.587641][ T6020] bi_background_compression=0 [ 91.587650][ T6020] bi_data_replicas=0 [ 91.587658][ T6020] bi_promote_target=0 [ 91.587667][ T6020] bi_foreground_target=64 [ 91.587676][ T6020] bi_background_target=1 [ 91.587685][ T6020] bi_erasure_code=0 [ 91.587692][ T6020] bi_fields_set=0 [ 91.587701][ T6020] bi_dir=0 [ 91.587708][ T6020] bi_dir_offset=0 [ 91.587717][ T6020] bi_subvol=0 [ 91.587725][ T6020] bi_parent_subvol=0 [ 91.587734][ T6020] bi_nocow=0 [ 91.587742][ T6020] bi_depth=0 [ 91.587751][ T6020] bi_inodes_32bit=0 [ 91.587759][ T6020] bi_casefold=0, fixing [ 91.594622][ T6019] bcachefs (loop1): bucket_gens_init... done [ 91.599645][ T6019] bcachefs (loop1): check_snapshot_trees... [ 91.609913][ T6020] done [ 91.619348][ T6020] bcachefs (loop2): check_xattrs... [ 91.620218][ T6019] done [ 91.620234][ T6019] bcachefs (loop1): check_snapshots... done [ 91.629072][ T6019] bcachefs (loop1): check_subvols... done [ 91.631684][ T6019] bcachefs (loop1): check_subvol_children... [ 91.632141][ T6020] done [ 91.632155][ T6020] bcachefs (loop2): check_root... [ 91.633275][ T6019] done [ 91.633290][ T6019] bcachefs (loop1): delete_dead_snapshots... [ 91.639990][ T6020] done [ 91.640006][ T6020] bcachefs (loop2): check_unreachable_inodes... [ 91.640706][ T6019] done [ 91.640720][ T6019] bcachefs (loop1): check_inodes... [ 91.643748][ T6020] done [ 91.643763][ T6020] bcachefs (loop2): check_subvolume_structure... done [ 91.649694][ T6020] bcachefs (loop2): check_directory_structure... done [pid 6104] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6105] <... write resumed>) = 16777216 [ 91.650484][ T6020] bcachefs (loop2): check_nlinks... [ 91.651213][ T6020] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 91.652622][ T6019] done [ 91.652634][ T6019] bcachefs (loop1): check_extents... [ 91.656289][ T6020] done [ 91.656977][ T6020] bcachefs (loop2): check_rebalance_work... [ 91.658124][ T6019] done [ 91.658139][ T6019] bcachefs (loop1): check_indirect_extents... done [ 91.659996][ T6019] bcachefs (loop1): check_dirents... [ 91.662278][ T6020] done [pid 6105] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6105] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 6105] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6105] close(3) = 0 [pid 6105] close(4) = 0 [pid 6105] mkdir("./file1", 0777) = 0 [ 91.662293][ T6020] bcachefs (loop2): resume_logged_ops... done [ 91.663222][ T6020] bcachefs (loop2): delete_dead_inodes... [ 91.678364][ T6019] done [ 91.678383][ T6019] bcachefs (loop1): check_xattrs... done [ 91.685355][ T6019] bcachefs (loop1): check_root... done [ 91.697149][ T6019] bcachefs (loop1): check_unreachable_inodes... done [ 91.698294][ T6019] bcachefs (loop1): check_subvolume_structure... done [ 91.699036][ T6019] bcachefs (loop1): check_directory_structure... done [ 91.700960][ T6019] bcachefs (loop1): check_nlinks... [ 91.704721][ T6020] done [ 91.708869][ T6020] bcachefs (loop2): set_fs_needs_rebalance... [ 91.737650][ T6019] done [ 91.737668][ T6019] bcachefs (loop1): check_rebalance_work... done [ 91.748263][ T6019] bcachefs (loop1): resume_logged_ops... done [ 91.750487][ T6019] bcachefs (loop1): delete_dead_inodes... [ 91.752365][ T6020] done [ 91.755273][ T6019] done [ 91.755286][ T6019] bcachefs (loop1): set_fs_needs_rebalance... done [ 91.758625][ T6019] bcachefs (loop1): done starting filesystem [ 91.762463][ T6045] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 91.762482][ T6045] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 91.768022][ T6020] bcachefs (loop2): check_extents_to_backpointers... [ 91.769010][ T6020] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 91.785444][ T6020] done [ 91.821988][ T6020] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 91.822010][ T6020] bcachefs (loop2): check_alloc_info... done [ 91.846362][ T6020] bcachefs (loop2): check_lrus... done [ 91.850652][ T6020] bcachefs (loop2): check_btree_backpointers... [ 91.853223][ T6007] bcachefs: bch2_fs_get_tree() error: EINTR [ 91.858466][ T6020] done [ 91.858482][ T6020] bcachefs (loop2): check_backpointers_to_extents... done [ 91.860661][ T6020] bcachefs (loop2): check_extents_to_backpointers... done [ 91.862235][ T6020] bcachefs (loop2): check_alloc_to_lru_refs... [pid 6105] mount("/dev/loop1", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6106] <... write resumed>) = 16777216 [ 91.863763][ T6018] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 91.863795][ T6018] allowing incompatible features above 0.0: (unknown version) [ 91.863809][ T6018] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 91.863836][ T6018] bcachefs (loop0): Using encoding defined by superblock: utf8-12.1.0 [ 91.863958][ T6018] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 91.864195][ T6018] bcachefs (loop0): Version upgrade required: [pid 6106] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6106] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 91.864195][ T6018] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 91.864195][ T6018] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6106] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6106] close(3) = 0 [pid 6106] close(4) = 0 [pid 6106] mkdir("./file1", 0777) = 0 [ 91.864195][ T6018] 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,check_rebalance_work,set_fs_needs_rebalance [ 91.889936][ T6020] done [ 91.892269][ T5838] bcachefs (loop1): shutting down [ 91.892285][ T5838] bcachefs (loop1): going read-only [ 91.892313][ T5838] bcachefs (loop1): finished waiting for writes to stop [ 91.893583][ T6020] bcachefs (loop2): bucket_gens_init... done [ 91.902912][ T6020] bcachefs (loop2): check_snapshot_trees... done [ 91.905957][ T6020] bcachefs (loop2): check_snapshots... done [ 91.908246][ T6020] bcachefs (loop2): check_subvols... done [ 91.909022][ T6020] bcachefs (loop2): check_subvol_children... done [ 91.925679][ T6020] bcachefs (loop2): delete_dead_snapshots... done [ 91.927423][ T6020] bcachefs (loop2): check_inodes... done [ 91.931486][ T6020] bcachefs (loop2): check_extents... done [ 91.936030][ T6020] bcachefs (loop2): check_indirect_extents... done [ 91.938238][ T6020] bcachefs (loop2): check_dirents... done [ 91.954960][ T6020] bcachefs (loop2): check_xattrs... done [ 91.973398][ T6020] bcachefs (loop2): check_root... [ 91.974140][ T5838] bcachefs (loop1): flushing journal and stopping allocators, journal seq 33 [ 91.974290][ T5838] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 33 [ 91.976324][ T6020] done [ 91.976339][ T6020] bcachefs (loop2): check_unreachable_inodes... [ 91.976979][ T5838] bcachefs (loop1): clean shutdown complete, journal seq 34 [ 91.978784][ T5838] bcachefs (loop1): marking filesystem clean [ 91.986261][ T6020] done [ 91.986278][ T6020] bcachefs (loop2): check_subvolume_structure... done [ 91.987053][ T6020] bcachefs (loop2): check_directory_structure... [ 91.991243][ T6018] bcachefs (loop0): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 91.991267][ T6018] size != 0, deleting [ 91.999934][ T6020] done [ 92.000578][ T6020] bcachefs (loop2): check_nlinks... done [ 92.001879][ T6020] bcachefs (loop2): check_rebalance_work... done [ 92.010641][ T6020] bcachefs (loop2): resume_logged_ops... done [ 92.012302][ T6020] bcachefs (loop2): delete_dead_inodes... [ 92.013216][ T6018] bcachefs (loop0): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 92.014150][ T6020] done [ 92.014163][ T6020] bcachefs (loop2): set_fs_needs_rebalance... done [ 92.021412][ T6018] bcachefs (loop0): check_topology... done [ 92.070288][ T6018] bcachefs (loop0): accounting_read... [ 92.073519][ T6020] bcachefs (loop2): done starting filesystem [ 92.159565][ T6018] done [ 92.159585][ T6018] bcachefs (loop0): alloc_read... done [ 92.160470][ T6018] bcachefs (loop0): snapshots_read... done [ 92.161672][ T6018] bcachefs (loop0): check_allocations... [ 92.172350][ T5838] bcachefs (loop1): shutdown complete [ 92.173101][ T5839] bcachefs (loop2): shutting down [ 92.173117][ T5839] bcachefs (loop2): going read-only [ 92.173145][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 92.173946][ T6018] bcachefs (loop0): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 92.173963][ T6018] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 92.183520][ T6018] bcachefs (loop0): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 92.183540][ T6018] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 92.191126][ T6018] bcachefs (loop0): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 92.191145][ T6018] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 92.204462][ T6018] bcachefs (loop0): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 92.204482][ T6018] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 92.223447][ T6018] bcachefs (loop0): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 92.223467][ T6018] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 92.224485][ T6018] bcachefs (loop0): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.224621][ T6018] bcachefs (loop0): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 92.225173][ T6018] bcachefs (loop0): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.225279][ T6018] bcachefs (loop0): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 92.225696][ T6018] bcachefs (loop0): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.225808][ T6018] bcachefs (loop0): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 92.226004][ T6018] bcachefs (loop0): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.226104][ T6018] bcachefs (loop0): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6106] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6103] <... mount resumed>) = 0 [pid 6103] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 92.226301][ T6018] bcachefs (loop0): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.226400][ T6018] bcachefs (loop0): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 92.226591][ T6018] bcachefs (loop0): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.226710][ T6018] bcachefs (loop0): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 92.226935][ T6018] bcachefs (loop0): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6103] chdir("./file1") = 0 [pid 6103] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6103] ioctl(4, LOOP_CLR_FD) = 0 [pid 6103] close(4) = 0 [pid 6103] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6103] exit_group(0) = ? [pid 6103] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6103, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=38 /* 0.38 s */} --- [pid 5840] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 92.227037][ T6018] bcachefs (loop0): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 92.227255][ T6018] bcachefs (loop0): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 92.227369][ T6018] bcachefs (loop0): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 92.227560][ T6018] bcachefs (loop0): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 92.227663][ T6018] bcachefs (loop0): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 92.227916][ T6018] bcachefs (loop0): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 92.228033][ T6018] bcachefs (loop0): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 92.228251][ T6018] bcachefs (loop0): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 92.228266][ T6018] Ratelimiting new instances of previous error [ 92.228408][ T6018] bcachefs (loop0): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 92.228423][ T6018] Ratelimiting new instances of previous error [ 92.323135][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 92.323286][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 92.342892][ T6018] done [ 92.344535][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 92.346344][ T5839] bcachefs (loop2): marking filesystem clean [ 92.354357][ T6018] bcachefs (loop0): going read-write [ 92.390529][ T6018] bcachefs (loop0): journal_replay... [ 92.493620][ T5839] bcachefs (loop2): shutdown complete [ 92.607671][ T6018] done [ 92.609577][ T6018] bcachefs (loop0): check_alloc_info... [ 92.613441][ T6018] bcachefs (loop0): bucket incorrectly unset in need_discard btree [ 92.613458][ T6018] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 92.613469][ T6018] gen 0 oldest_gen 0 data_type need_discard [ 92.613479][ T6018] journal_seq_nonempty 6 [ 92.613488][ T6018] journal_seq_empty 0 [ 92.613497][ T6018] need_discard 1 [ 92.613507][ T6018] need_inc_gen 1 [ 92.613516][ T6018] dirty_sectors 0 [ 92.613525][ T6018] stripe_sectors 0 [ 92.613534][ T6018] cached_sectors 0 [ 92.613543][ T6018] stripe 0 [ 92.613552][ T6018] stripe_redundancy 0 [ 92.613562][ T6018] io_time[READ] 1 [ 92.613571][ T6018] io_time[WRITE] 768 [ 92.613580][ T6018] fragmentation 0 [ 92.613589][ T6018] bp_start 8 [ 92.613598][ T6018] , fixing [ 92.770809][ T6018] done [pid 5840] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6104] <... mount resumed>) = 0 [pid 6104] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6104] chdir("./file1") = 0 [pid 6104] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6104] ioctl(4, LOOP_CLR_FD) = 0 [pid 6104] close(4) = 0 [pid 6104] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 92.777341][ T6018] bcachefs (loop0): check_lrus... done [ 92.785352][ T6018] bcachefs (loop0): check_btree_backpointers... done [ 92.789692][ T6018] bcachefs (loop0): check_backpointers_to_extents... done [ 92.795451][ T6018] bcachefs (loop0): check_extents_to_backpointers... [ 92.796866][ T6018] bcachefs (loop0): scanning for missing backpointers in 6/128 buckets [ 92.799104][ T6018] done [ 92.800354][ T6018] bcachefs (loop0): check_alloc_to_lru_refs... [ 92.802278][ T6018] bcachefs (loop0): missing fragmentation lru entry [pid 6104] exit_group(0) = ? [pid 6104] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6104, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=41 /* 0.41 s */} --- [pid 5841] umount2("./4", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./4", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 92.802294][ T6018] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 92.802304][ T6018] gen 0 oldest_gen 0 data_type user [ 92.802314][ T6018] journal_seq_nonempty 5 [ 92.802323][ T6018] journal_seq_empty 134217728 [ 92.802333][ T6018] need_discard 1 [ 92.802343][ T6018] need_inc_gen 1 [ 92.802352][ T6018] dirty_sectors 16 [ 92.802361][ T6018] stripe_sectors 1802251 [ 92.802371][ T6018] cached_sectors 0 [ 92.802379][ T6018] stripe 0 [ 92.802388][ T6018] stripe_redundancy 0 [ 92.802397][ T6018] io_time[READ] 1 [ 92.802407][ T6018] io_time[WRITE] 512 [ 92.802416][ T6018] fragmentation 0 [ 92.802425][ T6018] bp_start 7 [ 92.802434][ T6018] , fixing [ 92.825981][ T6018] done [ 92.831484][ T6018] bcachefs (loop0): bucket_gens_init... done [ 92.833964][ T6018] bcachefs (loop0): check_snapshot_trees... done [ 92.847743][ T6018] bcachefs (loop0): check_snapshots... [ 92.848379][ T6018] bcachefs (loop0): snapshot points to missing/incorrect tree: [ 92.848396][ T6018] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 92.882174][ T6018] done [ 92.883661][ T6018] bcachefs (loop0): check_subvols... done [ 92.932170][ T6018] bcachefs (loop0): check_subvol_children... done [ 92.941201][ T6018] bcachefs (loop0): delete_dead_snapshots... done [ 92.941959][ T6018] bcachefs (loop0): check_inodes... [ 92.943070][ T6018] bcachefs (loop0): inode points to missing dirent [ 92.943086][ T6018] inum: 4098:4294967295 [ 92.943095][ T6018] mode=40755 [ 92.943104][ T6018] flags=(15300000) [ 92.943113][ T6018] journal_seq=4 [ 92.943121][ T6018] hash_seed=ece93825deac2443 [ 92.943130][ T6018] hash_type=siphash [ 92.943139][ T6018] bi_size=0 [ 92.943147][ T6018] bi_sectors=0 [ 92.943157][ T6018] bi_version=0 [ 92.943165][ T6018] bi_atime=2770562249 [ 92.943175][ T6018] bi_ctime=2780562352 [ 92.943183][ T6018] bi_mtime=2780562352 [ 92.943192][ T6018] bi_otime=2770562249 [ 92.943201][ T6018] bi_uid=0 [ 92.943208][ T6018] bi_gid=0 [ 92.943216][ T6018] bi_nlink=0 [ 92.943224][ T6018] bi_generation=0 [ 92.943233][ T6018] bi_dev=0 [ 92.943241][ T6018] bi_data_checksum=0 [ 92.943250][ T6018] bi_compression=0 [ 92.943258][ T6018] bi_project=0 [ 92.943267][ T6018] bi_background_compression=0 [ 92.943429][ T6018] bi_data_replicas=0 [ 92.943439][ T6018] bi_promote_target=0 [ 92.943448][ T6018] bi_foreground_target=64 [ 92.943457][ T6018] bi_background_target=1 [ 92.943466][ T6018] bi_erasure_code=0 [ 92.943475][ T6018] bi_fields_set=0 [ 92.943484][ T6018] bi_dir=0 [ 92.943492][ T6018] bi_dir_offset=32 [ 92.943501][ T6018] bi_subvol=0 [ 92.943509][ T6018] bi_parent_subvol=0 [ 92.943518][ T6018] bi_nocow=0 [ 92.943526][ T6018] bi_depth=0 [ 92.943535][ T6018] bi_inodes_32bit=0 [ 92.943544][ T6018] bi_casefold=0, fixing [ 92.958051][ T6018] done [ 92.958731][ T6018] bcachefs (loop0): check_extents... done [ 92.960251][ T6018] bcachefs (loop0): check_indirect_extents... done [ 92.960968][ T6018] bcachefs (loop0): check_dirents... [ 92.962728][ T6018] bcachefs (loop0): directory with missing backpointer [ 92.962744][ T6018] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 92.962758][ T6018] inum: 4098:4294967295 [ 92.962768][ T6018] mode=40755 [ 92.962775][ T6018] flags=(11300000) [ 92.962783][ T6018] journal_seq=24 [ 92.962792][ T6018] hash_seed=ece93825deac2443 [ 92.962802][ T6018] hash_type=siphash [ 92.962811][ T6018] bi_size=0 [ 92.962819][ T6018] bi_sectors=0 [ 92.962828][ T6018] bi_version=0 [ 92.962836][ T6018] bi_atime=2770562249 [ 92.962845][ T6018] bi_ctime=2780562352 [ 92.962855][ T6018] bi_mtime=2780562352 [ 92.962864][ T6018] bi_otime=2770562249 [ 92.962873][ T6018] bi_uid=0 [ 92.962881][ T6018] bi_gid=0 [ 92.962890][ T6018] bi_nlink=0 [ 92.962898][ T6018] bi_generation=0 [ 92.962907][ T6018] bi_dev=0 [ 92.962916][ T6018] bi_data_checksum=0 [ 92.962925][ T6018] bi_compression=0 [ 92.962933][ T6018] bi_project=0 [ 92.962942][ T6018] bi_background_compression=0 [ 92.962953][ T6018] bi_data_replicas=0 [ 92.962963][ T6018] bi_promote_target=0 [ 92.962972][ T6018] bi_foreground_target=64 [ 92.962981][ T6018] bi_background_target=1 [ 92.962991][ T6018] bi_erasure_code=0 [ 92.963000][ T6018] bi_fields_set=0 [ 92.963009][ T6018] bi_dir=0 [ 92.963017][ T6018] bi_dir_offset=0 [ 92.963026][ T6018] bi_subvol=0 [ 92.963035][ T6018] bi_parent_subvol=0 [ 92.963044][ T6018] bi_nocow=0 [ 92.963052][ T6018] bi_depth=0 [ 92.963061][ T6018] bi_inodes_32bit=0 [ 92.963070][ T6018] bi_casefold=0, fixing [ 93.010350][ T6018] done [ 93.020622][ T6018] bcachefs (loop0): check_xattrs... done [ 93.021972][ T6018] bcachefs (loop0): check_root... done [ 93.023803][ T6018] bcachefs (loop0): check_unreachable_inodes... done [ 93.030260][ T6018] bcachefs (loop0): check_subvolume_structure... done [ 93.031444][ T6018] bcachefs (loop0): check_directory_structure... done [ 93.032639][ T6018] bcachefs (loop0): check_nlinks... [ 93.034012][ T6018] bcachefs (loop0): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 93.041469][ T6018] done [ 93.042184][ T6018] bcachefs (loop0): check_rebalance_work... done [ 93.056092][ T6018] bcachefs (loop0): resume_logged_ops... done [ 93.057348][ T6018] bcachefs (loop0): delete_dead_inodes... done [ 93.105583][ T6018] bcachefs (loop0): set_fs_needs_rebalance... done [ 93.319497][ T6057] bcachefs (loop0): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 93.319516][ T6057] scheduling recovery pass check_extents_to_backpointers (17) [ 93.363503][ T6018] bcachefs (loop0): Fixed errors, running fsck a second time to verify fs is clean [ 93.963434][ T6055] loop3: detected capacity change from 0 to 32768 [ 94.255567][ T6055] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 94.255594][ T6055] allowing incompatible features above 0.0: (unknown version) [ 94.255606][ T6055] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 94.255632][ T6055] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 94.255769][ T6055] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 94.256006][ T6055] bcachefs (loop3): Version upgrade required: [ 94.256006][ T6055] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 94.256006][ T6055] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 94.256006][ T6055] 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,check_rebalance_work,set_fs_needs_rebalance [ 94.337934][ T6055] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 94.337958][ T6055] size != 0, deleting [ 94.340787][ T6055] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 94.348933][ T6055] bcachefs (loop3): check_topology... done [ 94.369761][ T6055] bcachefs (loop3): accounting_read... [ 94.410618][ T6059] loop4: detected capacity change from 0 to 32768 [ 94.422622][ T6055] done [ 94.422640][ T6055] bcachefs (loop3): alloc_read... done [ 94.423461][ T6055] bcachefs (loop3): snapshots_read... done [ 94.424241][ T6055] bcachefs (loop3): check_allocations... [ 94.426100][ T6055] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 5841] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./4/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 94.426119][ T6055] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 94.436030][ T6055] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 94.436053][ T6055] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 94.437851][ T6055] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 5840] openat(AT_FDCWD, "./4/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6106] <... mount resumed>) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] close(4) = 0 [pid 5840] rmdir("./4/file1") = 0 [pid 5840] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6106] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5840] unlink("./4/binderfs" [pid 6106] chdir("./file1" [pid 5840] <... unlink resumed>) = 0 [pid 6106] <... chdir resumed>) = 0 [pid 5840] getdents64(3, [pid 6106] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5840] <... getdents64 resumed>0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 6106] <... openat resumed>) = 4 [pid 5840] close(3 [pid 6106] ioctl(4, LOOP_CLR_FD [pid 5840] <... close resumed>) = 0 [pid 6106] <... ioctl resumed>) = 0 [pid 5840] rmdir("./4" [pid 6106] close(4 [pid 5840] <... rmdir resumed>) = 0 [pid 5840] mkdir("./5", 0777 [pid 6106] <... close resumed>) = 0 [pid 5840] <... mkdir resumed>) = 0 [pid 6106] write(-1, NULL, 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 6106] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5840] <... openat resumed>) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 6106] exit_group(0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 6106] <... exit_group resumed>) = ? ./strace-static-x86_64: Process 6147 attached [pid 6106] +++ exited with 0 +++ [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 6147 [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6106, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=45 /* 0.45 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 94.437869][ T6055] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 94.440108][ T6055] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 94.440126][ T6055] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 94.444147][ T6055] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5839] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, [pid 6147] set_robust_list(0x5555901c6760, 24 [pid 5839] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5839] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6147] <... set_robust_list resumed>) = 0 [ 94.444165][ T6055] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 94.445105][ T6055] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.445229][ T6055] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.445802][ T6055] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.445908][ T6055] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6147] chdir("./5") = 0 [pid 6147] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6147] setpgid(0, 0) = 0 [ 94.446324][ T6055] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.446432][ T6055] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.446640][ T6055] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.446743][ T6055] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.446943][ T6055] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6147] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6147] write(3, "1000", 4) = 4 [ 94.447045][ T6055] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.447243][ T6055] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.447346][ T6055] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.447570][ T6055] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6147] close(3) = 0 [pid 6147] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5841] <... umount2 resumed>) = 0 [pid 6147] write(1, "executing program\n", 18 [pid 5841] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [ 94.447672][ T6055] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.447875][ T6055] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.447979][ T6055] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 94.448178][ T6055] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 94.448284][ T6055] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6147] <... write resumed>) = 18 [pid 5841] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./4/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./4/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6147] memfd_create("syzkaller", 0 [pid 5841] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./4/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6147] <... memfd_create resumed>) = 3 [pid 5841] <... openat resumed>) = 4 [pid 6147] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5841] newfstatat(4, "", [pid 6147] <... mmap resumed>) = 0x7fbbeb93a000 [pid 5841] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./4/file1") = 0 [pid 5841] umount2("./4/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./4/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./4/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./4") = 0 [pid 5841] mkdir("./5", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [ 94.448483][ T6055] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 94.448614][ T6055] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 94.448841][ T6055] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 94.448855][ T6055] Ratelimiting new instances of previous error [ 94.449029][ T6055] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6148 attached , child_tidptr=0x5555901c6750) = 6148 [pid 6148] set_robust_list(0x5555901c6760, 24) = 0 [ 94.449045][ T6055] Ratelimiting new instances of previous error [ 94.540017][ T6055] done [ 94.544249][ T6055] bcachefs (loop3): going read-write [ 94.574652][ T6055] bcachefs (loop3): journal_replay... done [ 94.724340][ T6055] bcachefs (loop3): check_alloc_info... [ 94.726190][ T6055] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 94.726208][ T6055] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 94.726218][ T6055] gen 0 oldest_gen 0 data_type need_discard [ 94.726229][ T6055] journal_seq_nonempty 6 [ 94.726238][ T6055] journal_seq_empty 0 [pid 6148] chdir("./5") = 0 [pid 6148] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6148] setpgid(0, 0) = 0 [pid 6148] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6148] write(3, "1000", 4) = 4 [pid 6148] close(3) = 0 [pid 6148] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6148] write(1, "executing program\n", 18) = 18 [pid 6148] memfd_create("syzkaller", 0) = 3 [ 94.726247][ T6055] need_discard 1 [ 94.726257][ T6055] need_inc_gen 1 [ 94.726265][ T6055] dirty_sectors 0 [ 94.726275][ T6055] stripe_sectors 0 [ 94.726284][ T6055] cached_sectors 0 [ 94.726294][ T6055] stripe 0 [ 94.726303][ T6055] stripe_redundancy 0 [ 94.726314][ T6055] io_time[READ] 1 [ 94.726323][ T6055] io_time[WRITE] 768 [ 94.726332][ T6055] fragmentation 0 [ 94.726341][ T6055] bp_start 8 [pid 6148] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 94.726350][ T6055] , fixing [ 94.751040][ T6059] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 94.751064][ T6059] allowing incompatible features above 0.0: (unknown version) [ 94.751077][ T6059] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 94.751103][ T6059] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 94.751225][ T6059] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 94.751529][ T6059] bcachefs (loop4): Version upgrade required: [ 94.751529][ T6059] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 94.751529][ T6059] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 94.751529][ T6059] 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,check_rebalance_work,set_fs_needs_rebalance [ 94.785724][ T6060] loop1: detected capacity change from 0 to 32768 [ 94.832811][ T6055] done [ 94.839586][ T6055] bcachefs (loop3): check_lrus... done [ 94.841622][ T6055] bcachefs (loop3): check_btree_backpointers... done [ 94.848095][ T6055] bcachefs (loop3): check_backpointers_to_extents... [ 94.855217][ T6059] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 94.855240][ T6059] size != 0, deleting [ 94.858077][ T6055] done [ 94.858705][ T6055] bcachefs (loop3): check_extents_to_backpointers... [ 94.860253][ T6055] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 94.869707][ T6059] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 94.883435][ T6055] done [ 94.884624][ T6055] bcachefs (loop3): check_alloc_to_lru_refs... [ 94.886549][ T6055] bcachefs (loop3): missing fragmentation lru entry [ 94.886566][ T6055] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 94.886577][ T6055] gen 0 oldest_gen 0 data_type user [ 94.886587][ T6055] journal_seq_nonempty 5 [ 94.886596][ T6055] journal_seq_empty 134217728 [ 94.886605][ T6055] need_discard 1 [ 94.886615][ T6055] need_inc_gen 1 [ 94.886624][ T6055] dirty_sectors 16 [ 94.886635][ T6055] stripe_sectors 1802251 [ 94.886644][ T6055] cached_sectors 0 [ 94.886654][ T6055] stripe 0 [ 94.886662][ T6055] stripe_redundancy 0 [ 94.886681][ T6055] io_time[READ] 1 [ 94.886691][ T6055] io_time[WRITE] 512 [ 94.886701][ T6055] fragmentation 0 [ 94.886709][ T6055] bp_start 7 [ 94.886718][ T6055] , fixing [ 94.888376][ T6059] bcachefs (loop4): check_topology... done [ 94.898242][ T6059] bcachefs (loop4): accounting_read... [ 94.903614][ T6055] done [ 94.906634][ T6055] bcachefs (loop3): bucket_gens_init... done [ 94.908619][ T6055] bcachefs (loop3): check_snapshot_trees... done [ 94.913758][ T6055] bcachefs (loop3): check_snapshots... [ 94.914357][ T6055] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 94.914372][ T6055] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 94.933609][ T6059] done [ 94.933628][ T6059] bcachefs (loop4): alloc_read... done [ 94.935783][ T6059] bcachefs (loop4): snapshots_read... done [ 94.938401][ T6059] bcachefs (loop4): check_allocations... [ 94.967310][ T6059] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 94.967332][ T6059] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 94.968987][ T6055] done [ 94.971836][ T6055] bcachefs (loop3): check_subvols... [pid 6147] 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 [ 94.975251][ T6059] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 94.975271][ T6059] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 94.979338][ T6055] done [ 94.980449][ T6059] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 94.980561][ T6059] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 6148] 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 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./5/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./5/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./5/file1") = 0 [ 94.982826][ T6059] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 94.982842][ T6059] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 94.993257][ T6059] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 94.993279][ T6059] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [pid 5839] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./5/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./5") = 0 [pid 5839] mkdir("./6", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6149 attached , child_tidptr=0x5555901c6750) = 6149 [pid 6149] set_robust_list(0x5555901c6760, 24) = 0 [ 94.995078][ T6059] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.995211][ T6059] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.995769][ T6059] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.995899][ T6059] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6149] chdir("./6") = 0 [ 94.996342][ T6059] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.996446][ T6059] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.996647][ T6059] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.996759][ T6059] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.996958][ T6059] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6149] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6149] setpgid(0, 0) = 0 [ 94.997062][ T6059] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.997284][ T6059] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.997386][ T6059] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 94.997605][ T6059] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.997723][ T6059] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6149] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6147] <... write resumed>) = 16777216 [pid 6147] munmap(0x7fbbeb93a000, 138412032 [ 94.997929][ T6059] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 94.998032][ T6059] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 94.998230][ T6059] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 94.998333][ T6059] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 94.998673][ T6059] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6149] write(3, "1000", 4) = 4 [pid 6147] <... munmap resumed>) = 0 [pid 6149] close(3 [pid 6147] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6147] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6147] close(3) = 0 [pid 6147] close(4 [pid 6149] <... close resumed>) = 0 [pid 6147] <... close resumed>) = 0 [pid 6147] mkdir("./file1", 0777) = 0 [pid 6147] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6149] symlink("/dev/binderfs", "./binderfs") = 0 [ 94.998806][ T6059] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 94.999088][ T6059] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 94.999104][ T6059] Ratelimiting new instances of previous error [ 95.007575][ T6055] bcachefs (loop3): check_subvol_children... done [ 95.009776][ T6055] bcachefs (loop3): delete_dead_snapshots... done [ 95.011013][ T6055] bcachefs (loop3): check_inodes... [pid 6149] write(1, "executing program\n", 18executing program ) = 18 [ 95.012142][ T6055] bcachefs (loop3): inode points to missing dirent [ 95.012156][ T6055] inum: 4098:4294967295 [ 95.012166][ T6055] mode=40755 [ 95.012174][ T6055] flags=(15300000) [ 95.012183][ T6055] journal_seq=4 [ 95.012192][ T6055] hash_seed=ece93825deac2443 [ 95.012202][ T6055] hash_type=siphash [ 95.012210][ T6055] bi_size=0 [ 95.012219][ T6055] bi_sectors=0 [ 95.012227][ T6055] bi_version=0 [ 95.012236][ T6055] bi_atime=2770562249 [ 95.012243][ T6055] bi_ctime=2780562352 [pid 6148] <... write resumed>) = 16777216 [pid 6149] memfd_create("syzkaller", 0 [pid 6148] munmap(0x7fbbeb93a000, 138412032) = 0 [ 95.012252][ T6055] bi_mtime=2780562352 [ 95.012261][ T6055] bi_otime=2770562249 [ 95.012271][ T6055] bi_uid=0 [ 95.012279][ T6055] bi_gid=0 [ 95.012287][ T6055] bi_nlink=0 [ 95.012295][ T6055] bi_generation=0 [ 95.012305][ T6055] bi_dev=0 [ 95.012313][ T6055] bi_data_checksum=0 [ 95.012322][ T6055] bi_compression=0 [ 95.012330][ T6055] bi_project=0 [ 95.012339][ T6055] bi_background_compression=0 [pid 6149] <... memfd_create resumed>) = 3 [pid 6148] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 6149] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 6148] <... openat resumed>) = 4 [ 95.012349][ T6055] bi_data_replicas=0 [ 95.012357][ T6055] bi_promote_target=0 [ 95.012367][ T6055] bi_foreground_target=64 [ 95.012375][ T6055] bi_background_target=1 [ 95.012383][ T6055] bi_erasure_code=0 [ 95.012392][ T6055] bi_fields_set=0 [ 95.012401][ T6055] bi_dir=0 [ 95.012409][ T6055] bi_dir_offset=32 [ 95.012417][ T6055] bi_subvol=0 [ 95.012426][ T6055] bi_parent_subvol=0 [ 95.012435][ T6055] bi_nocow=0 [pid 6149] <... mmap resumed>) = 0x7fbbeb93a000 [pid 6148] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6148] close(3) = 0 [pid 6148] close(4) = 0 [pid 6148] mkdir("./file1", 0777) = 0 [ 95.012443][ T6055] bi_depth=0 [ 95.012450][ T6055] bi_inodes_32bit=0 [ 95.012459][ T6055] bi_casefold=0, fixing [ 95.041621][ T6059] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.041646][ T6059] Ratelimiting new instances of previous error [ 95.049748][ T6055] done [ 95.060389][ T6055] bcachefs (loop3): check_extents... done [ 95.078236][ T6060] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 95.078262][ T6060] allowing incompatible features above 0.0: (unknown version) [ 95.078274][ T6060] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 95.078299][ T6060] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 95.078424][ T6060] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 95.078655][ T6060] bcachefs (loop1): Version upgrade required: [ 95.078655][ T6060] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 95.078655][ T6060] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 95.078655][ T6060] 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,check_rebalance_work,set_fs_needs_rebalance [ 95.087438][ T6055] bcachefs (loop3): check_indirect_extents... done [ 95.089716][ T6055] bcachefs (loop3): check_dirents... [ 95.091471][ T6055] bcachefs (loop3): directory with missing backpointer [ 95.091489][ T6055] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [pid 6148] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5838] kill(-6105, SIGKILL) = 0 [pid 5838] kill(6105, SIGKILL) = 0 [ 95.091504][ T6055] inum: 4098:4294967295 [ 95.091513][ T6055] mode=40755 [ 95.091522][ T6055] flags=(11300000) [ 95.091531][ T6055] journal_seq=23 [ 95.091540][ T6055] hash_seed=ece93825deac2443 [ 95.091550][ T6055] hash_type=siphash [ 95.091559][ T6055] bi_size=0 [ 95.091568][ T6055] bi_sectors=0 [ 95.091575][ T6055] bi_version=0 [ 95.091584][ T6055] bi_atime=2770562249 [ 95.091593][ T6055] bi_ctime=2780562352 [ 95.091602][ T6055] bi_mtime=2780562352 [ 95.091611][ T6055] bi_otime=2770562249 [ 95.091620][ T6055] bi_uid=0 [ 95.091629][ T6055] bi_gid=0 [ 95.091636][ T6055] bi_nlink=0 [ 95.091644][ T6055] bi_generation=0 [ 95.091654][ T6055] bi_dev=0 [ 95.091662][ T6055] bi_data_checksum=0 [ 95.091671][ T6055] bi_compression=0 [ 95.091680][ T6055] bi_project=0 [ 95.091702][ T6055] bi_background_compression=0 [ 95.091713][ T6055] bi_data_replicas=0 [ 95.091722][ T6055] bi_promote_target=0 [ 95.091731][ T6055] bi_foreground_target=64 [ 95.091740][ T6055] bi_background_target=1 [ 95.091750][ T6055] bi_erasure_code=0 [ 95.091759][ T6055] bi_fields_set=0 [ 95.091768][ T6055] bi_dir=0 [ 95.091775][ T6055] bi_dir_offset=0 [ 95.091784][ T6055] bi_subvol=0 [ 95.091792][ T6055] bi_parent_subvol=0 [ 95.091802][ T6055] bi_nocow=0 [ 95.091810][ T6055] bi_depth=0 [ 95.091819][ T6055] bi_inodes_32bit=0 [ 95.091828][ T6055] bi_casefold=0, fixing [ 95.099511][ T6059] done [ 95.108656][ T6055] done [ 95.109938][ T6055] bcachefs (loop3): check_xattrs... [ 95.110834][ T6059] bcachefs (loop4): going read-write [ 95.118722][ T6055] done [ 95.118740][ T6055] bcachefs (loop3): check_root... done [ 95.119972][ T6055] bcachefs (loop3): check_unreachable_inodes... done [ 95.120952][ T6055] bcachefs (loop3): check_subvolume_structure... done [ 95.121714][ T6055] bcachefs (loop3): check_directory_structure... done [ 95.124190][ T6055] bcachefs (loop3): check_nlinks... [ 95.124909][ T6055] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 95.134513][ T6061] loop2: detected capacity change from 0 to 32768 [ 95.141276][ T6055] done [ 95.142682][ T6055] bcachefs (loop3): check_rebalance_work... [ 95.143623][ T6059] bcachefs (loop4): journal_replay... [ 95.153924][ T6055] done [ 95.153941][ T6055] bcachefs (loop3): resume_logged_ops... done [ 95.155090][ T6055] bcachefs (loop3): delete_dead_inodes... [ 95.191309][ T6060] bcachefs (loop1): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [pid 6149] 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 5838] openat(AT_FDCWD, "/sys/fs/fuse/connections", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5838] newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0 [pid 5838] getdents64(3, 0x5555901c77f0 /* 2 entries */, 32768) = 48 [pid 5838] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5838] close(3) = 0 [ 95.191337][ T6060] size != 0, deleting [ 95.194476][ T6055] done [ 95.195162][ T6055] bcachefs (loop3): set_fs_needs_rebalance... [ 95.212033][ T6060] bcachefs (loop1): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 95.224306][ T6060] bcachefs (loop1): check_topology... done [ 95.234503][ T6060] bcachefs (loop1): accounting_read... done [ 95.271983][ T6060] bcachefs (loop1): alloc_read... done [ 95.276694][ T6060] bcachefs (loop1): snapshots_read... [ 95.280324][ T6059] done [ 95.280761][ T6060] done [ 95.280774][ T6060] bcachefs (loop1): check_allocations... [ 95.282494][ T6059] bcachefs (loop4): check_alloc_info... [ 95.285291][ T6055] done [ 95.290324][ T6060] bcachefs (loop1): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 95.290342][ T6060] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 95.292057][ T6055] bcachefs (loop3): check_extents_to_backpointers... [ 95.293058][ T6055] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 95.293569][ T6059] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 95.293585][ T6059] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 95.293595][ T6059] gen 0 oldest_gen 0 data_type need_discard [ 95.293606][ T6059] journal_seq_nonempty 6 [ 95.293615][ T6059] journal_seq_empty 0 [ 95.293625][ T6059] need_discard 1 [ 95.293634][ T6059] need_inc_gen 1 [ 95.293643][ T6059] dirty_sectors 0 [ 95.293652][ T6059] stripe_sectors 0 [ 95.293662][ T6059] cached_sectors 0 [ 95.293671][ T6059] stripe 0 [ 95.293680][ T6059] stripe_redundancy 0 [ 95.293689][ T6059] io_time[READ] 1 [ 95.293699][ T6059] io_time[WRITE] 768 [ 95.293708][ T6059] fragmentation 0 [ 95.293716][ T6059] bp_start 8 [ 95.293725][ T6059] , fixing [ 95.301014][ T6060] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 95.301033][ T6060] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 95.326566][ T6060] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 95.326588][ T6060] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 95.328873][ T6060] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 95.328891][ T6060] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 95.332033][ T6060] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 95.332052][ T6060] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 95.333055][ T6060] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.333177][ T6060] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.333724][ T6060] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.333831][ T6060] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.334255][ T6060] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.334377][ T6060] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.334605][ T6060] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.334709][ T6060] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.334907][ T6060] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.335011][ T6060] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.335207][ T6060] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.335310][ T6060] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.335519][ T6060] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.335650][ T6060] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.344824][ T6060] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.344936][ T6060] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 95.345160][ T6060] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 95.345265][ T6060] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.345474][ T6060] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 95.345580][ T6060] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.345836][ T6060] bcachefs (loop1): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 95.345851][ T6060] Ratelimiting new instances of previous error [ 95.345978][ T6060] bcachefs (loop1): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.345994][ T6060] Ratelimiting new instances of previous error [ 95.373056][ T6059] done [ 95.379320][ T6059] bcachefs (loop4): check_lrus... [pid 6149] <... write resumed>) = 16777216 [ 95.384006][ T6076] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 95.384026][ T6076] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 95.385619][ T6059] done [ 95.385633][ T6059] bcachefs (loop4): check_btree_backpointers... done [ 95.389655][ T6059] bcachefs (loop4): check_backpointers_to_extents... [ 95.400499][ T6055] done [ 95.403086][ T6059] done [ 95.403646][ T6059] bcachefs (loop4): check_extents_to_backpointers... [pid 6149] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6149] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6149] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6149] close(3) = 0 [pid 6149] close(4) = 0 [pid 6149] mkdir("./file1", 0777) = 0 [ 95.404883][ T6059] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 95.429580][ T6059] done [ 95.431157][ T6060] done [ 95.433306][ T6060] bcachefs (loop1): going read-write [ 95.438019][ T6061] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 95.438043][ T6061] allowing incompatible features above 0.0: (unknown version) [ 95.438056][ T6061] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 6149] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6147] <... mount resumed>) = 0 [pid 6147] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6147] chdir("./file1") = 0 [pid 6147] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6147] ioctl(4, LOOP_CLR_FD) = 0 [pid 6147] close(4) = 0 [pid 6147] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6147] exit_group(0) = ? [pid 6147] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6147, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=36 /* 0.36 s */} --- [pid 5840] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5840] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 95.438082][ T6061] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 95.438208][ T6061] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 95.438457][ T6061] bcachefs (loop2): Version upgrade required: [ 95.438457][ T6061] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 95.438457][ T6061] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 95.438457][ T6061] 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,check_rebalance_work,set_fs_needs_rebalance [ 95.446107][ T6060] bcachefs (loop1): journal_replay... [ 95.482185][ T6059] bcachefs (loop4): check_alloc_to_lru_refs... [ 95.484273][ T6059] bcachefs (loop4): missing fragmentation lru entry [ 95.484291][ T6059] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 95.484302][ T6059] gen 0 oldest_gen 0 data_type user [ 95.484312][ T6059] journal_seq_nonempty 5 [ 95.484322][ T6059] journal_seq_empty 134217728 [ 95.484332][ T6059] need_discard 1 [ 95.484342][ T6059] need_inc_gen 1 [ 95.484351][ T6059] dirty_sectors 16 [ 95.484360][ T6059] stripe_sectors 1802251 [ 95.484372][ T6059] cached_sectors 0 [ 95.484382][ T6059] stripe 0 [ 95.484391][ T6059] stripe_redundancy 0 [ 95.484398][ T6059] io_time[READ] 1 [ 95.484424][ T6059] io_time[WRITE] 512 [ 95.484433][ T6059] fragmentation 0 [ 95.484452][ T6059] bp_start 7 [ 95.484471][ T6059] , fixing [ 95.487983][ T6059] done [ 95.492222][ T6059] bcachefs (loop4): bucket_gens_init... done [ 95.499225][ T6059] bcachefs (loop4): check_snapshot_trees... done [ 95.512069][ T6059] bcachefs (loop4): check_snapshots... [ 95.512665][ T6059] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 95.512682][ T6059] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 95.540180][ T6061] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 95.540203][ T6061] size != 0, deleting [ 95.542969][ T6061] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 95.550109][ T6055] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 95.550134][ T6055] bcachefs (loop3): check_alloc_info... [ 95.563057][ T6061] bcachefs (loop2): check_topology... [ 95.590569][ T6059] done [ 95.591623][ T6059] bcachefs (loop4): check_subvols... [ 95.594799][ T6055] done [ 95.595859][ T6055] bcachefs (loop3): check_lrus... [ 95.598651][ T6059] done [ 95.598857][ T6055] done [ 95.598870][ T6055] bcachefs (loop3): check_btree_backpointers... [ 95.600673][ T6061] done [ 95.600687][ T6061] bcachefs (loop2): accounting_read... [ 95.600797][ T6060] done [ 95.601483][ T6060] bcachefs (loop1): check_alloc_info... [ 95.603320][ T6060] bcachefs (loop1): bucket incorrectly unset in need_discard btree [ 95.603338][ T6060] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 95.603348][ T6060] gen 0 oldest_gen 0 data_type need_discard [ 95.603356][ T6060] journal_seq_nonempty 6 [ 95.608644][ T6055] done [ 95.608661][ T6055] bcachefs (loop3): check_backpointers_to_extents... [pid 5840] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6148] <... mount resumed>) = 0 [pid 6148] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6148] chdir("./file1") = 0 [pid 6148] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6148] ioctl(4, LOOP_CLR_FD) = 0 [pid 6148] close(4) = 0 [pid 6148] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6148] exit_group(0) = ? [pid 6148] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6148, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=38 /* 0.38 s */} --- [pid 5841] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5841] umount2("./5", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./5", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 95.610289][ T6060] journal_seq_empty 0 [ 95.610306][ T6060] need_discard 1 [ 95.610315][ T6060] need_inc_gen 1 [ 95.610325][ T6060] dirty_sectors 0 [ 95.610334][ T6060] stripe_sectors 0 [ 95.610345][ T6060] cached_sectors 0 [ 95.610355][ T6060] stripe 0 [ 95.610362][ T6060] stripe_redundancy 0 [ 95.610370][ T6060] io_time[READ] 1 [ 95.610379][ T6060] io_time[WRITE] 768 [ 95.610388][ T6060] fragmentation 0 [ 95.610397][ T6060] bp_start 8 [ 95.610406][ T6060] , fixing [ 95.629733][ T6059] bcachefs (loop4): check_subvol_children... [ 95.636962][ T6061] done [ 95.636981][ T6061] bcachefs (loop2): alloc_read... [ 95.637653][ T6059] done [ 95.637666][ T6059] bcachefs (loop4): delete_dead_snapshots... [ 95.638083][ T6055] done [ 95.638096][ T6055] bcachefs (loop3): check_extents_to_backpointers... [ 95.640223][ T6061] done [ 95.640238][ T6061] bcachefs (loop2): snapshots_read... [ 95.641457][ T6059] done [ 95.641472][ T6059] bcachefs (loop4): check_inodes... [ 95.642632][ T6059] bcachefs (loop4): inode points to missing dirent [ 95.642648][ T6059] inum: 4098:4294967295 [ 95.642657][ T6059] mode=40755 [ 95.642666][ T6059] flags=(15300000) [ 95.642676][ T6059] journal_seq=4 [ 95.642684][ T6059] hash_seed=ece93825deac2443 [ 95.642694][ T6059] hash_type=siphash [ 95.642704][ T6059] bi_size=0 [ 95.642712][ T6059] bi_sectors=0 [ 95.642719][ T6059] bi_version=0 [ 95.642728][ T6059] bi_atime=2770562249 [ 95.642736][ T6059] bi_ctime=2780562352 [ 95.642744][ T6059] bi_mtime=2780562352 [ 95.642752][ T6059] bi_otime=2770562249 [ 95.642761][ T6059] bi_uid=0 [ 95.642770][ T6059] bi_gid=0 [ 95.642779][ T6059] bi_nlink=0 [ 95.642788][ T6059] bi_generation=0 [ 95.642797][ T6059] bi_dev=0 [ 95.642805][ T6059] bi_data_checksum=0 [ 95.642815][ T6059] bi_compression=0 [ 95.642825][ T6059] bi_project=0 [ 95.642834][ T6059] bi_background_compression=0 [ 95.642844][ T6059] bi_data_replicas=0 [ 95.642853][ T6059] bi_promote_target=0 [ 95.642862][ T6059] bi_foreground_target=64 [ 95.642871][ T6059] bi_background_target=1 [ 95.642880][ T6059] bi_erasure_code=0 [ 95.642889][ T6059] bi_fields_set=0 [ 95.642898][ T6059] bi_dir=0 [ 95.642906][ T6059] bi_dir_offset=32 [ 95.642917][ T6059] bi_subvol=0 [ 95.642924][ T6059] bi_parent_subvol=0 [ 95.642933][ T6059] bi_nocow=0 [ 95.642942][ T6059] bi_depth=0 [ 95.642951][ T6059] bi_inodes_32bit=0 [ 95.642959][ T6059] bi_casefold=0, fixing [ 95.646312][ T6061] done [ 95.646327][ T6061] bcachefs (loop2): check_allocations... [ 95.648583][ T6055] done [ 95.648599][ T6055] bcachefs (loop3): check_alloc_to_lru_refs... [ 95.651855][ T6061] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 95.651875][ T6061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 95.654926][ T6055] done [ 95.657177][ T6055] bcachefs (loop3): bucket_gens_init... [ 95.658980][ T6059] done [ 95.659936][ T6059] bcachefs (loop4): check_extents... [ 95.668998][ T6055] done [ 95.672363][ T6055] bcachefs (loop3): check_snapshot_trees... [ 95.673493][ T6061] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 95.673511][ T6061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 95.675735][ T6059] done [ 95.675748][ T6059] bcachefs (loop4): check_indirect_extents... [ 95.677117][ T6055] done [ 95.677131][ T6055] bcachefs (loop3): check_snapshots... [ 95.678468][ T4660] bcachefs (loop4): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 95.678468][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 95.678655][ T4660] bcachefs (loop4): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 95.678672][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 95.678692][ T4660] loop4 checksum error [ 95.681938][ T6087] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 95.681956][ T6087] running recovery pass check_extents_to_backpointers (17), currently at check_indirect_extents (30) [ 95.683996][ T6061] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 95.684013][ T6061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 95.685132][ T6055] done [ 95.685146][ T6055] bcachefs (loop3): check_subvols... [ 95.685706][ T6059] done [ 95.686411][ T6055] done [ 95.686422][ T6055] bcachefs (loop3): check_subvol_children... done [ 95.687259][ T6055] bcachefs (loop3): delete_dead_snapshots... done [ 95.687962][ T6055] bcachefs (loop3): check_inodes... [ 95.692349][ T6061] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 95.692370][ T6061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 95.698723][ T6055] done [ 95.698738][ T6055] bcachefs (loop3): check_extents... [ 95.703495][ T6061] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 95.703518][ T6061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 95.705224][ T6061] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.705354][ T6061] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.705916][ T6061] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.706023][ T6061] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.706454][ T6061] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.706559][ T6061] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.706768][ T6061] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.706874][ T6061] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.707077][ T6061] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.707194][ T6061] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.707391][ T6061] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.707494][ T6061] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 95.707743][ T6061] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.707849][ T6061] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5841] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./5/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./5/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] close(4) = 0 [pid 5840] rmdir("./5/file1") = 0 [pid 5840] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./5/binderfs") = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./5") = 0 [ 95.708048][ T6061] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 95.708152][ T6061] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 95.708353][ T6061] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 95.708457][ T6061] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.709052][ T6059] bcachefs (loop4): check_extents_to_backpointers... [pid 5840] mkdir("./6", 0777) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6180 ./strace-static-x86_64: Process 6180 attached [pid 6180] set_robust_list(0x5555901c6760, 24) = 0 [ 95.710202][ T6059] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 95.718217][ T6055] done [ 95.718234][ T6055] bcachefs (loop3): check_indirect_extents... [ 95.719030][ T6087] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 95.725995][ T6055] done [ 95.726015][ T6055] bcachefs (loop3): check_dirents... [ 95.728139][ T6059] done [ 95.729201][ T6059] bcachefs (loop4): check_dirents... [ 95.731026][ T6059] bcachefs (loop4): directory with missing backpointer [pid 6180] chdir("./6") = 0 [pid 6180] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6180] setpgid(0, 0) = 0 [ 95.731044][ T6059] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 95.731060][ T6059] inum: 4098:4294967295 [ 95.731069][ T6059] mode=40755 [ 95.731078][ T6059] flags=(11300000) [ 95.731087][ T6059] journal_seq=23 [ 95.731097][ T6059] hash_seed=ece93825deac2443 [ 95.731108][ T6059] hash_type=siphash [ 95.731117][ T6059] bi_size=0 [ 95.731126][ T6059] bi_sectors=0 [ 95.731135][ T6059] bi_version=0 [ 95.731144][ T6059] bi_atime=2770562249 [pid 6180] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6149] <... mount resumed>) = 0 [pid 6149] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 6180] <... openat resumed>) = 3 [pid 6149] <... openat resumed>) = 3 [pid 6149] chdir("./file1" [pid 6180] write(3, "1000", 4 [pid 6149] <... chdir resumed>) = 0 [pid 6180] <... write resumed>) = 4 [pid 6149] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 6180] close(3 [pid 6149] <... openat resumed>) = 4 [pid 6180] <... close resumed>) = 0 [pid 6149] ioctl(4, LOOP_CLR_FD [pid 6180] symlink("/dev/binderfs", "./binderfs" [pid 6149] <... ioctl resumed>) = 0 [pid 6149] close(4 [pid 6180] <... symlink resumed>) = 0 [pid 6180] write(1, "executing program\n", 18 [pid 6149] <... close resumed>) = 0 [pid 6180] <... write resumed>) = 18 [pid 6149] write(-1, NULL, 0executing program [pid 6180] memfd_create("syzkaller", 0 [pid 6149] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 6149] exit_group(0 [pid 6180] <... memfd_create resumed>) = 3 [pid 6180] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6149] <... exit_group resumed>) = ? [pid 6149] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6149, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=46 /* 0.46 s */} --- [pid 5839] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 95.731155][ T6059] bi_ctime=2780562352 [ 95.731165][ T6059] bi_mtime=2780562352 [ 95.731174][ T6059] bi_otime=2770562249 [ 95.731183][ T6059] bi_uid=0 [ 95.731192][ T6059] bi_gid=0 [ 95.731202][ T6059] bi_nlink=0 [ 95.731211][ T6059] bi_generation=0 [ 95.731220][ T6059] bi_dev=0 [ 95.731228][ T6059] bi_data_checksum=0 [ 95.731238][ T6059] bi_compression=0 [ 95.731247][ T6059] bi_project=0 [ 95.731256][ T6059] bi_background_compression=0 [ 95.731266][ T6059] bi_data_replicas=0 [ 95.731275][ T6059] bi_promote_target=0 [ 95.731284][ T6059] bi_foreground_target=64 [ 95.731294][ T6059] bi_background_target=1 [ 95.731303][ T6059] bi_erasure_code=0 [ 95.731312][ T6059] bi_fields_set=0 [ 95.731321][ T6059] bi_dir=0 [ 95.731330][ T6059] bi_dir_offset=0 [ 95.731339][ T6059] bi_subvol=0 [ 95.731348][ T6059] bi_parent_subvol=0 [ 95.731356][ T6059] bi_nocow=0 [ 95.731365][ T6059] bi_depth=0 [pid 5839] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./5/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./5/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./5/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./5/file1") = 0 [pid 5841] umount2("./5/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./5/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./5/binderfs") = 0 [ 95.731373][ T6059] bi_inodes_32bit=0 [ 95.731382][ T6059] bi_casefold=0, fixing [ 95.733427][ T3872] bcachefs (loop4): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 95.733427][ T3872] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 95.733614][ T3872] bcachefs (loop4): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./5") = 0 [pid 5841] mkdir("./6", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6181 attached , child_tidptr=0x5555901c6750) = 6181 [ 95.733631][ T3872] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 95.733650][ T3872] loop4 checksum error [ 95.734962][ T6060] done [ 95.740283][ T6060] bcachefs (loop1): check_lrus... done [ 95.742316][ T6060] bcachefs (loop1): check_btree_backpointers... [ 95.744353][ T6055] done [ 95.744949][ T6055] bcachefs (loop3): check_xattrs... [ 95.749520][ T6061] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6181] set_robust_list(0x5555901c6760, 24) = 0 [ 95.749647][ T6061] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.749905][ T6061] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 95.749922][ T6061] Ratelimiting new instances of previous error [ 95.750050][ T6061] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 95.750066][ T6061] Ratelimiting new instances of previous error [ 95.752031][ T6055] done [ 95.752045][ T6055] bcachefs (loop3): check_root... [pid 6181] chdir("./6") = 0 [pid 6181] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 95.752948][ T6060] done [ 95.752962][ T6060] bcachefs (loop1): check_backpointers_to_extents... [ 95.756110][ T6055] done [ 95.756125][ T6055] bcachefs (loop3): check_unreachable_inodes... done [ 95.759452][ T6055] bcachefs (loop3): check_subvolume_structure... [ 95.767247][ T6059] done [ 95.768333][ T6059] bcachefs (loop4): check_xattrs... [ 95.769170][ T6060] done [ 95.770701][ T6060] bcachefs (loop1): check_extents_to_backpointers... [ 95.772048][ T6060] bcachefs (loop1): scanning for missing backpointers in 5/128 buckets [pid 6181] setpgid(0, 0) = 0 [pid 6181] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 95.773961][ T6055] done [ 95.773974][ T6055] bcachefs (loop3): check_directory_structure... done [ 95.774961][ T6055] bcachefs (loop3): check_nlinks... [ 95.780059][ T6059] done [ 95.780076][ T6059] bcachefs (loop4): check_root... [ 95.782670][ T6055] done [ 95.782686][ T6055] bcachefs (loop3): check_rebalance_work... [ 95.783372][ T6059] done [ 95.783384][ T6059] bcachefs (loop4): check_unreachable_inodes... [ 95.786173][ T6060] done [ 95.788025][ T6060] bcachefs (loop1): check_alloc_to_lru_refs... [pid 6181] write(3, "1000", 4) = 4 [pid 6181] close(3) = 0 [pid 6181] symlink("/dev/binderfs", "./binderfs") = 0 [ 95.789015][ T6055] done [ 95.789030][ T6055] bcachefs (loop3): resume_logged_ops... [ 95.791119][ T6059] done [ 95.791135][ T6059] bcachefs (loop4): check_subvolume_structure... [ 95.792746][ T6060] bcachefs (loop1): missing fragmentation lru entry [ 95.792766][ T6060] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 95.792777][ T6060] gen 0 oldest_gen 0 data_type user [ 95.792787][ T6060] journal_seq_nonempty 5 [ 95.792798][ T6060] journal_seq_empty 134217728 [ 95.792809][ T6060] need_discard 1 [pid 6180] 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 6181] write(1, "executing program\n", 18executing program ) = 18 [pid 6181] memfd_create("syzkaller", 0) = 3 [pid 6181] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 95.792819][ T6060] need_inc_gen 1 [ 95.792830][ T6060] dirty_sectors 16 [ 95.792840][ T6060] stripe_sectors 1802251 [ 95.792849][ T6060] cached_sectors 0 [ 95.792859][ T6060] stripe 0 [ 95.792869][ T6060] stripe_redundancy 0 [ 95.792878][ T6060] io_time[READ] 1 [ 95.792887][ T6060] io_time[WRITE] 512 [ 95.792897][ T6060] fragmentation 0 [ 95.792906][ T6060] bp_start 7 [ 95.792915][ T6060] , fixing [ 95.799838][ T6059] done [ 95.799851][ T6059] bcachefs (loop4): check_directory_structure... [ 95.800291][ T6055] done [ 95.800303][ T6055] bcachefs (loop3): delete_dead_inodes... done [ 95.801648][ T6055] bcachefs (loop3): set_fs_needs_rebalance... [ 95.803031][ T6059] done [ 95.803043][ T6059] bcachefs (loop4): check_nlinks... [ 95.803736][ T6059] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 95.805916][ T6055] done [ 95.812468][ T6060] done [ 95.815695][ T6059] done [ 95.817290][ T6059] bcachefs (loop4): check_rebalance_work... [ 95.818780][ T6060] bcachefs (loop1): bucket_gens_init... [ 95.822100][ T6055] bcachefs (loop3): done starting filesystem [ 95.826627][ T6059] done [ 95.826642][ T6059] bcachefs (loop4): resume_logged_ops... [ 95.827418][ T6060] done [ 95.828070][ T6060] bcachefs (loop1): check_snapshot_trees... [ 95.828965][ T6059] done [ 95.828980][ T6059] bcachefs (loop4): delete_dead_inodes... done [ 95.840981][ T6059] bcachefs (loop4): set_fs_needs_rebalance... [ 95.846676][ T6061] done [ 95.847996][ T6060] done [ 95.848011][ T6060] bcachefs (loop1): check_snapshots... [ 95.848601][ T6060] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 95.848617][ T6060] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 95.859417][ T6061] bcachefs (loop2): going read-write [ 95.863502][ T6059] done [ 95.883224][ T6061] bcachefs (loop2): journal_replay... [ 95.898521][ T6060] done [ 95.902267][ T6060] bcachefs (loop1): check_subvols... [ 95.927076][ T5840] bcachefs (loop3): shutting down [ 95.927098][ T5840] bcachefs (loop3): going read-only [ 95.927126][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 95.930448][ T6059] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 95.930472][ T6059] bcachefs (loop4): check_alloc_info... [ 95.936784][ T6060] done [ 95.944105][ T6059] done [ 95.944122][ T6059] bcachefs (loop4): check_lrus... [ 95.959899][ T6060] bcachefs (loop1): check_subvol_children... done [ 95.961238][ T6060] bcachefs (loop1): delete_dead_snapshots... [ 95.962020][ T6059] done [ 95.962035][ T6059] bcachefs (loop4): check_btree_backpointers... [ 95.966752][ T6060] done [ 95.966769][ T6060] bcachefs (loop1): check_inodes... [ 95.967937][ T6060] bcachefs (loop1): inode points to missing dirent [ 95.967953][ T6060] inum: 4098:4294967295 [ 95.967962][ T6060] mode=40755 [ 95.967972][ T6060] flags=(15300000) [ 95.967981][ T6060] journal_seq=4 [ 95.967990][ T6060] hash_seed=ece93825deac2443 [ 95.968000][ T6060] hash_type=siphash [ 95.968010][ T6060] bi_size=0 [ 95.968019][ T6060] bi_sectors=0 [ 95.968028][ T6060] bi_version=0 [ 95.968037][ T6060] bi_atime=2770562249 [ 95.968046][ T6060] bi_ctime=2780562352 [ 95.968055][ T6060] bi_mtime=2780562352 [ 95.968066][ T6060] bi_otime=2770562249 [ 95.968075][ T6060] bi_uid=0 [ 95.968083][ T6060] bi_gid=0 [ 95.968104][ T6060] bi_nlink=0 [ 95.968113][ T6060] bi_generation=0 [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./6/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 95.968122][ T6060] bi_dev=0 [ 95.968130][ T6060] bi_data_checksum=0 [ 95.968139][ T6060] bi_compression=0 [ 95.968147][ T6060] bi_project=0 [ 95.968155][ T6060] bi_background_compression=0 [ 95.968165][ T6060] bi_data_replicas=0 [ 95.968174][ T6060] bi_promote_target=0 [ 95.968183][ T6060] bi_foreground_target=64 [ 95.968192][ T6060] bi_background_target=1 [ 95.968201][ T6060] bi_erasure_code=0 [ 95.968210][ T6060] bi_fields_set=0 [ 95.968219][ T6060] bi_dir=0 [pid 5839] openat(AT_FDCWD, "./6/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./6/file1") = 0 [pid 5839] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./6/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./6") = 0 [pid 5839] mkdir("./7", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6182 [ 95.968227][ T6060] bi_dir_offset=32 [ 95.968235][ T6060] bi_subvol=0 [ 95.968244][ T6060] bi_parent_subvol=0 [ 95.968253][ T6060] bi_nocow=0 [ 95.968261][ T6060] bi_depth=0 [ 95.968270][ T6060] bi_inodes_32bit=0 [ 95.968278][ T6060] bi_casefold=0, fixing [ 95.969302][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 38 [ 95.971208][ T6059] done [ 95.971222][ T6059] bcachefs (loop4): check_backpointers_to_extents... ./strace-static-x86_64: Process 6182 attached [pid 6181] 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 6180] <... write resumed>) = 16777216 [pid 6182] set_robust_list(0x5555901c6760, 24) = 0 [pid 6182] chdir("./7") = 0 [pid 6182] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6182] setpgid(0, 0) = 0 [pid 6182] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6180] munmap(0x7fbbeb93a000, 138412032 [pid 6182] <... openat resumed>) = 3 [pid 6182] write(3, "1000", 4) = 4 [pid 6182] close(3) = 0 [pid 6182] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6182] write(1, "executing program\n", 18) = 18 [pid 6182] memfd_create("syzkaller", 0) = 3 [pid 6182] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6180] <... munmap resumed>) = 0 [pid 6180] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 95.974770][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 38 [ 95.975824][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 39 [ 95.978132][ T5840] bcachefs (loop3): marking filesystem clean [ 95.982198][ T6059] done [ 95.982214][ T6059] bcachefs (loop4): check_extents_to_backpointers... [ 95.983139][ T6059] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 95.985039][ T6060] done [ 95.986504][ T6060] bcachefs (loop1): check_extents... done [pid 6180] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6180] close(3) = 0 [pid 6180] close(4) = 0 [pid 6180] mkdir("./file1", 0777) = 0 [ 95.997004][ T6060] bcachefs (loop1): check_indirect_extents... [ 95.998564][ T6059] done [ 95.998580][ T6059] bcachefs (loop4): check_alloc_to_lru_refs... [ 96.002051][ T6060] done [ 96.002068][ T6060] bcachefs (loop1): check_dirents... [ 96.003798][ T6060] bcachefs (loop1): directory with missing backpointer [ 96.003812][ T6060] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 96.003828][ T6060] inum: 4098:4294967295 [ 96.003837][ T6060] mode=40755 [ 96.003846][ T6060] flags=(11300000) [ 96.003855][ T6060] journal_seq=23 [ 96.003864][ T6060] hash_seed=ece93825deac2443 [ 96.003874][ T6060] hash_type=siphash [ 96.003883][ T6060] bi_size=0 [ 96.003892][ T6060] bi_sectors=0 [ 96.003901][ T6060] bi_version=0 [ 96.003910][ T6060] bi_atime=2770562249 [ 96.003919][ T6060] bi_ctime=2780562352 [ 96.003929][ T6060] bi_mtime=2780562352 [ 96.003938][ T6060] bi_otime=2770562249 [ 96.003947][ T6060] bi_uid=0 [ 96.003954][ T6060] bi_gid=0 [ 96.003963][ T6060] bi_nlink=0 [ 96.003971][ T6060] bi_generation=0 [ 96.003980][ T6060] bi_dev=0 [ 96.003989][ T6060] bi_data_checksum=0 [ 96.003998][ T6060] bi_compression=0 [ 96.004007][ T6060] bi_project=0 [ 96.004016][ T6060] bi_background_compression=0 [ 96.004026][ T6060] bi_data_replicas=0 [ 96.004035][ T6060] bi_promote_target=0 [ 96.004045][ T6060] bi_foreground_target=64 [ 96.004054][ T6060] bi_background_target=1 [ 96.004064][ T6060] bi_erasure_code=0 [ 96.004073][ T6060] bi_fields_set=0 [ 96.004082][ T6060] bi_dir=0 [ 96.004090][ T6060] bi_dir_offset=0 [ 96.004099][ T6060] bi_subvol=0 [ 96.004108][ T6060] bi_parent_subvol=0 [ 96.004122][ T6060] bi_nocow=0 [ 96.004131][ T6060] bi_depth=0 [ 96.004139][ T6060] bi_inodes_32bit=0 [ 96.004149][ T6060] bi_casefold=0, fixing [ 96.020194][ T6059] done [ 96.022487][ T6059] bcachefs (loop4): bucket_gens_init... [ 96.026935][ T6061] done [ 96.028022][ T6061] bcachefs (loop2): check_alloc_info... [ 96.031622][ T6059] done [ 96.033025][ T6059] bcachefs (loop4): check_snapshot_trees... [ 96.034496][ T6061] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 96.034514][ T6061] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 96.034526][ T6061] gen 0 oldest_gen 0 data_type need_discard [ 96.034537][ T6061] journal_seq_nonempty 6 [ 96.034547][ T6061] journal_seq_empty 0 [ 96.034556][ T6061] need_discard 1 [ 96.034563][ T6061] need_inc_gen 1 [ 96.034573][ T6061] dirty_sectors 0 [ 96.034582][ T6061] stripe_sectors 0 [ 96.034591][ T6061] cached_sectors 0 [ 96.034600][ T6061] stripe 0 [ 96.034609][ T6061] stripe_redundancy 0 [ 96.034619][ T6061] io_time[READ] 1 [ 96.034628][ T6061] io_time[WRITE] 768 [ 96.034639][ T6061] fragmentation 0 [ 96.034648][ T6061] bp_start 8 [ 96.034658][ T6061] , fixing [ 96.039991][ T6060] done [ 96.041675][ T6059] done [ 96.041689][ T6059] bcachefs (loop4): check_snapshots... [ 96.042128][ T6060] bcachefs (loop1): check_xattrs... [ 96.044467][ T6059] done [ 96.044481][ T6059] bcachefs (loop4): check_subvols... [ 96.045351][ T6060] done [ 96.045364][ T6060] bcachefs (loop1): check_root... [ 96.046286][ T6059] done [ 96.046299][ T6059] bcachefs (loop4): check_subvol_children... done [ 96.047015][ T6059] bcachefs (loop4): delete_dead_snapshots... done [ 96.056149][ T6059] bcachefs (loop4): check_inodes... [ 96.057114][ T6060] done [ 96.057128][ T6060] bcachefs (loop1): check_unreachable_inodes... [ 96.059693][ T6059] done [ 96.059710][ T6059] bcachefs (loop4): check_extents... [ 96.065643][ T6060] done [ 96.065659][ T6060] bcachefs (loop1): check_subvolume_structure... [ 96.070604][ T6059] done [ 96.070619][ T6059] bcachefs (loop4): check_indirect_extents... [ 96.071396][ T6060] done [ 96.071409][ T6060] bcachefs (loop1): check_directory_structure... done [ 96.075303][ T6060] bcachefs (loop1): check_nlinks... [ 96.076067][ T6060] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 96.076996][ T6059] done [ 96.077010][ T6059] bcachefs (loop4): check_dirents... done [ 96.080573][ T6059] bcachefs (loop4): check_xattrs... [ 96.084505][ T6060] done [ 96.085287][ T6060] bcachefs (loop1): check_rebalance_work... [ 96.092197][ T6059] done [ 96.092215][ T6059] bcachefs (loop4): check_root... [ 96.100201][ T6060] done [ 96.100219][ T6060] bcachefs (loop1): resume_logged_ops... done [ 96.100980][ T6060] bcachefs (loop1): delete_dead_inodes... [ 96.105536][ T6059] done [ 96.105574][ T6059] bcachefs (loop4): check_unreachable_inodes... done [ 96.114011][ T6059] bcachefs (loop4): check_subvolume_structure... done [ 96.114965][ T6059] bcachefs (loop4): check_directory_structure... done [ 96.115718][ T6059] bcachefs (loop4): check_nlinks... [ 96.118266][ T6061] done [ 96.125078][ T6061] bcachefs (loop2): check_lrus... [ 96.136075][ T6059] done [ 96.136437][ T6061] done [ 96.136449][ T6061] bcachefs (loop2): check_btree_backpointers... [ 96.138212][ T6059] bcachefs (loop4): check_rebalance_work... done [ 96.139199][ T6059] bcachefs (loop4): resume_logged_ops... done [ 96.141826][ T6059] bcachefs (loop4): delete_dead_inodes... [ 96.143883][ T6060] done [ 96.144811][ T6061] done [ 96.144824][ T6061] bcachefs (loop2): check_backpointers_to_extents... [ 96.146719][ T6060] bcachefs (loop1): set_fs_needs_rebalance... [ 96.150511][ T6059] done [ 96.150527][ T6059] bcachefs (loop4): set_fs_needs_rebalance... done [ 96.154684][ T6061] done [ 96.155650][ T6059] bcachefs (loop4): done starting filesystem [pid 6180] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6182] 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 6181] <... write resumed>) = 16777216 [pid 6181] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6181] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6181] ioctl(4, LOOP_SET_FD, 3) = 0 [ 96.202144][ T6061] bcachefs (loop2): check_extents_to_backpointers... [ 96.203490][ T6061] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 96.208598][ T5840] bcachefs (loop3): shutdown complete [ 96.223231][ T6061] done [ 96.224507][ T6061] bcachefs (loop2): check_alloc_to_lru_refs... [ 96.226396][ T6061] bcachefs (loop2): missing fragmentation lru entry [ 96.226414][ T6061] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 96.226425][ T6061] gen 0 oldest_gen 0 data_type user [ 96.226435][ T6061] journal_seq_nonempty 5 [pid 6181] close(3) = 0 [pid 6181] close(4) = 0 [pid 6181] mkdir("./file1", 0777) = 0 [ 96.226445][ T6061] journal_seq_empty 134217728 [ 96.226455][ T6061] need_discard 1 [ 96.226464][ T6061] need_inc_gen 1 [ 96.226474][ T6061] dirty_sectors 16 [ 96.226483][ T6061] stripe_sectors 1802251 [ 96.226492][ T6061] cached_sectors 0 [ 96.226501][ T6061] stripe 0 [ 96.226511][ T6061] stripe_redundancy 0 [ 96.226520][ T6061] io_time[READ] 1 [ 96.226529][ T6061] io_time[WRITE] 512 [ 96.226538][ T6061] fragmentation 0 [ 96.226556][ T6061] bp_start 7 [ 96.226565][ T6061] , fixing [ 96.238882][ T5841] bcachefs (loop4): shutting down [ 96.238901][ T5841] bcachefs (loop4): going read-only [ 96.239743][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 96.241126][ T6060] done [ 96.259661][ T6061] done [ 96.261413][ T6061] bcachefs (loop2): bucket_gens_init... [ 96.267929][ T6097] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 96.267953][ T6097] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 96.271235][ T6061] done [ 96.272152][ T6061] bcachefs (loop2): check_snapshot_trees... done [ 96.274436][ T6061] bcachefs (loop2): check_snapshots... [ 96.275032][ T6061] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 96.275048][ T6061] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 96.309622][ T6061] done [ 96.310686][ T6061] bcachefs (loop2): check_subvols... done [ 96.325252][ T6061] bcachefs (loop2): check_subvol_children... done [ 96.330035][ T6061] bcachefs (loop2): delete_dead_snapshots... done [ 96.331453][ T6061] bcachefs (loop2): check_inodes... [ 96.332594][ T6061] bcachefs (loop2): inode points to missing dirent [ 96.332611][ T6061] inum: 4098:4294967295 [ 96.332620][ T6061] mode=40755 [ 96.332629][ T6061] flags=(15300000) [ 96.332638][ T6061] journal_seq=4 [ 96.332647][ T6061] hash_seed=ece93825deac2443 [ 96.332657][ T6061] hash_type=siphash [ 96.332666][ T6061] bi_size=0 [ 96.332674][ T6061] bi_sectors=0 [ 96.332684][ T6061] bi_version=0 [ 96.332693][ T6061] bi_atime=2770562249 [ 96.332702][ T6061] bi_ctime=2780562352 [ 96.332710][ T6061] bi_mtime=2780562352 [ 96.332720][ T6061] bi_otime=2770562249 [ 96.332729][ T6061] bi_uid=0 [ 96.332738][ T6061] bi_gid=0 [ 96.332746][ T6061] bi_nlink=0 [ 96.332755][ T6061] bi_generation=0 [ 96.332764][ T6061] bi_dev=0 [ 96.332773][ T6061] bi_data_checksum=0 [ 96.332782][ T6061] bi_compression=0 [ 96.332791][ T6061] bi_project=0 [ 96.332800][ T6061] bi_background_compression=0 [ 96.332809][ T6061] bi_data_replicas=0 [ 96.332818][ T6061] bi_promote_target=0 [ 96.332828][ T6061] bi_foreground_target=64 [ 96.332837][ T6061] bi_background_target=1 [ 96.332847][ T6061] bi_erasure_code=0 [ 96.332856][ T6061] bi_fields_set=0 [ 96.332865][ T6061] bi_dir=0 [ 96.332873][ T6061] bi_dir_offset=32 [ 96.332882][ T6061] bi_subvol=0 [ 96.332891][ T6061] bi_parent_subvol=0 [ 96.332900][ T6061] bi_nocow=0 [ 96.332909][ T6061] bi_depth=0 [ 96.332917][ T6061] bi_inodes_32bit=0 [ 96.332926][ T6061] bi_casefold=0, fixing [ 96.336888][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 35 [ 96.337037][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 35 [ 96.337920][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 36 [ 96.347298][ T5841] bcachefs (loop4): marking filesystem clean [ 96.353838][ T6061] done [ 96.354966][ T6060] bcachefs (loop1): check_extents_to_backpointers... [ 96.356009][ T6061] bcachefs (loop2): check_extents... [ 96.357388][ T6060] bcachefs (loop1): scanning for missing backpointers in 2/128 buckets [ 96.359299][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 96.359299][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 96.359510][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 96.359536][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 96.359556][ T87] loop2 checksum error [ 96.366926][ T6061] done [ 96.369519][ T6061] bcachefs (loop2): check_extents_to_backpointers... [ 96.370481][ T6061] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [pid 6181] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6182] <... write resumed>) = 16777216 [pid 6182] munmap(0x7fbbeb93a000, 138412032) = 0 [ 96.371746][ T6101] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 96.371766][ T6101] running recovery pass check_extents_to_backpointers (17), currently at check_extents (29) [ 96.374424][ T6060] done [ 96.383748][ T6101] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 96.393137][ T6061] done [ 96.394378][ T6061] bcachefs (loop2): check_indirect_extents... [pid 6182] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6182] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6182] close(3) = 0 [pid 6182] close(4) = 0 [pid 6182] mkdir("./file1", 0777) = 0 [ 96.396801][ T6060] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 96.396824][ T6060] bcachefs (loop1): check_alloc_info... done [ 96.429850][ T6060] bcachefs (loop1): check_lrus... [ 96.430738][ T6061] done [ 96.431110][ T6060] done [ 96.431121][ T6060] bcachefs (loop1): check_btree_backpointers... [ 96.432776][ T6061] bcachefs (loop2): check_dirents... [ 96.435350][ T6061] bcachefs (loop2): directory with missing backpointer [ 96.435367][ T6061] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 96.435380][ T6061] inum: 4098:4294967295 [pid 6182] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6180] <... mount resumed>) = 0 [pid 6180] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6180] chdir("./file1") = 0 [pid 6180] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6180] ioctl(4, LOOP_CLR_FD) = 0 [pid 6180] close(4) = 0 [pid 6180] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6180] exit_group(0) = ? [pid 6180] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6180, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=42 /* 0.42 s */} --- [pid 5840] restart_syscall(<... resuming interrupted clone ...>) = 0 [ 96.435389][ T6061] mode=40755 [ 96.435398][ T6061] flags=(11300000) [ 96.435407][ T6061] journal_seq=23 [ 96.435416][ T6061] hash_seed=ece93825deac2443 [ 96.435427][ T6061] hash_type=siphash [ 96.435436][ T6061] bi_size=0 [ 96.435445][ T6061] bi_sectors=0 [ 96.435453][ T6061] bi_version=0 [ 96.435463][ T6061] bi_atime=2770562249 [ 96.435472][ T6061] bi_ctime=2780562352 [ 96.435481][ T6061] bi_mtime=2780562352 [ 96.435490][ T6061] bi_otime=2770562249 [pid 5840] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 96.435499][ T6061] bi_uid=0 [ 96.435509][ T6061] bi_gid=0 [ 96.435517][ T6061] bi_nlink=0 [ 96.435552][ T6061] bi_generation=0 [ 96.435561][ T6061] bi_dev=0 [ 96.435569][ T6061] bi_data_checksum=0 [ 96.435579][ T6061] bi_compression=0 [ 96.435587][ T6061] bi_project=0 [ 96.435595][ T6061] bi_background_compression=0 [ 96.435605][ T6061] bi_data_replicas=0 [ 96.435614][ T6061] bi_promote_target=0 [ 96.435623][ T6061] bi_foreground_target=64 [ 96.435631][ T6061] bi_background_target=1 [ 96.435640][ T6061] bi_erasure_code=0 [ 96.435660][ T6061] bi_fields_set=0 [ 96.435668][ T6061] bi_dir=0 [ 96.435676][ T6061] bi_dir_offset=0 [ 96.435684][ T6061] bi_subvol=0 [ 96.435693][ T6061] bi_parent_subvol=0 [ 96.435702][ T6061] bi_nocow=0 [ 96.435710][ T6061] bi_depth=0 [ 96.435719][ T6061] bi_inodes_32bit=0 [ 96.435727][ T6061] bi_casefold=0, fixing [ 96.439756][ T6060] done [ 96.439773][ T6060] bcachefs (loop1): check_backpointers_to_extents... done [ 96.441243][ T6060] bcachefs (loop1): check_extents_to_backpointers... done [ 96.455381][ T6060] bcachefs (loop1): check_alloc_to_lru_refs... done [ 96.458980][ T6060] bcachefs (loop1): bucket_gens_init... done [ 96.462084][ T6061] done [ 96.462858][ T6060] bcachefs (loop1): check_snapshot_trees... [ 96.463933][ T6061] bcachefs (loop2): check_xattrs... done [ 96.478512][ T6061] bcachefs (loop2): check_root... [ 96.480853][ T6060] done [ 96.480871][ T6060] bcachefs (loop1): check_snapshots... done [ 96.483321][ T6060] bcachefs (loop1): check_subvols... [ 96.483835][ T6061] done [ 96.483849][ T6061] bcachefs (loop2): check_unreachable_inodes... [ 96.486232][ T6060] done [ 96.486248][ T6060] bcachefs (loop1): check_subvol_children... [ 96.490287][ T6061] done [ 96.490301][ T6061] bcachefs (loop2): check_subvolume_structure... [ 96.491286][ T6060] done [ 96.491300][ T6060] bcachefs (loop1): delete_dead_snapshots... [ 96.491667][ T6061] done [ 96.491679][ T6061] bcachefs (loop2): check_directory_structure... [ 96.520398][ T6060] done [ 96.520421][ T6060] bcachefs (loop1): check_inodes... [ 96.521338][ T6061] done [ 96.521351][ T6061] bcachefs (loop2): check_nlinks... [ 96.522081][ T6061] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 96.530973][ T6060] done [ 96.530991][ T6060] bcachefs (loop1): check_extents... [ 96.532170][ T6061] done [ 96.532834][ T6061] bcachefs (loop2): check_rebalance_work... done [ 96.534180][ T6061] bcachefs (loop2): resume_logged_ops... [ 96.535048][ T6060] done [ 96.535061][ T6060] bcachefs (loop1): check_indirect_extents... [ 96.535850][ T6061] done [ 96.535864][ T6061] bcachefs (loop2): delete_dead_inodes... [ 96.536565][ T6060] done [ 96.536579][ T6060] bcachefs (loop1): check_dirents... [ 96.538076][ T6061] done [ 96.538090][ T6061] bcachefs (loop2): set_fs_needs_rebalance... [ 96.543109][ T6060] done [ 96.543126][ T6060] bcachefs (loop1): check_xattrs... done [ 96.544041][ T6060] bcachefs (loop1): check_root... done [ 96.545615][ T6060] bcachefs (loop1): check_unreachable_inodes... done [ 96.546493][ T6060] bcachefs (loop1): check_subvolume_structure... done [ 96.549577][ T6060] bcachefs (loop1): check_directory_structure... [ 96.564191][ T5841] bcachefs (loop4): shutdown complete [ 96.573081][ T6060] done [ 96.573099][ T6060] bcachefs (loop1): check_nlinks... [ 96.576361][ T6061] done [ 96.578972][ T6060] done [ 96.584291][ T6060] bcachefs (loop1): check_rebalance_work... done [ 96.585536][ T6060] bcachefs (loop1): resume_logged_ops... done [ 96.588848][ T6060] bcachefs (loop1): delete_dead_inodes... done [ 96.620143][ T6060] bcachefs (loop1): set_fs_needs_rebalance... done [ 96.623570][ T6060] bcachefs (loop1): done starting filesystem [ 96.663391][ T6061] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 96.663412][ T6061] bcachefs (loop2): check_alloc_info... done [ 96.691183][ T6061] bcachefs (loop2): check_lrus... done [ 96.692385][ T6061] bcachefs (loop2): check_btree_backpointers... done [ 96.693600][ T6061] bcachefs (loop2): check_backpointers_to_extents... done [ 96.695535][ T6061] bcachefs (loop2): check_extents_to_backpointers... [ 96.696448][ T6061] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 96.701769][ T6061] done [ 96.701786][ T6061] bcachefs (loop2): check_alloc_to_lru_refs... [ 96.709527][ T5838] bcachefs (loop1): shutting down [ 96.709546][ T5838] bcachefs (loop1): going read-only [ 96.709820][ T5838] bcachefs (loop1): finished waiting for writes to stop [ 96.714096][ T6061] done [ 96.714914][ T6061] bcachefs (loop2): bucket_gens_init... done [ 96.740301][ T6061] bcachefs (loop2): check_snapshot_trees... done [ 96.741528][ T6061] bcachefs (loop2): check_snapshots... done [ 96.742322][ T6061] bcachefs (loop2): check_subvols... done [ 96.744099][ T6061] bcachefs (loop2): check_subvol_children... done [ 96.754641][ T6061] bcachefs (loop2): delete_dead_snapshots... done [ 96.755418][ T6061] bcachefs (loop2): check_inodes... done [ 96.756967][ T6061] bcachefs (loop2): check_extents... done [ 96.758076][ T6061] bcachefs (loop2): check_indirect_extents... done [ 96.758818][ T6061] bcachefs (loop2): check_dirents... [ 96.779635][ T5838] bcachefs (loop1): flushing journal and stopping allocators, journal seq 35 [ 96.779787][ T5838] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 35 [ 96.781052][ T6061] done [ 96.781066][ T6061] bcachefs (loop2): check_xattrs... [ 96.781782][ T5838] bcachefs (loop1): clean shutdown complete, journal seq 36 [ 96.783595][ T5838] bcachefs (loop1): marking filesystem clean [ 96.793253][ T6061] done [pid 5840] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6181] <... mount resumed>) = 0 [pid 6181] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6181] chdir("./file1") = 0 [pid 6181] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6181] ioctl(4, LOOP_CLR_FD) = 0 [pid 6181] close(4) = 0 [pid 6181] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6181] exit_group(0) = ? [pid 6181] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6181, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=34 /* 0.34 s */} --- [ 96.793269][ T6061] bcachefs (loop2): check_root... done [ 96.794846][ T6061] bcachefs (loop2): check_unreachable_inodes... done [ 96.795979][ T6061] bcachefs (loop2): check_subvolume_structure... done [ 96.799958][ T6061] bcachefs (loop2): check_directory_structure... done [ 96.806310][ T6061] bcachefs (loop2): check_nlinks... done [ 96.809985][ T6061] bcachefs (loop2): check_rebalance_work... done [ 96.814711][ T6061] bcachefs (loop2): resume_logged_ops... done [ 96.819542][ T6061] bcachefs (loop2): delete_dead_inodes... done [pid 5841] umount2("./6", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./6", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 96.820637][ T6061] bcachefs (loop2): set_fs_needs_rebalance... done [ 96.844105][ T6061] bcachefs (loop2): done starting filesystem [ 96.990891][ T5838] bcachefs (loop1): shutdown complete [ 97.030283][ T5839] bcachefs (loop2): shutting down [ 97.030303][ T5839] bcachefs (loop2): going read-only [ 97.030596][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 97.131118][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 36 [ 97.131270][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 36 [ 97.132192][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 37 [ 97.134012][ T5839] bcachefs (loop2): marking filesystem clean [ 97.271952][ T5839] bcachefs (loop2): shutdown complete [ 98.642504][ T6103] loop3: detected capacity change from 0 to 32768 [ 98.901884][ T6104] loop4: detected capacity change from 0 to 32768 [ 98.923852][ T6103] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 98.923879][ T6103] allowing incompatible features above 0.0: (unknown version) [ 98.923892][ T6103] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 98.923922][ T6103] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 98.924094][ T6103] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 98.924337][ T6103] bcachefs (loop3): Version upgrade required: [ 98.924337][ T6103] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 98.924337][ T6103] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 98.924337][ T6103] 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,check_rebalance_work,set_fs_needs_rebalance [ 99.054960][ T6103] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 99.054986][ T6103] size != 0, deleting [ 99.064803][ T6103] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 99.114325][ T6103] bcachefs (loop3): check_topology... done [ 99.115824][ T6103] bcachefs (loop3): accounting_read... [ 99.151882][ T6104] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 99.151910][ T6104] allowing incompatible features above 0.0: (unknown version) [ 99.151924][ T6104] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 99.151953][ T6104] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 99.152087][ T6104] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 99.152320][ T6104] bcachefs (loop4): Version upgrade required: [ 99.152320][ T6104] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 99.152320][ T6104] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5841] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./6/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./6/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] close(4) = 0 [pid 5840] rmdir("./6/file1") = 0 [pid 5840] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./6/binderfs") = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./6") = 0 [pid 5840] mkdir("./7", 0777) = 0 [ 99.152320][ T6104] 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,check_rebalance_work,set_fs_needs_rebalance [ 99.161754][ T6103] done [ 99.161773][ T6103] bcachefs (loop3): alloc_read... done [ 99.164734][ T6103] bcachefs (loop3): snapshots_read... done [ 99.165551][ T6103] bcachefs (loop3): check_allocations... [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6213 attached [pid 6213] set_robust_list(0x5555901c6760, 24 [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 6213 [pid 6213] <... set_robust_list resumed>) = 0 [pid 6213] chdir("./7") = 0 [pid 6213] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6182] <... mount resumed>) = 0 [pid 6213] <... prctl resumed>) = 0 [pid 6213] setpgid(0, 0) = 0 [pid 6213] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6213] write(3, "1000", 4) = 4 [ 99.167443][ T6103] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 99.167463][ T6103] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 99.183278][ T6103] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 99.183302][ T6103] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [pid 6213] close(3) = 0 [pid 6182] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6213] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6182] chdir("./file1") = 0 [pid 6182] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 executing program [pid 6213] write(1, "executing program\n", 18 [pid 6182] ioctl(4, LOOP_CLR_FD) = 0 [pid 6213] <... write resumed>) = 18 [pid 6182] close(4 [pid 6213] memfd_create("syzkaller", 0 [pid 6182] <... close resumed>) = 0 [pid 6182] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6182] exit_group(0 [pid 6213] <... memfd_create resumed>) = 3 [pid 6182] <... exit_group resumed>) = ? [pid 6213] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6182] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6182, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 99.191908][ T6103] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 99.191929][ T6103] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 99.197591][ T6103] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 99.197613][ T6103] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 99.201695][ T6103] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 99.201715][ T6103] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 99.202707][ T6103] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.202833][ T6103] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.203401][ T6103] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.203507][ T6103] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.203924][ T6103] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.204031][ T6103] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.204244][ T6103] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.204361][ T6103] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.204556][ T6103] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.204674][ T6103] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.204878][ T6103] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.204981][ T6103] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.205181][ T6103] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.205296][ T6103] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.205499][ T6103] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.205606][ T6103] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 99.205804][ T6103] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 99.205910][ T6103] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 99.206112][ T6103] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 99.206218][ T6103] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 99.206456][ T6103] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 99.206469][ T6103] Ratelimiting new instances of previous error [ 99.206597][ T6103] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 99.206613][ T6103] Ratelimiting new instances of previous error [ 99.261666][ T6104] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 99.261692][ T6104] size != 0, deleting [ 99.262639][ T6104] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 99.280064][ T6104] bcachefs (loop4): check_topology... [ 99.281159][ T6103] done [ 99.288017][ T6104] done [ 99.288036][ T6104] bcachefs (loop4): accounting_read... [ 99.288966][ T6103] bcachefs (loop3): going read-write [ 99.313236][ T6103] bcachefs (loop3): journal_replay... [ 99.330258][ T6104] done [ 99.330278][ T6104] bcachefs (loop4): alloc_read... done [ 99.332248][ T6104] bcachefs (loop4): snapshots_read... done [ 99.332975][ T6104] bcachefs (loop4): check_allocations... [ 99.334953][ T6104] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 99.334972][ T6104] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 99.342825][ T6104] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 99.342845][ T6104] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 99.345063][ T6104] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 99.345080][ T6104] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 99.359901][ T6104] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 99.359923][ T6104] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 99.372927][ T6104] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW [ 99.372947][ T6104] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 99.373919][ T6104] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.374051][ T6104] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.374596][ T6104] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.374704][ T6104] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.375120][ T6104] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.375227][ T6104] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.375427][ T6104] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.375534][ T6104] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6213] 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 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./6/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./6/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./6/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./6/file1") = 0 [pid 5841] umount2("./6/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./6/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./6/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./6") = 0 [pid 5841] mkdir("./7", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [ 99.375735][ T6104] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.375842][ T6104] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.376082][ T6104] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.376186][ T6104] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.376384][ T6104] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6214 ./strace-static-x86_64: Process 6214 attached [pid 6214] set_robust_list(0x5555901c6760, 24) = 0 [pid 6214] chdir("./7") = 0 [pid 6214] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6214] setpgid(0, 0) = 0 [pid 6214] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6214] write(3, "1000", 4) = 4 [pid 6214] close(3) = 0 [pid 6214] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6214] write(1, "executing program\n", 18) = 18 [ 99.376492][ T6104] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 99.376695][ T6104] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 99.376799][ T6104] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 99.377001][ T6104] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 99.377114][ T6104] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6214] memfd_create("syzkaller", 0) = 3 [pid 6214] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 99.377313][ T6104] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 99.377417][ T6104] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 99.377652][ T6104] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 99.377668][ T6104] Ratelimiting new instances of previous error [ 99.377805][ T6104] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 99.377821][ T6104] Ratelimiting new instances of previous error [ 99.397151][ T6103] done [ 99.399853][ T6103] bcachefs (loop3): check_alloc_info... [ 99.419328][ T6103] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 99.419350][ T6103] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 99.419361][ T6103] gen 0 oldest_gen 0 data_type need_discard [ 99.419374][ T6103] journal_seq_nonempty 6 [ 99.419385][ T6103] journal_seq_empty 0 [ 99.419394][ T6103] need_discard 1 [ 99.419406][ T6103] need_inc_gen 1 [ 99.419416][ T6103] dirty_sectors 0 [ 99.419425][ T6103] stripe_sectors 0 [ 99.419437][ T6103] cached_sectors 0 [ 99.419446][ T6103] stripe 0 [ 99.419456][ T6103] stripe_redundancy 0 [ 99.419466][ T6103] io_time[READ] 1 [ 99.419476][ T6103] io_time[WRITE] 768 [ 99.419487][ T6103] fragmentation 0 [ 99.419497][ T6103] bp_start 8 [ 99.419506][ T6103] , fixing [ 99.458034][ T6104] done [ 99.461785][ T6104] bcachefs (loop4): going read-write [ 99.469766][ T6104] bcachefs (loop4): journal_replay... [ 99.470673][ T6105] loop1: detected capacity change from 0 to 32768 [ 99.477065][ T6103] done [ 99.485060][ T6103] bcachefs (loop3): check_lrus... done [ 99.486473][ T6103] bcachefs (loop3): check_btree_backpointers... done [ 99.536795][ T6103] bcachefs (loop3): check_backpointers_to_extents... done [ 99.558033][ T6103] bcachefs (loop3): check_extents_to_backpointers... [pid 6213] <... write resumed>) = 16777216 [ 99.560528][ T6103] bcachefs (loop3): scanning for missing backpointers in 6/128 buckets [ 99.570919][ T6103] done [ 99.575187][ T6103] bcachefs (loop3): check_alloc_to_lru_refs... [ 99.577149][ T6103] bcachefs (loop3): missing fragmentation lru entry [ 99.577167][ T6103] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 99.577180][ T6103] gen 0 oldest_gen 0 data_type user [ 99.577191][ T6103] journal_seq_nonempty 5 [ 99.577201][ T6103] journal_seq_empty 134217728 [ 99.577212][ T6103] need_discard 1 [ 99.577222][ T6103] need_inc_gen 1 [pid 6213] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6213] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6213] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6213] close(3) = 0 [pid 6213] close(4) = 0 [pid 6213] mkdir("./file1", 0777) = 0 [pid 6213] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./7/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 99.577234][ T6103] dirty_sectors 16 [ 99.577244][ T6103] stripe_sectors 1802251 [ 99.577255][ T6103] cached_sectors 0 [ 99.577264][ T6103] stripe 0 [ 99.577274][ T6103] stripe_redundancy 0 [ 99.577284][ T6103] io_time[READ] 1 [ 99.577296][ T6103] io_time[WRITE] 512 [ 99.577306][ T6103] fragmentation 0 [ 99.577315][ T6103] bp_start 7 [ 99.577326][ T6103] , fixing [ 99.590136][ T6103] done [pid 5839] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./7/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./7/file1") = 0 [pid 5839] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./7/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./7") = 0 [pid 5839] mkdir("./8", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6218 attached , child_tidptr=0x5555901c6750) = 6218 [ 99.592894][ T6103] bcachefs (loop3): bucket_gens_init... done [ 99.598629][ T6103] bcachefs (loop3): check_snapshot_trees... done [ 99.619461][ T6103] bcachefs (loop3): check_snapshots... [ 99.620117][ T6103] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 99.620134][ T6103] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 99.657086][ T6104] done [ 99.660071][ T6104] bcachefs (loop4): check_alloc_info... [ 99.666166][ T6103] done [pid 6218] set_robust_list(0x5555901c6760, 24) = 0 [ 99.666297][ T6104] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 99.666315][ T6104] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 99.666326][ T6104] gen 0 oldest_gen 0 data_type need_discard [ 99.666338][ T6104] journal_seq_nonempty 6 [ 99.666348][ T6104] journal_seq_empty 0 [ 99.666358][ T6104] need_discard 1 [ 99.666369][ T6104] need_inc_gen 1 [ 99.666379][ T6104] dirty_sectors 0 [ 99.666389][ T6104] stripe_sectors 0 [ 99.666398][ T6104] cached_sectors 0 [pid 6218] chdir("./8") = 0 [pid 6218] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6218] setpgid(0, 0) = 0 [ 99.666409][ T6104] stripe 0 [ 99.666420][ T6104] stripe_redundancy 0 [ 99.666430][ T6104] io_time[READ] 1 [ 99.666440][ T6104] io_time[WRITE] 768 [ 99.666452][ T6104] fragmentation 0 [ 99.666461][ T6104] bp_start 8 [ 99.666471][ T6104] , fixing [ 99.707958][ T6103] bcachefs (loop3): check_subvols... done [ 99.711282][ T6103] bcachefs (loop3): check_subvol_children... done [ 99.716653][ T6103] bcachefs (loop3): delete_dead_snapshots... done [pid 6218] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6218] write(3, "1000", 4) = 4 [pid 6218] close(3) = 0 [pid 6218] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6218] write(1, "executing program\n", 18) = 18 [pid 6218] memfd_create("syzkaller", 0) = 3 [pid 6218] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 99.722174][ T6103] bcachefs (loop3): check_inodes... [ 99.723237][ T6103] bcachefs (loop3): inode points to missing dirent [ 99.723253][ T6103] inum: 4098:4294967295 [ 99.723264][ T6103] mode=40755 [ 99.723273][ T6103] flags=(15300000) [ 99.723283][ T6103] journal_seq=4 [ 99.723293][ T6103] hash_seed=ece93825deac2443 [ 99.723303][ T6103] hash_type=siphash [ 99.723312][ T6103] bi_size=0 [ 99.723321][ T6103] bi_sectors=0 [ 99.723331][ T6103] bi_version=0 [ 99.723340][ T6103] bi_atime=2770562249 [ 99.723351][ T6103] bi_ctime=2780562352 [ 99.723361][ T6103] bi_mtime=2780562352 [ 99.723371][ T6103] bi_otime=2770562249 [ 99.723381][ T6103] bi_uid=0 [ 99.723390][ T6103] bi_gid=0 [ 99.723399][ T6103] bi_nlink=0 [ 99.723408][ T6103] bi_generation=0 [ 99.723418][ T6103] bi_dev=0 [ 99.723427][ T6103] bi_data_checksum=0 [ 99.723437][ T6103] bi_compression=0 [ 99.723446][ T6103] bi_project=0 [ 99.723455][ T6103] bi_background_compression=0 [ 99.723466][ T6103] bi_data_replicas=0 [ 99.723475][ T6103] bi_promote_target=0 [ 99.723485][ T6103] bi_foreground_target=64 [ 99.723495][ T6103] bi_background_target=1 [ 99.723505][ T6103] bi_erasure_code=0 [ 99.723514][ T6103] bi_fields_set=0 [ 99.723523][ T6103] bi_dir=0 [ 99.723533][ T6103] bi_dir_offset=32 [ 99.723543][ T6103] bi_subvol=0 [ 99.723551][ T6103] bi_parent_subvol=0 [ 99.723563][ T6103] bi_nocow=0 [ 99.723572][ T6103] bi_depth=0 [ 99.723581][ T6103] bi_inodes_32bit=0 [ 99.723591][ T6103] bi_casefold=0, fixing [ 99.734415][ T6103] done [ 99.735280][ T6103] bcachefs (loop3): check_extents... done [ 99.739653][ T6103] bcachefs (loop3): check_indirect_extents... done [ 99.744046][ T6103] bcachefs (loop3): check_dirents... [ 99.745778][ T6103] bcachefs (loop3): directory with missing backpointer [ 99.745794][ T6103] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 99.745810][ T6103] inum: 4098:4294967295 [ 99.745822][ T6103] mode=40755 [ 99.745831][ T6103] flags=(11300000) [ 99.745841][ T6103] journal_seq=23 [ 99.745850][ T6103] hash_seed=ece93825deac2443 [ 99.745862][ T6103] hash_type=siphash [ 99.745872][ T6103] bi_size=0 [ 99.745881][ T6103] bi_sectors=0 [ 99.745892][ T6103] bi_version=0 [ 99.745901][ T6103] bi_atime=2770562249 [ 99.745923][ T6103] bi_ctime=2780562352 [ 99.745932][ T6103] bi_mtime=2780562352 [ 99.745941][ T6103] bi_otime=2770562249 [ 99.745951][ T6103] bi_uid=0 [ 99.745959][ T6103] bi_gid=0 [ 99.745968][ T6103] bi_nlink=0 [ 99.745977][ T6103] bi_generation=0 [ 99.745986][ T6103] bi_dev=0 [ 99.746003][ T6103] bi_data_checksum=0 [ 99.746012][ T6103] bi_compression=0 [ 99.746021][ T6103] bi_project=0 [ 99.746030][ T6103] bi_background_compression=0 [ 99.746040][ T6103] bi_data_replicas=0 [ 99.746049][ T6103] bi_promote_target=0 [ 99.746058][ T6103] bi_foreground_target=64 [ 99.746068][ T6103] bi_background_target=1 [ 99.746077][ T6103] bi_erasure_code=0 [ 99.746086][ T6103] bi_fields_set=0 [ 99.746096][ T6103] bi_dir=0 [ 99.746104][ T6103] bi_dir_offset=0 [ 99.746113][ T6103] bi_subvol=0 [ 99.746123][ T6103] bi_parent_subvol=0 [ 99.746132][ T6103] bi_nocow=0 [ 99.746140][ T6103] bi_depth=0 [ 99.746149][ T6103] bi_inodes_32bit=0 [ 99.746158][ T6103] bi_casefold=0, fixing [ 99.761944][ T6103] done [ 99.762692][ T6103] bcachefs (loop3): check_xattrs... done [ 99.766254][ T6103] bcachefs (loop3): check_root... done [ 99.770504][ T6103] bcachefs (loop3): check_unreachable_inodes... done [ 99.771572][ T6103] bcachefs (loop3): check_subvolume_structure... done [ 99.772572][ T6103] bcachefs (loop3): check_directory_structure... done [ 99.773334][ T6103] bcachefs (loop3): check_nlinks... [ 99.774051][ T6103] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 99.779634][ T6106] loop2: detected capacity change from 0 to 32768 [pid 6214] 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 [ 99.782517][ T6105] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 99.782540][ T6105] allowing incompatible features above 0.0: (unknown version) [ 99.782553][ T6105] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 99.782578][ T6105] bcachefs (loop1): Using encoding defined by superblock: utf8-12.1.0 [ 99.782712][ T6105] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 99.782947][ T6105] bcachefs (loop1): Version upgrade required: [ 99.782947][ T6105] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 99.782947][ T6105] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6218] 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 6214] <... write resumed>) = 16777216 [ 99.782947][ T6105] 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,check_rebalance_work,set_fs_needs_rebalance [ 99.790503][ T6103] done [ 99.791424][ T6103] bcachefs (loop3): check_rebalance_work... done [ 99.826811][ T6103] bcachefs (loop3): resume_logged_ops... [ 99.831538][ T6104] done [ 99.837442][ T6104] bcachefs (loop4): check_lrus... [ 99.838915][ T6103] done [ 99.838931][ T6103] bcachefs (loop3): delete_dead_inodes... [pid 6214] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6214] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6214] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6214] close(3) = 0 [pid 6214] close(4) = 0 [ 99.842173][ T6104] done [ 99.842190][ T6104] bcachefs (loop4): check_btree_backpointers... done [ 99.859966][ T6104] bcachefs (loop4): check_backpointers_to_extents... done [ 99.865816][ T6104] bcachefs (loop4): check_extents_to_backpointers... [ 99.867114][ T6104] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 99.877913][ T6104] done [ 99.880339][ T6104] bcachefs (loop4): check_alloc_to_lru_refs... [ 99.883922][ T6103] done [ 99.883940][ T6103] bcachefs (loop3): set_fs_needs_rebalance... [pid 6214] mkdir("./file1", 0777) = 0 [ 99.906038][ T6105] bcachefs (loop1): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 99.906062][ T6105] size != 0, deleting [ 99.910530][ T6105] bcachefs (loop1): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 99.914283][ T6104] bcachefs (loop4): missing fragmentation lru entry [ 99.914300][ T6104] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 99.914314][ T6104] gen 0 oldest_gen 0 data_type user [ 99.914324][ T6104] journal_seq_nonempty 5 [ 99.914334][ T6104] journal_seq_empty 134217728 [ 99.914345][ T6104] need_discard 1 [ 99.914354][ T6104] need_inc_gen 1 [ 99.914364][ T6104] dirty_sectors 16 [ 99.914374][ T6104] stripe_sectors 1802251 [ 99.914386][ T6104] cached_sectors 0 [ 99.914396][ T6104] stripe 0 [ 99.914406][ T6104] stripe_redundancy 0 [ 99.914415][ T6104] io_time[READ] 1 [ 99.914425][ T6104] io_time[WRITE] 512 [ 99.914435][ T6104] fragmentation 0 [ 99.914445][ T6104] bp_start 7 [ 99.914455][ T6104] , fixing [ 99.923115][ T6105] bcachefs (loop1): check_topology... [ 99.927492][ T6104] done [ 99.935021][ T6104] bcachefs (loop4): bucket_gens_init... [ 99.940318][ T6105] done [ 99.940338][ T6105] bcachefs (loop1): accounting_read... [ 99.940399][ T6104] done [ 99.943323][ T6104] bcachefs (loop4): check_snapshot_trees... done [ 99.945171][ T6104] bcachefs (loop4): check_snapshots... [ 99.945756][ T6104] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 99.945773][ T6104] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 99.965178][ T6103] done [ 99.980807][ T6122] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 99.980830][ T6122] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 99.985740][ T6103] bcachefs (loop3): check_extents_to_backpointers... [ 99.986723][ T6103] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 99.989112][ T6105] done [ 99.989128][ T6105] bcachefs (loop1): alloc_read... done [ 99.997977][ T6105] bcachefs (loop1): snapshots_read... done [ 99.999870][ T6105] bcachefs (loop1): check_allocations... [ 100.003102][ T6103] done [ 100.003751][ T6104] done [ 100.006679][ T6104] bcachefs (loop4): check_subvols... [ 100.008079][ T6105] bcachefs (loop1): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 100.008099][ T6105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 100.022671][ T6104] done [ 100.024671][ T6105] bcachefs (loop1): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 100.024690][ T6105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 100.028275][ T6103] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 100.028297][ T6103] bcachefs (loop3): check_alloc_info... [ 100.052901][ T6105] bcachefs (loop1): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 100.052936][ T6105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 100.064437][ T6105] bcachefs (loop1): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 6214] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6218] <... write resumed>) = 16777216 [ 100.064459][ T6105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 100.065917][ T6104] bcachefs (loop4): check_subvol_children... [ 100.067213][ T6103] done [ 100.067229][ T6103] bcachefs (loop3): check_lrus... [ 100.068056][ T6104] done [ 100.069479][ T6104] bcachefs (loop4): delete_dead_snapshots... [ 100.070279][ T6103] done [ 100.070293][ T6103] bcachefs (loop3): check_btree_backpointers... [ 100.071966][ T6104] done [ 100.071981][ T6104] bcachefs (loop4): check_inodes... [pid 6218] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6218] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6218] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6218] close(3) = 0 [pid 6218] close(4) = 0 [pid 6218] mkdir("./file1", 0777) = 0 [ 100.073073][ T6104] bcachefs (loop4): inode points to missing dirent [ 100.073089][ T6104] inum: 4098:4294967295 [ 100.073100][ T6104] mode=40755 [ 100.073109][ T6104] flags=(15300000) [ 100.073119][ T6104] journal_seq=4 [ 100.073128][ T6104] hash_seed=ece93825deac2443 [ 100.073139][ T6104] hash_type=siphash [ 100.073148][ T6104] bi_size=0 [ 100.073157][ T6104] bi_sectors=0 [ 100.073167][ T6104] bi_version=0 [ 100.073177][ T6104] bi_atime=2770562249 [ 100.073186][ T6104] bi_ctime=2780562352 [ 100.073196][ T6104] bi_mtime=2780562352 [ 100.073206][ T6104] bi_otime=2770562249 [ 100.073215][ T6104] bi_uid=0 [ 100.073222][ T6104] bi_gid=0 [ 100.073231][ T6104] bi_nlink=0 [ 100.073241][ T6104] bi_generation=0 [ 100.073250][ T6104] bi_dev=0 [ 100.073261][ T6104] bi_data_checksum=0 [ 100.073270][ T6104] bi_compression=0 [ 100.073279][ T6104] bi_project=0 [ 100.073289][ T6104] bi_background_compression=0 [ 100.073299][ T6104] bi_data_replicas=0 [ 100.073308][ T6104] bi_promote_target=0 [pid 6218] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6213] <... mount resumed>) = 0 [pid 6213] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6213] chdir("./file1") = 0 [pid 6213] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6213] ioctl(4, LOOP_CLR_FD) = 0 [pid 6213] close(4) = 0 [pid 6213] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 100.073318][ T6104] bi_foreground_target=64 [ 100.073328][ T6104] bi_background_target=1 [ 100.073338][ T6104] bi_erasure_code=0 [ 100.073348][ T6104] bi_fields_set=0 [ 100.073357][ T6104] bi_dir=0 [ 100.073366][ T6104] bi_dir_offset=32 [ 100.073376][ T6104] bi_subvol=0 [ 100.073385][ T6104] bi_parent_subvol=0 [ 100.073394][ T6104] bi_nocow=0 [ 100.073404][ T6104] bi_depth=0 [ 100.073413][ T6104] bi_inodes_32bit=0 [ 100.073422][ T6104] bi_casefold=0, fixing [ 100.077187][ T6103] done [pid 6213] exit_group(0) = ? [pid 6213] +++ exited with 0 +++ [ 100.077201][ T6103] bcachefs (loop3): check_backpointers_to_extents... [ 100.078843][ T6105] bcachefs (loop1): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 100.078862][ T6105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 100.079956][ T6105] bcachefs (loop1): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6213, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=37 /* 0.37 s */} --- [ 100.080078][ T6105] bcachefs (loop1): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.080633][ T6105] bcachefs (loop1): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.080742][ T6105] bcachefs (loop1): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.081149][ T6105] bcachefs (loop1): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.081259][ T6105] bcachefs (loop1): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5840] restart_syscall(<... resuming interrupted clone ...>) = 0 [ 100.081478][ T6105] bcachefs (loop1): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.081577][ T6105] bcachefs (loop1): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.081769][ T6105] bcachefs (loop1): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.081870][ T6105] bcachefs (loop1): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.082069][ T6105] bcachefs (loop1): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5840] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 100.082168][ T6105] bcachefs (loop1): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.082359][ T6105] bcachefs (loop1): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.082458][ T6105] bcachefs (loop1): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.082657][ T6105] bcachefs (loop1): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5840] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 100.082757][ T6105] bcachefs (loop1): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 100.082977][ T6105] bcachefs (loop1): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 100.083083][ T6105] bcachefs (loop1): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 100.083282][ T6105] bcachefs (loop1): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 100.083388][ T6105] bcachefs (loop1): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 100.083616][ T6105] bcachefs (loop1): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 100.083630][ T6105] Ratelimiting new instances of previous error [ 100.083758][ T6105] bcachefs (loop1): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 100.083774][ T6105] Ratelimiting new instances of previous error [ 100.093350][ T6103] done [ 100.093365][ T6103] bcachefs (loop3): check_extents_to_backpointers... [ 100.095831][ T6104] done [ 100.097618][ T6103] done [ 100.097632][ T6103] bcachefs (loop3): check_alloc_to_lru_refs... [ 100.098807][ T6104] bcachefs (loop4): check_extents... [ 100.101473][ T6103] done [ 100.102070][ T6104] done [ 100.102081][ T6104] bcachefs (loop4): check_indirect_extents... done [ 100.104108][ T6104] bcachefs (loop4): check_dirents... [ 100.105815][ T6104] bcachefs (loop4): directory with missing backpointer [ 100.105833][ T6104] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 100.105848][ T6104] inum: 4098:4294967295 [ 100.105858][ T6104] mode=40755 [ 100.105868][ T6104] flags=(11300000) [ 100.105877][ T6104] journal_seq=25 [ 100.105887][ T6104] hash_seed=ece93825deac2443 [ 100.105897][ T6104] hash_type=siphash [ 100.105907][ T6104] bi_size=0 [ 100.105916][ T6104] bi_sectors=0 [ 100.105933][ T6104] bi_version=0 [ 100.105942][ T6104] bi_atime=2770562249 [ 100.105953][ T6104] bi_ctime=2780562352 [ 100.105963][ T6104] bi_mtime=2780562352 [ 100.105973][ T6104] bi_otime=2770562249 [ 100.105984][ T6104] bi_uid=0 [ 100.105993][ T6104] bi_gid=0 [ 100.106002][ T6104] bi_nlink=0 [ 100.106011][ T6104] bi_generation=0 [ 100.106020][ T6104] bi_dev=0 [ 100.106028][ T6104] bi_data_checksum=0 [ 100.106039][ T6104] bi_compression=0 [ 100.106048][ T6104] bi_project=0 [ 100.106058][ T6104] bi_background_compression=0 [ 100.106068][ T6104] bi_data_replicas=0 [ 100.106077][ T6104] bi_promote_target=0 [ 100.106087][ T6104] bi_foreground_target=64 [ 100.106097][ T6104] bi_background_target=1 [ 100.106107][ T6104] bi_erasure_code=0 [ 100.106117][ T6104] bi_fields_set=0 [ 100.106126][ T6104] bi_dir=0 [ 100.106136][ T6104] bi_dir_offset=0 [ 100.106145][ T6104] bi_subvol=0 [ 100.106154][ T6104] bi_parent_subvol=0 [ 100.106164][ T6104] bi_nocow=0 [ 100.106173][ T6104] bi_depth=0 [ 100.106182][ T6104] bi_inodes_32bit=0 [ 100.106193][ T6104] bi_casefold=0, fixing [ 100.113036][ T6106] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 100.113059][ T6106] allowing incompatible features above 0.0: (unknown version) [ 100.113074][ T6106] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 100.113102][ T6106] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 100.113222][ T6106] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 100.113457][ T6106] bcachefs (loop2): Version upgrade required: [ 100.113457][ T6106] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 100.113457][ T6106] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5840] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6214] <... mount resumed>) = 0 [pid 6214] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6214] chdir("./file1") = 0 [pid 6214] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6214] ioctl(4, LOOP_CLR_FD) = 0 [pid 6214] close(4) = 0 [pid 6214] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6214] exit_group(0) = ? [pid 6214] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6214, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5841] umount2("./7", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./7", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 100.113457][ T6106] 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,check_rebalance_work,set_fs_needs_rebalance [ 100.116156][ T6103] bcachefs (loop3): bucket_gens_init... done [ 100.127549][ T6103] bcachefs (loop3): check_snapshot_trees... done [ 100.142996][ T6103] bcachefs (loop3): check_snapshots... [ 100.143525][ T6104] done [ 100.144214][ T6104] bcachefs (loop4): check_xattrs... [ 100.145685][ T6103] done [ 100.145699][ T6103] bcachefs (loop3): check_subvols... [ 100.147904][ T6104] done [ 100.147929][ T6104] bcachefs (loop4): check_root... [ 100.151819][ T6103] done [ 100.151833][ T6103] bcachefs (loop3): check_subvol_children... done [ 100.153560][ T6103] bcachefs (loop3): delete_dead_snapshots... done [ 100.154413][ T6103] bcachefs (loop3): check_inodes... [ 100.155683][ T6104] done [ 100.155698][ T6104] bcachefs (loop4): check_unreachable_inodes... [ 100.159962][ T6103] done [ 100.159980][ T6103] bcachefs (loop3): check_extents... [ 100.161049][ T6104] done [ 100.161064][ T6104] bcachefs (loop4): check_subvolume_structure... [ 100.167995][ T6103] done [ 100.168013][ T6103] bcachefs (loop3): check_indirect_extents... [ 100.174215][ T6104] done [ 100.175239][ T6104] bcachefs (loop4): check_directory_structure... done [ 100.177388][ T6104] bcachefs (loop4): check_nlinks... [ 100.178170][ T6104] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 100.178857][ T6103] done [ 100.178872][ T6103] bcachefs (loop3): check_dirents... [ 100.181287][ T6104] done [ 100.181973][ T6104] bcachefs (loop4): check_rebalance_work... done [ 100.183323][ T6104] bcachefs (loop4): resume_logged_ops... [ 100.184299][ T6105] done [ 100.185514][ T6103] done [ 100.185530][ T6103] bcachefs (loop3): check_xattrs... done [ 100.186389][ T6103] bcachefs (loop3): check_root... [ 100.188325][ T6104] done [ 100.188341][ T6104] bcachefs (loop4): delete_dead_inodes... [ 100.197038][ T6103] done [ 100.197057][ T6103] bcachefs (loop3): check_unreachable_inodes... [ 100.205736][ T6105] bcachefs (loop1): going read-write [ 100.206158][ T6103] done [ 100.206171][ T6103] bcachefs (loop3): check_subvolume_structure... done [ 100.207295][ T6103] bcachefs (loop3): check_directory_structure... done [ 100.212618][ T6103] bcachefs (loop3): check_nlinks... done [ 100.218780][ T6103] bcachefs (loop3): check_rebalance_work... [ 100.220369][ T6104] done [ 100.220385][ T6104] bcachefs (loop4): set_fs_needs_rebalance... [ 100.226434][ T6105] bcachefs (loop1): journal_replay... [ 100.227254][ T6103] done [ 100.227270][ T6103] bcachefs (loop3): resume_logged_ops... [ 100.246613][ T6125] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 100.246637][ T6125] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 100.248386][ T6103] done [ 100.255644][ T6103] bcachefs (loop3): delete_dead_inodes... [ 100.256292][ T6104] done [ 100.257700][ T6103] done [ 100.257715][ T6103] bcachefs (loop3): set_fs_needs_rebalance... [ 100.260954][ T6106] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 100.260978][ T6106] size != 0, deleting [ 100.262811][ T6103] done [ 100.272934][ T6104] bcachefs (loop4): check_extents_to_backpointers... [ 100.273913][ T6104] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 100.279142][ T6106] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 100.281008][ T6103] bcachefs (loop3): done starting filesystem [ 100.296109][ T6125] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 100.311538][ T6106] bcachefs (loop2): check_topology... [ 100.313666][ T6104] done [ 100.321104][ T6106] done [ 100.321122][ T6106] bcachefs (loop2): accounting_read... [ 100.339396][ T6103] syz-executor217 (6103) used greatest stack depth: 13840 bytes left [ 100.341211][ T6104] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 100.341232][ T6104] bcachefs (loop4): check_alloc_info... done [ 100.367456][ T6104] bcachefs (loop4): check_lrus... done [ 100.369488][ T6104] bcachefs (loop4): check_btree_backpointers... done [ 100.377680][ T6104] bcachefs (loop4): check_backpointers_to_extents... [ 100.384018][ T6106] done [ 100.384037][ T6106] bcachefs (loop2): alloc_read... [ 100.386585][ T6104] done [ 100.386601][ T6104] bcachefs (loop4): check_extents_to_backpointers... [ 100.387502][ T6104] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 100.388417][ T6106] done [ 100.388429][ T6106] bcachefs (loop2): snapshots_read... [ 100.389191][ T6105] done [ 100.391270][ T6105] bcachefs (loop1): check_alloc_info... [ 100.393797][ T6105] bcachefs (loop1): bucket incorrectly unset in need_discard btree [ 100.393816][ T6105] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 100.393828][ T6105] gen 0 oldest_gen 0 data_type need_discard [ 100.393851][ T6105] journal_seq_nonempty 6 [ 100.393861][ T6105] journal_seq_empty 0 [ 100.393871][ T6105] need_discard 1 [ 100.393881][ T6105] need_inc_gen 1 [pid 5841] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6218] <... mount resumed>) = 0 [pid 5840] <... umount2 resumed>) = 0 [pid 6218] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6218] chdir("./file1") = 0 [pid 6218] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6218] ioctl(4, LOOP_CLR_FD) = 0 [pid 6218] close(4 [pid 5840] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6218] <... close resumed>) = 0 [ 100.393891][ T6105] dirty_sectors 0 [ 100.393908][ T6105] stripe_sectors 0 [ 100.393918][ T6105] cached_sectors 0 [ 100.393928][ T6105] stripe 0 [ 100.393938][ T6105] stripe_redundancy 0 [ 100.393948][ T6105] io_time[READ] 1 [ 100.393960][ T6105] io_time[WRITE] 768 [ 100.393970][ T6105] fragmentation 0 [ 100.393980][ T6105] bp_start 8 [ 100.393990][ T6105] , fixing [ 100.394626][ T6106] done [ 100.394640][ T6106] bcachefs (loop2): check_allocations... [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6218] write(-1, NULL, 0 [pid 5840] newfstatat(AT_FDCWD, "./7/file1", [pid 6218] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5840] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6218] exit_group(0 [pid 5840] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6218] <... exit_group resumed>) = ? [pid 5840] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6218] +++ exited with 0 +++ [pid 5840] openat(AT_FDCWD, "./7/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6218, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=44 /* 0.44 s */} --- [pid 5840] newfstatat(4, "", [pid 5839] restart_syscall(<... resuming interrupted clone ...> [pid 5840] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] <... restart_syscall resumed>) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] getdents64(4, [pid 5839] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5840] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] <... openat resumed>) = 3 [pid 5840] close(4 [pid 5839] newfstatat(3, "", [pid 5840] <... close resumed>) = 0 [pid 5839] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] rmdir("./7/file1" [pid 5839] getdents64(3, [pid 5840] <... rmdir resumed>) = 0 [pid 5839] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5839] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./7/binderfs") = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./7") = 0 [pid 5840] mkdir("./8", 0777) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6251 ./strace-static-x86_64: Process 6251 attached [ 100.399470][ T5840] bcachefs (loop3): shutting down [ 100.399490][ T5840] bcachefs (loop3): going read-only [ 100.399519][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 100.400389][ T6104] done [ 100.400402][ T6104] bcachefs (loop4): check_alloc_to_lru_refs... [ 100.406333][ T6106] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 100.406359][ T6106] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [pid 6251] set_robust_list(0x5555901c6760, 24) = 0 [ 100.414382][ T6104] done [ 100.416879][ T6104] bcachefs (loop4): bucket_gens_init... done [ 100.440268][ T6106] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 100.440289][ T6106] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 100.441762][ T6104] bcachefs (loop4): check_snapshot_trees... done [ 100.443274][ T6104] bcachefs (loop4): check_snapshots... done [pid 6251] chdir("./8"executing program ) = 0 [pid 6251] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6251] setpgid(0, 0) = 0 [pid 6251] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6251] write(3, "1000", 4) = 4 [pid 6251] close(3) = 0 [pid 6251] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6251] write(1, "executing program\n", 18) = 18 [pid 6251] memfd_create("syzkaller", 0) = 3 [pid 6251] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 100.444811][ T6104] bcachefs (loop4): check_subvols... [ 100.445925][ T6106] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 100.445946][ T6106] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 100.447541][ T6104] done [ 100.447558][ T6104] bcachefs (loop4): check_subvol_children... done [ 100.450612][ T6104] bcachefs (loop4): delete_dead_snapshots... [ 100.451934][ T6106] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 100.451954][ T6106] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 100.452822][ T6104] done [ 100.452835][ T6104] bcachefs (loop4): check_inodes... [ 100.461640][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 34 [ 100.461794][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 34 [ 100.462591][ T6104] done [ 100.462608][ T6104] bcachefs (loop4): check_extents... [ 100.467306][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 35 [ 100.472096][ T6106] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 100.472119][ T6106] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 100.473300][ T6106] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.473451][ T6106] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.474028][ T6106] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.474133][ T6106] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.474575][ T6106] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.474693][ T6106] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.474898][ T6106] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.475011][ T6106] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.475231][ T6106] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.475339][ T6106] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.475550][ T6106] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.475659][ T6106] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.475887][ T6106] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.475990][ T6106] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 100.476221][ T6106] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 100.476344][ T6106] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 100.476552][ T6106] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 100.476664][ T6106] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 100.476882][ T6106] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 100.477000][ T6106] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./7/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./7/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./7/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./7/file1") = 0 [pid 5841] umount2("./7/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./7/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./7/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 100.477247][ T6106] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 100.477265][ T6106] Ratelimiting new instances of previous error [ 100.477404][ T6106] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 100.477422][ T6106] Ratelimiting new instances of previous error [ 100.483321][ T5840] bcachefs (loop3): marking filesystem clean [ 100.484721][ T6104] done [ 100.484737][ T6104] bcachefs (loop4): check_indirect_extents... done [ 100.485498][ T6104] bcachefs (loop4): check_dirents... done [pid 5841] close(3) = 0 [pid 5841] rmdir("./7") = 0 [pid 5841] mkdir("./8", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6252 attached , child_tidptr=0x5555901c6750) = 6252 [pid 6252] set_robust_list(0x5555901c6760, 24) = 0 [ 100.496357][ T6104] bcachefs (loop4): check_xattrs... done [ 100.507465][ T6104] bcachefs (loop4): check_root... [ 100.508027][ T6105] done [ 100.514384][ T6105] bcachefs (loop1): check_lrus... [ 100.519100][ T6104] done [ 100.519119][ T6104] bcachefs (loop4): check_unreachable_inodes... [ 100.521220][ T6105] done [ 100.521237][ T6105] bcachefs (loop1): check_btree_backpointers... [ 100.523024][ T6104] done [ 100.523040][ T6104] bcachefs (loop4): check_subvolume_structure... done [ 100.523936][ T6104] bcachefs (loop4): check_directory_structure... [pid 6252] chdir("./8") = 0 [pid 6251] 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 6252] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6252] setpgid(0, 0) = 0 [pid 6252] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 100.524478][ T6105] done [ 100.524493][ T6105] bcachefs (loop1): check_backpointers_to_extents... [ 100.526492][ T6104] done [ 100.526508][ T6104] bcachefs (loop4): check_nlinks... done [ 100.563519][ T6105] done [ 100.568312][ T6104] bcachefs (loop4): check_rebalance_work... done [ 100.569209][ T6104] bcachefs (loop4): resume_logged_ops... done [ 100.570447][ T6104] bcachefs (loop4): delete_dead_inodes... done [ 100.571231][ T6104] bcachefs (loop4): set_fs_needs_rebalance... done [pid 6252] write(3, "1000", 4) = 4 [pid 6252] close(3) = 0 [pid 6252] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 6252] write(1, "executing program\n", 18) = 18 [pid 6252] memfd_create("syzkaller", 0) = 3 [pid 6252] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 100.574697][ T6104] bcachefs (loop4): done starting filesystem [ 100.579184][ T6106] done [ 100.609741][ T6106] bcachefs (loop2): going read-write [ 100.612847][ T6105] bcachefs (loop1): check_extents_to_backpointers... [ 100.614193][ T6105] bcachefs (loop1): scanning for missing backpointers in 6/128 buckets [ 100.625408][ T6105] done [ 100.626848][ T6105] bcachefs (loop1): check_alloc_to_lru_refs... [ 100.628789][ T6105] bcachefs (loop1): missing fragmentation lru entry [ 100.628805][ T6105] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 100.628819][ T6105] gen 0 oldest_gen 0 data_type user [ 100.628829][ T6105] journal_seq_nonempty 5 [ 100.628840][ T6105] journal_seq_empty 134217728 [ 100.628850][ T6105] need_discard 1 [ 100.628860][ T6105] need_inc_gen 1 [ 100.628870][ T6105] dirty_sectors 16 [ 100.628881][ T6105] stripe_sectors 1802251 [ 100.628891][ T6105] cached_sectors 0 [ 100.628900][ T6105] stripe 0 [ 100.628910][ T6105] stripe_redundancy 0 [ 100.628920][ T6105] io_time[READ] 1 [ 100.628928][ T6105] io_time[WRITE] 512 [ 100.628938][ T6105] fragmentation 0 [ 100.628947][ T6105] bp_start 7 [ 100.628957][ T6105] , fixing [ 100.641385][ T5840] bcachefs (loop3): shutdown complete [ 100.643399][ T6106] bcachefs (loop2): journal_replay... [ 100.658529][ T6105] done [ 100.661156][ T6105] bcachefs (loop1): bucket_gens_init... done [ 100.679123][ T6105] bcachefs (loop1): check_snapshot_trees... done [ 100.680031][ T6105] bcachefs (loop1): check_snapshots... [ 100.680667][ T6105] bcachefs (loop1): snapshot points to missing/incorrect tree: [ 100.680685][ T6105] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 100.733125][ T6105] done [ 100.734836][ T6105] bcachefs (loop1): check_subvols... done [ 100.743417][ T5841] bcachefs (loop4): shutting down [ 100.743434][ T5841] bcachefs (loop4): going read-only [ 100.743465][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 100.744203][ T6105] bcachefs (loop1): check_subvol_children... done [ 100.752817][ T6105] bcachefs (loop1): delete_dead_snapshots... done [ 100.753975][ T6105] bcachefs (loop1): check_inodes... [ 100.755119][ T6105] bcachefs (loop1): inode points to missing dirent [ 100.755136][ T6105] inum: 4098:4294967295 [ 100.755146][ T6105] mode=40755 [ 100.755155][ T6105] flags=(15300000) [ 100.755163][ T6105] journal_seq=4 [ 100.755175][ T6105] hash_seed=ece93825deac2443 [ 100.755185][ T6105] hash_type=siphash [ 100.755194][ T6105] bi_size=0 [ 100.755201][ T6105] bi_sectors=0 [ 100.755211][ T6105] bi_version=0 [ 100.755221][ T6105] bi_atime=2770562249 [ 100.755230][ T6105] bi_ctime=2780562352 [ 100.755241][ T6105] bi_mtime=2780562352 [ 100.755251][ T6105] bi_otime=2770562249 [ 100.755261][ T6105] bi_uid=0 [ 100.755271][ T6105] bi_gid=0 [ 100.755281][ T6105] bi_nlink=0 [ 100.755290][ T6105] bi_generation=0 [ 100.755300][ T6105] bi_dev=0 [ 100.755309][ T6105] bi_data_checksum=0 [ 100.755320][ T6105] bi_compression=0 [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./8/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./8/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./8/file1") = 0 [pid 5839] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./8/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./8") = 0 [pid 5839] mkdir("./9", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [ 100.755330][ T6105] bi_project=0 [ 100.755340][ T6105] bi_background_compression=0 [ 100.755350][ T6105] bi_data_replicas=0 [ 100.755360][ T6105] bi_promote_target=0 [ 100.755370][ T6105] bi_foreground_target=64 [ 100.755382][ T6105] bi_background_target=1 [ 100.755392][ T6105] bi_erasure_code=0 [ 100.755402][ T6105] bi_fields_set=0 [ 100.755412][ T6105] bi_dir=0 [ 100.755421][ T6105] bi_dir_offset=32 [ 100.755431][ T6105] bi_subvol=0 [ 100.755440][ T6105] bi_parent_subvol=0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6254 ./strace-static-x86_64: Process 6254 attached [pid 6254] set_robust_list(0x5555901c6760, 24) = 0 [pid 6254] chdir("./9") = 0 [pid 6254] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6254] setpgid(0, 0) = 0 [pid 6254] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6254] write(3, "1000", 4) = 4 [pid 6254] close(3) = 0 [pid 6254] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6254] write(1, "executing program\n", 18) = 18 [pid 6254] memfd_create("syzkaller", 0) = 3 [pid 6254] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 100.755450][ T6105] bi_nocow=0 [ 100.755460][ T6105] bi_depth=0 [ 100.755469][ T6105] bi_inodes_32bit=0 [ 100.755480][ T6105] bi_casefold=0, fixing [ 100.767264][ T6105] done [ 100.767961][ T6105] bcachefs (loop1): check_extents... done [ 100.781387][ T6105] bcachefs (loop1): check_indirect_extents... done [ 100.784329][ T6105] bcachefs (loop1): check_dirents... [ 100.786165][ T6105] bcachefs (loop1): directory with missing backpointer [ 100.786184][ T6105] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 100.786195][ T6105] inum: 4098:4294967295 [ 100.786206][ T6105] mode=40755 [ 100.786216][ T6105] flags=(11300000) [ 100.786226][ T6105] journal_seq=23 [ 100.786235][ T6105] hash_seed=ece93825deac2443 [ 100.786247][ T6105] hash_type=siphash [ 100.786257][ T6105] bi_size=0 [ 100.786267][ T6105] bi_sectors=0 [ 100.786277][ T6105] bi_version=0 [ 100.786285][ T6105] bi_atime=2770562249 [ 100.786296][ T6105] bi_ctime=2780562352 [pid 6252] 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 6251] <... write resumed>) = 16777216 [ 100.786305][ T6105] bi_mtime=2780562352 [ 100.786315][ T6105] bi_otime=2770562249 [ 100.786326][ T6105] bi_uid=0 [ 100.786335][ T6105] bi_gid=0 [ 100.786344][ T6105] bi_nlink=0 [ 100.786353][ T6105] bi_generation=0 [ 100.786363][ T6105] bi_dev=0 [ 100.786372][ T6105] bi_data_checksum=0 [ 100.786383][ T6105] bi_compression=0 [ 100.786393][ T6105] bi_project=0 [ 100.786403][ T6105] bi_background_compression=0 [pid 6251] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6251] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6251] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6251] close(3) = 0 [pid 6251] close(4) = 0 [pid 6251] mkdir("./file1", 0777) = 0 [ 100.786413][ T6105] bi_data_replicas=0 [ 100.786423][ T6105] bi_promote_target=0 [ 100.786433][ T6105] bi_foreground_target=64 [ 100.786444][ T6105] bi_background_target=1 [ 100.786454][ T6105] bi_erasure_code=0 [ 100.786464][ T6105] bi_fields_set=0 [ 100.786475][ T6105] bi_dir=0 [ 100.786484][ T6105] bi_dir_offset=0 [ 100.786494][ T6105] bi_subvol=0 [ 100.786504][ T6105] bi_parent_subvol=0 [ 100.786515][ T6105] bi_nocow=0 [ 100.786524][ T6105] bi_depth=0 [ 100.786534][ T6105] bi_inodes_32bit=0 [ 100.786543][ T6105] bi_casefold=0, fixing [ 100.791824][ T6106] done [ 100.792454][ T6106] bcachefs (loop2): check_alloc_info... [ 100.794255][ T6106] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 100.794274][ T6106] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 100.794287][ T6106] gen 0 oldest_gen 0 data_type need_discard [ 100.794301][ T6106] journal_seq_nonempty 6 [ 100.794311][ T6106] journal_seq_empty 0 [ 100.794321][ T6106] need_discard 1 [ 100.794332][ T6106] need_inc_gen 1 [ 100.794342][ T6106] dirty_sectors 0 [ 100.794352][ T6106] stripe_sectors 0 [ 100.794363][ T6106] cached_sectors 0 [ 100.794373][ T6106] stripe 0 [ 100.794383][ T6106] stripe_redundancy 0 [ 100.794393][ T6106] io_time[READ] 1 [ 100.794403][ T6106] io_time[WRITE] 768 [ 100.794413][ T6106] fragmentation 0 [ 100.794423][ T6106] bp_start 8 [ 100.794433][ T6106] , fixing [ 100.816236][ T6105] done [ 100.816967][ T6105] bcachefs (loop1): check_xattrs... done [ 100.821690][ T6105] bcachefs (loop1): check_root... [ 100.822710][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 36 [ 100.822860][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 36 [ 100.823681][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 37 [ 100.824812][ T5900] bcachefs (loop4): insufficient writeable journal devices available: have 0, need 1 [ 100.824812][ T5900] rw journal devs: [ 100.825978][ T5841] bcachefs (loop4): marking filesystem clean [ 100.830202][ T6105] done [ 100.830216][ T6105] bcachefs (loop1): check_unreachable_inodes... done [ 100.842269][ T6105] bcachefs (loop1): check_subvolume_structure... done [ 100.855045][ T6105] bcachefs (loop1): check_directory_structure... done [ 100.856234][ T6105] bcachefs (loop1): check_nlinks... [ 100.856958][ T6105] bcachefs (loop1): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 100.879646][ T6105] done [ 100.880252][ T6105] bcachefs (loop1): check_rebalance_work... done [ 100.881431][ T6105] bcachefs (loop1): resume_logged_ops... done [ 100.884576][ T6105] bcachefs (loop1): delete_dead_inodes... [ 100.896300][ T6106] done [ 100.897242][ T6106] bcachefs (loop2): check_lrus... done [ 100.919997][ T6105] done [ 100.920016][ T6105] bcachefs (loop1): set_fs_needs_rebalance... [ 100.955325][ T6106] bcachefs (loop2): check_btree_backpointers... done [ 100.960925][ T6106] bcachefs (loop2): check_backpointers_to_extents... [ 100.969682][ T6105] done [ 100.970174][ T6106] done [ 100.972648][ T6106] bcachefs (loop2): check_extents_to_backpointers... [ 100.974017][ T6106] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 100.976036][ T6106] done [ 100.976736][ T6106] bcachefs (loop2): check_alloc_to_lru_refs... [ 100.978603][ T6106] bcachefs (loop2): missing fragmentation lru entry [ 100.978621][ T6106] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 100.978632][ T6106] gen 0 oldest_gen 0 data_type user [ 100.978643][ T6106] journal_seq_nonempty 5 [ 100.978654][ T6106] journal_seq_empty 134217728 [pid 6251] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 100.978666][ T6106] need_discard 1 [ 100.978676][ T6106] need_inc_gen 1 [ 100.978686][ T6106] dirty_sectors 16 [ 100.978696][ T6106] stripe_sectors 1802251 [ 100.978707][ T6106] cached_sectors 0 [ 100.978717][ T6106] stripe 0 [ 100.978729][ T6106] stripe_redundancy 0 [ 100.978739][ T6106] io_time[READ] 1 [ 100.978749][ T6106] io_time[WRITE] 512 [ 100.978760][ T6106] fragmentation 0 [ 100.978770][ T6106] bp_start 7 [ 100.978780][ T6106] , fixing [ 100.983443][ T6106] done [ 100.989679][ T6106] bcachefs (loop2): bucket_gens_init... done [ 101.000287][ T6106] bcachefs (loop2): check_snapshot_trees... [ 101.005690][ T5841] bcachefs (loop4): shutdown complete [ 101.007883][ T6106] done [ 101.007898][ T6106] bcachefs (loop2): check_snapshots... [ 101.008507][ T6106] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 6254] 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 6252] <... write resumed>) = 16777216 [ 101.008527][ T6106] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 101.055610][ T6106] done [ 101.056856][ T6106] bcachefs (loop2): check_subvols... done [ 101.059454][ T6106] bcachefs (loop2): check_subvol_children... done [ 101.060236][ T6106] bcachefs (loop2): delete_dead_snapshots... done [ 101.061545][ T6106] bcachefs (loop2): check_inodes... [ 101.062652][ T6106] bcachefs (loop2): inode points to missing dirent [ 101.062667][ T6106] inum: 4098:4294967295 [ 101.062678][ T6106] mode=40755 [ 101.062688][ T6106] flags=(15300000) [pid 6252] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6252] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6252] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6252] close(3) = 0 [pid 6252] close(4) = 0 [pid 6252] mkdir("./file1", 0777) = 0 [ 101.062698][ T6106] journal_seq=4 [ 101.063153][ T6106] hash_seed=ece93825deac2443 [ 101.063165][ T6106] hash_type=siphash [ 101.063175][ T6106] bi_size=0 [ 101.063185][ T6106] bi_sectors=0 [ 101.063195][ T6106] bi_version=0 [ 101.063204][ T6106] bi_atime=2770562249 [ 101.063214][ T6106] bi_ctime=2780562352 [ 101.063224][ T6106] bi_mtime=2780562352 [ 101.063235][ T6106] bi_otime=2770562249 [ 101.063245][ T6106] bi_uid=0 [ 101.063256][ T6106] bi_gid=0 [ 101.063265][ T6106] bi_nlink=0 [ 101.063274][ T6106] bi_generation=0 [ 101.063284][ T6106] bi_dev=0 [ 101.063293][ T6106] bi_data_checksum=0 [ 101.063304][ T6106] bi_compression=0 [ 101.063313][ T6106] bi_project=0 [ 101.063323][ T6106] bi_background_compression=0 [ 101.063333][ T6106] bi_data_replicas=0 [ 101.063343][ T6106] bi_promote_target=0 [ 101.063355][ T6106] bi_foreground_target=64 [ 101.063365][ T6106] bi_background_target=1 [ 101.063375][ T6106] bi_erasure_code=0 [ 101.063385][ T6106] bi_fields_set=0 [ 101.063395][ T6106] bi_dir=0 [ 101.063404][ T6106] bi_dir_offset=32 [ 101.063413][ T6106] bi_subvol=0 [ 101.063423][ T6106] bi_parent_subvol=0 [ 101.063435][ T6106] bi_nocow=0 [ 101.063444][ T6106] bi_depth=0 [ 101.063454][ T6106] bi_inodes_32bit=0 [ 101.063464][ T6106] bi_casefold=0, fixing [ 101.076649][ T6106] done [ 101.077311][ T6106] bcachefs (loop2): check_extents... done [ 101.079707][ T6106] bcachefs (loop2): check_indirect_extents... done [ 101.085874][ T6106] bcachefs (loop2): check_dirents... [ 101.087667][ T6106] bcachefs (loop2): directory with missing backpointer [ 101.087684][ T6106] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 101.087699][ T6106] inum: 4098:4294967295 [ 101.087709][ T6106] mode=40755 [ 101.087719][ T6106] flags=(11300000) [ 101.087729][ T6106] journal_seq=24 [ 101.087740][ T6106] hash_seed=ece93825deac2443 [ 101.087750][ T6106] hash_type=siphash [ 101.087759][ T6106] bi_size=0 [ 101.087769][ T6106] bi_sectors=0 [ 101.087778][ T6106] bi_version=0 [ 101.087787][ T6106] bi_atime=2770562249 [ 101.087797][ T6106] bi_ctime=2780562352 [ 101.087807][ T6106] bi_mtime=2780562352 [ 101.087817][ T6106] bi_otime=2770562249 [ 101.087827][ T6106] bi_uid=0 [ 101.087836][ T6106] bi_gid=0 [ 101.087846][ T6106] bi_nlink=0 [ 101.087855][ T6106] bi_generation=0 [ 101.087865][ T6106] bi_dev=0 [ 101.087874][ T6106] bi_data_checksum=0 [ 101.087884][ T6106] bi_compression=0 [ 101.087895][ T6106] bi_project=0 [ 101.087911][ T6106] bi_background_compression=0 [ 101.087921][ T6106] bi_data_replicas=0 [ 101.087931][ T6106] bi_promote_target=0 [ 101.087943][ T6106] bi_foreground_target=64 [ 101.087953][ T6106] bi_background_target=1 [ 101.087964][ T6106] bi_erasure_code=0 [ 101.087973][ T6106] bi_fields_set=0 [ 101.087983][ T6106] bi_dir=0 [ 101.087992][ T6106] bi_dir_offset=0 [ 101.088007][ T6106] bi_subvol=0 [ 101.088016][ T6106] bi_parent_subvol=0 [ 101.088026][ T6106] bi_nocow=0 [ 101.088035][ T6106] bi_depth=0 [ 101.088045][ T6106] bi_inodes_32bit=0 [ 101.088055][ T6106] bi_casefold=0, fixing [ 101.100267][ T6106] done [ 101.101492][ T6106] bcachefs (loop2): check_xattrs... done [ 101.102804][ T6106] bcachefs (loop2): check_root... done [ 101.103839][ T6106] bcachefs (loop2): check_unreachable_inodes... done [ 101.104841][ T6106] bcachefs (loop2): check_subvolume_structure... done [ 101.106873][ T6106] bcachefs (loop2): check_directory_structure... done [ 101.107554][ T6106] bcachefs (loop2): check_nlinks... [ 101.108298][ T6106] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 101.116300][ T6106] done [ 101.117313][ T6106] bcachefs (loop2): check_rebalance_work... done [ 101.118512][ T6106] bcachefs (loop2): resume_logged_ops... done [ 101.119454][ T6106] bcachefs (loop2): delete_dead_inodes... done [ 101.144393][ T6106] bcachefs (loop2): set_fs_needs_rebalance... [pid 6252] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6254] <... write resumed>) = 16777216 [ 101.149313][ T6142] bcachefs (loop1): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 101.149339][ T6142] scheduling recovery pass check_extents_to_backpointers (17) [ 101.225506][ T6105] bcachefs (loop1): Fixed errors, running fsck a second time to verify fs is clean [ 101.235100][ T6145] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 101.235123][ T6145] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 101.242580][ T6106] done [ 101.243333][ T6106] bcachefs (loop2): check_extents_to_backpointers... [pid 6254] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6254] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6254] ioctl(4, LOOP_SET_FD, 3) = 0 [ 101.244224][ T6106] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 101.261030][ T6145] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 101.273541][ T6106] done [ 101.321458][ T6106] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 101.321489][ T6106] bcachefs (loop2): check_alloc_info... done [ 101.330186][ T6106] bcachefs (loop2): check_lrus... done [ 101.331322][ T6106] bcachefs (loop2): check_btree_backpointers... done [pid 6254] close(3) = 0 [pid 6254] close(4) = 0 [pid 6254] mkdir("./file1", 0777) = 0 [ 101.332571][ T6106] bcachefs (loop2): check_backpointers_to_extents... done [ 101.337487][ T6106] bcachefs (loop2): check_extents_to_backpointers... [ 101.338406][ T6106] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 101.339771][ T6106] done [ 101.339785][ T6106] bcachefs (loop2): check_alloc_to_lru_refs... done [ 101.349003][ T6106] bcachefs (loop2): bucket_gens_init... done [ 101.351110][ T6106] bcachefs (loop2): check_snapshot_trees... done [ 101.352662][ T6106] bcachefs (loop2): check_snapshots... done [ 101.353582][ T6106] bcachefs (loop2): check_subvols... done [ 101.354420][ T6106] bcachefs (loop2): check_subvol_children... done [ 101.358952][ T6106] bcachefs (loop2): delete_dead_snapshots... done [ 101.361003][ T6106] bcachefs (loop2): check_inodes... done [ 101.370116][ T6106] bcachefs (loop2): check_extents... done [ 101.426204][ T6106] bcachefs (loop2): check_indirect_extents... done [ 101.426978][ T6106] bcachefs (loop2): check_dirents... done [ 101.428500][ T6106] bcachefs (loop2): check_xattrs... done [ 101.431524][ T6106] bcachefs (loop2): check_root... done [ 101.432356][ T6106] bcachefs (loop2): check_unreachable_inodes... done [ 101.438469][ T6106] bcachefs (loop2): check_subvolume_structure... done [ 101.439710][ T6106] bcachefs (loop2): check_directory_structure... done [ 101.459842][ T6106] bcachefs (loop2): check_nlinks... done [ 101.461181][ T6106] bcachefs (loop2): check_rebalance_work... done [ 101.462373][ T6106] bcachefs (loop2): resume_logged_ops... done [ 101.463102][ T6106] bcachefs (loop2): delete_dead_inodes... done [ 101.466316][ T6106] bcachefs (loop2): set_fs_needs_rebalance... done [ 101.473555][ T6106] bcachefs (loop2): done starting filesystem [ 101.549594][ T5839] bcachefs (loop2): shutting down [ 101.549614][ T5839] bcachefs (loop2): going read-only [ 101.549644][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 101.604693][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 101.604853][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 101.605650][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 101.607386][ T5839] bcachefs (loop2): marking filesystem clean [ 101.607902][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 101.607902][ T5900] rw journal devs: [ 101.722113][ T5839] bcachefs (loop2): shutdown complete [ 102.590802][ T6147] loop3: detected capacity change from 0 to 32768 [ 102.756621][ T6147] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 6254] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6251] <... mount resumed>) = 0 [pid 6251] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6251] chdir("./file1") = 0 [pid 6251] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [ 102.756649][ T6147] allowing incompatible features above 0.0: (unknown version) [ 102.756663][ T6147] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 102.756691][ T6147] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 102.756814][ T6147] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 102.757060][ T6147] bcachefs (loop3): Version upgrade required: [ 102.757060][ T6147] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [pid 6251] ioctl(4, LOOP_CLR_FD) = 0 [pid 6251] close(4) = 0 [pid 6251] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6251] exit_group(0) = ? [pid 6251] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6251, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=35 /* 0.35 s */} --- [pid 5840] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 102.757060][ T6147] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 102.757060][ T6147] 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,check_rebalance_work,set_fs_needs_rebalance [ 102.772908][ T6148] loop4: detected capacity change from 0 to 32768 [ 102.890996][ T6147] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 102.891022][ T6147] size != 0, deleting [ 102.900542][ T6147] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 102.912477][ T6147] bcachefs (loop3): check_topology... done [ 102.923445][ T6147] bcachefs (loop3): accounting_read... done [ 103.011167][ T6147] bcachefs (loop3): alloc_read... done [ 103.012368][ T6147] bcachefs (loop3): snapshots_read... done [ 103.013133][ T6147] bcachefs (loop3): check_allocations... [ 103.017062][ T6147] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 103.017083][ T6147] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 103.022262][ T6147] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 103.022281][ T6147] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 103.024916][ T6147] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 103.024934][ T6147] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 103.044800][ T6147] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 103.044824][ T6147] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 103.048162][ T6147] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 103.048181][ T6147] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 103.049637][ T6147] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.049765][ T6147] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.051452][ T6147] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.051568][ T6147] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.052374][ T6147] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.052488][ T6147] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.052691][ T6147] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.052812][ T6147] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.053020][ T6147] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.053129][ T6147] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.057595][ T6147] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.057701][ T6147] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.057903][ T6147] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.058014][ T6147] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.058213][ T6147] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.058323][ T6147] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 103.062705][ T6147] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 103.062820][ T6147] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 103.063047][ T6147] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 103.063153][ T6147] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 103.063385][ T6147] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 103.063401][ T6147] Ratelimiting new instances of previous error [ 103.065423][ T6147] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 103.065442][ T6147] Ratelimiting new instances of previous error [ 103.113266][ T6147] done [ 103.121535][ T6147] bcachefs (loop3): going read-write [pid 5840] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6252] <... mount resumed>) = 0 [pid 6252] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6252] chdir("./file1") = 0 [pid 6252] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6252] ioctl(4, LOOP_CLR_FD) = 0 [pid 6252] close(4) = 0 [pid 6252] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6252] exit_group(0) = ? [pid 6252] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6252, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=46 /* 0.46 s */} --- [ 103.131841][ T6147] bcachefs (loop3): journal_replay... [ 103.198389][ T6148] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 103.198416][ T6148] allowing incompatible features above 0.0: (unknown version) [ 103.198431][ T6148] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 103.198458][ T6148] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [pid 5841] umount2("./8", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./8", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 103.198582][ T6148] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 103.198814][ T6148] bcachefs (loop4): Version upgrade required: [ 103.198814][ T6148] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 103.198814][ T6148] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 103.198814][ T6148] 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,check_rebalance_work,set_fs_needs_rebalance [ 103.240381][ T6147] done [ 103.240986][ T6147] bcachefs (loop3): check_alloc_info... [ 103.242938][ T6147] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 103.242957][ T6147] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 103.242968][ T6147] gen 0 oldest_gen 0 data_type need_discard [ 103.242980][ T6147] journal_seq_nonempty 6 [ 103.242991][ T6147] journal_seq_empty 0 [ 103.243002][ T6147] need_discard 1 [ 103.243012][ T6147] need_inc_gen 1 [ 103.243023][ T6147] dirty_sectors 0 [ 103.243033][ T6147] stripe_sectors 0 [ 103.243043][ T6147] cached_sectors 0 [ 103.243053][ T6147] stripe 0 [ 103.243065][ T6147] stripe_redundancy 0 [ 103.243075][ T6147] io_time[READ] 1 [ 103.243085][ T6147] io_time[WRITE] 768 [ 103.243095][ T6147] fragmentation 0 [ 103.243105][ T6147] bp_start 8 [ 103.243115][ T6147] , fixing [ 103.277583][ T6148] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 103.277609][ T6148] size != 0, deleting [ 103.278504][ T6148] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 103.291585][ T6148] bcachefs (loop4): check_topology... done [ 103.296703][ T6148] bcachefs (loop4): accounting_read... [ 103.300035][ T6147] done [ 103.340610][ T6147] bcachefs (loop3): check_lrus... [ 103.347604][ T6148] done [ 103.347623][ T6148] bcachefs (loop4): alloc_read... [ 103.349556][ T6147] done [ 103.350242][ T6147] bcachefs (loop3): check_btree_backpointers... done [ 103.361167][ T6147] bcachefs (loop3): check_backpointers_to_extents... [ 103.362949][ T6148] done [ 103.362967][ T6148] bcachefs (loop4): snapshots_read... done [ 103.372789][ T6148] bcachefs (loop4): check_allocations... [ 103.375173][ T6147] done [ 103.375830][ T6147] bcachefs (loop3): check_extents_to_backpointers... [ 103.377153][ T6147] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 103.380000][ T6148] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 103.380020][ T6148] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 103.382770][ T6147] done [pid 5841] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./8/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./8/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] close(4) = 0 [pid 5840] rmdir("./8/file1") = 0 [pid 5840] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./8/binderfs") = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./8") = 0 [pid 5840] mkdir("./9", 0777) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6285 attached [pid 6285] set_robust_list(0x5555901c6760, 24) = 0 [pid 6285] chdir("./9") = 0 [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 6285 [pid 6285] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6285] setpgid(0, 0) = 0 [pid 6285] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6285] write(3, "1000", 4) = 4 [pid 6285] close(3) = 0 [ 103.389358][ T6148] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 103.389376][ T6148] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 103.400057][ T6148] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 6285] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6285] write(1, "executing program\n", 18executing program ) = 18 [pid 6285] memfd_create("syzkaller", 0) = 3 [pid 6285] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 103.400079][ T6148] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 103.402339][ T6148] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 103.402357][ T6148] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 103.411076][ T6148] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 103.411097][ T6148] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 103.412055][ T6148] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.412202][ T6148] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.412738][ T6148] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.412856][ T6148] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.413275][ T6148] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.413381][ T6148] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.413581][ T6148] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.415283][ T6148] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.415547][ T6148] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.415661][ T6148] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.415869][ T6148] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.415985][ T6148] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.416186][ T6148] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.416291][ T6148] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 103.416491][ T6148] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 103.416596][ T6148] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 103.416809][ T6148] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 103.416933][ T6148] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 103.417132][ T6148] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 103.417235][ T6148] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 103.417467][ T6148] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 103.417482][ T6148] Ratelimiting new instances of previous error [ 103.417606][ T6148] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 103.417622][ T6148] Ratelimiting new instances of previous error [pid 6254] <... mount resumed>) = 0 [pid 6254] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6254] chdir("./file1") = 0 [pid 6254] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6254] ioctl(4, LOOP_CLR_FD) = 0 [pid 6254] close(4) = 0 [pid 6254] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6254] exit_group(0) = ? [ 103.425117][ T6147] bcachefs (loop3): check_alloc_to_lru_refs... [ 103.427065][ T6147] bcachefs (loop3): missing fragmentation lru entry [ 103.427083][ T6147] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 103.427095][ T6147] gen 0 oldest_gen 0 data_type user [ 103.427106][ T6147] journal_seq_nonempty 5 [ 103.427117][ T6147] journal_seq_empty 134217728 [ 103.427128][ T6147] need_discard 1 [ 103.427138][ T6147] need_inc_gen 1 [ 103.427148][ T6147] dirty_sectors 16 [pid 6254] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6254, si_uid=0, si_status=0, si_utime=15 /* 0.15 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 103.427158][ T6147] stripe_sectors 1802251 [ 103.427168][ T6147] cached_sectors 0 [ 103.427179][ T6147] stripe 0 [ 103.427188][ T6147] stripe_redundancy 0 [ 103.427200][ T6147] io_time[READ] 1 [ 103.427209][ T6147] io_time[WRITE] 512 [ 103.427219][ T6147] fragmentation 0 [ 103.427229][ T6147] bp_start 7 [ 103.427239][ T6147] , fixing [ 103.449891][ T6147] done [ 103.451235][ T6147] bcachefs (loop3): bucket_gens_init... done [ 103.464423][ T6147] bcachefs (loop3): check_snapshot_trees... done [ 103.465230][ T6147] bcachefs (loop3): check_snapshots... [ 103.465828][ T6147] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 103.465845][ T6147] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 103.492582][ T6148] done [ 103.495228][ T6148] bcachefs (loop4): going read-write [ 103.496828][ T6147] done [ 103.497537][ T6147] bcachefs (loop3): check_subvols... done [ 103.512073][ T6148] bcachefs (loop4): journal_replay... [pid 5839] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW [ 103.537617][ T6147] bcachefs (loop3): check_subvol_children... done [ 103.549340][ T6147] bcachefs (loop3): delete_dead_snapshots... done [ 103.551065][ T6147] bcachefs (loop3): check_inodes... [ 103.552167][ T6147] bcachefs (loop3): inode points to missing dirent [ 103.552185][ T6147] inum: 4098:4294967295 [ 103.552195][ T6147] mode=40755 [ 103.552204][ T6147] flags=(15300000) [ 103.552214][ T6147] journal_seq=4 [ 103.552224][ T6147] hash_seed=ece93825deac2443 [ 103.552233][ T6147] hash_type=siphash [ 103.552243][ T6147] bi_size=0 [ 103.552252][ T6147] bi_sectors=0 [ 103.552262][ T6147] bi_version=0 [ 103.552271][ T6147] bi_atime=2770562249 [ 103.552281][ T6147] bi_ctime=2780562352 [ 103.552290][ T6147] bi_mtime=2780562352 [ 103.552301][ T6147] bi_otime=2770562249 [ 103.552312][ T6147] bi_uid=0 [ 103.552319][ T6147] bi_gid=0 [ 103.552328][ T6147] bi_nlink=0 [ 103.552337][ T6147] bi_generation=0 [ 103.552347][ T6147] bi_dev=0 [ 103.552356][ T6147] bi_data_checksum=0 [ 103.552367][ T6147] bi_compression=0 [ 103.552377][ T6147] bi_project=0 [ 103.552386][ T6147] bi_background_compression=0 [ 103.552396][ T6147] bi_data_replicas=0 [ 103.552406][ T6147] bi_promote_target=0 [ 103.552415][ T6147] bi_foreground_target=64 [ 103.552426][ T6147] bi_background_target=1 [ 103.552435][ T6147] bi_erasure_code=0 [ 103.552445][ T6147] bi_fields_set=0 [ 103.552454][ T6147] bi_dir=0 [ 103.552463][ T6147] bi_dir_offset=32 [ 103.552473][ T6147] bi_subvol=0 [pid 6285] 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 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./8/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./8/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./8/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./8/file1") = 0 [pid 5841] umount2("./8/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./8/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 103.552482][ T6147] bi_parent_subvol=0 [ 103.552494][ T6147] bi_nocow=0 [ 103.552503][ T6147] bi_depth=0 [ 103.552512][ T6147] bi_inodes_32bit=0 [ 103.552522][ T6147] bi_casefold=0, fixing [ 103.565054][ T6147] done [ 103.565710][ T6147] bcachefs (loop3): check_extents... done [ 103.567742][ T6147] bcachefs (loop3): check_indirect_extents... done [ 103.568480][ T6147] bcachefs (loop3): check_dirents... [ 103.571813][ T6147] bcachefs (loop3): directory with missing backpointer [pid 5841] unlink("./8/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./8") = 0 [pid 5841] mkdir("./9", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6286 attached , child_tidptr=0x5555901c6750) = 6286 [pid 6286] set_robust_list(0x5555901c6760, 24) = 0 [ 103.571831][ T6147] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 103.571845][ T6147] inum: 4098:4294967295 [ 103.571854][ T6147] mode=40755 [ 103.571865][ T6147] flags=(11300000) [ 103.571882][ T6147] journal_seq=24 [ 103.571892][ T6147] hash_seed=ece93825deac2443 [ 103.571902][ T6147] hash_type=siphash [ 103.571911][ T6147] bi_size=0 [ 103.571919][ T6147] bi_sectors=0 [ 103.571929][ T6147] bi_version=0 [ 103.571938][ T6147] bi_atime=2770562249 [pid 6286] chdir("./9") = 0 [pid 6286] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6286] setpgid(0, 0) = 0 [pid 6286] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6286] write(3, "1000", 4executing program ) = 4 [pid 6286] close(3) = 0 [pid 6286] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6286] write(1, "executing program\n", 18) = 18 [ 103.571947][ T6147] bi_ctime=2780562352 [ 103.571957][ T6147] bi_mtime=2780562352 [ 103.571966][ T6147] bi_otime=2770562249 [ 103.571975][ T6147] bi_uid=0 [ 103.571984][ T6147] bi_gid=0 [ 103.571994][ T6147] bi_nlink=0 [ 103.572002][ T6147] bi_generation=0 [ 103.572012][ T6147] bi_dev=0 [ 103.572020][ T6147] bi_data_checksum=0 [ 103.572029][ T6147] bi_compression=0 [ 103.572038][ T6147] bi_project=0 [ 103.572048][ T6147] bi_background_compression=0 [ 103.572057][ T6147] bi_data_replicas=0 [pid 6286] memfd_create("syzkaller", 0) = 3 [pid 6286] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 103.572067][ T6147] bi_promote_target=0 [ 103.572077][ T6147] bi_foreground_target=64 [ 103.572086][ T6147] bi_background_target=1 [ 103.572097][ T6147] bi_erasure_code=0 [ 103.572106][ T6147] bi_fields_set=0 [ 103.572116][ T6147] bi_dir=0 [ 103.572124][ T6147] bi_dir_offset=0 [ 103.572133][ T6147] bi_subvol=0 [ 103.572143][ T6147] bi_parent_subvol=0 [ 103.572152][ T6147] bi_nocow=0 [ 103.572161][ T6147] bi_depth=0 [ 103.572170][ T6147] bi_inodes_32bit=0 [ 103.572179][ T6147] bi_casefold=0, fixing [ 103.592733][ T6147] done [ 103.593675][ T6147] bcachefs (loop3): check_xattrs... done [ 103.599672][ T6147] bcachefs (loop3): check_root... done [ 103.600769][ T6147] bcachefs (loop3): check_unreachable_inodes... done [ 103.602328][ T6147] bcachefs (loop3): check_subvolume_structure... done [ 103.603377][ T6147] bcachefs (loop3): check_directory_structure... done [ 103.604278][ T6147] bcachefs (loop3): check_nlinks... [ 103.605811][ T6147] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 103.607411][ T6147] done [ 103.608982][ T6147] bcachefs (loop3): check_rebalance_work... done [ 103.611645][ T6147] bcachefs (loop3): resume_logged_ops... done [ 103.619739][ T6147] bcachefs (loop3): delete_dead_inodes... [ 103.625212][ T6148] done [ 103.625786][ T6148] bcachefs (loop4): check_alloc_info... [ 103.627502][ T6148] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 103.627519][ T6148] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 103.627531][ T6148] gen 0 oldest_gen 0 data_type need_discard [ 103.627542][ T6148] journal_seq_nonempty 6 [ 103.627553][ T6148] journal_seq_empty 0 [ 103.627563][ T6148] need_discard 1 [ 103.627580][ T6148] need_inc_gen 1 [ 103.627591][ T6148] dirty_sectors 0 [ 103.627601][ T6148] stripe_sectors 0 [ 103.627610][ T6148] cached_sectors 0 [ 103.627620][ T6148] stripe 0 [ 103.627630][ T6148] stripe_redundancy 0 [ 103.627639][ T6148] io_time[READ] 1 [pid 6285] <... write resumed>) = 16777216 [pid 6285] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6285] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6285] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6285] close(3) = 0 [ 103.627650][ T6148] io_time[WRITE] 768 [ 103.627660][ T6148] fragmentation 0 [ 103.627670][ T6148] bp_start 8 [ 103.627680][ T6148] , fixing [ 103.648125][ T6147] done [ 103.648144][ T6147] bcachefs (loop3): set_fs_needs_rebalance... done [ 103.670376][ T6148] done [ 103.674130][ T6148] bcachefs (loop4): check_lrus... done [ 103.675915][ T6148] bcachefs (loop4): check_btree_backpointers... done [ 103.679782][ T6148] bcachefs (loop4): check_backpointers_to_extents... done [pid 6285] close(4) = 0 [pid 6285] mkdir("./file1", 0777) = 0 [ 103.682443][ T6148] bcachefs (loop4): check_extents_to_backpointers... [ 103.683802][ T6148] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 103.685187][ T6148] done [ 103.688514][ T6148] bcachefs (loop4): check_alloc_to_lru_refs... [ 103.690792][ T6148] bcachefs (loop4): missing fragmentation lru entry [ 103.690810][ T6148] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 103.690820][ T6148] gen 0 oldest_gen 0 data_type user [ 103.690831][ T6148] journal_seq_nonempty 5 [ 103.690841][ T6148] journal_seq_empty 134217728 [ 103.690853][ T6148] need_discard 1 [ 103.690863][ T6148] need_inc_gen 1 [ 103.690873][ T6148] dirty_sectors 16 [ 103.690883][ T6148] stripe_sectors 1802251 [ 103.690894][ T6148] cached_sectors 0 [ 103.690904][ T6148] stripe 0 [ 103.690913][ T6148] stripe_redundancy 0 [ 103.690923][ T6148] io_time[READ] 1 [ 103.690935][ T6148] io_time[WRITE] 512 [ 103.690945][ T6148] fragmentation 0 [ 103.690955][ T6148] bp_start 7 [ 103.690965][ T6148] , fixing [ 103.699777][ T6148] done [ 103.705633][ T6148] bcachefs (loop4): bucket_gens_init... done [ 103.707646][ T6148] bcachefs (loop4): check_snapshot_trees... done [ 103.708430][ T6148] bcachefs (loop4): check_snapshots... [ 103.709032][ T6148] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 103.709050][ T6148] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 103.716369][ T6165] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 103.716391][ T6165] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 103.721017][ T6147] bcachefs (loop3): check_extents_to_backpointers... [ 103.723628][ T6147] bcachefs (loop3): scanning for missing backpointers in 3/128 buckets [ 103.744167][ T6147] done [ 103.756439][ T6147] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 103.756466][ T6147] bcachefs (loop3): check_alloc_info... [ 103.759317][ T6148] done [ 103.760356][ T6148] bcachefs (loop4): check_subvols... done [ 103.761924][ T6148] bcachefs (loop4): check_subvol_children... done [ 103.765192][ T6148] bcachefs (loop4): delete_dead_snapshots... done [ 103.766568][ T6148] bcachefs (loop4): check_inodes... [ 103.767737][ T6148] bcachefs (loop4): inode points to missing dirent [ 103.767754][ T6148] inum: 4098:4294967295 [ 103.767764][ T6148] mode=40755 [ 103.767775][ T6148] flags=(15300000) [ 103.767784][ T6148] journal_seq=4 [ 103.767795][ T6148] hash_seed=ece93825deac2443 [pid 6285] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 103.767805][ T6148] hash_type=siphash [ 103.767813][ T6148] bi_size=0 [ 103.767823][ T6148] bi_sectors=0 [ 103.767832][ T6148] bi_version=0 [ 103.767841][ T6148] bi_atime=2770562249 [ 103.767852][ T6148] bi_ctime=2780562352 [ 103.767862][ T6148] bi_mtime=2780562352 [ 103.767873][ T6148] bi_otime=2770562249 [ 103.767883][ T6148] bi_uid=0 [ 103.767892][ T6148] bi_gid=0 [ 103.767902][ T6148] bi_nlink=0 [ 103.767911][ T6148] bi_generation=0 [ 103.767921][ T6148] bi_dev=0 [pid 6286] 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 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./9/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./9/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./9/file1") = 0 [pid 5839] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./9/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./9") = 0 [pid 5839] mkdir("./10", 0777) = 0 [ 103.767930][ T6148] bi_data_checksum=0 [ 103.767940][ T6148] bi_compression=0 [ 103.767950][ T6148] bi_project=0 [ 103.767959][ T6148] bi_background_compression=0 [ 103.767970][ T6148] bi_data_replicas=0 [ 103.767980][ T6148] bi_promote_target=0 [ 103.767990][ T6148] bi_foreground_target=64 [ 103.768002][ T6148] bi_background_target=1 [ 103.768012][ T6148] bi_erasure_code=0 [ 103.768022][ T6148] bi_fields_set=0 [ 103.768032][ T6148] bi_dir=0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6294 ./strace-static-x86_64: Process 6294 attached [pid 6294] set_robust_list(0x5555901c6760, 24) = 0 [ 103.768041][ T6148] bi_dir_offset=32 [ 103.768051][ T6148] bi_subvol=0 [ 103.768060][ T6148] bi_parent_subvol=0 [ 103.768070][ T6148] bi_nocow=0 [ 103.768079][ T6148] bi_depth=0 [ 103.768089][ T6148] bi_inodes_32bit=0 [ 103.768099][ T6148] bi_casefold=0, fixing [ 103.776895][ T6147] done [ 103.776913][ T6147] bcachefs (loop3): check_lrus... [ 103.780101][ T6148] done [ 103.781023][ T6148] bcachefs (loop4): check_extents... [ 103.782168][ T6147] done [ 103.782184][ T6147] bcachefs (loop3): check_btree_backpointers... [pid 6294] chdir("./10") = 0 [pid 6294] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 103.783634][ T6148] done [ 103.783648][ T6148] bcachefs (loop4): check_indirect_extents... [ 103.784024][ T6147] done [ 103.784037][ T6147] bcachefs (loop3): check_backpointers_to_extents... [ 103.785411][ T6148] done [ 103.785426][ T6148] bcachefs (loop4): check_dirents... [ 103.787188][ T6148] bcachefs (loop4): directory with missing backpointer [ 103.787205][ T6148] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 103.787221][ T6148] inum: 4098:4294967295 [pid 6294] setpgid(0, 0) = 0 [pid 6294] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 103.787232][ T6148] mode=40755 [ 103.787241][ T6148] flags=(11300000) [ 103.787250][ T6148] journal_seq=23 [ 103.787260][ T6148] hash_seed=ece93825deac2443 [ 103.787271][ T6148] hash_type=siphash [ 103.787280][ T6148] bi_size=0 [ 103.787290][ T6148] bi_sectors=0 [ 103.787301][ T6148] bi_version=0 [ 103.787310][ T6148] bi_atime=2770562249 [ 103.787320][ T6148] bi_ctime=2780562352 [ 103.787330][ T6148] bi_mtime=2780562352 [ 103.787339][ T6148] bi_otime=2770562249 [ 103.787349][ T6148] bi_uid=0 [pid 6294] write(3, "1000", 4) = 4 [pid 6294] close(3) = 0 [pid 6294] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6294] write(1, "executing program\n", 18) = 18 [pid 6294] memfd_create("syzkaller", 0) = 3 [pid 6294] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 103.787358][ T6148] bi_gid=0 [ 103.787367][ T6148] bi_nlink=0 [ 103.787376][ T6148] bi_generation=0 [ 103.787386][ T6148] bi_dev=0 [ 103.787395][ T6148] bi_data_checksum=0 [ 103.787404][ T6148] bi_compression=0 [ 103.787414][ T6148] bi_project=0 [ 103.787423][ T6148] bi_background_compression=0 [ 103.787435][ T6148] bi_data_replicas=0 [ 103.787445][ T6148] bi_promote_target=0 [ 103.787455][ T6148] bi_foreground_target=64 [ 103.787465][ T6148] bi_background_target=1 [ 103.787475][ T6148] bi_erasure_code=0 [ 103.787484][ T6148] bi_fields_set=0 [ 103.787494][ T6148] bi_dir=0 [ 103.787503][ T6148] bi_dir_offset=0 [ 103.787513][ T6148] bi_subvol=0 [ 103.787522][ T6148] bi_parent_subvol=0 [ 103.787532][ T6148] bi_nocow=0 [ 103.787541][ T6148] bi_depth=0 [ 103.787558][ T6148] bi_inodes_32bit=0 [ 103.787568][ T6148] bi_casefold=0, fixing [ 103.791031][ T6147] done [ 103.791044][ T6147] bcachefs (loop3): check_extents_to_backpointers... done [ 103.795058][ T6147] bcachefs (loop3): check_alloc_to_lru_refs... [ 103.800875][ T6148] done [ 103.801529][ T6148] bcachefs (loop4): check_xattrs... [ 103.802601][ T6147] done [ 103.803289][ T6147] bcachefs (loop3): bucket_gens_init... done [ 103.806657][ T6147] bcachefs (loop3): check_snapshot_trees... [ 103.810302][ T6148] done [ 103.810318][ T6148] bcachefs (loop4): check_root... done [ 103.814884][ T6148] bcachefs (loop4): check_unreachable_inodes... [ 103.815726][ T6147] done [ 103.815740][ T6147] bcachefs (loop3): check_snapshots... [ 103.816514][ T6148] done [ 103.816529][ T6148] bcachefs (loop4): check_subvolume_structure... done [ 103.817312][ T6148] bcachefs (loop4): check_directory_structure... [ 103.818254][ T6147] done [ 103.818269][ T6147] bcachefs (loop3): check_subvols... [ 103.818924][ T6148] done [ 103.818939][ T6148] bcachefs (loop4): check_nlinks... [ 103.819785][ T6148] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 103.822113][ T6147] done [ 103.822126][ T6147] bcachefs (loop3): check_subvol_children... done [ 103.822975][ T6147] bcachefs (loop3): delete_dead_snapshots... done [ 103.823646][ T6147] bcachefs (loop3): check_inodes... [ 103.825057][ T6148] done [ 103.825700][ T6148] bcachefs (loop4): check_rebalance_work... [ 103.826960][ T6147] done [ 103.826976][ T6147] bcachefs (loop3): check_extents... [ 103.828314][ T6148] done [ 103.828329][ T6148] bcachefs (loop4): resume_logged_ops... done [ 103.829030][ T6148] bcachefs (loop4): delete_dead_inodes... [ 103.835827][ T6147] done [ 103.835844][ T6147] bcachefs (loop3): check_indirect_extents... [ 103.837219][ T6149] loop2: detected capacity change from 0 to 32768 [ 103.838869][ T6147] done [ 103.838880][ T6147] bcachefs (loop3): check_dirents... done [ 103.846848][ T6147] bcachefs (loop3): check_xattrs... done [ 103.850097][ T6147] bcachefs (loop3): check_root... done [ 103.850877][ T6147] bcachefs (loop3): check_unreachable_inodes... done [ 103.855302][ T6147] bcachefs (loop3): check_subvolume_structure... done [ 103.861092][ T6147] bcachefs (loop3): check_directory_structure... done [pid 6286] <... write resumed>) = 16777216 [ 103.861980][ T6147] bcachefs (loop3): check_nlinks... [ 103.863431][ T6148] done [ 103.866149][ T6148] bcachefs (loop4): set_fs_needs_rebalance... [ 103.876042][ T6147] done [ 103.876061][ T6147] bcachefs (loop3): check_rebalance_work... done [ 103.877439][ T6147] bcachefs (loop3): resume_logged_ops... done [ 103.878180][ T6147] bcachefs (loop3): delete_dead_inodes... done [ 103.880082][ T6147] bcachefs (loop3): set_fs_needs_rebalance... done [ 103.886801][ T6147] bcachefs (loop3): done starting filesystem [pid 6286] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6286] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6286] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6286] close(3) = 0 [pid 6286] close(4) = 0 [pid 6286] mkdir("./file1", 0777) = 0 [ 104.003835][ T5840] bcachefs (loop3): shutting down [ 104.003854][ T5840] bcachefs (loop3): going read-only [ 104.003884][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 104.016393][ T6168] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 104.016415][ T6168] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 104.028111][ T6148] done [ 104.033559][ T6148] bcachefs (loop4): check_extents_to_backpointers... [ 104.034483][ T6148] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 104.050635][ T6168] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 104.051699][ T6148] done [ 104.059696][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 34 [ 104.059851][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 34 [ 104.071171][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 35 [ 104.072994][ T5840] bcachefs (loop3): marking filesystem clean [ 104.097670][ T6148] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 104.097697][ T6148] bcachefs (loop4): check_alloc_info... done [ 104.119878][ T6148] bcachefs (loop4): check_lrus... done [ 104.121064][ T6148] bcachefs (loop4): check_btree_backpointers... done [ 104.124394][ T6148] bcachefs (loop4): check_backpointers_to_extents... done [ 104.125875][ T6148] bcachefs (loop4): check_extents_to_backpointers... [ 104.126804][ T6148] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 104.136957][ T6148] done [ 104.136974][ T6148] bcachefs (loop4): check_alloc_to_lru_refs... done [ 104.151141][ T6148] bcachefs (loop4): bucket_gens_init... done [ 104.157336][ T6148] bcachefs (loop4): check_snapshot_trees... done [ 104.158483][ T6148] bcachefs (loop4): check_snapshots... done [ 104.165607][ T6148] bcachefs (loop4): check_subvols... done [ 104.170430][ T6148] bcachefs (loop4): check_subvol_children... done [ 104.172274][ T6148] bcachefs (loop4): delete_dead_snapshots... done [ 104.174341][ T6148] bcachefs (loop4): check_inodes... done [pid 6286] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 104.178449][ T6148] bcachefs (loop4): check_extents... done [ 104.180623][ T6148] bcachefs (loop4): check_indirect_extents... done [ 104.181241][ T6148] bcachefs (loop4): check_dirents... done [ 104.186393][ T6148] bcachefs (loop4): check_xattrs... done [ 104.187222][ T6148] bcachefs (loop4): check_root... done [ 104.187986][ T6148] bcachefs (loop4): check_unreachable_inodes... done [ 104.189646][ T6148] bcachefs (loop4): check_subvolume_structure... done [ 104.191957][ T6148] bcachefs (loop4): check_directory_structure... [pid 6294] 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 6285] <... mount resumed>) = 0 [pid 6285] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6285] chdir("./file1") = 0 [pid 6285] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 6285] ioctl(4, LOOP_CLR_FD) = 0 [pid 6285] close(4) = 0 [ 104.193494][ T5840] bcachefs (loop3): shutdown complete [ 104.195938][ T6149] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 104.195962][ T6149] allowing incompatible features above 0.0: (unknown version) [ 104.195975][ T6149] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 104.196001][ T6149] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [pid 6285] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6285] exit_group(0) = ? [pid 6285] +++ exited with 0 +++ [pid 5840] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6285, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=34 /* 0.34 s */} --- [pid 5840] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5840] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 104.196126][ T6149] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 104.201862][ T6149] bcachefs (loop2): Version upgrade required: [ 104.201862][ T6149] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 104.201862][ T6149] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 104.201862][ T6149] 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,check_rebalance_work,set_fs_needs_rebalance [ 104.203085][ T6148] done [ 104.203100][ T6148] bcachefs (loop4): check_nlinks... done [ 104.215861][ T6148] bcachefs (loop4): check_rebalance_work... done [ 104.216958][ T6148] bcachefs (loop4): resume_logged_ops... done [ 104.217676][ T6148] bcachefs (loop4): delete_dead_inodes... done [ 104.218425][ T6148] bcachefs (loop4): set_fs_needs_rebalance... done [ 104.231846][ T6148] bcachefs (loop4): done starting filesystem [ 104.271354][ T6149] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 104.271380][ T6149] size != 0, deleting [ 104.280567][ T6149] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 104.290629][ T6149] bcachefs (loop2): check_topology... done [ 104.302279][ T6149] bcachefs (loop2): accounting_read... [ 104.310045][ T5841] bcachefs (loop4): shutting down [ 104.310066][ T5841] bcachefs (loop4): going read-only [ 104.310094][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 104.322777][ T6149] done [ 104.322795][ T6149] bcachefs (loop2): alloc_read... done [ 104.323810][ T6149] bcachefs (loop2): snapshots_read... done [ 104.325250][ T6149] bcachefs (loop2): check_allocations... [ 104.327125][ T6149] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 104.327146][ T6149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 104.345009][ T6149] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 104.345030][ T6149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 104.346888][ T6149] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 104.346907][ T6149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 104.350305][ T6149] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 104.350324][ T6149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 104.351275][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 35 [ 104.351648][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 35 [ 104.352527][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 36 [ 104.354313][ T5841] bcachefs (loop4): marking filesystem clean [ 104.380125][ T6149] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 104.380148][ T6149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 104.381173][ T6149] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 104.381300][ T6149] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.381875][ T6149] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 104.381984][ T6149] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.382390][ T6149] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5840] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6294] <... write resumed>) = 16777216 [pid 6294] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6294] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 104.382494][ T6149] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.382707][ T6149] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 104.382820][ T6149] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.383022][ T6149] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6294] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6294] close(3) = 0 [pid 6294] close(4) = 0 [pid 6294] mkdir("./file1", 0777) = 0 [ 104.383127][ T6149] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.383330][ T6149] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 104.383434][ T6149] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.383633][ T6149] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 104.383738][ T6149] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 104.383947][ T6149] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 104.384052][ T6149] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 104.384257][ T6149] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 104.384363][ T6149] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 104.384567][ T6149] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 104.384672][ T6149] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 104.384998][ T6149] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 104.385014][ T6149] Ratelimiting new instances of previous error [ 104.385147][ T6149] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 104.385163][ T6149] Ratelimiting new instances of previous error [ 104.441062][ T6149] done [ 104.443565][ T6149] bcachefs (loop2): going read-write [ 104.457531][ T6149] bcachefs (loop2): journal_replay... [ 104.467732][ T5841] bcachefs (loop4): shutdown complete [ 104.609703][ T6149] done [ 104.610332][ T6149] bcachefs (loop2): check_alloc_info... [ 104.612176][ T6149] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 104.612195][ T6149] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 104.612206][ T6149] gen 0 oldest_gen 0 data_type need_discard [ 104.612217][ T6149] journal_seq_nonempty 6 [ 104.612229][ T6149] journal_seq_empty 0 [ 104.612239][ T6149] need_discard 1 [ 104.612249][ T6149] need_inc_gen 1 [ 104.612260][ T6149] dirty_sectors 0 [ 104.612269][ T6149] stripe_sectors 0 [ 104.612280][ T6149] cached_sectors 0 [ 104.612290][ T6149] stripe 0 [ 104.612300][ T6149] stripe_redundancy 0 [ 104.612309][ T6149] io_time[READ] 1 [ 104.612321][ T6149] io_time[WRITE] 768 [ 104.612331][ T6149] fragmentation 0 [ 104.612341][ T6149] bp_start 8 [ 104.612352][ T6149] , fixing [ 104.681702][ T6149] done [ 104.687275][ T6149] bcachefs (loop2): check_lrus... done [ 104.688159][ T6149] bcachefs (loop2): check_btree_backpointers... done [ 104.699769][ T6149] bcachefs (loop2): check_backpointers_to_extents... done [ 104.703167][ T6149] bcachefs (loop2): check_extents_to_backpointers... [ 104.704535][ T6149] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 104.709710][ T6149] done [ 104.710824][ T6149] bcachefs (loop2): check_alloc_to_lru_refs... [ 104.713357][ T6149] bcachefs (loop2): missing fragmentation lru entry [ 104.713374][ T6149] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 104.713386][ T6149] gen 0 oldest_gen 0 data_type user [ 104.713398][ T6149] journal_seq_nonempty 5 [ 104.713408][ T6149] journal_seq_empty 134217728 [ 104.713419][ T6149] need_discard 1 [ 104.713429][ T6149] need_inc_gen 1 [ 104.713438][ T6149] dirty_sectors 16 [ 104.713449][ T6149] stripe_sectors 1802251 [pid 6294] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5840] <... umount2 resumed>) = 0 [pid 5840] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./9/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] openat(AT_FDCWD, "./9/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5840] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 104.713459][ T6149] cached_sectors 0 [ 104.713470][ T6149] stripe 0 [ 104.713481][ T6149] stripe_redundancy 0 [ 104.713489][ T6149] io_time[READ] 1 [ 104.713498][ T6149] io_time[WRITE] 512 [ 104.713508][ T6149] fragmentation 0 [ 104.713518][ T6149] bp_start 7 [ 104.713529][ T6149] , fixing [ 104.718470][ T6149] done [ 104.720145][ T6149] bcachefs (loop2): bucket_gens_init... done [ 104.735184][ T6149] bcachefs (loop2): check_snapshot_trees... done [pid 5840] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5840] close(4) = 0 [pid 5840] rmdir("./9/file1") = 0 [pid 5840] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5840] newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5840] unlink("./9/binderfs") = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [pid 5840] rmdir("./9") = 0 [pid 5840] mkdir("./10", 0777) = 0 [pid 5840] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5840] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5840] close(3) = 0 [ 104.736212][ T6149] bcachefs (loop2): check_snapshots... [ 104.736819][ T6149] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 104.736837][ T6149] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 104.761014][ T6149] done [ 104.761701][ T6149] bcachefs (loop2): check_subvols... done [ 104.767571][ T6149] bcachefs (loop2): check_subvol_children... done [ 104.768488][ T6149] bcachefs (loop2): delete_dead_snapshots... done [pid 5840] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6315 attached [pid 6315] set_robust_list(0x5555901c6760, 24 [pid 5840] <... clone resumed>, child_tidptr=0x5555901c6750) = 6315 [pid 6315] <... set_robust_list resumed>) = 0 [ 104.769156][ T6149] bcachefs (loop2): check_inodes... [ 104.770406][ T6149] bcachefs (loop2): inode points to missing dirent [ 104.770424][ T6149] inum: 4098:4294967295 [ 104.770436][ T6149] mode=40755 [ 104.770446][ T6149] flags=(15300000) [ 104.770456][ T6149] journal_seq=4 [ 104.770465][ T6149] hash_seed=ece93825deac2443 [ 104.770476][ T6149] hash_type=siphash [ 104.770483][ T6149] bi_size=0 [ 104.770492][ T6149] bi_sectors=0 [ 104.770501][ T6149] bi_version=0 [ 104.770511][ T6149] bi_atime=2770562249 [pid 6315] chdir("./10") = 0 [pid 6315] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6315] setpgid(0, 0) = 0 [ 104.770520][ T6149] bi_ctime=2780562352 [ 104.770530][ T6149] bi_mtime=2780562352 [ 104.770540][ T6149] bi_otime=2770562249 [ 104.770550][ T6149] bi_uid=0 [ 104.770559][ T6149] bi_gid=0 [ 104.770568][ T6149] bi_nlink=0 [ 104.770577][ T6149] bi_generation=0 [ 104.770587][ T6149] bi_dev=0 [ 104.770596][ T6149] bi_data_checksum=0 [ 104.770608][ T6149] bi_compression=0 [ 104.770617][ T6149] bi_project=0 [ 104.770626][ T6149] bi_background_compression=0 [ 104.770637][ T6149] bi_data_replicas=0 [pid 6315] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6286] <... mount resumed>) = 0 [pid 6286] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 6315] write(3, "1000", 4 [pid 6286] <... openat resumed>) = 3 [ 104.770646][ T6149] bi_promote_target=0 [ 104.770656][ T6149] bi_foreground_target=64 [ 104.770666][ T6149] bi_background_target=1 [ 104.770676][ T6149] bi_erasure_code=0 [ 104.770685][ T6149] bi_fields_set=0 [ 104.770695][ T6149] bi_dir=0 [ 104.770704][ T6149] bi_dir_offset=32 [ 104.770713][ T6149] bi_subvol=0 [ 104.770723][ T6149] bi_parent_subvol=0 [ 104.770741][ T6149] bi_nocow=0 [ 104.770750][ T6149] bi_depth=0 [ 104.770759][ T6149] bi_inodes_32bit=0 [pid 6315] <... write resumed>) = 4 [pid 6286] chdir("./file1" [pid 6315] close(3 [pid 6286] <... chdir resumed>) = 0 [pid 6286] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6315] <... close resumed>) = 0 [pid 6286] ioctl(4, LOOP_CLR_FD) = 0 [pid 6286] close(4) = 0 [pid 6286] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6286] exit_group(0 [pid 6315] symlink("/dev/binderfs", "./binderfs" [pid 6286] <... exit_group resumed>) = ? [pid 6315] <... symlink resumed>) = 0 [pid 6286] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6286, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5841] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5841] umount2("./9", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./9", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 104.770769][ T6149] bi_casefold=0, fixing [ 104.788224][ T6149] done [ 104.788955][ T6149] bcachefs (loop2): check_extents... done [ 104.790758][ T6149] bcachefs (loop2): check_indirect_extents... done [ 104.797391][ T6149] bcachefs (loop2): check_dirents... [ 104.799158][ T6149] bcachefs (loop2): directory with missing backpointer [ 104.799173][ T6149] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 104.799188][ T6149] inum: 4098:4294967295 [ 104.799197][ T6149] mode=40755 [pid 5841] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6315] write(1, "executing program\n", 18executing program ) = 18 [ 104.799206][ T6149] flags=(11300000) [ 104.799215][ T6149] journal_seq=23 [ 104.801196][ T6149] hash_seed=ece93825deac2443 [ 104.801210][ T6149] hash_type=siphash [ 104.801220][ T6149] bi_size=0 [ 104.801229][ T6149] bi_sectors=0 [ 104.801239][ T6149] bi_version=0 [ 104.801248][ T6149] bi_atime=2770562249 [ 104.801258][ T6149] bi_ctime=2780562352 [ 104.801268][ T6149] bi_mtime=2780562352 [ 104.801277][ T6149] bi_otime=2770562249 [ 104.801287][ T6149] bi_uid=0 [pid 6315] memfd_create("syzkaller", 0) = 3 [ 104.801296][ T6149] bi_gid=0 [ 104.801305][ T6149] bi_nlink=0 [ 104.801315][ T6149] bi_generation=0 [ 104.801324][ T6149] bi_dev=0 [ 104.801333][ T6149] bi_data_checksum=0 [ 104.801343][ T6149] bi_compression=0 [ 104.801352][ T6149] bi_project=0 [ 104.801362][ T6149] bi_background_compression=0 [ 104.801372][ T6149] bi_data_replicas=0 [ 104.801382][ T6149] bi_promote_target=0 [ 104.801391][ T6149] bi_foreground_target=64 [ 104.801402][ T6149] bi_background_target=1 [pid 6315] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 104.801414][ T6149] bi_erasure_code=0 [ 104.801423][ T6149] bi_fields_set=0 [ 104.801433][ T6149] bi_dir=0 [ 104.801442][ T6149] bi_dir_offset=0 [ 104.801452][ T6149] bi_subvol=0 [ 104.801461][ T6149] bi_parent_subvol=0 [ 104.801471][ T6149] bi_nocow=0 [ 104.801479][ T6149] bi_depth=0 [ 104.801489][ T6149] bi_inodes_32bit=0 [ 104.801498][ T6149] bi_casefold=0, fixing [ 104.803742][ T6149] done [ 104.804440][ T6149] bcachefs (loop2): check_xattrs... done [ 104.807883][ T6149] bcachefs (loop2): check_root... done [ 104.808948][ T6149] bcachefs (loop2): check_unreachable_inodes... done [ 104.821155][ T6149] bcachefs (loop2): check_subvolume_structure... done [ 104.821944][ T6149] bcachefs (loop2): check_directory_structure... done [ 104.822656][ T6149] bcachefs (loop2): check_nlinks... [ 104.823393][ T6149] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 104.824376][ T6149] done [ 104.825062][ T6149] bcachefs (loop2): check_rebalance_work... done [ 104.826245][ T6149] bcachefs (loop2): resume_logged_ops... done [ 104.826899][ T6149] bcachefs (loop2): delete_dead_inodes... done [ 104.847610][ T6149] bcachefs (loop2): set_fs_needs_rebalance... done [ 104.929919][ T6178] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 104.929945][ T6178] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 104.937346][ T6149] bcachefs (loop2): check_extents_to_backpointers... [pid 6294] <... mount resumed>) = 0 [ 104.938360][ T6149] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 104.946677][ T6149] done [ 104.963027][ T6149] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 104.963056][ T6149] bcachefs (loop2): check_alloc_info... done [ 104.987519][ T6149] bcachefs (loop2): check_lrus... done [ 105.000409][ T6149] bcachefs (loop2): check_btree_backpointers... done [ 105.003398][ T6149] bcachefs (loop2): check_backpointers_to_extents... done [pid 6294] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6294] chdir("./file1") = 0 [pid 6294] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6294] ioctl(4, LOOP_CLR_FD) = 0 [pid 6294] close(4) = 0 [pid 6294] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6294] exit_group(0) = ? [pid 6294] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6294, si_uid=0, si_status=0, si_utime=14 /* 0.14 s */, si_stime=43 /* 0.43 s */} --- [pid 5839] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 105.005581][ T6149] bcachefs (loop2): check_extents_to_backpointers... done [ 105.007168][ T6149] bcachefs (loop2): check_alloc_to_lru_refs... done [ 105.014860][ T6149] bcachefs (loop2): bucket_gens_init... done [ 105.020134][ T6149] bcachefs (loop2): check_snapshot_trees... done [ 105.022214][ T6149] bcachefs (loop2): check_snapshots... done [ 105.026486][ T6149] bcachefs (loop2): check_subvols... done [ 105.033636][ T6149] bcachefs (loop2): check_subvol_children... done [ 105.034429][ T6149] bcachefs (loop2): delete_dead_snapshots... done [ 105.037052][ T6149] bcachefs (loop2): check_inodes... done [ 105.038222][ T6149] bcachefs (loop2): check_extents... done [ 105.042714][ T6149] bcachefs (loop2): check_indirect_extents... done [ 105.047452][ T6149] bcachefs (loop2): check_dirents... done [ 105.052078][ T6149] bcachefs (loop2): check_xattrs... done [ 105.053339][ T6149] bcachefs (loop2): check_root... done [ 105.054096][ T6149] bcachefs (loop2): check_unreachable_inodes... done [ 105.054950][ T6149] bcachefs (loop2): check_subvolume_structure... done [ 105.064418][ T6149] bcachefs (loop2): check_directory_structure... done [ 105.065190][ T6149] bcachefs (loop2): check_nlinks... done [ 105.066340][ T6149] bcachefs (loop2): check_rebalance_work... done [ 105.067428][ T6149] bcachefs (loop2): resume_logged_ops... done [ 105.068148][ T6149] bcachefs (loop2): delete_dead_inodes... done [ 105.072120][ T6149] bcachefs (loop2): set_fs_needs_rebalance... done [ 105.081229][ T6149] bcachefs (loop2): done starting filesystem [ 105.206812][ T5839] bcachefs (loop2): shutting down [ 105.206836][ T5839] bcachefs (loop2): going read-only [ 105.206865][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 105.244366][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 105.244520][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 105.245417][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 105.247236][ T5839] bcachefs (loop2): marking filesystem clean [ 105.363314][ T5839] bcachefs (loop2): shutdown complete [ 105.997384][ T6180] loop3: detected capacity change from 0 to 32768 [ 106.240176][ T6180] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 106.240202][ T6180] allowing incompatible features above 0.0: (unknown version) [ 106.240217][ T6180] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 106.240245][ T6180] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 106.253805][ T6180] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 106.254064][ T6180] bcachefs (loop3): Version upgrade required: [ 106.254064][ T6180] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 106.254064][ T6180] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 106.254064][ T6180] 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,check_rebalance_work,set_fs_needs_rebalance [ 106.310216][ T6180] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 106.310240][ T6180] size != 0, deleting [ 106.333298][ T6180] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 106.342843][ T6180] bcachefs (loop3): check_topology... done [ 106.344505][ T6180] bcachefs (loop3): accounting_read... done [ 106.381140][ T6180] bcachefs (loop3): alloc_read... done [ 106.382299][ T6180] bcachefs (loop3): snapshots_read... done [ 106.383047][ T6180] bcachefs (loop3): check_allocations... [ 106.384899][ T6180] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./10/file1", MNT_FORCE|UMOUNT_NOFOLLOW [ 106.384918][ T6180] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 106.390470][ T6180] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 106.390489][ T6180] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 106.392797][ T6180] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 106.392815][ T6180] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 106.395317][ T6180] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 106.395343][ T6180] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 106.411190][ T6180] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 106.411210][ T6180] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 106.412184][ T6180] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.412303][ T6180] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.419551][ T6180] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.419679][ T6180] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.420070][ T6180] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.420177][ T6180] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.420397][ T6180] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.420500][ T6180] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.420720][ T6180] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.420825][ T6180] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.421025][ T6180] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.425587][ T6180] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.425836][ T6180] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6315] 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 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./9/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 106.425951][ T6180] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.426152][ T6180] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.426253][ T6180] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 106.426463][ T6180] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 106.426570][ T6180] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5841] umount2("./9/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./9/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./9/file1") = 0 [pid 5841] umount2("./9/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./9/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./9/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./9") = 0 [pid 5841] mkdir("./10", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6319 attached , child_tidptr=0x5555901c6750) = 6319 [ 106.426765][ T6180] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 106.426868][ T6180] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 106.427094][ T6180] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 106.427111][ T6180] Ratelimiting new instances of previous error [ 106.427235][ T6180] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6319] set_robust_list(0x5555901c6760, 24) = 0 [pid 6319] chdir("./10") = 0 [ 106.427252][ T6180] Ratelimiting new instances of previous error [ 106.480579][ T6180] done [ 106.482586][ T6180] bcachefs (loop3): going read-write [ 106.502554][ T6180] bcachefs (loop3): journal_replay... [ 106.581371][ T6181] loop4: detected capacity change from 0 to 32768 [ 106.618291][ T6180] done [ 106.618861][ T6180] bcachefs (loop3): check_alloc_info... [ 106.620874][ T6180] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 106.620894][ T6180] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 106.620905][ T6180] gen 0 oldest_gen 0 data_type need_discard [pid 6319] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6319] setpgid(0, 0) = 0 [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./10/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./10/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./10/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./10/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./10/file1" [pid 6319] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6315] <... write resumed>) = 16777216 [ 106.620917][ T6180] journal_seq_nonempty 6 [ 106.620927][ T6180] journal_seq_empty 0 [ 106.620938][ T6180] need_discard 1 [ 106.620948][ T6180] need_inc_gen 1 [ 106.620958][ T6180] dirty_sectors 0 [ 106.620968][ T6180] stripe_sectors 0 [ 106.629890][ T6180] cached_sectors 0 [ 106.629907][ T6180] stripe 0 [ 106.629919][ T6180] stripe_redundancy 0 [ 106.629930][ T6180] io_time[READ] 1 [pid 6315] munmap(0x7fbbeb93a000, 138412032 [pid 5839] <... rmdir resumed>) = 0 [pid 5839] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./10/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./10") = 0 [pid 5839] mkdir("./11", 0777) = 0 [pid 6315] <... munmap resumed>) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3 [pid 6319] <... openat resumed>) = 3 [pid 6315] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5839] <... close resumed>) = 0 [pid 6315] <... openat resumed>) = 4 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6320 attached [pid 6315] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 6320 [pid 6320] set_robust_list(0x5555901c6760, 24) = 0 [pid 6315] close(3 [pid 6320] chdir("./11") = 0 [pid 6315] <... close resumed>) = 0 [pid 6320] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 6315] close(4 [pid 6320] <... prctl resumed>) = 0 [pid 6315] <... close resumed>) = 0 [pid 6320] setpgid(0, 0 [pid 6315] mkdir("./file1", 0777 [pid 6320] <... setpgid resumed>) = 0 [pid 6315] <... mkdir resumed>) = 0 [pid 6320] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 6315] mount("/dev/loop3", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6320] <... openat resumed>) = 3 [pid 6320] write(3, "1000", 4) = 4 [pid 6320] close(3) = 0 executing program [pid 6320] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6320] write(1, "executing program\n", 18) = 18 [ 106.629940][ T6180] io_time[WRITE] 768 [ 106.629950][ T6180] fragmentation 0 [ 106.629960][ T6180] bp_start 8 [ 106.629970][ T6180] , fixing [ 106.721932][ T6180] done [ 106.722551][ T6180] bcachefs (loop3): check_lrus... done [ 106.725023][ T6180] bcachefs (loop3): check_btree_backpointers... done [ 106.726383][ T6180] bcachefs (loop3): check_backpointers_to_extents... done [ 106.745797][ T6180] bcachefs (loop3): check_extents_to_backpointers... [pid 6320] memfd_create("syzkaller", 0) = 3 [pid 6319] write(3, "1000", 4) = 4 [pid 6320] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6319] close(3) = 0 [ 106.747200][ T6180] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 106.759533][ T6180] done [ 106.761048][ T6180] bcachefs (loop3): check_alloc_to_lru_refs... [ 106.815000][ T6180] bcachefs (loop3): missing fragmentation lru entry [ 106.815024][ T6180] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 106.815036][ T6180] gen 0 oldest_gen 0 data_type user [ 106.815049][ T6180] journal_seq_nonempty 5 [ 106.815059][ T6180] journal_seq_empty 134217728 [ 106.815070][ T6180] need_discard 1 [ 106.815080][ T6180] need_inc_gen 1 [pid 6319] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6319] write(1, "executing program\n", 18executing program ) = 18 [ 106.815090][ T6180] dirty_sectors 16 [ 106.815101][ T6180] stripe_sectors 1802251 [ 106.815113][ T6180] cached_sectors 0 [ 106.815150][ T6180] stripe 0 [ 106.815160][ T6180] stripe_redundancy 0 [ 106.815171][ T6180] io_time[READ] 1 [ 106.815182][ T6180] io_time[WRITE] 512 [ 106.815192][ T6180] fragmentation 0 [ 106.815202][ T6180] bp_start 7 [ 106.815213][ T6180] , fixing [ 106.824467][ T6180] done [pid 6319] memfd_create("syzkaller", 0) = 3 [ 106.831025][ T6181] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 106.831051][ T6181] allowing incompatible features above 0.0: (unknown version) [ 106.831066][ T6181] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 106.831093][ T6181] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 106.831215][ T6181] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [pid 6319] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 106.831463][ T6181] bcachefs (loop4): Version upgrade required: [ 106.831463][ T6181] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 106.831463][ T6181] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 106.831463][ T6181] 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,check_rebalance_work,set_fs_needs_rebalance [ 106.840630][ T6180] bcachefs (loop3): bucket_gens_init... done [ 106.846035][ T6180] bcachefs (loop3): check_snapshot_trees... done [ 106.846792][ T6180] bcachefs (loop3): check_snapshots... [ 106.847402][ T6180] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 106.847420][ T6180] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 106.876414][ T6180] done [ 106.878904][ T6180] bcachefs (loop3): check_subvols... done [ 106.894046][ T6181] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 106.894072][ T6181] size != 0, deleting [ 106.895181][ T6181] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 106.901107][ T6181] bcachefs (loop4): check_topology... [ 106.903228][ T6180] bcachefs (loop3): check_subvol_children... done [ 106.904105][ T6180] bcachefs (loop3): delete_dead_snapshots... done [ 106.904784][ T6180] bcachefs (loop3): check_inodes... [ 106.905923][ T6180] bcachefs (loop3): inode points to missing dirent [ 106.905936][ T6180] inum: 4098:4294967295 [ 106.905946][ T6180] mode=40755 [ 106.905953][ T6180] flags=(15300000) [ 106.905963][ T6180] journal_seq=4 [ 106.905970][ T6180] hash_seed=ece93825deac2443 [ 106.905980][ T6180] hash_type=siphash [ 106.905989][ T6180] bi_size=0 [ 106.905998][ T6180] bi_sectors=0 [ 106.906007][ T6180] bi_version=0 [ 106.906016][ T6180] bi_atime=2770562249 [ 106.906026][ T6180] bi_ctime=2780562352 [ 106.906037][ T6180] bi_mtime=2780562352 [ 106.906047][ T6180] bi_otime=2770562249 [ 106.906056][ T6180] bi_uid=0 [ 106.906065][ T6180] bi_gid=0 [ 106.906075][ T6180] bi_nlink=0 [ 106.906083][ T6180] bi_generation=0 [ 106.906093][ T6180] bi_dev=0 [ 106.906102][ T6180] bi_data_checksum=0 [ 106.906112][ T6180] bi_compression=0 [ 106.906121][ T6180] bi_project=0 [ 106.906130][ T6180] bi_background_compression=0 [ 106.906140][ T6180] bi_data_replicas=0 [ 106.906150][ T6180] bi_promote_target=0 [ 106.906159][ T6180] bi_foreground_target=64 [ 106.906169][ T6180] bi_background_target=1 [ 106.906181][ T6180] bi_erasure_code=0 [ 106.906190][ T6180] bi_fields_set=0 [ 106.906199][ T6180] bi_dir=0 [ 106.906208][ T6180] bi_dir_offset=32 [ 106.906217][ T6180] bi_subvol=0 [ 106.906227][ T6180] bi_parent_subvol=0 [ 106.906236][ T6180] bi_nocow=0 [ 106.906246][ T6180] bi_depth=0 [ 106.906255][ T6180] bi_inodes_32bit=0 [ 106.906264][ T6180] bi_casefold=0, fixing [ 106.908731][ T6180] done [ 106.909576][ T6180] bcachefs (loop3): check_extents... done [ 106.920896][ T6180] bcachefs (loop3): check_indirect_extents... [ 106.921472][ T6181] done [ 106.921487][ T6181] bcachefs (loop4): accounting_read... [ 106.922678][ T6180] done [ 106.922692][ T6180] bcachefs (loop3): check_dirents... [ 106.924654][ T6180] bcachefs (loop3): directory with missing backpointer [ 106.924672][ T6180] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 106.924689][ T6180] inum: 4098:4294967295 [ 106.924699][ T6180] mode=40755 [ 106.924709][ T6180] flags=(11300000) [ 106.924719][ T6180] journal_seq=24 [ 106.924729][ T6180] hash_seed=ece93825deac2443 [ 106.924739][ T6180] hash_type=siphash [ 106.924749][ T6180] bi_size=0 [ 106.924759][ T6180] bi_sectors=0 [ 106.924770][ T6180] bi_version=0 [ 106.924780][ T6180] bi_atime=2770562249 [ 106.924790][ T6180] bi_ctime=2780562352 [ 106.924801][ T6180] bi_mtime=2780562352 [ 106.924811][ T6180] bi_otime=2770562249 [ 106.924820][ T6180] bi_uid=0 [ 106.924830][ T6180] bi_gid=0 [ 106.924839][ T6180] bi_nlink=0 [ 106.924848][ T6180] bi_generation=0 [ 106.924858][ T6180] bi_dev=0 [ 106.924868][ T6180] bi_data_checksum=0 [ 106.924878][ T6180] bi_compression=0 [ 106.924889][ T6180] bi_project=0 [ 106.924899][ T6180] bi_background_compression=0 [ 106.924909][ T6180] bi_data_replicas=0 [ 106.924919][ T6180] bi_promote_target=0 [ 106.924929][ T6180] bi_foreground_target=64 [ 106.924940][ T6180] bi_background_target=1 [ 106.924950][ T6180] bi_erasure_code=0 [ 106.924961][ T6180] bi_fields_set=0 [ 106.924971][ T6180] bi_dir=0 [ 106.924980][ T6180] bi_dir_offset=0 [pid 6320] 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 [ 106.924990][ T6180] bi_subvol=0 [ 106.924999][ T6180] bi_parent_subvol=0 [ 106.925009][ T6180] bi_nocow=0 [ 106.925018][ T6180] bi_depth=0 [ 106.925028][ T6180] bi_inodes_32bit=0 [ 106.925037][ T6180] bi_casefold=0, fixing [ 106.940104][ T6180] done [ 106.940837][ T6180] bcachefs (loop3): check_xattrs... done [ 106.942112][ T6180] bcachefs (loop3): check_root... [ 106.943834][ T6181] done [ 106.943850][ T6181] bcachefs (loop4): alloc_read... done [ 106.944672][ T6181] bcachefs (loop4): snapshots_read... done [ 106.945444][ T6181] bcachefs (loop4): check_allocations... [ 106.947090][ T6180] done [ 106.947106][ T6180] bcachefs (loop3): check_unreachable_inodes... [ 106.948332][ T6181] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 106.948354][ T6181] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 106.952268][ T6180] done [ 106.952285][ T6180] bcachefs (loop3): check_subvolume_structure... done [pid 6319] 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 6320] <... write resumed>) = 16777216 [pid 6320] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6320] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6320] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6320] close(3) = 0 [pid 6320] close(4) = 0 [pid 6320] mkdir("./file1", 0777) = 0 [ 106.953116][ T6180] bcachefs (loop3): check_directory_structure... done [ 106.953906][ T6180] bcachefs (loop3): check_nlinks... [ 106.954626][ T6180] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 106.955878][ T6181] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 106.955897][ T6181] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 106.962249][ T6181] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 106.962270][ T6181] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 106.963333][ T6180] done [ 106.964074][ T6180] bcachefs (loop3): check_rebalance_work... done [ 106.969651][ T6180] bcachefs (loop3): resume_logged_ops... [ 106.970711][ T6181] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 106.970731][ T6181] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 106.971769][ T6180] done [ 106.971785][ T6180] bcachefs (loop3): delete_dead_inodes... [ 106.978642][ T6181] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 106.978663][ T6181] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 106.979701][ T6181] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.979839][ T6181] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.980403][ T6181] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.980512][ T6181] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.980926][ T6181] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.981029][ T6181] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.981247][ T6181] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.981367][ T6181] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.981560][ T6181] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.981661][ T6181] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.981865][ T6181] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.981971][ T6181] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.982168][ T6181] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.982268][ T6181] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 106.982468][ T6181] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 106.982567][ T6181] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 106.982770][ T6181] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 106.982872][ T6181] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 106.983066][ T6181] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 106.983170][ T6181] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 106.983404][ T6181] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 106.983421][ T6181] Ratelimiting new instances of previous error [ 106.983543][ T6181] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 106.983559][ T6181] Ratelimiting new instances of previous error [ 107.004911][ T6180] done [ 107.004929][ T6180] bcachefs (loop3): set_fs_needs_rebalance... [pid 6320] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6319] <... write resumed>) = 16777216 [pid 6319] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6319] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6319] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6319] close(3) = 0 [pid 6319] close(4) = 0 [ 107.025237][ T6181] done [ 107.030843][ T6181] bcachefs (loop4): going read-write [ 107.059427][ T6181] bcachefs (loop4): journal_replay... [ 107.067667][ T6180] done [ 107.091353][ T6180] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 107.091381][ T6180] bcachefs (loop3): check_alloc_info... [ 107.096240][ T6182] loop2: detected capacity change from 0 to 32768 [ 107.116802][ T6180] done [ 107.116822][ T6180] bcachefs (loop3): check_lrus... [ 107.120171][ T6181] done [pid 6319] mkdir("./file1", 0777) = 0 [ 107.120947][ T6181] bcachefs (loop4): check_alloc_info... [ 107.122789][ T6181] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 107.122808][ T6181] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 107.122821][ T6181] gen 0 oldest_gen 0 data_type need_discard [ 107.122833][ T6181] journal_seq_nonempty 6 [ 107.122845][ T6181] journal_seq_empty 0 [ 107.122856][ T6181] need_discard 1 [ 107.122866][ T6181] need_inc_gen 1 [ 107.122878][ T6181] dirty_sectors 0 [ 107.122889][ T6181] stripe_sectors 0 [ 107.122900][ T6181] cached_sectors 0 [ 107.122910][ T6181] stripe 0 [ 107.122920][ T6181] stripe_redundancy 0 [ 107.122932][ T6181] io_time[READ] 1 [ 107.122942][ T6181] io_time[WRITE] 768 [ 107.122952][ T6181] fragmentation 0 [ 107.122962][ T6181] bp_start 8 [ 107.122974][ T6181] , fixing [ 107.133307][ T6191] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 107.133331][ T6191] scheduling recovery pass check_extents_to_backpointers (17) [ 107.141629][ T6180] done [ 107.151510][ T6180] bcachefs (loop3): done starting filesystem [ 107.214681][ T6181] done [ 107.216749][ T6181] bcachefs (loop4): check_lrus... done [ 107.219688][ T6181] bcachefs (loop4): check_btree_backpointers... done [ 107.229456][ T6181] bcachefs (loop4): check_backpointers_to_extents... [ 107.232735][ T5840] bcachefs (loop3): shutting down [ 107.232754][ T5840] bcachefs (loop3): going read-only [ 107.251573][ T6181] done [ 107.261761][ T6181] bcachefs (loop4): check_extents_to_backpointers... [ 107.263231][ T6181] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 107.264077][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 107.271198][ T6181] done [ 107.272001][ T6181] bcachefs (loop4): check_alloc_to_lru_refs... [ 107.273914][ T6181] bcachefs (loop4): missing fragmentation lru entry [ 107.273932][ T6181] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 107.273945][ T6181] gen 0 oldest_gen 0 data_type user [ 107.273957][ T6181] journal_seq_nonempty 5 [ 107.273967][ T6181] journal_seq_empty 134217728 [ 107.273978][ T6181] need_discard 1 [ 107.273988][ T6181] need_inc_gen 1 [ 107.273999][ T6181] dirty_sectors 16 [ 107.274010][ T6181] stripe_sectors 1802251 [ 107.274021][ T6181] cached_sectors 0 [ 107.274032][ T6181] stripe 0 [ 107.274042][ T6181] stripe_redundancy 0 [ 107.274052][ T6181] io_time[READ] 1 [ 107.274062][ T6181] io_time[WRITE] 512 [ 107.274074][ T6181] fragmentation 0 [ 107.274084][ T6181] bp_start 7 [ 107.274094][ T6181] , fixing [ 107.290940][ T6181] done [ 107.307516][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 31 [ 107.310847][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 31 [ 107.312035][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 32 [ 107.314107][ T5840] bcachefs (loop3): marking filesystem clean [ 107.315019][ T6181] bcachefs (loop4): bucket_gens_init... [ 107.327519][ T6182] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 107.327558][ T6182] allowing incompatible features above 0.0: (unknown version) [ 107.327573][ T6182] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 107.327601][ T6182] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 107.327730][ T6182] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 107.327964][ T6182] bcachefs (loop2): Version upgrade required: [ 107.327964][ T6182] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 107.327964][ T6182] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 107.327964][ T6182] 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,check_rebalance_work,set_fs_needs_rebalance [ 107.330818][ T6181] done [ 107.331486][ T6181] bcachefs (loop4): check_snapshot_trees... done [ 107.332261][ T6181] bcachefs (loop4): check_snapshots... [ 107.332911][ T6181] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 107.332929][ T6181] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 107.382982][ T6181] done [ 107.384394][ T6181] bcachefs (loop4): check_subvols... done [ 107.440881][ T6181] bcachefs (loop4): check_subvol_children... done [ 107.442380][ T6181] bcachefs (loop4): delete_dead_snapshots... done [ 107.443116][ T6181] bcachefs (loop4): check_inodes... [ 107.444271][ T6181] bcachefs (loop4): inode points to missing dirent [ 107.444289][ T6181] inum: 4098:4294967295 [ 107.444299][ T6181] mode=40755 [ 107.444309][ T6181] flags=(15300000) [ 107.444318][ T6181] journal_seq=4 [ 107.444328][ T6181] hash_seed=ece93825deac2443 [ 107.444339][ T6181] hash_type=siphash [ 107.444349][ T6181] bi_size=0 [ 107.444358][ T6181] bi_sectors=0 [ 107.444368][ T6181] bi_version=0 [ 107.444377][ T6181] bi_atime=2770562249 [ 107.444388][ T6181] bi_ctime=2780562352 [ 107.444397][ T6181] bi_mtime=2780562352 [ 107.444409][ T6181] bi_otime=2770562249 [ 107.444419][ T6181] bi_uid=0 [ 107.444428][ T6181] bi_gid=0 [ 107.444438][ T6181] bi_nlink=0 [ 107.444447][ T6181] bi_generation=0 [ 107.444455][ T6181] bi_dev=0 [ 107.444465][ T6181] bi_data_checksum=0 [ 107.444475][ T6181] bi_compression=0 [ 107.444484][ T6181] bi_project=0 [ 107.444494][ T6181] bi_background_compression=0 [ 107.444504][ T6181] bi_data_replicas=0 [ 107.444514][ T6181] bi_promote_target=0 [ 107.444525][ T6181] bi_foreground_target=64 [ 107.444536][ T6181] bi_background_target=1 [pid 6319] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 107.444546][ T6181] bi_erasure_code=0 [ 107.444556][ T6181] bi_fields_set=0 [ 107.444566][ T6181] bi_dir=0 [ 107.444575][ T6181] bi_dir_offset=32 [ 107.444585][ T6181] bi_subvol=0 [ 107.444594][ T6181] bi_parent_subvol=0 [ 107.444604][ T6181] bi_nocow=0 [ 107.444614][ T6181] bi_depth=0 [ 107.444624][ T6181] bi_inodes_32bit=0 [ 107.444634][ T6181] bi_casefold=0, fixing [pid 6319] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6319] chdir("./file1") = 0 [pid 6319] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6319] ioctl(4, LOOP_CLR_FD) = 0 [pid 6319] close(4) = 0 [pid 6319] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6319] exit_group(0) = ? [pid 6319] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6319, si_uid=0, si_status=0, si_utime=15 /* 0.15 s */, si_stime=44 /* 0.44 s */} --- [pid 5841] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5841] umount2("./10", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./10", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 107.457451][ T6182] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 107.457485][ T6182] size != 0, deleting [ 107.458314][ T6182] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 107.464297][ T6181] done [ 107.465012][ T6181] bcachefs (loop4): check_extents... [ 107.470152][ T5840] bcachefs (loop3): shutdown complete [ 107.471657][ T6182] bcachefs (loop2): check_topology... done [ 107.490409][ T6182] bcachefs (loop2): accounting_read... [ 107.490486][ T6181] done [ 107.490499][ T6181] bcachefs (loop4): check_indirect_extents... done [ 107.499733][ T6181] bcachefs (loop4): check_dirents... [ 107.501505][ T6181] bcachefs (loop4): directory with missing backpointer [ 107.501523][ T6181] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 107.501537][ T6181] inum: 4098:4294967295 [ 107.501547][ T6181] mode=40755 [ 107.501557][ T6181] flags=(11300000) [ 107.501567][ T6181] journal_seq=25 [ 107.501578][ T6181] hash_seed=ece93825deac2443 [ 107.501588][ T6181] hash_type=siphash [ 107.501598][ T6181] bi_size=0 [ 107.501608][ T6181] bi_sectors=0 [ 107.501618][ T6181] bi_version=0 [ 107.501627][ T6181] bi_atime=2770562249 [ 107.501637][ T6181] bi_ctime=2780562352 [ 107.501647][ T6181] bi_mtime=2780562352 [ 107.501657][ T6181] bi_otime=2770562249 [ 107.501667][ T6181] bi_uid=0 [ 107.501678][ T6181] bi_gid=0 [ 107.501688][ T6181] bi_nlink=0 [ 107.501697][ T6181] bi_generation=0 [ 107.501707][ T6181] bi_dev=0 [ 107.501717][ T6181] bi_data_checksum=0 [ 107.501727][ T6181] bi_compression=0 [ 107.501736][ T6181] bi_project=0 [ 107.501746][ T6181] bi_background_compression=0 [ 107.501757][ T6181] bi_data_replicas=0 [ 107.501767][ T6181] bi_promote_target=0 [ 107.501778][ T6181] bi_foreground_target=64 [ 107.501788][ T6181] bi_background_target=1 [ 107.501799][ T6181] bi_erasure_code=0 [ 107.501809][ T6181] bi_fields_set=0 [ 107.501818][ T6181] bi_dir=0 [ 107.505585][ T6181] bi_dir_offset=0 [ 107.505600][ T6181] bi_subvol=0 [ 107.505610][ T6181] bi_parent_subvol=0 [ 107.505620][ T6181] bi_nocow=0 [ 107.505630][ T6181] bi_depth=0 [ 107.505640][ T6181] bi_inodes_32bit=0 [ 107.505650][ T6181] bi_casefold=0, fixing [ 107.516366][ T6181] done [ 107.517056][ T6181] bcachefs (loop4): check_xattrs... done [ 107.518585][ T6181] bcachefs (loop4): check_root... done [ 107.519671][ T6181] bcachefs (loop4): check_unreachable_inodes... done [ 107.523155][ T6181] bcachefs (loop4): check_subvolume_structure... done [pid 5841] umount2("./10/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6320] <... mount resumed>) = 0 [pid 6320] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6320] chdir("./file1") = 0 [pid 6320] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6320] ioctl(4, LOOP_CLR_FD) = 0 [pid 6320] close(4) = 0 [pid 6320] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 107.523953][ T6181] bcachefs (loop4): check_directory_structure... done [ 107.524680][ T6181] bcachefs (loop4): check_nlinks... [ 107.525379][ T6181] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 107.526430][ T6181] done [ 107.527059][ T6181] bcachefs (loop4): check_rebalance_work... done [ 107.528149][ T6181] bcachefs (loop4): resume_logged_ops... done [ 107.531259][ T6181] bcachefs (loop4): delete_dead_inodes... [ 107.543663][ T6182] done [ 107.543683][ T6182] bcachefs (loop2): alloc_read... done [pid 6320] exit_group(0) = ? [pid 6320] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6320, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=31 /* 0.31 s */} --- [pid 5839] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 107.544812][ T6182] bcachefs (loop2): snapshots_read... done [ 107.546104][ T6182] bcachefs (loop2): check_allocations... [ 107.554966][ T6182] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 107.554989][ T6182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 107.557027][ T6182] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 107.557046][ T6182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 107.558312][ T6182] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 107.558329][ T6182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 107.560006][ T6182] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 107.560024][ T6182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 107.560860][ T6181] done [ 107.570206][ T6182] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 107.570226][ T6182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 107.571193][ T6182] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.571311][ T6182] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.571845][ T6182] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.571950][ T6182] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.572374][ T6182] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.572489][ T6182] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.572691][ T6182] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.572795][ T6182] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.572999][ T6182] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.573104][ T6182] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.573303][ T6182] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.573427][ T6182] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.574558][ T6182] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.574667][ T6182] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 107.574876][ T6182] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 107.574982][ T6182] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 107.575212][ T6182] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 107.575321][ T6182] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 107.575557][ T6182] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 107.575664][ T6182] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 107.575893][ T6182] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 107.575910][ T6182] Ratelimiting new instances of previous error [ 107.576075][ T6182] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 107.576093][ T6182] Ratelimiting new instances of previous error [ 107.589079][ T6181] bcachefs (loop4): set_fs_needs_rebalance... done [ 107.616424][ T6182] done [ 107.618041][ T6201] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 5839] umount2("./11/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./10/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 107.618062][ T6201] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 107.624004][ T6181] bcachefs (loop4): check_extents_to_backpointers... [ 107.624948][ T6181] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 107.626667][ T6182] bcachefs (loop2): going read-write [ 107.632763][ T6181] done [ 107.642537][ T6182] bcachefs (loop2): journal_replay... [ 107.661178][ T6181] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [pid 5841] newfstatat(AT_FDCWD, "./10/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./10/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./10/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./10/file1") = 0 [pid 5841] umount2("./10/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./10/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./10/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./10") = 0 [pid 5841] mkdir("./11", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6351 ./strace-static-x86_64: Process 6351 attached [ 107.661207][ T6181] bcachefs (loop4): check_alloc_info... done [ 107.679797][ T6181] bcachefs (loop4): check_lrus... done [ 107.680941][ T6181] bcachefs (loop4): check_btree_backpointers... done [ 107.682161][ T6181] bcachefs (loop4): check_backpointers_to_extents... done [ 107.690399][ T6181] bcachefs (loop4): check_extents_to_backpointers... done [ 107.693679][ T6181] bcachefs (loop4): check_alloc_to_lru_refs... done [ 107.695870][ T6181] bcachefs (loop4): bucket_gens_init... done [ 107.700567][ T6181] bcachefs (loop4): check_snapshot_trees... done [pid 6351] set_robust_list(0x5555901c6760, 24) = 0 [pid 6351] chdir("./11") = 0 [pid 6351] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6351] setpgid(0, 0) = 0 [pid 6351] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6351] write(3, "1000", 4) = 4 [pid 6351] close(3) = 0 [pid 6351] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6351] write(1, "executing program\n", 18) = 18 [pid 6351] memfd_create("syzkaller", 0) = 3 [ 107.703498][ T6181] bcachefs (loop4): check_snapshots... done [ 107.709708][ T6181] bcachefs (loop4): check_subvols... done [ 107.710591][ T6181] bcachefs (loop4): check_subvol_children... done [ 107.711716][ T6181] bcachefs (loop4): delete_dead_snapshots... done [ 107.712383][ T6181] bcachefs (loop4): check_inodes... done [ 107.713521][ T6181] bcachefs (loop4): check_extents... done [ 107.714963][ T6181] bcachefs (loop4): check_indirect_extents... done [ 107.720850][ T6181] bcachefs (loop4): check_dirents... done [pid 6351] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 107.723235][ T6181] bcachefs (loop4): check_xattrs... done [ 107.725102][ T6181] bcachefs (loop4): check_root... [ 107.732896][ T6182] done [ 107.733154][ T6181] done [ 107.733166][ T6181] bcachefs (loop4): check_unreachable_inodes... [ 107.734122][ T6182] bcachefs (loop2): check_alloc_info... [ 107.735995][ T6182] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 107.736013][ T6182] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 107.736025][ T6182] gen 0 oldest_gen 0 data_type need_discard [ 107.736036][ T6182] journal_seq_nonempty 6 [ 107.736048][ T6182] journal_seq_empty 0 [ 107.736058][ T6182] need_discard 1 [ 107.736069][ T6182] need_inc_gen 1 [ 107.736079][ T6182] dirty_sectors 0 [ 107.736089][ T6182] stripe_sectors 0 [ 107.736098][ T6182] cached_sectors 0 [ 107.736109][ T6182] stripe 0 [ 107.736119][ T6182] stripe_redundancy 0 [ 107.736129][ T6182] io_time[READ] 1 [ 107.736141][ T6182] io_time[WRITE] 768 [ 107.736151][ T6182] fragmentation 0 [ 107.736161][ T6182] bp_start 8 [ 107.736171][ T6182] , fixing [ 107.740447][ T6181] done [ 107.740462][ T6181] bcachefs (loop4): check_subvolume_structure... done [ 107.743029][ T6181] bcachefs (loop4): check_directory_structure... done [ 107.743768][ T6181] bcachefs (loop4): check_nlinks... done [ 107.746103][ T6181] bcachefs (loop4): check_rebalance_work... done [ 107.746868][ T6181] bcachefs (loop4): resume_logged_ops... done [ 107.747619][ T6181] bcachefs (loop4): delete_dead_inodes... done [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./11/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./11/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./11/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./11/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./11/file1") = 0 [pid 5839] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./11/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./11") = 0 [pid 5839] mkdir("./12", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 107.748371][ T6181] bcachefs (loop4): set_fs_needs_rebalance... done [ 107.757727][ T6181] bcachefs (loop4): done starting filesystem [ 107.812281][ T6182] done [ 107.822801][ T6182] bcachefs (loop2): check_lrus... done [ 107.830452][ T6182] bcachefs (loop2): check_btree_backpointers... done [ 107.849968][ T6182] bcachefs (loop2): check_backpointers_to_extents... done [ 107.854727][ T6182] bcachefs (loop2): check_extents_to_backpointers... [ 107.856177][ T6182] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6352 ./strace-static-x86_64: Process 6352 attached [pid 6352] set_robust_list(0x5555901c6760, 24) = 0 [pid 6352] chdir("./12") = 0 [ 107.870543][ T6182] done [ 107.871385][ T6182] bcachefs (loop2): check_alloc_to_lru_refs... [ 107.876458][ T5841] bcachefs (loop4): shutting down [ 107.876477][ T5841] bcachefs (loop4): going read-only [ 107.876506][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 107.880143][ T6182] bcachefs (loop2): missing fragmentation lru entry [ 107.880173][ T6182] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 107.880187][ T6182] gen 0 oldest_gen 0 data_type user [ 107.880198][ T6182] journal_seq_nonempty 5 [pid 6352] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6352] setpgid(0, 0) = 0 [pid 6352] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6352] write(3, "1000", 4) = 4 [pid 6352] close(3) = 0 [pid 6352] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6352] write(1, "executing program\n", 18executing program ) = 18 [pid 6352] memfd_create("syzkaller", 0) = 3 [pid 6352] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 107.880208][ T6182] journal_seq_empty 134217728 [ 107.880218][ T6182] need_discard 1 [ 107.880228][ T6182] need_inc_gen 1 [ 107.880238][ T6182] dirty_sectors 16 [ 107.880248][ T6182] stripe_sectors 1802251 [ 107.880259][ T6182] cached_sectors 0 [ 107.880269][ T6182] stripe 0 [ 107.880281][ T6182] stripe_redundancy 0 [ 107.880290][ T6182] io_time[READ] 1 [ 107.880300][ T6182] io_time[WRITE] 512 [ 107.880311][ T6182] fragmentation 0 [ 107.880321][ T6182] bp_start 7 [ 107.880805][ T6182] , fixing [ 107.892956][ T6182] done [ 107.899787][ T6182] bcachefs (loop2): bucket_gens_init... done [ 107.920779][ T6182] bcachefs (loop2): check_snapshot_trees... done [ 107.921634][ T6182] bcachefs (loop2): check_snapshots... [ 107.922249][ T6182] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 107.922266][ T6182] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 107.952366][ T6182] done [ 107.953151][ T6182] bcachefs (loop2): check_subvols... done [ 107.961363][ T6182] bcachefs (loop2): check_subvol_children... done [ 107.962354][ T6182] bcachefs (loop2): delete_dead_snapshots... done [ 107.963101][ T6182] bcachefs (loop2): check_inodes... [ 107.964237][ T6182] bcachefs (loop2): inode points to missing dirent [ 107.964255][ T6182] inum: 4098:4294967295 [ 107.964265][ T6182] mode=40755 [ 107.964275][ T6182] flags=(15300000) [ 107.964284][ T6182] journal_seq=4 [ 107.964294][ T6182] hash_seed=ece93825deac2443 [ 107.964304][ T6182] hash_type=siphash [ 107.964314][ T6182] bi_size=0 [ 107.964323][ T6182] bi_sectors=0 [ 107.964333][ T6182] bi_version=0 [ 107.964342][ T6182] bi_atime=2770562249 [ 107.964352][ T6182] bi_ctime=2780562352 [ 107.964362][ T6182] bi_mtime=2780562352 [ 107.964372][ T6182] bi_otime=2770562249 [ 107.964382][ T6182] bi_uid=0 [ 107.964391][ T6182] bi_gid=0 [ 107.964397][ T6182] bi_nlink=0 [ 107.964405][ T6182] bi_generation=0 [ 107.964414][ T6182] bi_dev=0 [ 107.964424][ T6182] bi_data_checksum=0 [ 107.964435][ T6182] bi_compression=0 [ 107.964445][ T6182] bi_project=0 [ 107.964455][ T6182] bi_background_compression=0 [ 107.964465][ T6182] bi_data_replicas=0 [ 107.964477][ T6182] bi_promote_target=0 [ 107.964486][ T6182] bi_foreground_target=64 [ 107.964496][ T6182] bi_background_target=1 [ 107.964507][ T6182] bi_erasure_code=0 [ 107.964517][ T6182] bi_fields_set=0 [pid 6351] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [ 107.964527][ T6182] bi_dir=0 [ 107.964536][ T6182] bi_dir_offset=32 [ 107.964546][ T6182] bi_subvol=0 [ 107.964555][ T6182] bi_parent_subvol=0 [ 107.964565][ T6182] bi_nocow=0 [ 107.964574][ T6182] bi_depth=0 [ 107.964583][ T6182] bi_inodes_32bit=0 [ 107.964592][ T6182] bi_casefold=0, fixing [ 107.966225][ T6182] done [ 107.966895][ T6182] bcachefs (loop2): check_extents... done [ 107.968398][ T6182] bcachefs (loop2): check_indirect_extents... done [ 107.990800][ T6182] bcachefs (loop2): check_dirents... [pid 6352] 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 6351] <... write resumed>) = 16777216 [pid 6351] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6351] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6351] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6351] close(3) = 0 [pid 6351] close(4) = 0 [pid 6351] mkdir("./file1", 0777) = 0 [ 107.992591][ T6182] bcachefs (loop2): directory with missing backpointer [ 107.992609][ T6182] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 107.992625][ T6182] inum: 4098:4294967295 [ 107.992635][ T6182] mode=40755 [ 107.992644][ T6182] flags=(11300000) [ 107.992654][ T6182] journal_seq=23 [ 107.992664][ T6182] hash_seed=ece93825deac2443 [ 107.992674][ T6182] hash_type=siphash [ 107.992692][ T6182] bi_size=0 [ 107.992701][ T6182] bi_sectors=0 [ 107.992711][ T6182] bi_version=0 [ 107.992720][ T6182] bi_atime=2770562249 [ 107.992730][ T6182] bi_ctime=2780562352 [ 107.992740][ T6182] bi_mtime=2780562352 [ 107.992749][ T6182] bi_otime=2770562249 [ 107.992759][ T6182] bi_uid=0 [ 107.992768][ T6182] bi_gid=0 [ 107.992777][ T6182] bi_nlink=0 [ 107.992787][ T6182] bi_generation=0 [ 107.992804][ T6182] bi_dev=0 [ 107.992814][ T6182] bi_data_checksum=0 [ 107.992823][ T6182] bi_compression=0 [ 107.992833][ T6182] bi_project=0 [ 107.992843][ T6182] bi_background_compression=0 [ 107.992853][ T6182] bi_data_replicas=0 [ 107.992870][ T6182] bi_promote_target=0 [ 107.992880][ T6182] bi_foreground_target=64 [ 107.992890][ T6182] bi_background_target=1 [ 107.992901][ T6182] bi_erasure_code=0 [ 107.992910][ T6182] bi_fields_set=0 [ 107.992920][ T6182] bi_dir=0 [ 107.992935][ T6182] bi_dir_offset=0 [ 107.992945][ T6182] bi_subvol=0 [ 107.992954][ T6182] bi_parent_subvol=0 [ 107.992964][ T6182] bi_nocow=0 [ 107.992973][ T6182] bi_depth=0 [ 107.992983][ T6182] bi_inodes_32bit=0 [ 107.993000][ T6182] bi_casefold=0, fixing [ 108.003065][ T6182] done [ 108.003908][ T6182] bcachefs (loop2): check_xattrs... done [ 108.005190][ T6182] bcachefs (loop2): check_root... done [ 108.007071][ T6182] bcachefs (loop2): check_unreachable_inodes... done [ 108.013677][ T6182] bcachefs (loop2): check_subvolume_structure... [ 108.014378][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 36 [ 108.014525][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 36 [ 108.019817][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 37 [ 108.022076][ T5841] bcachefs (loop4): marking filesystem clean [ 108.022979][ T6182] done [ 108.022994][ T6182] bcachefs (loop2): check_directory_structure... done [ 108.023771][ T6182] bcachefs (loop2): check_nlinks... [ 108.024519][ T6182] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 108.030814][ T6182] done [ 108.032024][ T6182] bcachefs (loop2): check_rebalance_work... done [ 108.036189][ T6182] bcachefs (loop2): resume_logged_ops... done [ 108.036965][ T6182] bcachefs (loop2): delete_dead_inodes... done [ 108.063291][ T6182] bcachefs (loop2): set_fs_needs_rebalance... done [ 108.102831][ T6211] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 108.102857][ T6211] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 108.106954][ T6182] bcachefs (loop2): check_extents_to_backpointers... [pid 6351] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6352] <... write resumed>) = 16777216 [ 108.107957][ T6182] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 108.124557][ T6182] done [ 108.135244][ T6182] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 108.135273][ T6182] bcachefs (loop2): check_alloc_info... done [ 108.145043][ T6182] bcachefs (loop2): check_lrus... done [ 108.146192][ T6182] bcachefs (loop2): check_btree_backpointers... done [ 108.147477][ T6182] bcachefs (loop2): check_backpointers_to_extents... done [pid 6352] munmap(0x7fbbeb93a000, 138412032 [pid 5840] kill(-6315, SIGKILL) = 0 [pid 5840] kill(6315, SIGKILL) = 0 [pid 6352] <... munmap resumed>) = 0 [pid 6352] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6352] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6352] close(3) = 0 [pid 6352] close(4) = 0 [pid 6352] mkdir("./file1", 0777) = 0 [ 108.148838][ T6182] bcachefs (loop2): check_extents_to_backpointers... done [ 108.155578][ T6182] bcachefs (loop2): check_alloc_to_lru_refs... done [ 108.158202][ T6182] bcachefs (loop2): bucket_gens_init... done [ 108.167378][ T6182] bcachefs (loop2): check_snapshot_trees... done [ 108.171475][ T6182] bcachefs (loop2): check_snapshots... done [ 108.175050][ T6182] bcachefs (loop2): check_subvols... done [ 108.182378][ T6182] bcachefs (loop2): check_subvol_children... done [ 108.183135][ T6182] bcachefs (loop2): delete_dead_snapshots... done [ 108.184065][ T6182] bcachefs (loop2): check_inodes... done [ 108.185203][ T6182] bcachefs (loop2): check_extents... [ 108.186726][ T5841] bcachefs (loop4): shutdown complete [ 108.192438][ T6182] done [ 108.192454][ T6182] bcachefs (loop2): check_indirect_extents... done [ 108.194655][ T6182] bcachefs (loop2): check_dirents... done [ 108.202750][ T6182] bcachefs (loop2): check_xattrs... done [ 108.212629][ T6182] bcachefs (loop2): check_root... done [ 108.213823][ T6182] bcachefs (loop2): check_unreachable_inodes... done [ 108.214723][ T6182] bcachefs (loop2): check_subvolume_structure... done [ 108.215498][ T6182] bcachefs (loop2): check_directory_structure... done [ 108.216273][ T6182] bcachefs (loop2): check_nlinks... done [ 108.217583][ T6182] bcachefs (loop2): check_rebalance_work... done [ 108.218542][ T6182] bcachefs (loop2): resume_logged_ops... done [ 108.231667][ T6182] bcachefs (loop2): delete_dead_inodes... done [ 108.238407][ T6182] bcachefs (loop2): set_fs_needs_rebalance... done [ 108.243849][ T6182] bcachefs (loop2): done starting filesystem [ 108.410118][ T5839] bcachefs (loop2): shutting down [ 108.410143][ T5839] bcachefs (loop2): going read-only [ 108.410171][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 108.465081][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 108.465241][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 108.470216][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 108.472022][ T5839] bcachefs (loop2): marking filesystem clean [ 108.565916][ T5839] bcachefs (loop2): shutdown complete [ 109.231709][ T6213] loop3: detected capacity change from 0 to 32768 [ 109.448264][ T6213] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 109.448293][ T6213] allowing incompatible features above 0.0: (unknown version) [ 109.448306][ T6213] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 6352] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5840] openat(AT_FDCWD, "/sys/fs/fuse/connections", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5840] newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0 [pid 5840] getdents64(3, 0x5555901c77f0 /* 2 entries */, 32768) = 48 [pid 5840] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5840] close(3) = 0 [ 109.448336][ T6213] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 109.448468][ T6213] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 109.448707][ T6213] bcachefs (loop3): Version upgrade required: [ 109.448707][ T6213] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 109.448707][ T6213] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 109.448707][ T6213] 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,check_rebalance_work,set_fs_needs_rebalance [ 109.520502][ T6213] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 109.520527][ T6213] size != 0, deleting [ 109.540747][ T6213] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 109.544306][ T6213] bcachefs (loop3): check_topology... done [ 109.550888][ T6213] bcachefs (loop3): accounting_read... done [ 109.583578][ T6213] bcachefs (loop3): alloc_read... done [ 109.584430][ T6213] bcachefs (loop3): snapshots_read... done [ 109.585190][ T6213] bcachefs (loop3): check_allocations... [ 109.590616][ T6213] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 109.590640][ T6213] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 109.593237][ T6213] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 109.593254][ T6213] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 109.594593][ T6213] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 109.594611][ T6213] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 109.596140][ T6213] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 109.596157][ T6213] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 109.612460][ T6213] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 109.612483][ T6213] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 109.613668][ T6213] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.613793][ T6213] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 109.614351][ T6213] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.614458][ T6213] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 109.614894][ T6213] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.615010][ T6213] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 109.615210][ T6213] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.615313][ T6213] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6351] <... mount resumed>) = 0 [pid 6351] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6351] chdir("./file1") = 0 [pid 6351] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6351] ioctl(4, LOOP_CLR_FD) = 0 [pid 6351] close(4) = 0 [pid 6351] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6351] exit_group(0) = ? [ 109.615512][ T6213] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.615614][ T6213] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 109.615818][ T6213] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.615921][ T6213] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 109.616126][ T6213] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.616229][ T6213] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 109.616424][ T6213] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 109.616528][ T6213] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 109.616727][ T6213] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6351] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6351, si_uid=0, si_status=0, si_utime=16 /* 0.16 s */, si_stime=40 /* 0.40 s */} --- [pid 5841] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5841] umount2("./11", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./11", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 109.616844][ T6213] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 109.617067][ T6213] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 109.617175][ T6213] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 109.617405][ T6213] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 109.617421][ T6213] Ratelimiting new instances of previous error [ 109.617562][ T6213] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 109.617579][ T6213] Ratelimiting new instances of previous error [ 109.670151][ T6213] done [ 109.672200][ T6213] bcachefs (loop3): going read-write [ 109.687371][ T6213] bcachefs (loop3): journal_replay... done [ 109.772472][ T6213] bcachefs (loop3): check_alloc_info... [ 109.774230][ T6213] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 109.774247][ T6213] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [pid 5841] umount2("./11/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6352] <... mount resumed>) = 0 [pid 6352] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6352] chdir("./file1") = 0 [pid 6352] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6352] ioctl(4, LOOP_CLR_FD) = 0 [ 109.774260][ T6213] gen 0 oldest_gen 0 data_type need_discard [ 109.774271][ T6213] journal_seq_nonempty 6 [ 109.774281][ T6213] journal_seq_empty 0 [ 109.774290][ T6213] need_discard 1 [ 109.774300][ T6213] need_inc_gen 1 [ 109.774319][ T6213] dirty_sectors 0 [ 109.774329][ T6213] stripe_sectors 0 [ 109.774340][ T6213] cached_sectors 0 [ 109.774350][ T6213] stripe 0 [ 109.774360][ T6213] stripe_redundancy 0 [pid 6352] close(4) = 0 [pid 6352] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6352] exit_group(0) = ? [pid 6352] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6352, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 109.774370][ T6213] io_time[READ] 1 [ 109.774380][ T6213] io_time[WRITE] 768 [ 109.774390][ T6213] fragmentation 0 [ 109.774399][ T6213] bp_start 8 [ 109.774409][ T6213] , fixing [ 109.820237][ T6213] done [ 109.861422][ T6213] bcachefs (loop3): check_lrus... done [ 109.862390][ T6213] bcachefs (loop3): check_btree_backpointers... done [ 109.867039][ T6213] bcachefs (loop3): check_backpointers_to_extents... done [ 109.879206][ T6213] bcachefs (loop3): check_extents_to_backpointers... [ 109.880798][ T6213] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 109.889554][ T6213] done [ 109.890263][ T6213] bcachefs (loop3): check_alloc_to_lru_refs... [ 109.892190][ T6213] bcachefs (loop3): missing fragmentation lru entry [ 109.892207][ T6213] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 109.892221][ T6213] gen 0 oldest_gen 0 data_type user [ 109.892231][ T6213] journal_seq_nonempty 5 [ 109.892242][ T6213] journal_seq_empty 134217728 [ 109.892252][ T6213] need_discard 1 [ 109.892262][ T6213] need_inc_gen 1 [ 109.892272][ T6213] dirty_sectors 16 [ 109.892283][ T6213] stripe_sectors 1802251 [ 109.892302][ T6213] cached_sectors 0 [ 109.892312][ T6213] stripe 0 [ 109.892321][ T6213] stripe_redundancy 0 [ 109.892332][ T6213] io_time[READ] 1 [ 109.892342][ T6213] io_time[WRITE] 512 [ 109.892351][ T6213] fragmentation 0 [ 109.892361][ T6213] bp_start 7 [ 109.892371][ T6213] , fixing [ 109.900889][ T6213] done [ 109.902557][ T6213] bcachefs (loop3): bucket_gens_init... done [ 109.911692][ T6213] bcachefs (loop3): check_snapshot_trees... done [ 109.920229][ T6213] bcachefs (loop3): check_snapshots... [ 109.920883][ T6213] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 109.920901][ T6213] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 109.950054][ T6213] done [ 109.950710][ T6213] bcachefs (loop3): check_subvols... done [ 109.952356][ T6213] bcachefs (loop3): check_subvol_children... done [ 109.953041][ T6213] bcachefs (loop3): delete_dead_snapshots... done [ 109.953716][ T6213] bcachefs (loop3): check_inodes... [ 109.954809][ T6213] bcachefs (loop3): inode points to missing dirent [ 109.954853][ T6213] inum: 4098:4294967295 [ 109.954863][ T6213] mode=40755 [ 109.954872][ T6213] flags=(15300000) [ 109.954882][ T6213] journal_seq=4 [ 109.954891][ T6213] hash_seed=ece93825deac2443 [ 109.954901][ T6213] hash_type=siphash [ 109.954913][ T6213] bi_size=0 [ 109.954922][ T6213] bi_sectors=0 [ 109.954929][ T6213] bi_version=0 [ 109.954939][ T6213] bi_atime=2770562249 [ 109.954949][ T6213] bi_ctime=2780562352 [ 109.954960][ T6213] bi_mtime=2780562352 [ 109.954970][ T6213] bi_otime=2770562249 [ 109.954980][ T6213] bi_uid=0 [ 109.954989][ T6213] bi_gid=0 [ 109.954998][ T6213] bi_nlink=0 [ 109.955007][ T6213] bi_generation=0 [ 109.955016][ T6213] bi_dev=0 [ 109.955025][ T6213] bi_data_checksum=0 [ 109.955035][ T6213] bi_compression=0 [ 109.955043][ T6213] bi_project=0 [ 109.955052][ T6213] bi_background_compression=0 [ 109.955063][ T6213] bi_data_replicas=0 [ 109.955072][ T6213] bi_promote_target=0 [ 109.955082][ T6213] bi_foreground_target=64 [ 109.955092][ T6213] bi_background_target=1 [ 109.955101][ T6213] bi_erasure_code=0 [ 109.955112][ T6213] bi_fields_set=0 [ 109.955123][ T6213] bi_dir=0 [ 109.955153][ T6213] bi_dir_offset=32 [ 109.955162][ T6213] bi_subvol=0 [ 109.955172][ T6213] bi_parent_subvol=0 [ 109.955182][ T6213] bi_nocow=0 [ 109.955191][ T6213] bi_depth=0 [ 109.955200][ T6213] bi_inodes_32bit=0 [ 109.955210][ T6213] bi_casefold=0, fixing [ 109.963842][ T6213] done [ 109.964632][ T6213] bcachefs (loop3): check_extents... done [ 109.974680][ T6213] bcachefs (loop3): check_indirect_extents... done [ 109.975474][ T6213] bcachefs (loop3): check_dirents... [ 109.977188][ T6213] bcachefs (loop3): directory with missing backpointer [ 109.977206][ T6213] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 109.977221][ T6213] inum: 4098:4294967295 [ 109.977231][ T6213] mode=40755 [ 109.977241][ T6213] flags=(11300000) [ 109.977251][ T6213] journal_seq=22 [ 109.977261][ T6213] hash_seed=ece93825deac2443 [ 109.977271][ T6213] hash_type=siphash [ 109.977295][ T6213] bi_size=0 [ 109.977305][ T6213] bi_sectors=0 [ 109.977315][ T6213] bi_version=0 [ 109.977324][ T6213] bi_atime=2770562249 [ 109.977334][ T6213] bi_ctime=2780562352 [ 109.977344][ T6213] bi_mtime=2780562352 [ 109.977354][ T6213] bi_otime=2770562249 [ 109.977364][ T6213] bi_uid=0 [ 109.977373][ T6213] bi_gid=0 [ 109.977382][ T6213] bi_nlink=0 [ 109.977392][ T6213] bi_generation=0 [ 109.977403][ T6213] bi_dev=0 [ 109.977412][ T6213] bi_data_checksum=0 [ 109.977422][ T6213] bi_compression=0 [ 109.977432][ T6213] bi_project=0 [ 109.977441][ T6213] bi_background_compression=0 [ 109.977451][ T6213] bi_data_replicas=0 [ 109.977461][ T6213] bi_promote_target=0 [pid 5839] umount2("./12/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./11/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./11/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./11/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./11/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./11/file1") = 0 [pid 5841] umount2("./11/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./11/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./11/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./11") = 0 [pid 5841] mkdir("./12", 0777) = 0 [ 109.977470][ T6213] bi_foreground_target=64 [ 109.977481][ T6213] bi_background_target=1 [ 109.977491][ T6213] bi_erasure_code=0 [ 109.977501][ T6213] bi_fields_set=0 [ 109.977510][ T6213] bi_dir=0 [ 109.977521][ T6213] bi_dir_offset=0 [ 109.977529][ T6213] bi_subvol=0 [ 109.977539][ T6213] bi_parent_subvol=0 [ 109.977549][ T6213] bi_nocow=0 [ 109.977558][ T6213] bi_depth=0 [ 109.977567][ T6213] bi_inodes_32bit=0 [ 109.977577][ T6213] bi_casefold=0, fixing [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6373 attached , child_tidptr=0x5555901c6750) = 6373 [pid 6373] set_robust_list(0x5555901c6760, 24) = 0 [pid 6373] chdir("./12") = 0 [pid 6373] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6373] setpgid(0, 0) = 0 [pid 6373] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6373] write(3, "1000", 4) = 4 [pid 6373] close(3) = 0 [pid 6373] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6373] write(1, "executing program\n", 18executing program ) = 18 [pid 6373] memfd_create("syzkaller", 0) = 3 [pid 6373] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 109.986462][ T6214] loop4: detected capacity change from 0 to 32768 [ 110.017098][ T6213] done [ 110.019444][ T6213] bcachefs (loop3): check_xattrs... done [ 110.028256][ T6213] bcachefs (loop3): check_root... done [ 110.031994][ T6213] bcachefs (loop3): check_unreachable_inodes... done [ 110.034389][ T6213] bcachefs (loop3): check_subvolume_structure... done [ 110.035725][ T6213] bcachefs (loop3): check_directory_structure... done [ 110.037917][ T6213] bcachefs (loop3): check_nlinks... [ 110.038653][ T6213] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 110.041654][ T6213] done [ 110.044734][ T6213] bcachefs (loop3): check_rebalance_work... done [ 110.047495][ T6213] bcachefs (loop3): resume_logged_ops... done [ 110.051168][ T6213] bcachefs (loop3): delete_dead_inodes... done [ 110.079445][ T6213] bcachefs (loop3): set_fs_needs_rebalance... [ 110.216463][ T6214] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./12/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./12/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./12/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./12/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./12/file1") = 0 [pid 5839] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./12/binderfs") = 0 [ 110.216493][ T6214] allowing incompatible features above 0.0: (unknown version) [ 110.216506][ T6214] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 110.216534][ T6214] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 110.216667][ T6214] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 110.216901][ T6214] bcachefs (loop4): Version upgrade required: [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./12") = 0 [pid 5839] mkdir("./13", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6374 ./strace-static-x86_64: Process 6374 attached [pid 6374] set_robust_list(0x5555901c6760, 24) = 0 [ 110.216901][ T6214] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 110.216901][ T6214] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6374] chdir("./13") = 0 [pid 6374] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6374] setpgid(0, 0) = 0 [ 110.216901][ T6214] 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,check_rebalance_work,set_fs_needs_rebalance [ 110.266507][ T6214] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 110.266534][ T6214] size != 0, deleting [ 110.267361][ T6214] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 110.269306][ T6224] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 6374] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6373] 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 6374] write(3, "1000", 4) = 4 [pid 6374] close(3) = 0 [pid 6374] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6374] write(1, "executing program\n", 18) = 18 [pid 6374] memfd_create("syzkaller", 0) = 3 [pid 6374] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 110.269324][ T6224] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 110.273970][ T6214] bcachefs (loop4): check_topology... [ 110.276487][ T6213] done [ 110.277659][ T6213] bcachefs (loop3): check_extents_to_backpointers... [ 110.278550][ T6213] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 110.281170][ T6214] done [ 110.281195][ T6214] bcachefs (loop4): accounting_read... done [ 110.369078][ T6214] bcachefs (loop4): alloc_read... [ 110.373414][ T6213] done [ 110.380235][ T6214] done [ 110.380254][ T6214] bcachefs (loop4): snapshots_read... done [ 110.381284][ T6214] bcachefs (loop4): check_allocations... [ 110.383692][ T6214] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 110.383713][ T6214] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 110.386008][ T6213] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 110.386029][ T6213] bcachefs (loop3): check_alloc_info... [ 110.402394][ T6214] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 110.402424][ T6214] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 110.405104][ T6214] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 110.405123][ T6214] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 110.406709][ T6214] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 110.406728][ T6214] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 110.407818][ T6213] done [ 110.407832][ T6213] bcachefs (loop3): check_lrus... done [ 110.410781][ T6213] bcachefs (loop3): check_btree_backpointers... [ 110.416879][ T6214] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 110.416899][ T6214] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 110.417892][ T6214] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.418025][ T6214] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.418600][ T6214] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.418704][ T6214] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.419107][ T6214] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.419668][ T6213] done [ 110.419684][ T6213] bcachefs (loop3): check_backpointers_to_extents... done [ 110.422153][ T6213] bcachefs (loop3): check_extents_to_backpointers... done [ 110.424481][ T6213] bcachefs (loop3): check_alloc_to_lru_refs... done [ 110.426332][ T6214] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6374] 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 6373] <... write resumed>) = 16777216 [pid 6373] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6373] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6373] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6373] close(3) = 0 [pid 6373] close(4) = 0 [pid 6373] mkdir("./file1", 0777) = 0 [ 110.426584][ T6214] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.426692][ T6214] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.426897][ T6214] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.427002][ T6214] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.427215][ T6214] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.427321][ T6214] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.427521][ T6214] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.427626][ T6214] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.427827][ T6214] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.427931][ T6214] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 110.428131][ T6214] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 110.428244][ T6214] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 110.428444][ T6214] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 110.428550][ T6214] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 110.428778][ T6214] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 110.428794][ T6214] Ratelimiting new instances of previous error [ 110.428925][ T6214] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 110.428941][ T6214] Ratelimiting new instances of previous error [ 110.432475][ T6213] bcachefs (loop3): bucket_gens_init... [ 110.436875][ T6218] loop2: detected capacity change from 0 to 32768 [ 110.439602][ T6213] done [ 110.440329][ T6213] bcachefs (loop3): check_snapshot_trees... done [ 110.452947][ T6213] bcachefs (loop3): check_snapshots... done [ 110.453905][ T6213] bcachefs (loop3): check_subvols... done [ 110.456435][ T6213] bcachefs (loop3): check_subvol_children... done [ 110.457055][ T6213] bcachefs (loop3): delete_dead_snapshots... done [ 110.457776][ T6213] bcachefs (loop3): check_inodes... done [ 110.459009][ T6213] bcachefs (loop3): check_extents... done [ 110.465056][ T6213] bcachefs (loop3): check_indirect_extents... done [ 110.465680][ T6213] bcachefs (loop3): check_dirents... done [ 110.467136][ T6213] bcachefs (loop3): check_xattrs... done [ 110.470084][ T6213] bcachefs (loop3): check_root... done [ 110.472846][ T6213] bcachefs (loop3): check_unreachable_inodes... done [ 110.480940][ T6213] bcachefs (loop3): check_subvolume_structure... done [ 110.483705][ T6213] bcachefs (loop3): check_directory_structure... done [ 110.485410][ T6213] bcachefs (loop3): check_nlinks... done [ 110.487904][ T6213] bcachefs (loop3): check_rebalance_work... done [pid 6373] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6374] <... write resumed>) = 16777216 [pid 6374] munmap(0x7fbbeb93a000, 138412032) = 0 [ 110.488787][ T6213] bcachefs (loop3): resume_logged_ops... done [ 110.491406][ T6213] bcachefs (loop3): delete_dead_inodes... done [ 110.492422][ T6213] bcachefs (loop3): set_fs_needs_rebalance... done [ 110.500152][ T6213] bcachefs (loop3): done starting filesystem [ 110.516044][ T6214] done [ 110.523157][ T6214] bcachefs (loop4): going read-write [ 110.540881][ T6214] bcachefs (loop4): journal_replay... done [ 110.678853][ T6214] bcachefs (loop4): check_alloc_info... [ 110.680682][ T6214] bcachefs (loop4): bucket incorrectly unset in need_discard btree [pid 6374] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6374] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6374] close(3) = 0 [pid 6374] close(4) = 0 [pid 6374] mkdir("./file1", 0777) = 0 [ 110.680702][ T6214] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 110.680713][ T6214] gen 0 oldest_gen 0 data_type need_discard [ 110.680726][ T6214] journal_seq_nonempty 6 [ 110.680736][ T6214] journal_seq_empty 0 [ 110.680746][ T6214] need_discard 1 [ 110.680756][ T6214] need_inc_gen 1 [ 110.680766][ T6214] dirty_sectors 0 [ 110.680776][ T6214] stripe_sectors 0 [ 110.680786][ T6214] cached_sectors 0 [ 110.680797][ T6214] stripe 0 [ 110.680807][ T6214] stripe_redundancy 0 [ 110.680817][ T6214] io_time[READ] 1 [ 110.680827][ T6214] io_time[WRITE] 768 [ 110.680839][ T6214] fragmentation 0 [ 110.680849][ T6214] bp_start 8 [ 110.680859][ T6214] , fixing [ 110.698637][ T6218] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 110.698664][ T6218] allowing incompatible features above 0.0: (unknown version) [ 110.698678][ T6218] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 110.698705][ T6218] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 110.698828][ T6218] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 110.699057][ T6218] bcachefs (loop2): Version upgrade required: [ 110.699057][ T6218] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 110.699057][ T6218] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 110.699057][ T6218] 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,check_rebalance_work,set_fs_needs_rebalance [ 110.736598][ T6214] done [ 110.737800][ T6214] bcachefs (loop4): check_lrus... done [ 110.758493][ T6218] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 110.758520][ T6218] size != 0, deleting [ 110.759840][ T6218] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 110.769051][ T6218] bcachefs (loop2): check_topology... [ 110.769411][ T6214] bcachefs (loop4): check_btree_backpointers... done [ 110.772660][ T6214] bcachefs (loop4): check_backpointers_to_extents... [ 110.780440][ T6218] done [ 110.780458][ T6218] bcachefs (loop2): accounting_read... [ 110.780903][ T6214] done [ 110.790696][ T6214] bcachefs (loop4): check_extents_to_backpointers... [ 110.792127][ T6214] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 110.800242][ T6214] done [ 110.800921][ T6214] bcachefs (loop4): check_alloc_to_lru_refs... [ 110.805196][ T6214] bcachefs (loop4): missing fragmentation lru entry [ 110.805214][ T6214] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 110.805227][ T6214] gen 0 oldest_gen 0 data_type user [ 110.805239][ T6214] journal_seq_nonempty 5 [ 110.805249][ T6214] journal_seq_empty 134217728 [ 110.805260][ T6214] need_discard 1 [ 110.805271][ T6214] need_inc_gen 1 [ 110.805281][ T6214] dirty_sectors 16 [ 110.805292][ T6214] stripe_sectors 1802251 [ 110.805302][ T6214] cached_sectors 0 [ 110.805312][ T6214] stripe 0 [ 110.805321][ T6214] stripe_redundancy 0 [ 110.805332][ T6214] io_time[READ] 1 [ 110.805343][ T6214] io_time[WRITE] 512 [ 110.805354][ T6214] fragmentation 0 [ 110.805364][ T6214] bp_start 7 [ 110.805373][ T6214] , fixing [ 110.808844][ T6218] done [ 110.808861][ T6218] bcachefs (loop2): alloc_read... done [ 110.809898][ T6218] bcachefs (loop2): snapshots_read... done [ 110.810607][ T6218] bcachefs (loop2): check_allocations... [ 110.814412][ T6214] done [ 110.815833][ T6214] bcachefs (loop4): bucket_gens_init... done [ 110.817733][ T6214] bcachefs (loop4): check_snapshot_trees... [ 110.818667][ T6218] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 110.818688][ T6218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 110.820643][ T6214] done [ 110.820659][ T6214] bcachefs (loop4): check_snapshots... [ 110.821253][ T6214] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 110.821271][ T6214] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 110.838047][ T6218] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 110.838069][ T6218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 110.847367][ T6218] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 6374] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 6373] <... mount resumed>) = 0 [pid 6373] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6373] chdir("./file1") = 0 [pid 6373] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6373] ioctl(4, LOOP_CLR_FD) = 0 [pid 6373] close(4) = 0 [pid 6373] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6373] exit_group(0) = ? [pid 6373] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6373, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=46 /* 0.46 s */} --- [pid 5841] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5841] umount2("./12", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./12", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 110.847389][ T6218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 110.850096][ T6218] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 110.850115][ T6218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 110.852941][ T6218] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 110.852960][ T6218] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 110.853912][ T6218] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.854039][ T6218] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.854590][ T6218] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.854702][ T6218] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.855146][ T6218] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.855254][ T6218] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.855457][ T6218] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.855563][ T6218] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.855773][ T6218] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.855879][ T6218] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.856086][ T6218] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.856190][ T6218] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.856389][ T6218] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.856494][ T6218] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 110.856698][ T6218] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 110.856806][ T6218] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 110.857052][ T6218] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5841] umount2("./12/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6374] <... mount resumed>) = 0 [pid 6374] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6374] chdir("./file1") = 0 [pid 6374] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6374] ioctl(4, LOOP_CLR_FD) = 0 [pid 6374] close(4) = 0 [pid 6374] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6374] exit_group(0) = ? [pid 6374] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6374, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=41 /* 0.41 s */} --- [ 110.857157][ T6218] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 110.857368][ T6218] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 110.857474][ T6218] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 110.857704][ T6218] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 110.857721][ T6218] Ratelimiting new instances of previous error [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 110.857848][ T6218] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 110.857865][ T6218] Ratelimiting new instances of previous error [ 110.860927][ T6214] done [ 110.861653][ T6214] bcachefs (loop4): check_subvols... done [ 110.883329][ T6218] done [ 110.885512][ T6218] bcachefs (loop2): going read-write [ 110.890611][ T6218] bcachefs (loop2): journal_replay... [ 110.895423][ T6214] bcachefs (loop4): check_subvol_children... done [ 110.896204][ T6214] bcachefs (loop4): delete_dead_snapshots... done [ 110.897092][ T6214] bcachefs (loop4): check_inodes... [ 110.898155][ T6214] bcachefs (loop4): inode points to missing dirent [ 110.898172][ T6214] inum: 4098:4294967295 [ 110.898182][ T6214] mode=40755 [ 110.898192][ T6214] flags=(15300000) [ 110.898202][ T6214] journal_seq=4 [ 110.898212][ T6214] hash_seed=ece93825deac2443 [ 110.898223][ T6214] hash_type=siphash [ 110.898233][ T6214] bi_size=0 [ 110.898243][ T6214] bi_sectors=0 [ 110.898253][ T6214] bi_version=0 [ 110.898263][ T6214] bi_atime=2770562249 [ 110.898273][ T6214] bi_ctime=2780562352 [ 110.898283][ T6214] bi_mtime=2780562352 [ 110.898293][ T6214] bi_otime=2770562249 [ 110.898303][ T6214] bi_uid=0 [ 110.898313][ T6214] bi_gid=0 [ 110.898322][ T6214] bi_nlink=0 [ 110.898331][ T6214] bi_generation=0 [ 110.898341][ T6214] bi_dev=0 [ 110.898350][ T6214] bi_data_checksum=0 [ 110.898360][ T6214] bi_compression=0 [ 110.898371][ T6214] bi_project=0 [ 110.898381][ T6214] bi_background_compression=0 [ 110.898391][ T6214] bi_data_replicas=0 [ 110.898401][ T6214] bi_promote_target=0 [ 110.898412][ T6214] bi_foreground_target=64 [ 110.898422][ T6214] bi_background_target=1 [ 110.898432][ T6214] bi_erasure_code=0 [ 110.898444][ T6214] bi_fields_set=0 [ 110.898453][ T6214] bi_dir=0 [ 110.898463][ T6214] bi_dir_offset=32 [ 110.898472][ T6214] bi_subvol=0 [ 110.898482][ T6214] bi_parent_subvol=0 [ 110.898492][ T6214] bi_nocow=0 [ 110.898502][ T6214] bi_depth=0 [ 110.898511][ T6214] bi_inodes_32bit=0 [ 110.898520][ T6214] bi_casefold=0, fixing [ 110.907648][ T6214] done [ 110.908262][ T6214] bcachefs (loop4): check_extents... done [ 110.911940][ T6214] bcachefs (loop4): check_indirect_extents... done [ 110.919071][ T6214] bcachefs (loop4): check_dirents... [ 110.922702][ T6214] bcachefs (loop4): directory with missing backpointer [ 110.922722][ T6214] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 110.922738][ T6214] inum: 4098:4294967295 [ 110.922748][ T6214] mode=40755 [ 110.922757][ T6214] flags=(11300000) [ 110.922767][ T6214] journal_seq=24 [ 110.922777][ T6214] hash_seed=ece93825deac2443 [ 110.922787][ T6214] hash_type=siphash [ 110.922797][ T6214] bi_size=0 [ 110.922807][ T6214] bi_sectors=0 [ 110.922817][ T6214] bi_version=0 [ 110.922826][ T6214] bi_atime=2770562249 [ 110.922836][ T6214] bi_ctime=2780562352 [ 110.922846][ T6214] bi_mtime=2780562352 [ 110.922857][ T6214] bi_otime=2770562249 [ 110.922867][ T6214] bi_uid=0 [ 110.922876][ T6214] bi_gid=0 [ 110.922886][ T6214] bi_nlink=0 [ 110.922904][ T6214] bi_generation=0 [ 110.922914][ T6214] bi_dev=0 [ 110.922923][ T6214] bi_data_checksum=0 [ 110.922934][ T6214] bi_compression=0 [ 110.922943][ T6214] bi_project=0 [ 110.922953][ T6214] bi_background_compression=0 [ 110.922964][ T6214] bi_data_replicas=0 [ 110.922974][ T6214] bi_promote_target=0 [ 110.922983][ T6214] bi_foreground_target=64 [ 110.922995][ T6214] bi_background_target=1 [ 110.923005][ T6214] bi_erasure_code=0 [pid 5839] umount2("./13/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] <... umount2 resumed>) = 0 [pid 5841] umount2("./12/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./12/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./12/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./12/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5841] close(4) = 0 [pid 5841] rmdir("./12/file1") = 0 [ 110.923015][ T6214] bi_fields_set=0 [ 110.923025][ T6214] bi_dir=0 [ 110.923034][ T6214] bi_dir_offset=0 [ 110.923044][ T6214] bi_subvol=0 [ 110.923053][ T6214] bi_parent_subvol=0 [ 110.923063][ T6214] bi_nocow=0 [ 110.923072][ T6214] bi_depth=0 [ 110.923082][ T6214] bi_inodes_32bit=0 [ 110.923092][ T6214] bi_casefold=0, fixing [ 110.925436][ T5840] bcachefs (loop3): shutting down [ 110.925453][ T5840] bcachefs (loop3): going read-only [ 110.925482][ T5840] bcachefs (loop3): finished waiting for writes to stop [pid 5841] umount2("./12/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] newfstatat(AT_FDCWD, "./12/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] unlink("./12/binderfs") = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./12") = 0 [pid 5841] mkdir("./13", 0777) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5841] close(3) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6395 attached , child_tidptr=0x5555901c6750) = 6395 [pid 6395] set_robust_list(0x5555901c6760, 24) = 0 [ 110.935532][ T6214] done [ 110.936216][ T6214] bcachefs (loop4): check_xattrs... done [ 110.939320][ T6214] bcachefs (loop4): check_root... done [ 110.941487][ T6214] bcachefs (loop4): check_unreachable_inodes... done [ 110.943815][ T6214] bcachefs (loop4): check_subvolume_structure... done [ 110.944596][ T6214] bcachefs (loop4): check_directory_structure... done [ 110.947128][ T6214] bcachefs (loop4): check_nlinks... [ 110.947822][ T6214] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [pid 6395] chdir("./13") = 0 [pid 6395] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6395] setpgid(0, 0) = 0 [pid 6395] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6395] write(3, "1000", 4) = 4 [pid 6395] close(3) = 0 [pid 6395] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6395] write(1, "executing program\n", 18) = 18 [pid 6395] memfd_create("syzkaller", 0) = 3 [pid 6395] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 110.949035][ T6214] done [ 110.950678][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 32 [ 110.950821][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 32 [ 110.951616][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 33 [ 110.953328][ T5840] bcachefs (loop3): marking filesystem clean [ 110.954902][ T6214] bcachefs (loop4): check_rebalance_work... done [ 110.957159][ T6214] bcachefs (loop4): resume_logged_ops... done [ 110.958351][ T6214] bcachefs (loop4): delete_dead_inodes... done [ 110.974432][ T6214] bcachefs (loop4): set_fs_needs_rebalance... done [ 110.998765][ T6218] done [ 111.002813][ T6218] bcachefs (loop2): check_alloc_info... [ 111.005720][ T6218] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 111.005740][ T6218] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 111.005751][ T6218] gen 0 oldest_gen 0 data_type need_discard [ 111.005763][ T6218] journal_seq_nonempty 6 [ 111.005775][ T6218] journal_seq_empty 0 [ 111.005785][ T6218] need_discard 1 [ 111.005795][ T6218] need_inc_gen 1 [ 111.005806][ T6218] dirty_sectors 0 [ 111.005816][ T6218] stripe_sectors 0 [ 111.005826][ T6218] cached_sectors 0 [ 111.005836][ T6218] stripe 0 [ 111.005845][ T6218] stripe_redundancy 0 [ 111.005855][ T6218] io_time[READ] 1 [ 111.005867][ T6218] io_time[WRITE] 768 [ 111.005877][ T6218] fragmentation 0 [ 111.005896][ T6218] bp_start 8 [ 111.005906][ T6218] , fixing [ 111.015799][ T6236] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 111.015822][ T6236] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 111.019833][ T6214] bcachefs (loop4): check_extents_to_backpointers... [ 111.020841][ T6214] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 111.033730][ T5840] bcachefs (loop3): shutdown complete [ 111.034212][ T6214] done [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./13/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./13/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./13/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./13/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./13/file1") = 0 [pid 5839] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./13/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./13/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./13") = 0 [pid 5839] mkdir("./14", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6396 attached , child_tidptr=0x5555901c6750) = 6396 [pid 6396] set_robust_list(0x5555901c6760, 24) = 0 [ 111.060128][ T6214] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 111.060155][ T6214] bcachefs (loop4): check_alloc_info... [ 111.064799][ T6218] done [ 111.065490][ T6218] bcachefs (loop2): check_lrus... done [ 111.072729][ T6218] bcachefs (loop2): check_btree_backpointers... done [ 111.078485][ T6218] bcachefs (loop2): check_backpointers_to_extents... done [ 111.087160][ T6214] done [ 111.087176][ T6214] bcachefs (loop4): check_lrus... [ 111.087941][ T6218] bcachefs (loop2): check_extents_to_backpointers... [ 111.088301][ T6214] done [pid 6396] chdir("./14") = 0 [pid 6396] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 111.088316][ T6214] bcachefs (loop4): check_btree_backpointers... done [ 111.090905][ T6214] bcachefs (loop4): check_backpointers_to_extents... done [ 111.092375][ T6214] bcachefs (loop4): check_extents_to_backpointers... done [ 111.097084][ T6214] bcachefs (loop4): check_alloc_to_lru_refs... done [ 111.111115][ T6214] bcachefs (loop4): bucket_gens_init... done [ 111.113483][ T6214] bcachefs (loop4): check_snapshot_trees... done [ 111.119620][ T6214] bcachefs (loop4): check_snapshots... done [pid 6395] 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 6396] setpgid(0, 0) = 0 [pid 6396] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 111.122474][ T6214] bcachefs (loop4): check_subvols... done [ 111.123288][ T6214] bcachefs (loop4): check_subvol_children... done [ 111.123989][ T6214] bcachefs (loop4): delete_dead_snapshots... done [ 111.124685][ T6214] bcachefs (loop4): check_inodes... done [ 111.130348][ T6214] bcachefs (loop4): check_extents... done [ 111.131712][ T6214] bcachefs (loop4): check_indirect_extents... done [ 111.133353][ T6214] bcachefs (loop4): check_dirents... done [ 111.140156][ T6214] bcachefs (loop4): check_xattrs... done [ 111.140984][ T6214] bcachefs (loop4): check_root... done [pid 6396] write(3, "1000", 4) = 4 [ 111.141760][ T6214] bcachefs (loop4): check_unreachable_inodes... done [ 111.142548][ T6214] bcachefs (loop4): check_subvolume_structure... done [ 111.144107][ T6214] bcachefs (loop4): check_directory_structure... done [ 111.144902][ T6214] bcachefs (loop4): check_nlinks... done [ 111.150427][ T6214] bcachefs (loop4): check_rebalance_work... done [ 111.151233][ T6214] bcachefs (loop4): resume_logged_ops... done [ 111.151940][ T6214] bcachefs (loop4): delete_dead_inodes... done [ 111.152683][ T6214] bcachefs (loop4): set_fs_needs_rebalance... done [pid 6396] close(3) = 0 [ 111.160258][ T6214] bcachefs (loop4): done starting filesystem [ 111.216280][ T6218] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 111.225454][ T6218] done [ 111.226143][ T6218] bcachefs (loop2): check_alloc_to_lru_refs... [ 111.231421][ T6218] bcachefs (loop2): missing fragmentation lru entry [ 111.231442][ T6218] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 111.231454][ T6218] gen 0 oldest_gen 0 data_type user [ 111.231466][ T6218] journal_seq_nonempty 5 [pid 6396] symlink("/dev/binderfs", "./binderfs" [pid 6395] <... write resumed>) = 16777216 [pid 6396] <... symlink resumed>) = 0 [pid 6396] write(1, "executing program\n", 18 executing program [pid 6395] munmap(0x7fbbeb93a000, 138412032 [pid 6396] <... write resumed>) = 18 [pid 6396] memfd_create("syzkaller", 0 [pid 6395] <... munmap resumed>) = 0 [pid 6396] <... memfd_create resumed>) = 3 [pid 6396] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6395] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6395] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6395] close(3) = 0 [pid 6395] close(4) = 0 [pid 6395] mkdir("./file1", 0777) = 0 [ 111.231477][ T6218] journal_seq_empty 134217728 [ 111.231487][ T6218] need_discard 1 [ 111.231498][ T6218] need_inc_gen 1 [ 111.231507][ T6218] dirty_sectors 16 [ 111.231519][ T6218] stripe_sectors 1802251 [ 111.231529][ T6218] cached_sectors 0 [ 111.231539][ T6218] stripe 0 [ 111.231550][ T6218] stripe_redundancy 0 [ 111.231560][ T6218] io_time[READ] 1 [ 111.231570][ T6218] io_time[WRITE] 512 [ 111.231581][ T6218] fragmentation 0 [ 111.231590][ T6218] bp_start 7 [ 111.231600][ T6218] , fixing [ 111.251395][ T6218] done [ 111.260301][ T6218] bcachefs (loop2): bucket_gens_init... done [ 111.262327][ T6218] bcachefs (loop2): check_snapshot_trees... done [ 111.263063][ T6218] bcachefs (loop2): check_snapshots... [ 111.263706][ T6218] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 111.263721][ T6218] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 111.284083][ T6218] done [ 111.285090][ T6218] bcachefs (loop2): check_subvols... done [ 111.287987][ T6218] bcachefs (loop2): check_subvol_children... done [ 111.291438][ T6218] bcachefs (loop2): delete_dead_snapshots... done [ 111.292180][ T6218] bcachefs (loop2): check_inodes... [ 111.293729][ T6218] bcachefs (loop2): inode points to missing dirent [ 111.293746][ T6218] inum: 4098:4294967295 [ 111.293756][ T6218] mode=40755 [ 111.293766][ T6218] flags=(15300000) [ 111.293776][ T6218] journal_seq=4 [ 111.293786][ T6218] hash_seed=ece93825deac2443 [ 111.293799][ T6218] hash_type=siphash [ 111.293808][ T6218] bi_size=0 [ 111.293818][ T6218] bi_sectors=0 [ 111.293827][ T6218] bi_version=0 [ 111.293837][ T6218] bi_atime=2770562249 [ 111.293847][ T6218] bi_ctime=2780562352 [ 111.293856][ T6218] bi_mtime=2780562352 [ 111.293866][ T6218] bi_otime=2770562249 [ 111.293876][ T6218] bi_uid=0 [ 111.293885][ T6218] bi_gid=0 [ 111.293894][ T6218] bi_nlink=0 [ 111.293903][ T6218] bi_generation=0 [ 111.293912][ T6218] bi_dev=0 [ 111.293922][ T6218] bi_data_checksum=0 [ 111.293932][ T6218] bi_compression=0 [ 111.293941][ T6218] bi_project=0 [ 111.293951][ T6218] bi_background_compression=0 [ 111.293961][ T6218] bi_data_replicas=0 [ 111.293971][ T6218] bi_promote_target=0 [ 111.293981][ T6218] bi_foreground_target=64 [ 111.293993][ T6218] bi_background_target=1 [ 111.294002][ T6218] bi_erasure_code=0 [ 111.294012][ T6218] bi_fields_set=0 [ 111.294022][ T6218] bi_dir=0 [ 111.294031][ T6218] bi_dir_offset=32 [ 111.294041][ T6218] bi_subvol=0 [ 111.294050][ T6218] bi_parent_subvol=0 [ 111.294060][ T6218] bi_nocow=0 [ 111.294069][ T6218] bi_depth=0 [ 111.294078][ T6218] bi_inodes_32bit=0 [ 111.294087][ T6218] bi_casefold=0, fixing [ 111.295065][ T5841] bcachefs (loop4): shutting down [ 111.295082][ T5841] bcachefs (loop4): going read-only [ 111.295110][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 111.309132][ T6218] done [ 111.309985][ T6218] bcachefs (loop2): check_extents... done [ 111.326500][ T6218] bcachefs (loop2): check_indirect_extents... [ 111.331192][ T4660] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 111.331192][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 111.331371][ T4660] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 111.331387][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 111.331406][ T4660] loop2 checksum error [ 111.331504][ T6218] done [ 111.333827][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 35 [ 111.334188][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 35 [ 111.335434][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 36 [ 111.337210][ T5841] bcachefs (loop4): marking filesystem clean [pid 6395] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 111.337690][ T5900] bcachefs (loop4): insufficient writeable journal devices available: have 0, need 1 [ 111.337690][ T5900] rw journal devs: [ 111.339593][ T6218] bcachefs (loop2): check_dirents... [ 111.341325][ T6218] bcachefs (loop2): directory with missing backpointer [ 111.341343][ T6218] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 111.341358][ T6218] inum: 4098:4294967295 [ 111.341368][ T6218] mode=40755 [ 111.341377][ T6218] flags=(11300000) [ 111.341387][ T6218] journal_seq=23 [ 111.341396][ T6218] hash_seed=ece93825deac2443 [ 111.341407][ T6218] hash_type=siphash [ 111.341417][ T6218] bi_size=0 [ 111.341426][ T6218] bi_sectors=0 [ 111.341435][ T6218] bi_version=0 [ 111.341446][ T6218] bi_atime=2770562249 [ 111.341455][ T6218] bi_ctime=2780562352 [ 111.341466][ T6218] bi_mtime=2780562352 [ 111.341475][ T6218] bi_otime=2770562249 [ 111.341484][ T6218] bi_uid=0 [ 111.341493][ T6218] bi_gid=0 [ 111.341503][ T6218] bi_nlink=0 [ 111.341512][ T6218] bi_generation=0 [ 111.341521][ T6218] bi_dev=0 [ 111.341530][ T6218] bi_data_checksum=0 [ 111.341540][ T6218] bi_compression=0 [ 111.341549][ T6218] bi_project=0 [ 111.341558][ T6218] bi_background_compression=0 [ 111.341568][ T6218] bi_data_replicas=0 [ 111.341578][ T6218] bi_promote_target=0 [ 111.341588][ T6218] bi_foreground_target=64 [ 111.341598][ T6218] bi_background_target=1 [ 111.341609][ T6218] bi_erasure_code=0 [ 111.341619][ T6218] bi_fields_set=0 [ 111.341628][ T6218] bi_dir=0 [ 111.341637][ T6218] bi_dir_offset=0 [ 111.341646][ T6218] bi_subvol=0 [ 111.341656][ T6218] bi_parent_subvol=0 [ 111.341665][ T6218] bi_nocow=0 [ 111.341675][ T6218] bi_depth=0 [ 111.341684][ T6218] bi_inodes_32bit=0 [ 111.341693][ T6218] bi_casefold=0, fixing [ 111.349799][ T6246] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 111.349822][ T6246] running recovery pass check_extents_to_backpointers (17), currently at check_dirents (31) [ 111.380246][ T6218] done [ 111.380842][ T6218] bcachefs (loop2): check_extents_to_backpointers... [ 111.381863][ T6218] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 111.407519][ T6218] done [ 111.408180][ T6218] bcachefs (loop2): check_xattrs... done [ 111.411027][ T6218] bcachefs (loop2): check_root... done [ 111.418109][ T6218] bcachefs (loop2): check_unreachable_inodes... done [ 111.425368][ T6218] bcachefs (loop2): check_subvolume_structure... done [ 111.431598][ T6218] bcachefs (loop2): check_directory_structure... done [ 111.438618][ T6218] bcachefs (loop2): check_nlinks... [ 111.439468][ T6218] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 111.449878][ T6218] done [ 111.451688][ T6218] bcachefs (loop2): check_rebalance_work... done [ 111.465131][ T6218] bcachefs (loop2): resume_logged_ops... done [ 111.466246][ T6218] bcachefs (loop2): delete_dead_inodes... done [ 111.469963][ T6218] bcachefs (loop2): set_fs_needs_rebalance... done [ 111.507021][ T5841] bcachefs (loop4): shutdown complete [ 111.589474][ T6218] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 111.589500][ T6218] bcachefs (loop2): check_alloc_info... done [ 111.602737][ T6218] bcachefs (loop2): check_lrus... done [ 111.603887][ T6218] bcachefs (loop2): check_btree_backpointers... done [ 111.605298][ T6218] bcachefs (loop2): check_backpointers_to_extents... done [ 111.607421][ T6218] bcachefs (loop2): check_extents_to_backpointers... done [ 111.623558][ T6218] bcachefs (loop2): check_alloc_to_lru_refs... done [pid 6396] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6396] munmap(0x7fbbeb93a000, 138412032 [pid 6395] <... mount resumed>) = 0 [pid 6395] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6395] chdir("./file1") = 0 [pid 6395] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [ 111.629623][ T6218] bcachefs (loop2): bucket_gens_init... done [ 111.631918][ T6218] bcachefs (loop2): check_snapshot_trees... done [ 111.634001][ T6218] bcachefs (loop2): check_snapshots... done [ 111.639737][ T6218] bcachefs (loop2): check_subvols... done [ 111.645450][ T6218] bcachefs (loop2): check_subvol_children... done [ 111.646339][ T6218] bcachefs (loop2): delete_dead_snapshots... done [ 111.647040][ T6218] bcachefs (loop2): check_inodes... done [ 111.648172][ T6218] bcachefs (loop2): check_extents... done [pid 6395] ioctl(4, LOOP_CLR_FD) = 0 [pid 6395] close(4) = 0 [pid 6395] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6395] exit_group(0) = ? [pid 6395] +++ exited with 0 +++ [pid 5841] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6395, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=35 /* 0.35 s */} --- [pid 5841] restart_syscall(<... resuming interrupted clone ...> [pid 6396] <... munmap resumed>) = 0 [pid 6396] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6396] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6396] close(3) = 0 [pid 6396] close(4) = 0 [pid 6396] mkdir("./file1", 0777) = 0 [pid 5841] <... restart_syscall resumed>) = 0 [pid 5841] umount2("./13", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6396] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [pid 5841] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./13", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 111.649794][ T6218] bcachefs (loop2): check_indirect_extents... done [ 111.650534][ T6218] bcachefs (loop2): check_dirents... done [ 111.677830][ T6218] bcachefs (loop2): check_xattrs... done [ 111.678774][ T6218] bcachefs (loop2): check_root... done [ 111.680398][ T6218] bcachefs (loop2): check_unreachable_inodes... done [ 111.681243][ T6218] bcachefs (loop2): check_subvolume_structure... done [ 111.681949][ T6218] bcachefs (loop2): check_directory_structure... done [ 111.682686][ T6218] bcachefs (loop2): check_nlinks... done [ 111.683810][ T6218] bcachefs (loop2): check_rebalance_work... done [ 111.689983][ T6218] bcachefs (loop2): resume_logged_ops... done [ 111.692606][ T6218] bcachefs (loop2): delete_dead_inodes... done [ 111.693336][ T6218] bcachefs (loop2): set_fs_needs_rebalance... done [ 111.696718][ T6218] bcachefs (loop2): done starting filesystem [ 111.770329][ T5839] bcachefs (loop2): shutting down [ 111.770349][ T5839] bcachefs (loop2): going read-only [ 111.770381][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 111.867265][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 111.867421][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 111.868344][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 111.872878][ T5839] bcachefs (loop2): marking filesystem clean [ 111.988121][ T5839] bcachefs (loop2): shutdown complete [ 112.862151][ T6251] loop3: detected capacity change from 0 to 32768 [ 113.095337][ T6251] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 113.095364][ T6251] allowing incompatible features above 0.0: (unknown version) [ 113.095377][ T6251] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 113.095405][ T6251] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 113.095567][ T6251] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 113.095816][ T6251] bcachefs (loop3): Version upgrade required: [ 113.095816][ T6251] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 113.095816][ T6251] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 113.095816][ T6251] 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,check_rebalance_work,set_fs_needs_rebalance [ 113.163100][ T6251] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 113.163126][ T6251] size != 0, deleting [ 113.164036][ T6251] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 113.167365][ T6251] bcachefs (loop3): check_topology... done [ 113.173231][ T6251] bcachefs (loop3): accounting_read... done [ 113.202387][ T6251] bcachefs (loop3): alloc_read... done [ 113.203228][ T6251] bcachefs (loop3): snapshots_read... done [ 113.204019][ T6251] bcachefs (loop3): check_allocations... [ 113.210264][ T6251] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 113.210285][ T6251] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 113.220460][ T6251] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 113.220482][ T6251] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 113.222363][ T6251] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 113.222382][ T6251] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 113.226937][ T6251] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 113.226957][ T6251] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 113.230295][ T6251] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 113.230314][ T6251] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 113.231276][ T6251] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.231402][ T6251] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.237290][ T6251] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.237414][ T6251] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.237850][ T6251] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.237956][ T6251] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.238159][ T6251] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.238266][ T6251] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.238469][ T6251] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.238574][ T6251] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.238785][ T6251] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.238889][ T6251] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.239093][ T6251] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.239218][ T6251] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.242944][ T6251] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.243055][ T6251] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 113.243263][ T6251] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 113.243369][ T6251] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 113.243580][ T6251] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 113.243687][ T6251] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 113.243961][ T6251] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 113.243977][ T6251] Ratelimiting new instances of previous error [ 113.244117][ T6251] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 113.244140][ T6251] Ratelimiting new instances of previous error [ 113.293112][ T6251] done [ 113.295136][ T6251] bcachefs (loop3): going read-write [ 113.307682][ T6251] bcachefs (loop3): journal_replay... [pid 5841] umount2("./13/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5841] umount2("./13/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 113.340807][ T6252] loop4: detected capacity change from 0 to 32768 [ 113.421222][ T6251] done [ 113.421995][ T6251] bcachefs (loop3): check_alloc_info... [ 113.423829][ T6251] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 113.423848][ T6251] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 113.423859][ T6251] gen 0 oldest_gen 0 data_type need_discard [ 113.423872][ T6251] journal_seq_nonempty 6 [ 113.423882][ T6251] journal_seq_empty 0 [ 113.423892][ T6251] need_discard 1 [pid 5841] newfstatat(AT_FDCWD, "./13/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5841] umount2("./13/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "./13/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 6396] <... mount resumed>) = 0 [pid 5841] <... openat resumed>) = 4 [pid 5841] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 6396] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5841] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 6396] chdir("./file1" [pid 5841] getdents64(4, [pid 6396] <... chdir resumed>) = 0 [pid 5841] <... getdents64 resumed>0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 6396] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5841] close(4 [pid 6396] <... openat resumed>) = 4 [pid 5841] <... close resumed>) = 0 [pid 6396] ioctl(4, LOOP_CLR_FD [pid 5841] rmdir("./13/file1" [pid 6396] <... ioctl resumed>) = 0 [pid 6396] close(4 [pid 5841] <... rmdir resumed>) = 0 [pid 6396] <... close resumed>) = 0 [pid 5841] umount2("./13/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 6396] write(-1, NULL, 0 [pid 5841] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 6396] <... write resumed>) = -1 EBADF (Bad file descriptor) [pid 5841] newfstatat(AT_FDCWD, "./13/binderfs", [pid 6396] exit_group(0 [pid 5841] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 6396] <... exit_group resumed>) = ? [pid 5841] unlink("./13/binderfs" [pid 6396] +++ exited with 0 +++ [pid 5841] <... unlink resumed>) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [pid 5841] rmdir("./13" [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6396, si_uid=0, si_status=0, si_utime=12 /* 0.12 s */, si_stime=48 /* 0.48 s */} --- [pid 5841] <... rmdir resumed>) = 0 [pid 5841] mkdir("./14", 0777) = 0 [pid 5839] umount2("./14", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./14", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5841] <... openat resumed>) = 3 [pid 5839] getdents64(3, [pid 5841] ioctl(3, LOOP_CLR_FD [pid 5839] <... getdents64 resumed>0x5555901c77f0 /* 4 entries */, 32768) = 112 [pid 5841] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5841] close(3 [pid 5839] umount2("./14/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] <... close resumed>) = 0 [pid 5841] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6417 attached , child_tidptr=0x5555901c6750) = 6417 [ 113.423903][ T6251] need_inc_gen 1 [ 113.423911][ T6251] dirty_sectors 0 [ 113.423923][ T6251] stripe_sectors 0 [ 113.423933][ T6251] cached_sectors 0 [ 113.423943][ T6251] stripe 0 [ 113.423953][ T6251] stripe_redundancy 0 [ 113.423963][ T6251] io_time[READ] 1 [ 113.423973][ T6251] io_time[WRITE] 768 [ 113.423983][ T6251] fragmentation 0 [ 113.423992][ T6251] bp_start 8 [ 113.424002][ T6251] , fixing [pid 6417] set_robust_list(0x5555901c6760, 24) = 0 [pid 6417] chdir("./14") = 0 [ 113.490958][ T6251] done [ 113.515266][ T6251] bcachefs (loop3): check_lrus... done [ 113.521297][ T6251] bcachefs (loop3): check_btree_backpointers... done [ 113.534191][ T6251] bcachefs (loop3): check_backpointers_to_extents... done [ 113.559868][ T6251] bcachefs (loop3): check_extents_to_backpointers... [ 113.561284][ T6251] bcachefs (loop3): scanning for missing backpointers in 6/128 buckets [ 113.571182][ T6251] done [ 113.571814][ T6251] bcachefs (loop3): check_alloc_to_lru_refs... [pid 6417] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6417] setpgid(0, 0) = 0 [ 113.579424][ T6251] bcachefs (loop3): missing fragmentation lru entry [ 113.579445][ T6251] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 113.579457][ T6251] gen 0 oldest_gen 0 data_type user [ 113.579468][ T6251] journal_seq_nonempty 5 [ 113.579477][ T6251] journal_seq_empty 134217728 [ 113.579487][ T6251] need_discard 1 [ 113.579498][ T6251] need_inc_gen 1 [ 113.579507][ T6251] dirty_sectors 16 [ 113.579517][ T6251] stripe_sectors 1802251 [ 113.579529][ T6251] cached_sectors 0 [pid 6417] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6417] write(3, "1000", 4) = 4 [pid 6417] close(3) = 0 [pid 6417] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6417] write(1, "executing program\n", 18executing program ) = 18 [ 113.579539][ T6251] stripe 0 [ 113.579549][ T6251] stripe_redundancy 0 [ 113.579561][ T6251] io_time[READ] 1 [ 113.579570][ T6251] io_time[WRITE] 512 [ 113.579580][ T6251] fragmentation 0 [ 113.579589][ T6251] bp_start 7 [ 113.579601][ T6251] , fixing [ 113.586613][ T6251] done [ 113.590509][ T6251] bcachefs (loop3): bucket_gens_init... [pid 6417] memfd_create("syzkaller", 0) = 3 [pid 6417] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 113.600818][ T6252] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 113.600846][ T6252] allowing incompatible features above 0.0: (unknown version) [ 113.600859][ T6252] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 113.600886][ T6252] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 113.601025][ T6252] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 113.601265][ T6252] bcachefs (loop4): Version upgrade required: [ 113.601265][ T6252] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 113.601265][ T6252] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 113.601265][ T6252] 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,check_rebalance_work,set_fs_needs_rebalance [ 113.611731][ T6251] done [ 113.619394][ T6251] bcachefs (loop3): check_snapshot_trees... done [ 113.622214][ T6251] bcachefs (loop3): check_snapshots... [ 113.622815][ T6251] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 113.622833][ T6251] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 113.659468][ T6251] done [ 113.660704][ T6251] bcachefs (loop3): check_subvols... done [ 113.668123][ T6252] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 113.668147][ T6252] size != 0, deleting [ 113.670394][ T6252] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 113.681558][ T6252] bcachefs (loop4): check_topology... done [ 113.690008][ T6252] bcachefs (loop4): accounting_read... [ 113.693218][ T6251] bcachefs (loop3): check_subvol_children... done [ 113.694797][ T6251] bcachefs (loop3): delete_dead_snapshots... done [ 113.700251][ T6251] bcachefs (loop3): check_inodes... [ 113.701403][ T6251] bcachefs (loop3): inode points to missing dirent [ 113.701418][ T6251] inum: 4098:4294967295 [ 113.701428][ T6251] mode=40755 [ 113.701440][ T6251] flags=(15300000) [ 113.701449][ T6251] journal_seq=4 [ 113.701459][ T6251] hash_seed=ece93825deac2443 [ 113.701470][ T6251] hash_type=siphash [ 113.701480][ T6251] bi_size=0 [ 113.701489][ T6251] bi_sectors=0 [ 113.701498][ T6251] bi_version=0 [ 113.701508][ T6251] bi_atime=2770562249 [ 113.701518][ T6251] bi_ctime=2780562352 [ 113.701528][ T6251] bi_mtime=2780562352 [ 113.701538][ T6251] bi_otime=2770562249 [ 113.701547][ T6251] bi_uid=0 [ 113.701557][ T6251] bi_gid=0 [ 113.701566][ T6251] bi_nlink=0 [ 113.701575][ T6251] bi_generation=0 [ 113.701585][ T6251] bi_dev=0 [ 113.701596][ T6251] bi_data_checksum=0 [ 113.701606][ T6251] bi_compression=0 [ 113.701615][ T6251] bi_project=0 [ 113.701625][ T6251] bi_background_compression=0 [ 113.701635][ T6251] bi_data_replicas=0 [ 113.701645][ T6251] bi_promote_target=0 [ 113.701655][ T6251] bi_foreground_target=64 [ 113.701665][ T6251] bi_background_target=1 [ 113.701676][ T6251] bi_erasure_code=0 [ 113.701685][ T6251] bi_fields_set=0 [ 113.701695][ T6251] bi_dir=0 [ 113.701705][ T6251] bi_dir_offset=32 [ 113.701718][ T6251] bi_subvol=0 [ 113.701727][ T6251] bi_parent_subvol=0 [ 113.701737][ T6251] bi_nocow=0 [ 113.701746][ T6251] bi_depth=0 [ 113.701755][ T6251] bi_inodes_32bit=0 [ 113.701765][ T6251] bi_casefold=0, fixing [ 113.709728][ T6251] done [ 113.715571][ T6251] bcachefs (loop3): check_extents... [ 113.718357][ T6252] done [ 113.718373][ T6252] bcachefs (loop4): alloc_read... [ 113.722479][ T6251] done [ 113.722497][ T6251] bcachefs (loop3): check_indirect_extents... [ 113.723667][ T6252] done [ 113.723683][ T6252] bcachefs (loop4): snapshots_read... [ 113.724358][ T6251] done [ 113.724372][ T6251] bcachefs (loop3): check_dirents... [ 113.726107][ T6251] bcachefs (loop3): directory with missing backpointer [ 113.726124][ T6251] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 113.726139][ T6251] inum: 4098:4294967295 [ 113.726148][ T6251] mode=40755 [ 113.726158][ T6251] flags=(11300000) [ 113.726167][ T6251] journal_seq=24 [ 113.726177][ T6251] hash_seed=ece93825deac2443 [ 113.726187][ T6251] hash_type=siphash [ 113.726196][ T6251] bi_size=0 [pid 6417] 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 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./14/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./14/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./14/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./14/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./14/file1") = 0 [pid 5839] umount2("./14/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./14/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./14/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./14") = 0 [pid 5839] mkdir("./15", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6418 [ 113.726205][ T6251] bi_sectors=0 [ 113.726214][ T6251] bi_version=0 [ 113.726223][ T6251] bi_atime=2770562249 [ 113.726233][ T6251] bi_ctime=2780562352 [ 113.726242][ T6251] bi_mtime=2780562352 [ 113.726251][ T6251] bi_otime=2770562249 [ 113.726261][ T6251] bi_uid=0 [ 113.726270][ T6251] bi_gid=0 [ 113.726279][ T6251] bi_nlink=0 [ 113.726288][ T6251] bi_generation=0 [ 113.726297][ T6251] bi_dev=0 [ 113.726307][ T6251] bi_data_checksum=0 [ 113.726317][ T6251] bi_compression=0 ./strace-static-x86_64: Process 6418 attached [pid 6418] set_robust_list(0x5555901c6760, 24) = 0 [ 113.726326][ T6251] bi_project=0 [ 113.726336][ T6251] bi_background_compression=0 [ 113.726346][ T6251] bi_data_replicas=0 [ 113.726356][ T6251] bi_promote_target=0 [ 113.726365][ T6251] bi_foreground_target=64 [ 113.726375][ T6251] bi_background_target=1 [ 113.726385][ T6251] bi_erasure_code=0 [ 113.726395][ T6251] bi_fields_set=0 [ 113.726405][ T6251] bi_dir=0 [ 113.726414][ T6251] bi_dir_offset=0 [ 113.726451][ T6251] bi_subvol=0 [ 113.726462][ T6251] bi_parent_subvol=0 [pid 6418] chdir("./15") = 0 [pid 6418] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6418] setpgid(0, 0) = 0 [pid 6418] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6418] write(3, "1000", 4 [pid 6417] <... write resumed>) = 16777216 [pid 6418] <... write resumed>) = 4 [pid 6418] close(3) = 0 [pid 6418] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6418] write(1, "executing program\n", 18) = 18 [pid 6418] memfd_create("syzkaller", 0) = 3 [ 113.726471][ T6251] bi_nocow=0 [ 113.726481][ T6251] bi_depth=0 [ 113.726490][ T6251] bi_inodes_32bit=0 [ 113.726499][ T6251] bi_casefold=0, fixing [ 113.731458][ T6252] done [ 113.731474][ T6252] bcachefs (loop4): check_allocations... [ 113.733345][ T6252] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 113.733366][ T6252] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [pid 6418] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [pid 6417] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6417] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 6417] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6417] close(3) = 0 [pid 6417] close(4) = 0 [pid 6417] mkdir("./file1", 0777) = 0 [ 113.754147][ T6251] done [ 113.755027][ T6251] bcachefs (loop3): check_xattrs... [ 113.756181][ T6252] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 113.756201][ T6252] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 113.760257][ T6251] done [ 113.760273][ T6251] bcachefs (loop3): check_root... done [ 113.763849][ T6252] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 113.763867][ T6252] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 113.765147][ T6251] bcachefs (loop3): check_unreachable_inodes... done [ 113.766134][ T6251] bcachefs (loop3): check_subvolume_structure... done [ 113.766871][ T6251] bcachefs (loop3): check_directory_structure... done [ 113.767597][ T6251] bcachefs (loop3): check_nlinks... [ 113.768320][ T6251] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 113.770518][ T6252] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 113.770537][ T6252] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 113.773714][ T6251] done [ 113.776121][ T6251] bcachefs (loop3): check_rebalance_work... [ 113.778462][ T6252] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 113.778483][ T6252] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 113.782832][ T6251] done [ 113.782846][ T6251] bcachefs (loop3): resume_logged_ops... done [ 113.784330][ T6251] bcachefs (loop3): delete_dead_inodes... [ 113.788413][ T6252] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.788541][ T6252] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.789057][ T6252] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.789161][ T6252] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.794591][ T6252] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.794703][ T6252] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.794906][ T6252] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.795022][ T6252] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.795225][ T6252] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.795331][ T6252] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.795542][ T6252] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.795649][ T6252] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6417] mount("/dev/loop4", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff" [ 113.795857][ T6252] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.795986][ T6252] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 113.796191][ T6252] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 113.796295][ T6252] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 113.796502][ T6252] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 113.797263][ T6252] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 113.797461][ T6252] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 113.797585][ T6252] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 113.797821][ T6252] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 113.797835][ T6252] Ratelimiting new instances of previous error [ 113.797989][ T6252] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 113.798005][ T6252] Ratelimiting new instances of previous error [ 113.810402][ T6254] loop2: detected capacity change from 0 to 32768 [ 113.819787][ T6251] done [ 113.819805][ T6251] bcachefs (loop3): set_fs_needs_rebalance... [ 113.870820][ T6263] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 113.870846][ T6263] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 113.878057][ T6251] done [ 113.881273][ T6252] done [ 113.882209][ T6251] bcachefs (loop3): check_extents_to_backpointers... [ 113.883113][ T6251] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 113.891325][ T6252] bcachefs (loop4): going read-write [ 113.903232][ T6263] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 113.912704][ T6252] bcachefs (loop4): journal_replay... [ 113.913489][ T6251] done [ 113.947609][ T6251] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 113.947635][ T6251] bcachefs (loop3): check_alloc_info... done [ 113.989961][ T6251] bcachefs (loop3): check_lrus... done [ 113.992853][ T6251] bcachefs (loop3): check_btree_backpointers... done [ 113.995263][ T6251] bcachefs (loop3): check_backpointers_to_extents... done [ 113.996654][ T6251] bcachefs (loop3): check_extents_to_backpointers... [ 113.997516][ T6251] bcachefs (loop3): scanning for missing backpointers in 1/128 buckets [ 113.999779][ T6251] done [ 113.999794][ T6251] bcachefs (loop3): check_alloc_to_lru_refs... done [ 114.011047][ T6251] bcachefs (loop3): bucket_gens_init... done [ 114.016402][ T6251] bcachefs (loop3): check_snapshot_trees... done [ 114.017552][ T6251] bcachefs (loop3): check_snapshots... done [ 114.022479][ T6251] bcachefs (loop3): check_subvols... done [ 114.023213][ T6251] bcachefs (loop3): check_subvol_children... done [ 114.029046][ T6251] bcachefs (loop3): delete_dead_snapshots... done [ 114.030698][ T6251] bcachefs (loop3): check_inodes... done [pid 6418] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6418] munmap(0x7fbbeb93a000, 138412032) = 0 [ 114.044521][ T6251] bcachefs (loop3): check_extents... [ 114.046609][ T6252] done [ 114.047572][ T6251] done [ 114.047585][ T6251] bcachefs (loop3): check_indirect_extents... [ 114.047946][ T6252] bcachefs (loop4): check_alloc_info... [ 114.053920][ T6252] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 114.053943][ T6252] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 114.053954][ T6252] gen 0 oldest_gen 0 data_type need_discard [ 114.053965][ T6252] journal_seq_nonempty 6 [pid 6418] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6418] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6418] close(3) = 0 [pid 6418] close(4) = 0 [pid 6418] mkdir("./file1", 0777) = 0 [ 114.053974][ T6252] journal_seq_empty 0 [ 114.053986][ T6252] need_discard 1 [ 114.053995][ T6252] need_inc_gen 1 [ 114.054005][ T6252] dirty_sectors 0 [ 114.054015][ T6252] stripe_sectors 0 [ 114.054025][ T6252] cached_sectors 0 [ 114.054034][ T6252] stripe 0 [ 114.054043][ T6252] stripe_redundancy 0 [ 114.054053][ T6252] io_time[READ] 1 [ 114.054062][ T6252] io_time[WRITE] 768 [ 114.054072][ T6252] fragmentation 0 [ 114.054081][ T6252] bp_start 8 [ 114.054091][ T6252] , fixing [ 114.059664][ T6251] done [ 114.059679][ T6251] bcachefs (loop3): check_dirents... done [ 114.071270][ T6251] bcachefs (loop3): check_xattrs... done [ 114.079986][ T6251] bcachefs (loop3): check_root... done [ 114.087050][ T6251] bcachefs (loop3): check_unreachable_inodes... done [ 114.088842][ T6251] bcachefs (loop3): check_subvolume_structure... done [ 114.089918][ T6251] bcachefs (loop3): check_directory_structure... done [ 114.090619][ T6251] bcachefs (loop3): check_nlinks... done [ 114.091710][ T6251] bcachefs (loop3): check_rebalance_work... done [ 114.092467][ T6251] bcachefs (loop3): resume_logged_ops... done [ 114.093145][ T6251] bcachefs (loop3): delete_dead_inodes... done [ 114.093852][ T6251] bcachefs (loop3): set_fs_needs_rebalance... done [ 114.103993][ T6254] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 114.104016][ T6254] allowing incompatible features above 0.0: (unknown version) [ 114.104030][ T6254] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 114.104058][ T6254] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 114.104180][ T6254] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 114.104414][ T6254] bcachefs (loop2): Version upgrade required: [ 114.104414][ T6254] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 114.104414][ T6254] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 114.104414][ T6254] 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,check_rebalance_work,set_fs_needs_rebalance [ 114.110075][ T6251] bcachefs (loop3): done starting filesystem [ 114.139749][ T6252] done [ 114.143826][ T6252] bcachefs (loop4): check_lrus... done [ 114.156346][ T6252] bcachefs (loop4): check_btree_backpointers... done [ 114.159447][ T6252] bcachefs (loop4): check_backpointers_to_extents... done [ 114.162489][ T6252] bcachefs (loop4): check_extents_to_backpointers... [ 114.163791][ T6252] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 114.196751][ T6254] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 114.196778][ T6254] size != 0, deleting [ 114.197770][ T6254] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 114.205746][ T5840] bcachefs (loop3): shutting down [ 114.205767][ T5840] bcachefs (loop3): going read-only [ 114.205796][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 114.207989][ T6252] done [ 114.208739][ T6252] bcachefs (loop4): check_alloc_to_lru_refs... [ 114.210687][ T6252] bcachefs (loop4): missing fragmentation lru entry [ 114.210705][ T6252] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 114.210719][ T6252] gen 0 oldest_gen 0 data_type user [ 114.210730][ T6252] journal_seq_nonempty 5 [ 114.210742][ T6252] journal_seq_empty 134217728 [ 114.217247][ T6252] need_discard 1 [ 114.217262][ T6252] need_inc_gen 1 [ 114.217273][ T6252] dirty_sectors 16 [ 114.217284][ T6252] stripe_sectors 1802251 [ 114.217294][ T6252] cached_sectors 0 [ 114.217304][ T6252] stripe 0 [ 114.217314][ T6252] stripe_redundancy 0 [ 114.217323][ T6252] io_time[READ] 1 [ 114.217333][ T6252] io_time[WRITE] 512 [ 114.217343][ T6252] fragmentation 0 [ 114.217352][ T6252] bp_start 7 [ 114.217363][ T6252] , fixing [ 114.218822][ T6254] bcachefs (loop2): check_topology... [ 114.221106][ T6252] done [ 114.222460][ T6252] bcachefs (loop4): bucket_gens_init... [ 114.225793][ T6254] done [ 114.225810][ T6254] bcachefs (loop2): accounting_read... [ 114.226073][ T6252] done [ 114.226828][ T6252] bcachefs (loop4): check_snapshot_trees... done [ 114.227784][ T6252] bcachefs (loop4): check_snapshots... [ 114.228421][ T6252] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 114.228448][ T6252] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 114.241767][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 34 [ 114.241929][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 34 [ 114.242843][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 35 [ 114.244644][ T5840] bcachefs (loop3): marking filesystem clean [ 114.245180][ T5900] bcachefs (loop3): insufficient writeable journal devices available: have 0, need 1 [ 114.245180][ T5900] rw journal devs: [ 114.280266][ T6254] done [ 114.280284][ T6254] bcachefs (loop2): alloc_read... [ 114.280947][ T6252] done [ 114.283471][ T6252] bcachefs (loop4): check_subvols... [pid 6418] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6418] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6418] chdir("./file1") = 0 [pid 6418] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6418] ioctl(4, LOOP_CLR_FD) = 0 [pid 6418] close(4) = 0 [pid 6418] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6418] exit_group(0) = ? [ 114.284924][ T6254] done [ 114.284940][ T6254] bcachefs (loop2): snapshots_read... done [ 114.285697][ T6254] bcachefs (loop2): check_allocations... [ 114.287575][ T6252] done [ 114.288329][ T6254] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 114.288345][ T6254] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 114.290069][ T6252] bcachefs (loop4): check_subvol_children... done [pid 6418] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6418, si_uid=0, si_status=0, si_utime=13 /* 0.13 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] umount2("./15", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./15", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 114.294541][ T6252] bcachefs (loop4): delete_dead_snapshots... done [ 114.296361][ T6252] bcachefs (loop4): check_inodes... [ 114.297468][ T6252] bcachefs (loop4): inode points to missing dirent [ 114.297484][ T6252] inum: 4098:4294967295 [ 114.297495][ T6252] mode=40755 [ 114.297504][ T6252] flags=(15300000) [ 114.297514][ T6252] journal_seq=4 [ 114.297523][ T6252] hash_seed=ece93825deac2443 [ 114.297534][ T6252] hash_type=siphash [ 114.297543][ T6252] bi_size=0 [ 114.297552][ T6252] bi_sectors=0 [ 114.297562][ T6252] bi_version=0 [ 114.297571][ T6252] bi_atime=2770562249 [ 114.297581][ T6252] bi_ctime=2780562352 [ 114.297590][ T6252] bi_mtime=2780562352 [ 114.297600][ T6252] bi_otime=2770562249 [ 114.297610][ T6252] bi_uid=0 [ 114.297619][ T6252] bi_gid=0 [ 114.297628][ T6252] bi_nlink=0 [ 114.297637][ T6252] bi_generation=0 [ 114.297647][ T6252] bi_dev=0 [ 114.297656][ T6252] bi_data_checksum=0 [ 114.297665][ T6252] bi_compression=0 [ 114.297675][ T6252] bi_project=0 [ 114.297684][ T6252] bi_background_compression=0 [ 114.297694][ T6252] bi_data_replicas=0 [ 114.297706][ T6252] bi_promote_target=0 [ 114.297716][ T6252] bi_foreground_target=64 [ 114.297725][ T6252] bi_background_target=1 [ 114.297735][ T6252] bi_erasure_code=0 [ 114.297745][ T6252] bi_fields_set=0 [ 114.297754][ T6252] bi_dir=0 [ 114.297763][ T6252] bi_dir_offset=32 [ 114.297773][ T6252] bi_subvol=0 [ 114.297782][ T6252] bi_parent_subvol=0 [ 114.297792][ T6252] bi_nocow=0 [ 114.297801][ T6252] bi_depth=0 [ 114.297818][ T6252] bi_inodes_32bit=0 [ 114.297828][ T6252] bi_casefold=0, fixing [ 114.306229][ T6254] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 114.306248][ T6254] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 114.309156][ T6254] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 114.309174][ T6254] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 114.316821][ T6252] done [ 114.317516][ T6252] bcachefs (loop4): check_extents... [ 114.321274][ T6254] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 114.321295][ T6254] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 114.325511][ T6252] done [ 114.325525][ T6252] bcachefs (loop4): check_indirect_extents... [ 114.327394][ T6254] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 114.327414][ T6254] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 114.328420][ T6254] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 114.328554][ T6254] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 114.329130][ T6254] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 114.329345][ T6252] done [ 114.329358][ T6252] bcachefs (loop4): check_dirents... [ 114.331082][ T6252] bcachefs (loop4): directory with missing backpointer [ 114.331097][ T6252] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 114.331112][ T6252] inum: 4098:4294967295 [ 114.331122][ T6252] mode=40755 [ 114.331131][ T6252] flags=(11300000) [ 114.331140][ T6252] journal_seq=23 [pid 5839] umount2("./15/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./15/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 114.331149][ T6252] hash_seed=ece93825deac2443 [ 114.331159][ T6252] hash_type=siphash [ 114.331168][ T6252] bi_size=0 [ 114.331179][ T6252] bi_sectors=0 [ 114.331188][ T6252] bi_version=0 [ 114.331197][ T6252] bi_atime=2770562249 [ 114.331207][ T6252] bi_ctime=2780562352 [ 114.331216][ T6252] bi_mtime=2780562352 [ 114.331225][ T6252] bi_otime=2770562249 [ 114.331235][ T6252] bi_uid=0 [ 114.331244][ T6252] bi_gid=0 [ 114.331253][ T6252] bi_nlink=0 [ 114.331262][ T6252] bi_generation=0 [pid 5839] newfstatat(AT_FDCWD, "./15/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./15/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./15/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 114.331271][ T6252] bi_dev=0 [ 114.331280][ T6252] bi_data_checksum=0 [ 114.331289][ T6252] bi_compression=0 [ 114.331299][ T6252] bi_project=0 [ 114.331308][ T6252] bi_background_compression=0 [ 114.331317][ T6252] bi_data_replicas=0 [ 114.331327][ T6252] bi_promote_target=0 [ 114.331336][ T6252] bi_foreground_target=64 [ 114.331361][ T6252] bi_background_target=1 [ 114.331370][ T6252] bi_erasure_code=0 [ 114.331380][ T6252] bi_fields_set=0 [ 114.331391][ T6252] bi_dir=0 [pid 5839] rmdir("./15/file1") = 0 [pid 5839] umount2("./15/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./15/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./15/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./15") = 0 [pid 5839] mkdir("./16", 0777) = 0 [ 114.331399][ T6252] bi_dir_offset=0 [ 114.331409][ T6252] bi_subvol=0 [ 114.331418][ T6252] bi_parent_subvol=0 [ 114.331427][ T6252] bi_nocow=0 [ 114.331437][ T6252] bi_depth=0 [ 114.331446][ T6252] bi_inodes_32bit=0 [ 114.331455][ T6252] bi_casefold=0, fixing [ 114.340696][ T6254] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 114.341177][ T6254] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6439 ./strace-static-x86_64: Process 6439 attached [pid 6439] set_robust_list(0x5555901c6760, 24) = 0 [ 114.341284][ T6254] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 114.341494][ T6254] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 114.341600][ T6254] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 114.341816][ T6254] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 114.341921][ T6254] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6439] chdir("./16") = 0 [pid 6439] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6439] setpgid(0, 0) = 0 [pid 6439] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6439] write(3, "1000", 4) = 4 [pid 6439] close(3) = 0 [ 114.342122][ T6254] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 114.342225][ T6254] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 114.342430][ T6254] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 114.342535][ T6254] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 114.342734][ T6254] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6439] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6439] write(1, "executing program\n", 18executing program ) = 18 [pid 6439] memfd_create("syzkaller", 0) = 3 [pid 6439] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 114.342851][ T6254] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 114.343077][ T6254] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 114.343184][ T6254] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 114.343386][ T6254] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 114.343492][ T6254] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 114.343718][ T6254] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 114.343735][ T6254] Ratelimiting new instances of previous error [ 114.343872][ T6254] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 114.343890][ T6254] Ratelimiting new instances of previous error [ 114.365135][ T5840] bcachefs (loop3): shutdown complete [ 114.368180][ T6252] done [ 114.369277][ T6252] bcachefs (loop4): check_xattrs... done [ 114.379549][ T6252] bcachefs (loop4): check_root... done [ 114.382603][ T6252] bcachefs (loop4): check_unreachable_inodes... done [ 114.388797][ T6252] bcachefs (loop4): check_subvolume_structure... done [ 114.389665][ T6252] bcachefs (loop4): check_directory_structure... done [ 114.390865][ T6252] bcachefs (loop4): check_nlinks... [ 114.391519][ T6252] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 114.399747][ T6252] done [ 114.400476][ T6252] bcachefs (loop4): check_rebalance_work... done [ 114.402123][ T6252] bcachefs (loop4): resume_logged_ops... done [ 114.402879][ T6252] bcachefs (loop4): delete_dead_inodes... [ 114.407505][ T6254] done [ 114.415703][ T6254] bcachefs (loop2): going read-write [ 114.424306][ T6252] done [ 114.424324][ T6252] bcachefs (loop4): set_fs_needs_rebalance... [ 114.438597][ T6254] bcachefs (loop2): journal_replay... [ 114.482895][ T6274] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 114.482923][ T6274] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 114.487097][ T6252] done [ 114.487872][ T6252] bcachefs (loop4): check_extents_to_backpointers... [ 114.488806][ T6252] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 114.496227][ T6274] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 114.502952][ T6252] done [ 114.516634][ T6252] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 114.516661][ T6252] bcachefs (loop4): check_alloc_info... [ 114.520008][ T6254] done [ 114.533081][ T6254] bcachefs (loop2): check_alloc_info... [ 114.534903][ T6254] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 114.534922][ T6254] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 114.534934][ T6254] gen 0 oldest_gen 0 data_type need_discard [ 114.534948][ T6254] journal_seq_nonempty 6 [ 114.534958][ T6254] journal_seq_empty 0 [ 114.534968][ T6254] need_discard 1 [pid 6439] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6439] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6439] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6439] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6439] close(3) = 0 [ 114.534979][ T6254] need_inc_gen 1 [ 114.534989][ T6254] dirty_sectors 0 [ 114.534999][ T6254] stripe_sectors 0 [ 114.535009][ T6254] cached_sectors 0 [ 114.535019][ T6254] stripe 0 [ 114.535030][ T6254] stripe_redundancy 0 [ 114.535041][ T6254] io_time[READ] 1 [ 114.535051][ T6254] io_time[WRITE] 768 [ 114.535061][ T6254] fragmentation 0 [ 114.535071][ T6254] bp_start 8 [ 114.535081][ T6254] , fixing [ 114.539309][ T6252] done [pid 6439] close(4) = 0 [pid 6439] mkdir("./file1", 0777) = 0 [ 114.539324][ T6252] bcachefs (loop4): check_lrus... done [ 114.540491][ T6252] bcachefs (loop4): check_btree_backpointers... done [ 114.544192][ T6252] bcachefs (loop4): check_backpointers_to_extents... done [ 114.545620][ T6252] bcachefs (loop4): check_extents_to_backpointers... [ 114.546518][ T6252] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 114.547803][ T6252] done [ 114.547818][ T6252] bcachefs (loop4): check_alloc_to_lru_refs... done [ 114.559342][ T6252] bcachefs (loop4): bucket_gens_init... done [ 114.561359][ T6252] bcachefs (loop4): check_snapshot_trees... done [ 114.562941][ T6252] bcachefs (loop4): check_snapshots... done [ 114.573914][ T6252] bcachefs (loop4): check_subvols... done [ 114.574738][ T6252] bcachefs (loop4): check_subvol_children... done [ 114.575453][ T6252] bcachefs (loop4): delete_dead_snapshots... done [ 114.576905][ T6252] bcachefs (loop4): check_inodes... done [ 114.580064][ T6252] bcachefs (loop4): check_extents... [ 114.581529][ T6254] done [ 114.583816][ T6254] bcachefs (loop2): check_lrus... done [ 114.584949][ T6252] done [ 114.584963][ T6252] bcachefs (loop4): check_indirect_extents... done [ 114.585569][ T6252] bcachefs (loop4): check_dirents... done [ 114.590472][ T6252] bcachefs (loop4): check_xattrs... done [ 114.591314][ T6252] bcachefs (loop4): check_root... done [ 114.591957][ T6252] bcachefs (loop4): check_unreachable_inodes... done [ 114.592856][ T6252] bcachefs (loop4): check_subvolume_structure... done [ 114.598472][ T6252] bcachefs (loop4): check_directory_structure... done [ 114.599199][ T6252] bcachefs (loop4): check_nlinks... [ 114.606341][ T6254] bcachefs (loop2): check_btree_backpointers... [ 114.621527][ T6252] done [ 114.621548][ T6252] bcachefs (loop4): check_rebalance_work... [ 114.622330][ T6254] done [ 114.623990][ T6254] bcachefs (loop2): check_backpointers_to_extents... [ 114.626905][ T6252] done [ 114.626922][ T6252] bcachefs (loop4): resume_logged_ops... done [ 114.627767][ T6252] bcachefs (loop4): delete_dead_inodes... done [ 114.628513][ T6252] bcachefs (loop4): set_fs_needs_rebalance... [ 114.629490][ T6254] done [ 114.630235][ T6254] bcachefs (loop2): check_extents_to_backpointers... [ 114.631623][ T6254] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 114.634025][ T6252] done [ 114.638394][ T6252] bcachefs (loop4): done starting filesystem [ 114.642268][ T6254] done [ 114.642951][ T6254] bcachefs (loop2): check_alloc_to_lru_refs... [ 114.644470][ T6254] bcachefs (loop2): missing fragmentation lru entry [ 114.644488][ T6254] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 114.644501][ T6254] gen 0 oldest_gen 0 data_type user [ 114.644513][ T6254] journal_seq_nonempty 5 [ 114.644523][ T6254] journal_seq_empty 134217728 [ 114.644533][ T6254] need_discard 1 [ 114.644543][ T6254] need_inc_gen 1 [ 114.644552][ T6254] dirty_sectors 16 [ 114.644562][ T6254] stripe_sectors 1802251 [ 114.644573][ T6254] cached_sectors 0 [ 114.644590][ T6254] stripe 0 [ 114.644601][ T6254] stripe_redundancy 0 [ 114.644612][ T6254] io_time[READ] 1 [ 114.644621][ T6254] io_time[WRITE] 512 [ 114.644631][ T6254] fragmentation 0 [ 114.644640][ T6254] bp_start 7 [ 114.644650][ T6254] , fixing [ 114.659990][ T6254] done [ 114.662237][ T6254] bcachefs (loop2): bucket_gens_init... done [ 114.667495][ T6254] bcachefs (loop2): check_snapshot_trees... done [ 114.668279][ T6254] bcachefs (loop2): check_snapshots... [ 114.668877][ T6254] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 114.668894][ T6254] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 114.696977][ T6254] done [ 114.697961][ T6254] bcachefs (loop2): check_subvols... done [ 114.700926][ T6254] bcachefs (loop2): check_subvol_children... done [ 114.705928][ T6254] bcachefs (loop2): delete_dead_snapshots... done [ 114.707097][ T6254] bcachefs (loop2): check_inodes... [ 114.708220][ T6254] bcachefs (loop2): inode points to missing dirent [ 114.708236][ T6254] inum: 4098:4294967295 [ 114.708247][ T6254] mode=40755 [ 114.708257][ T6254] flags=(15300000) [pid 6439] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6439] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6439] chdir("./file1") = 0 [ 114.708266][ T6254] journal_seq=4 [ 114.708275][ T6254] hash_seed=ece93825deac2443 [ 114.708285][ T6254] hash_type=siphash [ 114.708294][ T6254] bi_size=0 [ 114.708303][ T6254] bi_sectors=0 [ 114.708312][ T6254] bi_version=0 [ 114.708321][ T6254] bi_atime=2770562249 [ 114.708331][ T6254] bi_ctime=2780562352 [ 114.708340][ T6254] bi_mtime=2780562352 [ 114.708350][ T6254] bi_otime=2770562249 [ 114.708360][ T6254] bi_uid=0 [ 114.708369][ T6254] bi_gid=0 [ 114.708378][ T6254] bi_nlink=0 [pid 6439] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6439] ioctl(4, LOOP_CLR_FD) = 0 [pid 6439] close(4) = 0 [pid 6439] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6439] exit_group(0) = ? [pid 6439] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6439, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] umount2("./16", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./16", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 114.708387][ T6254] bi_generation=0 [ 114.708396][ T6254] bi_dev=0 [ 114.708403][ T6254] bi_data_checksum=0 [ 114.708414][ T6254] bi_compression=0 [ 114.708423][ T6254] bi_project=0 [ 114.708432][ T6254] bi_background_compression=0 [ 114.708442][ T6254] bi_data_replicas=0 [ 114.708451][ T6254] bi_promote_target=0 [ 114.708460][ T6254] bi_foreground_target=64 [ 114.708470][ T6254] bi_background_target=1 [ 114.708480][ T6254] bi_erasure_code=0 [ 114.708489][ T6254] bi_fields_set=0 [ 114.708498][ T6254] bi_dir=0 [ 114.708507][ T6254] bi_dir_offset=32 [ 114.708516][ T6254] bi_subvol=0 [ 114.708525][ T6254] bi_parent_subvol=0 [ 114.708535][ T6254] bi_nocow=0 [ 114.708543][ T6254] bi_depth=0 [ 114.708552][ T6254] bi_inodes_32bit=0 [ 114.708562][ T6254] bi_casefold=0, fixing [ 114.723185][ T6254] done [ 114.723850][ T6254] bcachefs (loop2): check_extents... done [ 114.759397][ T6254] bcachefs (loop2): check_indirect_extents... done [ 114.760869][ T6254] bcachefs (loop2): check_dirents... [ 114.762597][ T6254] bcachefs (loop2): directory with missing backpointer [ 114.762615][ T6254] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 114.762629][ T6254] inum: 4098:4294967295 [ 114.762639][ T6254] mode=40755 [ 114.762648][ T6254] flags=(11300000) [ 114.762658][ T6254] journal_seq=25 [ 114.762667][ T6254] hash_seed=ece93825deac2443 [ 114.762679][ T6254] hash_type=siphash [ 114.762689][ T6254] bi_size=0 [ 114.762698][ T6254] bi_sectors=0 [ 114.762706][ T6254] bi_version=0 [ 114.762715][ T6254] bi_atime=2770562249 [ 114.762724][ T6254] bi_ctime=2780562352 [ 114.762735][ T6254] bi_mtime=2780562352 [ 114.762745][ T6254] bi_otime=2770562249 [ 114.762755][ T6254] bi_uid=0 [ 114.762764][ T6254] bi_gid=0 [ 114.762773][ T6254] bi_nlink=0 [ 114.762782][ T6254] bi_generation=0 [ 114.762791][ T6254] bi_dev=0 [ 114.762800][ T6254] bi_data_checksum=0 [ 114.762810][ T6254] bi_compression=0 [ 114.762819][ T6254] bi_project=0 [ 114.762829][ T6254] bi_background_compression=0 [ 114.762839][ T6254] bi_data_replicas=0 [ 114.762848][ T6254] bi_promote_target=0 [ 114.762858][ T6254] bi_foreground_target=64 [ 114.762868][ T6254] bi_background_target=1 [ 114.762878][ T6254] bi_erasure_code=0 [ 114.762887][ T6254] bi_fields_set=0 [ 114.762896][ T6254] bi_dir=0 [ 114.762905][ T6254] bi_dir_offset=0 [ 114.762915][ T6254] bi_subvol=0 [ 114.762924][ T6254] bi_parent_subvol=0 [ 114.762934][ T6254] bi_nocow=0 [ 114.762943][ T6254] bi_depth=0 [ 114.762953][ T6254] bi_inodes_32bit=0 [ 114.762963][ T6254] bi_casefold=0, fixing [ 114.773254][ T6254] done [ 114.779955][ T6254] bcachefs (loop2): check_xattrs... done [ 114.781730][ T6254] bcachefs (loop2): check_root... done [ 114.782934][ T6254] bcachefs (loop2): check_unreachable_inodes... done [ 114.783906][ T6254] bcachefs (loop2): check_subvolume_structure... done [ 114.784694][ T6254] bcachefs (loop2): check_directory_structure... done [ 114.785975][ T6254] bcachefs (loop2): check_nlinks... [ 114.786671][ T6254] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 114.793172][ T6254] done [ 114.793928][ T6254] bcachefs (loop2): check_rebalance_work... [ 114.797785][ T5841] bcachefs (loop4): shutting down [ 114.797802][ T5841] bcachefs (loop4): going read-only [ 114.797832][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 114.798189][ T6254] done [ 114.798200][ T6254] bcachefs (loop2): resume_logged_ops... done [ 114.809608][ T6254] bcachefs (loop2): delete_dead_inodes... done [ 114.835328][ T6254] bcachefs (loop2): set_fs_needs_rebalance... [ 114.850915][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 34 [ 114.851071][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 34 [ 114.858374][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 35 [ 114.860447][ T5841] bcachefs (loop4): marking filesystem clean [ 114.956627][ T5841] bcachefs (loop4): shutdown complete [pid 5839] umount2("./16/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./16/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./16/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./16/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./16/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 115.000564][ T6283] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 115.000585][ T6283] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 115.003966][ T6254] done [ 115.004585][ T6254] bcachefs (loop2): check_extents_to_backpointers... [ 115.005615][ T6254] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 115.169778][ T6254] done [ 115.186644][ T6254] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [pid 5839] rmdir("./16/file1") = 0 [pid 5839] umount2("./16/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./16/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./16/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./16") = 0 [pid 5839] mkdir("./17", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 115.186669][ T6254] bcachefs (loop2): check_alloc_info... done [ 115.206081][ T6254] bcachefs (loop2): check_lrus... done [ 115.207708][ T6254] bcachefs (loop2): check_btree_backpointers... done [ 115.208915][ T6254] bcachefs (loop2): check_backpointers_to_extents... done [ 115.211342][ T6254] bcachefs (loop2): check_extents_to_backpointers... done [ 115.212819][ T6254] bcachefs (loop2): check_alloc_to_lru_refs... done [ 115.214956][ T6254] bcachefs (loop2): bucket_gens_init... done [ 115.216816][ T6254] bcachefs (loop2): check_snapshot_trees... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6450 attached , child_tidptr=0x5555901c6750) = 6450 [pid 6450] set_robust_list(0x5555901c6760, 24) = 0 [pid 6450] chdir("./17") = 0 [pid 6450] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6450] setpgid(0, 0) = 0 [pid 6450] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 115.218146][ T6254] bcachefs (loop2): check_snapshots... done [ 115.221060][ T6254] bcachefs (loop2): check_subvols... done [ 115.221866][ T6254] bcachefs (loop2): check_subvol_children... done [ 115.249958][ T6254] bcachefs (loop2): delete_dead_snapshots... done [ 115.251633][ T6254] bcachefs (loop2): check_inodes... done [ 115.260644][ T6254] bcachefs (loop2): check_extents... done [ 115.263645][ T6254] bcachefs (loop2): check_indirect_extents... done [ 115.264409][ T6254] bcachefs (loop2): check_dirents... done [pid 6450] write(3, "1000", 4) = 4 [pid 6450] close(3) = 0 [pid 6450] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6450] write(1, "executing program\n", 18executing program ) = 18 [pid 6450] memfd_create("syzkaller", 0) = 3 [pid 6450] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 115.270382][ T6254] bcachefs (loop2): check_xattrs... done [ 115.273886][ T6254] bcachefs (loop2): check_root... done [ 115.274675][ T6254] bcachefs (loop2): check_unreachable_inodes... done [ 115.275543][ T6254] bcachefs (loop2): check_subvolume_structure... done [ 115.276295][ T6254] bcachefs (loop2): check_directory_structure... done [ 115.290179][ T6254] bcachefs (loop2): check_nlinks... done [ 115.299635][ T6254] bcachefs (loop2): check_rebalance_work... done [ 115.300501][ T6254] bcachefs (loop2): resume_logged_ops... done [ 115.310887][ T6254] bcachefs (loop2): delete_dead_inodes... done [ 115.315323][ T6254] bcachefs (loop2): set_fs_needs_rebalance... done [ 115.330773][ T6254] bcachefs (loop2): done starting filesystem [ 115.469642][ T5839] bcachefs (loop2): shutting down [ 115.469660][ T5839] bcachefs (loop2): going read-only [ 115.469973][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 115.529576][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 35 [ 115.529733][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 35 [ 115.532331][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 36 [ 115.534129][ T5839] bcachefs (loop2): marking filesystem clean [ 115.627000][ T5839] bcachefs (loop2): shutdown complete [ 116.028532][ T6285] loop3: detected capacity change from 0 to 32768 [ 116.285370][ T6285] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 116.285398][ T6285] allowing incompatible features above 0.0: (unknown version) [ 116.285411][ T6285] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 116.285439][ T6285] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 116.285575][ T6285] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 116.285830][ T6285] bcachefs (loop3): Version upgrade required: [ 116.285830][ T6285] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 116.285830][ T6285] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 116.285830][ T6285] 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,check_rebalance_work,set_fs_needs_rebalance [ 116.365225][ T6285] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 116.365253][ T6285] size != 0, deleting [ 116.368267][ T6285] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 116.384590][ T6285] bcachefs (loop3): check_topology... done [ 116.391358][ T6285] bcachefs (loop3): accounting_read... done [ 116.421403][ T6285] bcachefs (loop3): alloc_read... done [pid 6450] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6450] munmap(0x7fbbeb93a000, 138412032) = 0 [ 116.422375][ T6285] bcachefs (loop3): snapshots_read... done [ 116.423453][ T6285] bcachefs (loop3): check_allocations... [ 116.426314][ T6285] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 116.426335][ T6285] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 116.428286][ T6285] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 6450] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6450] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6450] close(3) = 0 [pid 6450] close(4) = 0 [pid 6450] mkdir("./file1", 0777) = 0 [ 116.428303][ T6285] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 116.432125][ T6285] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 116.432146][ T6285] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 116.448702][ T6285] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 116.448726][ T6285] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 116.473205][ T6285] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 116.473227][ T6285] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 116.474224][ T6285] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.474351][ T6285] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.474919][ T6285] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.475026][ T6285] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.475433][ T6285] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.475540][ T6285] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.475749][ T6285] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.475853][ T6285] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.476056][ T6285] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.476164][ T6285] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.476365][ T6285] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.476469][ T6285] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.476684][ T6285] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.476791][ T6285] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 116.477000][ T6285] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 116.477103][ T6285] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 116.477315][ T6285] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 116.477429][ T6285] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 116.477631][ T6285] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 116.477747][ T6285] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 116.477982][ T6285] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 116.477999][ T6285] Ratelimiting new instances of previous error [ 116.478133][ T6285] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 116.478150][ T6285] Ratelimiting new instances of previous error [ 116.529740][ T6285] done [ 116.531783][ T6285] bcachefs (loop3): going read-write [ 116.537775][ T6285] bcachefs (loop3): journal_replay... done [ 116.651830][ T6285] bcachefs (loop3): check_alloc_info... [ 116.653884][ T6285] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 116.653905][ T6285] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 116.653917][ T6285] gen 0 oldest_gen 0 data_type need_discard [ 116.653929][ T6285] journal_seq_nonempty 6 [ 116.653941][ T6285] journal_seq_empty 0 [ 116.653951][ T6285] need_discard 1 [ 116.653961][ T6285] need_inc_gen 1 [ 116.653972][ T6285] dirty_sectors 0 [ 116.653982][ T6285] stripe_sectors 0 [ 116.653992][ T6285] cached_sectors 0 [ 116.654004][ T6285] stripe 0 [ 116.654014][ T6285] stripe_redundancy 0 [ 116.654025][ T6285] io_time[READ] 1 [ 116.654035][ T6285] io_time[WRITE] 768 [ 116.654045][ T6285] fragmentation 0 [ 116.654055][ T6285] bp_start 8 [ 116.654066][ T6285] , fixing [ 116.709909][ T6285] done [ 116.712259][ T6285] bcachefs (loop3): check_lrus... done [ 116.717559][ T6285] bcachefs (loop3): check_btree_backpointers... done [ 116.718978][ T6285] bcachefs (loop3): check_backpointers_to_extents... done [pid 6450] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6450] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6450] chdir("./file1") = 0 [pid 6450] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6450] ioctl(4, LOOP_CLR_FD) = 0 [pid 6450] close(4) = 0 [pid 6450] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6450] exit_group(0) = ? [pid 6450] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6450, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./17", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./17", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 116.723017][ T6285] bcachefs (loop3): check_extents_to_backpointers... [ 116.724377][ T6285] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 116.726225][ T6285] done [ 116.726954][ T6285] bcachefs (loop3): check_alloc_to_lru_refs... [ 116.747973][ T6285] bcachefs (loop3): missing fragmentation lru entry [ 116.747993][ T6285] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 116.748008][ T6285] gen 0 oldest_gen 0 data_type user [ 116.748019][ T6285] journal_seq_nonempty 5 [ 116.748030][ T6285] journal_seq_empty 134217728 [ 116.748040][ T6285] need_discard 1 [ 116.748051][ T6285] need_inc_gen 1 [ 116.748061][ T6285] dirty_sectors 16 [ 116.748073][ T6285] stripe_sectors 1802251 [ 116.748084][ T6285] cached_sectors 0 [ 116.748094][ T6285] stripe 0 [ 116.748104][ T6285] stripe_redundancy 0 [ 116.748114][ T6285] io_time[READ] 1 [ 116.748124][ T6285] io_time[WRITE] 512 [ 116.748135][ T6285] fragmentation 0 [ 116.748146][ T6285] bp_start 7 [ 116.748156][ T6285] , fixing [ 116.753256][ T6285] done [ 116.754724][ T6285] bcachefs (loop3): bucket_gens_init... done [ 116.756576][ T6285] bcachefs (loop3): check_snapshot_trees... done [ 116.757382][ T6285] bcachefs (loop3): check_snapshots... [ 116.757970][ T6285] bcachefs (loop3): snapshot points to missing/incorrect tree: [ 116.757987][ T6285] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 116.790712][ T6285] done [ 116.791819][ T6285] bcachefs (loop3): check_subvols... done [ 116.801364][ T6285] bcachefs (loop3): check_subvol_children... done [ 116.802605][ T6285] bcachefs (loop3): delete_dead_snapshots... done [ 116.803319][ T6285] bcachefs (loop3): check_inodes... [ 116.804444][ T6285] bcachefs (loop3): inode points to missing dirent [ 116.804461][ T6285] inum: 4098:4294967295 [ 116.804471][ T6285] mode=40755 [ 116.804481][ T6285] flags=(15300000) [ 116.804490][ T6285] journal_seq=4 [pid 5839] umount2("./17/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5841] kill(-6417, SIGKILL) = 0 [pid 5841] kill(6417, SIGKILL) = 0 [ 116.804501][ T6285] hash_seed=ece93825deac2443 [ 116.804512][ T6285] hash_type=siphash [ 116.804522][ T6285] bi_size=0 [ 116.804532][ T6285] bi_sectors=0 [ 116.804542][ T6285] bi_version=0 [ 116.804551][ T6285] bi_atime=2770562249 [ 116.804562][ T6285] bi_ctime=2780562352 [ 116.804571][ T6285] bi_mtime=2780562352 [ 116.804582][ T6285] bi_otime=2770562249 [ 116.804593][ T6285] bi_uid=0 [ 116.804602][ T6285] bi_gid=0 [ 116.804611][ T6285] bi_nlink=0 [ 116.804621][ T6285] bi_generation=0 [ 116.804638][ T6285] bi_dev=0 [ 116.804647][ T6285] bi_data_checksum=0 [ 116.804657][ T6285] bi_compression=0 [ 116.804667][ T6285] bi_project=0 [ 116.804676][ T6285] bi_background_compression=0 [ 116.804687][ T6285] bi_data_replicas=0 [ 116.804697][ T6285] bi_promote_target=0 [ 116.804707][ T6285] bi_foreground_target=64 [ 116.804718][ T6285] bi_background_target=1 [ 116.804729][ T6285] bi_erasure_code=0 [ 116.804739][ T6285] bi_fields_set=0 [ 116.804749][ T6285] bi_dir=0 [ 116.804757][ T6285] bi_dir_offset=32 [ 116.804767][ T6285] bi_subvol=0 [ 116.804776][ T6285] bi_parent_subvol=0 [ 116.804786][ T6285] bi_nocow=0 [ 116.804796][ T6285] bi_depth=0 [ 116.804805][ T6285] bi_inodes_32bit=0 [ 116.804815][ T6285] bi_casefold=0, fixing [ 116.806337][ T6285] done [ 116.806951][ T6285] bcachefs (loop3): check_extents... done [ 116.820329][ T6285] bcachefs (loop3): check_indirect_extents... done [ 116.823778][ T6285] bcachefs (loop3): check_dirents... [ 116.825513][ T6285] bcachefs (loop3): directory with missing backpointer [ 116.825531][ T6285] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 116.825545][ T6285] inum: 4098:4294967295 [ 116.825555][ T6285] mode=40755 [ 116.825566][ T6285] flags=(11300000) [ 116.825576][ T6285] journal_seq=23 [ 116.825586][ T6285] hash_seed=ece93825deac2443 [ 116.825595][ T6285] hash_type=siphash [ 116.825606][ T6285] bi_size=0 [ 116.825615][ T6285] bi_sectors=0 [ 116.825633][ T6285] bi_version=0 [ 116.825642][ T6285] bi_atime=2770562249 [ 116.825652][ T6285] bi_ctime=2780562352 [ 116.825662][ T6285] bi_mtime=2780562352 [ 116.825672][ T6285] bi_otime=2770562249 [ 116.825682][ T6285] bi_uid=0 [ 116.825691][ T6285] bi_gid=0 [ 116.825700][ T6285] bi_nlink=0 [ 116.825710][ T6285] bi_generation=0 [ 116.825719][ T6285] bi_dev=0 [ 116.825729][ T6285] bi_data_checksum=0 [ 116.825740][ T6285] bi_compression=0 [ 116.825750][ T6285] bi_project=0 [pid 5841] openat(AT_FDCWD, "/sys/fs/fuse/connections", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5841] newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=0, ...}, AT_EMPTY_PATH) = 0 [pid 5841] getdents64(3, 0x5555901c77f0 /* 2 entries */, 32768) = 48 [pid 5841] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5841] close(3) = 0 [ 116.825759][ T6285] bi_background_compression=0 [ 116.825770][ T6285] bi_data_replicas=0 [ 116.825780][ T6285] bi_promote_target=0 [ 116.825790][ T6285] bi_foreground_target=64 [ 116.825800][ T6285] bi_background_target=1 [ 116.825810][ T6285] bi_erasure_code=0 [ 116.825822][ T6285] bi_fields_set=0 [ 116.825831][ T6285] bi_dir=0 [ 116.825839][ T6285] bi_dir_offset=0 [ 116.825850][ T6285] bi_subvol=0 [ 116.825859][ T6285] bi_parent_subvol=0 [ 116.825869][ T6285] bi_nocow=0 [ 116.825879][ T6285] bi_depth=0 [pid 5839] <... umount2 resumed>) = 0 [pid 5839] umount2("./17/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./17/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./17/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./17/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./17/file1") = 0 [pid 5839] umount2("./17/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./17/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 116.825888][ T6285] bi_inodes_32bit=0 [ 116.825897][ T6285] bi_casefold=0, fixing [ 116.843701][ T6285] done [ 116.844396][ T6285] bcachefs (loop3): check_xattrs... done [ 116.845683][ T6285] bcachefs (loop3): check_root... done [ 116.854463][ T6285] bcachefs (loop3): check_unreachable_inodes... done [ 116.861125][ T6285] bcachefs (loop3): check_subvolume_structure... done [ 116.862252][ T6285] bcachefs (loop3): check_directory_structure... done [ 116.863222][ T6285] bcachefs (loop3): check_nlinks... [pid 5839] unlink("./17/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./17") = 0 [pid 5839] mkdir("./18", 0777) = 0 [ 116.863913][ T6285] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 116.866239][ T6285] done [ 116.866906][ T6285] bcachefs (loop3): check_rebalance_work... done [ 116.869744][ T6285] bcachefs (loop3): resume_logged_ops... done [ 116.873100][ T6285] bcachefs (loop3): delete_dead_inodes... done [ 116.890541][ T6285] bcachefs (loop3): set_fs_needs_rebalance... [ 116.895296][ T6286] loop4: detected capacity change from 0 to 32768 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6461 ./strace-static-x86_64: Process 6461 attached [pid 6461] set_robust_list(0x5555901c6760, 24) = 0 [ 116.943202][ T6296] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 116.943223][ T6296] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 116.946852][ T6285] done [ 116.948270][ T6285] bcachefs (loop3): check_extents_to_backpointers... [ 116.949201][ T6285] bcachefs (loop3): scanning for missing backpointers in 2/128 buckets [ 116.965695][ T6296] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 116.974081][ T6285] done [pid 6461] chdir("./18") = 0 [pid 6461] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6461] setpgid(0, 0) = 0 [pid 6461] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6461] write(3, "1000", 4) = 4 [ 116.996945][ T6285] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 116.996972][ T6285] bcachefs (loop3): check_alloc_info... done [ 117.014468][ T6285] bcachefs (loop3): check_lrus... done [ 117.022841][ T6285] bcachefs (loop3): check_btree_backpointers... done [ 117.024896][ T6285] bcachefs (loop3): check_backpointers_to_extents... done [ 117.035143][ T6285] bcachefs (loop3): check_extents_to_backpointers... [ 117.036064][ T6285] bcachefs (loop3): scanning for missing backpointers in 1/128 buckets [ 117.063862][ T6285] done [pid 6461] close(3) = 0 [pid 6461] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6461] write(1, "executing program\n", 18executing program ) = 18 [pid 6461] memfd_create("syzkaller", 0) = 3 [pid 6461] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 117.063882][ T6285] bcachefs (loop3): check_alloc_to_lru_refs... done [ 117.066989][ T6285] bcachefs (loop3): bucket_gens_init... done [ 117.070349][ T6285] bcachefs (loop3): check_snapshot_trees... done [ 117.071521][ T6285] bcachefs (loop3): check_snapshots... done [ 117.072319][ T6285] bcachefs (loop3): check_subvols... done [ 117.077892][ T6285] bcachefs (loop3): check_subvol_children... done [ 117.078635][ T6285] bcachefs (loop3): delete_dead_snapshots... done [ 117.079337][ T6285] bcachefs (loop3): check_inodes... done [ 117.082085][ T6285] bcachefs (loop3): check_extents... done [ 117.099703][ T6285] bcachefs (loop3): check_indirect_extents... done [ 117.100471][ T6285] bcachefs (loop3): check_dirents... done [ 117.120160][ T6285] bcachefs (loop3): check_xattrs... done [ 117.121829][ T6285] bcachefs (loop3): check_root... done [ 117.122803][ T6285] bcachefs (loop3): check_unreachable_inodes... done [ 117.123659][ T6285] bcachefs (loop3): check_subvolume_structure... done [ 117.124381][ T6285] bcachefs (loop3): check_directory_structure... [ 117.128588][ T6286] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 117.128622][ T6286] allowing incompatible features above 0.0: (unknown version) [ 117.128634][ T6286] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 117.128662][ T6286] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 117.128788][ T6286] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 117.129029][ T6286] bcachefs (loop4): Version upgrade required: [ 117.129029][ T6286] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 117.129029][ T6286] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 117.129029][ T6286] 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,check_rebalance_work,set_fs_needs_rebalance [ 117.129855][ T6285] done [ 117.129869][ T6285] bcachefs (loop3): check_nlinks... done [ 117.132126][ T6285] bcachefs (loop3): check_rebalance_work... done [ 117.138844][ T6285] bcachefs (loop3): resume_logged_ops... done [ 117.142563][ T6285] bcachefs (loop3): delete_dead_inodes... done [ 117.143344][ T6285] bcachefs (loop3): set_fs_needs_rebalance... done [ 117.159642][ T6285] bcachefs (loop3): done starting filesystem [ 117.230675][ T6286] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 117.230702][ T6286] size != 0, deleting [ 117.231680][ T6286] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 117.236558][ T6286] bcachefs (loop4): check_topology... done [ 117.251264][ T6286] bcachefs (loop4): accounting_read... [pid 6461] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6461] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6461] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 117.296210][ T5840] bcachefs (loop3): shutting down [ 117.296234][ T5840] bcachefs (loop3): going read-only [ 117.296299][ T6286] done [ 117.296313][ T6286] bcachefs (loop4): alloc_read... [ 117.297089][ T5840] bcachefs (loop3): finished waiting for writes to stop [ 117.298164][ T6286] done [ 117.298177][ T6286] bcachefs (loop4): snapshots_read... done [ 117.299383][ T6286] bcachefs (loop4): check_allocations... [ 117.304756][ T6286] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 6461] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6461] close(3) = 0 [pid 6461] close(4) = 0 [pid 6461] mkdir("./file1", 0777) = 0 [ 117.304779][ T6286] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 117.306713][ T6286] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 117.306730][ T6286] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 117.308064][ T6286] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 117.308082][ T6286] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 117.330756][ T6286] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 117.330777][ T6286] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 117.333128][ T6286] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 117.333147][ T6286] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 117.334085][ T6286] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.334252][ T6286] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.334810][ T6286] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.334918][ T6286] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.335328][ T6286] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.335443][ T6286] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.335645][ T6286] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.335747][ T6286] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.335938][ T6286] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.336041][ T6286] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.336235][ T6286] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.336338][ T6286] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.336546][ T6286] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.336648][ T6286] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 117.336841][ T6286] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 117.336940][ T6286] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 117.337132][ T6286] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 117.337234][ T6286] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 117.337414][ T6286] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 117.337526][ T6286] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 117.337758][ T6286] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 117.337773][ T6286] Ratelimiting new instances of previous error [ 117.337900][ T6286] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 117.337916][ T6286] Ratelimiting new instances of previous error [ 117.370844][ T5840] bcachefs (loop3): flushing journal and stopping allocators, journal seq 34 [ 117.371003][ T5840] bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 34 [ 117.371988][ T5840] bcachefs (loop3): clean shutdown complete, journal seq 35 [ 117.374627][ T5840] bcachefs (loop3): marking filesystem clean [ 117.399776][ T6286] done [ 117.405504][ T6286] bcachefs (loop4): going read-write [ 117.433971][ T6286] bcachefs (loop4): journal_replay... [ 117.466462][ T5840] bcachefs (loop3): shutdown complete [ 117.540805][ T6286] done [ 117.541422][ T6286] bcachefs (loop4): check_alloc_info... [ 117.543283][ T6286] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 117.543302][ T6286] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 117.543313][ T6286] gen 0 oldest_gen 0 data_type need_discard [ 117.543325][ T6286] journal_seq_nonempty 6 [ 117.543336][ T6286] journal_seq_empty 0 [ 117.543347][ T6286] need_discard 1 [pid 6461] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6461] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6461] chdir("./file1") = 0 [pid 6461] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6461] ioctl(4, LOOP_CLR_FD) = 0 [pid 6461] close(4) = 0 [pid 6461] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6461] exit_group(0) = ? [pid 6461] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6461, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=31 /* 0.31 s */} --- [ 117.543357][ T6286] need_inc_gen 1 [ 117.543367][ T6286] dirty_sectors 0 [ 117.543377][ T6286] stripe_sectors 0 [ 117.543387][ T6286] cached_sectors 0 [ 117.543397][ T6286] stripe 0 [ 117.543407][ T6286] stripe_redundancy 0 [ 117.543417][ T6286] io_time[READ] 1 [ 117.543427][ T6286] io_time[WRITE] 768 [ 117.543439][ T6286] fragmentation 0 [ 117.543448][ T6286] bp_start 8 [ 117.543458][ T6286] , fixing [pid 5839] umount2("./18", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./18", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 117.587885][ T6286] done [ 117.590590][ T6286] bcachefs (loop4): check_lrus... done [ 117.618665][ T6286] bcachefs (loop4): check_btree_backpointers... done [ 117.621077][ T6286] bcachefs (loop4): check_backpointers_to_extents... done [ 117.625238][ T6286] bcachefs (loop4): check_extents_to_backpointers... [ 117.626541][ T6286] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 117.627835][ T6286] done [ 117.628413][ T6286] bcachefs (loop4): check_alloc_to_lru_refs... [ 117.635069][ T6286] bcachefs (loop4): missing fragmentation lru entry [ 117.635087][ T6286] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 117.635100][ T6286] gen 0 oldest_gen 0 data_type user [ 117.635111][ T6286] journal_seq_nonempty 5 [ 117.635122][ T6286] journal_seq_empty 134217728 [ 117.635132][ T6286] need_discard 1 [ 117.635142][ T6286] need_inc_gen 1 [ 117.635151][ T6286] dirty_sectors 16 [ 117.635161][ T6286] stripe_sectors 1802251 [ 117.635171][ T6286] cached_sectors 0 [ 117.635182][ T6286] stripe 0 [ 117.635191][ T6286] stripe_redundancy 0 [ 117.635201][ T6286] io_time[READ] 1 [ 117.635211][ T6286] io_time[WRITE] 512 [ 117.635232][ T6286] fragmentation 0 [ 117.635242][ T6286] bp_start 7 [ 117.635251][ T6286] , fixing [ 117.639385][ T6294] loop2: detected capacity change from 0 to 32768 [ 117.646197][ T6286] done [ 117.660330][ T6286] bcachefs (loop4): bucket_gens_init... done [ 117.665718][ T6286] bcachefs (loop4): check_snapshot_trees... done [ 117.666584][ T6286] bcachefs (loop4): check_snapshots... [ 117.667167][ T6286] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 117.667183][ T6286] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 117.697663][ T6286] done [ 117.698264][ T6286] bcachefs (loop4): check_subvols... done [ 117.701673][ T6286] bcachefs (loop4): check_subvol_children... done [ 117.702414][ T6286] bcachefs (loop4): delete_dead_snapshots... done [ 117.706251][ T6286] bcachefs (loop4): check_inodes... [ 117.707327][ T6286] bcachefs (loop4): inode points to missing dirent [ 117.707343][ T6286] inum: 4098:4294967295 [ 117.707353][ T6286] mode=40755 [ 117.707363][ T6286] flags=(15300000) [ 117.707373][ T6286] journal_seq=4 [ 117.707382][ T6286] hash_seed=ece93825deac2443 [ 117.707392][ T6286] hash_type=siphash [ 117.707403][ T6286] bi_size=0 [ 117.707413][ T6286] bi_sectors=0 [ 117.707423][ T6286] bi_version=0 [ 117.707432][ T6286] bi_atime=2770562249 [ 117.707442][ T6286] bi_ctime=2780562352 [ 117.707452][ T6286] bi_mtime=2780562352 [ 117.707461][ T6286] bi_otime=2770562249 [ 117.707470][ T6286] bi_uid=0 [ 117.707479][ T6286] bi_gid=0 [ 117.707488][ T6286] bi_nlink=0 [ 117.707497][ T6286] bi_generation=0 [ 117.707506][ T6286] bi_dev=0 [ 117.707516][ T6286] bi_data_checksum=0 [ 117.707527][ T6286] bi_compression=0 [ 117.707536][ T6286] bi_project=0 [ 117.707545][ T6286] bi_background_compression=0 [ 117.707555][ T6286] bi_data_replicas=0 [ 117.707565][ T6286] bi_promote_target=0 [ 117.707575][ T6286] bi_foreground_target=64 [ 117.707585][ T6286] bi_background_target=1 [ 117.707595][ T6286] bi_erasure_code=0 [ 117.707604][ T6286] bi_fields_set=0 [ 117.707614][ T6286] bi_dir=0 [ 117.707623][ T6286] bi_dir_offset=32 [ 117.707632][ T6286] bi_subvol=0 [ 117.707653][ T6286] bi_parent_subvol=0 [ 117.707662][ T6286] bi_nocow=0 [ 117.707671][ T6286] bi_depth=0 [ 117.707680][ T6286] bi_inodes_32bit=0 [pid 5839] umount2("./18/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 117.707689][ T6286] bi_casefold=0, fixing [ 117.717833][ T6286] done [ 117.725891][ T6286] bcachefs (loop4): check_extents... done [ 117.731108][ T6286] bcachefs (loop4): check_indirect_extents... done [ 117.731963][ T6286] bcachefs (loop4): check_dirents... [ 117.733708][ T6286] bcachefs (loop4): directory with missing backpointer [ 117.733725][ T6286] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 117.733740][ T6286] inum: 4098:4294967295 [ 117.733750][ T6286] mode=40755 [pid 5839] umount2("./18/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./18/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./18/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./18/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./18/file1") = 0 [pid 5839] umount2("./18/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./18/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./18/binderfs") = 0 [ 117.733759][ T6286] flags=(11300000) [ 117.733769][ T6286] journal_seq=23 [ 117.733779][ T6286] hash_seed=ece93825deac2443 [ 117.733790][ T6286] hash_type=siphash [ 117.733799][ T6286] bi_size=0 [ 117.733809][ T6286] bi_sectors=0 [ 117.733818][ T6286] bi_version=0 [ 117.733829][ T6286] bi_atime=2770562249 [ 117.733839][ T6286] bi_ctime=2780562352 [ 117.733849][ T6286] bi_mtime=2780562352 [ 117.733858][ T6286] bi_otime=2770562249 [ 117.733868][ T6286] bi_uid=0 [ 117.733877][ T6286] bi_gid=0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./18") = 0 [pid 5839] mkdir("./19", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6472 ./strace-static-x86_64: Process 6472 attached [ 117.733886][ T6286] bi_nlink=0 [ 117.733895][ T6286] bi_generation=0 [ 117.733905][ T6286] bi_dev=0 [ 117.733914][ T6286] bi_data_checksum=0 [ 117.733924][ T6286] bi_compression=0 [ 117.733933][ T6286] bi_project=0 [ 117.733942][ T6286] bi_background_compression=0 [ 117.733952][ T6286] bi_data_replicas=0 [ 117.733961][ T6286] bi_promote_target=0 [ 117.733973][ T6286] bi_foreground_target=64 [ 117.733983][ T6286] bi_background_target=1 [ 117.733993][ T6286] bi_erasure_code=0 [pid 6472] set_robust_list(0x5555901c6760, 24) = 0 [pid 6472] chdir("./19") = 0 [pid 6472] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6472] setpgid(0, 0) = 0 [pid 6472] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6472] write(3, "1000", 4) = 4 [ 117.734002][ T6286] bi_fields_set=0 [ 117.734012][ T6286] bi_dir=0 [ 117.734021][ T6286] bi_dir_offset=0 [ 117.734030][ T6286] bi_subvol=0 [ 117.734039][ T6286] bi_parent_subvol=0 [ 117.734049][ T6286] bi_nocow=0 [ 117.734058][ T6286] bi_depth=0 [ 117.734094][ T6286] bi_inodes_32bit=0 [ 117.734104][ T6286] bi_casefold=0, fixing [ 117.754520][ T6286] done [ 117.755229][ T6286] bcachefs (loop4): check_xattrs... done [ 117.756796][ T6286] bcachefs (loop4): check_root... done [pid 6472] close(3) = 0 [pid 6472] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6472] write(1, "executing program\n", 18executing program ) = 18 [pid 6472] memfd_create("syzkaller", 0) = 3 [pid 6472] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 117.760436][ T6286] bcachefs (loop4): check_unreachable_inodes... done [ 117.761326][ T6286] bcachefs (loop4): check_subvolume_structure... done [ 117.761974][ T6286] bcachefs (loop4): check_directory_structure... done [ 117.765176][ T6286] bcachefs (loop4): check_nlinks... [ 117.765904][ T6286] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 117.779211][ T6286] done [ 117.809301][ T6286] bcachefs (loop4): check_rebalance_work... done [ 117.820275][ T6286] bcachefs (loop4): resume_logged_ops... done [ 117.821942][ T6286] bcachefs (loop4): delete_dead_inodes... done [ 117.855282][ T6286] bcachefs (loop4): set_fs_needs_rebalance... [ 117.898926][ T6294] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 117.898955][ T6294] allowing incompatible features above 0.0: (unknown version) [ 117.898967][ T6294] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 117.898994][ T6294] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 117.899120][ T6294] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 117.911418][ T6294] bcachefs (loop2): Version upgrade required: [ 117.911418][ T6294] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 117.911418][ T6294] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 117.911418][ T6294] 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,check_rebalance_work,set_fs_needs_rebalance [ 117.954839][ T6294] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 117.954863][ T6294] size != 0, deleting [ 117.955858][ T6294] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 117.959173][ T6294] bcachefs (loop2): check_topology... done [ 117.970064][ T6294] bcachefs (loop2): accounting_read... [ 118.014958][ T6286] done [ 118.015686][ T6286] bcachefs (loop4): check_extents_to_backpointers... [ 118.016661][ T6286] bcachefs (loop4): scanning for missing backpointers in 3/128 buckets [ 118.016987][ T6306] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 118.017005][ T6306] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 118.029196][ T6286] done [ 118.043567][ T6294] done [ 118.043586][ T6294] bcachefs (loop2): alloc_read... done [ 118.044481][ T6294] bcachefs (loop2): snapshots_read... done [ 118.046205][ T6294] bcachefs (loop2): check_allocations... [ 118.061087][ T6286] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [pid 6472] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6472] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6472] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 118.061116][ T6286] bcachefs (loop4): check_alloc_info... [ 118.068704][ T6294] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 118.068728][ T6294] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 118.074834][ T6294] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 6472] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6472] close(3) = 0 [pid 6472] close(4) = 0 [pid 6472] mkdir("./file1", 0777) = 0 [ 118.074858][ T6294] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 118.079071][ T6294] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 118.079087][ T6294] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 118.082864][ T6294] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 118.082885][ T6294] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 118.085243][ T6286] done [ 118.085260][ T6286] bcachefs (loop4): check_lrus... [ 118.111133][ T6294] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 118.111156][ T6294] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 118.112135][ T6294] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.112273][ T6294] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.112846][ T6294] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.112964][ T6294] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.113387][ T6294] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.113496][ T6294] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.113711][ T6294] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.113816][ T6294] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.114016][ T6294] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.114148][ T6294] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.114368][ T6294] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.114473][ T6294] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.114676][ T6294] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.114784][ T6294] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 118.114985][ T6294] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 118.115093][ T6294] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 118.115299][ T6294] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.115405][ T6294] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.115609][ T6294] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.115720][ T6294] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.115950][ T6294] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 118.115965][ T6294] Ratelimiting new instances of previous error [ 118.116095][ T6294] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 118.116112][ T6294] Ratelimiting new instances of previous error [ 118.120363][ T6286] done [ 118.120378][ T6286] bcachefs (loop4): check_btree_backpointers... done [ 118.125605][ T6286] bcachefs (loop4): check_backpointers_to_extents... done [ 118.133888][ T6286] bcachefs (loop4): check_extents_to_backpointers... done [ 118.140821][ T6286] bcachefs (loop4): check_alloc_to_lru_refs... done [ 118.144232][ T6286] bcachefs (loop4): bucket_gens_init... done [ 118.146224][ T6286] bcachefs (loop4): check_snapshot_trees... done [ 118.150192][ T6286] bcachefs (loop4): check_snapshots... done [ 118.150963][ T6286] bcachefs (loop4): check_subvols... done [ 118.171122][ T6286] bcachefs (loop4): check_subvol_children... done [ 118.171996][ T6286] bcachefs (loop4): delete_dead_snapshots... done [ 118.172778][ T6286] bcachefs (loop4): check_inodes... done [ 118.173910][ T6286] bcachefs (loop4): check_extents... done [ 118.176536][ T6286] bcachefs (loop4): check_indirect_extents... done [ 118.178140][ T6286] bcachefs (loop4): check_dirents... done [ 118.180879][ T6286] bcachefs (loop4): check_xattrs... done [ 118.183223][ T6286] bcachefs (loop4): check_root... done [ 118.183964][ T6286] bcachefs (loop4): check_unreachable_inodes... done [ 118.184955][ T6286] bcachefs (loop4): check_subvolume_structure... [ 118.185525][ T6294] done [ 118.190355][ T6286] done [pid 6472] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6472] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6472] chdir("./file1") = 0 [pid 6472] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6472] ioctl(4, LOOP_CLR_FD) = 0 [pid 6472] close(4) = 0 [pid 6472] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 118.190369][ T6286] bcachefs (loop4): check_directory_structure... [ 118.194360][ T6294] bcachefs (loop2): going read-write [ 118.195250][ T6286] done [ 118.195263][ T6286] bcachefs (loop4): check_nlinks... done [ 118.198183][ T6286] bcachefs (loop4): check_rebalance_work... [ 118.202260][ T6294] bcachefs (loop2): journal_replay... [ 118.211374][ T6286] done [ 118.211392][ T6286] bcachefs (loop4): resume_logged_ops... done [ 118.212404][ T6286] bcachefs (loop4): delete_dead_inodes... done [pid 6472] exit_group(0) = ? [pid 6472] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6472, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./19", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./19", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 118.216709][ T6286] bcachefs (loop4): set_fs_needs_rebalance... done [ 118.222671][ T6286] bcachefs (loop4): done starting filesystem [ 118.314787][ T5841] bcachefs (loop4): shutting down [ 118.314809][ T5841] bcachefs (loop4): going read-only [ 118.319129][ T6294] done [ 118.320987][ T6294] bcachefs (loop2): check_alloc_info... [ 118.322843][ T6294] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 118.322861][ T6294] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 118.322873][ T6294] gen 0 oldest_gen 0 data_type need_discard [ 118.322883][ T6294] journal_seq_nonempty 6 [ 118.322892][ T6294] journal_seq_empty 0 [ 118.322901][ T6294] need_discard 1 [ 118.322912][ T6294] need_inc_gen 1 [ 118.322923][ T6294] dirty_sectors 0 [ 118.322933][ T6294] stripe_sectors 0 [ 118.322943][ T6294] cached_sectors 0 [ 118.322954][ T6294] stripe 0 [ 118.322966][ T6294] stripe_redundancy 0 [ 118.322976][ T6294] io_time[READ] 1 [ 118.322988][ T6294] io_time[WRITE] 768 [ 118.322998][ T6294] fragmentation 0 [ 118.323008][ T6294] bp_start 8 [ 118.323018][ T6294] , fixing [ 118.325169][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 118.352397][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 34 [ 118.352759][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 34 [ 118.353936][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 35 [ 118.355746][ T5841] bcachefs (loop4): marking filesystem clean [ 118.371065][ T6294] done [ 118.371730][ T6294] bcachefs (loop2): check_lrus... done [ 118.372521][ T6294] bcachefs (loop2): check_btree_backpointers... done [ 118.389792][ T6294] bcachefs (loop2): check_backpointers_to_extents... done [ 118.400856][ T6294] bcachefs (loop2): check_extents_to_backpointers... [ 118.402237][ T6294] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 118.410184][ T6294] done [ 118.411060][ T6294] bcachefs (loop2): check_alloc_to_lru_refs... [ 118.412975][ T6294] bcachefs (loop2): missing fragmentation lru entry [ 118.412993][ T6294] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 118.413004][ T6294] gen 0 oldest_gen 0 data_type user [ 118.413016][ T6294] journal_seq_nonempty 5 [ 118.413027][ T6294] journal_seq_empty 134217728 [ 118.413039][ T6294] need_discard 1 [ 118.413049][ T6294] need_inc_gen 1 [ 118.413059][ T6294] dirty_sectors 16 [ 118.413070][ T6294] stripe_sectors 1802251 [ 118.413080][ T6294] cached_sectors 0 [ 118.413092][ T6294] stripe 0 [ 118.413102][ T6294] stripe_redundancy 0 [ 118.413112][ T6294] io_time[READ] 1 [ 118.413122][ T6294] io_time[WRITE] 512 [ 118.413132][ T6294] fragmentation 0 [ 118.413142][ T6294] bp_start 7 [ 118.413152][ T6294] , fixing [ 118.427350][ T6294] done [ 118.428593][ T6294] bcachefs (loop2): bucket_gens_init... done [ 118.431364][ T6294] bcachefs (loop2): check_snapshot_trees... done [ 118.432114][ T6294] bcachefs (loop2): check_snapshots... [ 118.432718][ T6294] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 118.432734][ T6294] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 118.458923][ T6294] done [ 118.460060][ T6294] bcachefs (loop2): check_subvols... done [ 118.461631][ T6294] bcachefs (loop2): check_subvol_children... done [ 118.462366][ T6294] bcachefs (loop2): delete_dead_snapshots... done [ 118.463058][ T6294] bcachefs (loop2): check_inodes... [ 118.464134][ T6294] bcachefs (loop2): inode points to missing dirent [ 118.464151][ T6294] inum: 4098:4294967295 [ 118.464162][ T6294] mode=40755 [ 118.464172][ T6294] flags=(15300000) [ 118.464191][ T6294] journal_seq=4 [ 118.464201][ T6294] hash_seed=ece93825deac2443 [ 118.464212][ T6294] hash_type=siphash [ 118.464224][ T6294] bi_size=0 [ 118.464233][ T6294] bi_sectors=0 [ 118.464243][ T6294] bi_version=0 [ 118.464252][ T6294] bi_atime=2770562249 [ 118.464262][ T6294] bi_ctime=2780562352 [ 118.464272][ T6294] bi_mtime=2780562352 [pid 5839] umount2("./19/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./19/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 118.464282][ T6294] bi_otime=2770562249 [ 118.464293][ T6294] bi_uid=0 [ 118.464302][ T6294] bi_gid=0 [ 118.464311][ T6294] bi_nlink=0 [ 118.464321][ T6294] bi_generation=0 [ 118.464330][ T6294] bi_dev=0 [ 118.464339][ T6294] bi_data_checksum=0 [ 118.464349][ T6294] bi_compression=0 [ 118.464359][ T6294] bi_project=0 [ 118.464368][ T6294] bi_background_compression=0 [ 118.464378][ T6294] bi_data_replicas=0 [ 118.464390][ T6294] bi_promote_target=0 [pid 5839] newfstatat(AT_FDCWD, "./19/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./19/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./19/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./19/file1") = 0 [pid 5839] umount2("./19/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./19/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./19/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./19") = 0 [ 118.464400][ T6294] bi_foreground_target=64 [ 118.464410][ T6294] bi_background_target=1 [ 118.464422][ T6294] bi_erasure_code=0 [ 118.464432][ T6294] bi_fields_set=0 [ 118.464441][ T6294] bi_dir=0 [ 118.464451][ T6294] bi_dir_offset=32 [ 118.464460][ T6294] bi_subvol=0 [ 118.464470][ T6294] bi_parent_subvol=0 [ 118.464482][ T6294] bi_nocow=0 [ 118.464491][ T6294] bi_depth=0 [ 118.464501][ T6294] bi_inodes_32bit=0 [ 118.464511][ T6294] bi_casefold=0, fixing [ 118.466253][ T6294] done [pid 5839] mkdir("./20", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6483 attached , child_tidptr=0x5555901c6750) = 6483 [pid 6483] set_robust_list(0x5555901c6760, 24) = 0 [pid 6483] chdir("./20") = 0 [ 118.466819][ T6294] bcachefs (loop2): check_extents... done [ 118.472410][ T6294] bcachefs (loop2): check_indirect_extents... done [ 118.474499][ T6294] bcachefs (loop2): check_dirents... [ 118.476255][ T6294] bcachefs (loop2): directory with missing backpointer [ 118.476273][ T6294] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 118.476289][ T6294] inum: 4098:4294967295 [ 118.476299][ T6294] mode=40755 [ 118.476309][ T6294] flags=(11300000) [ 118.476319][ T6294] journal_seq=22 [pid 6483] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6483] setpgid(0, 0) = 0 [pid 6483] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6483] write(3, "1000", 4) = 4 [pid 6483] close(3) = 0 [pid 6483] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6483] write(1, "executing program\n", 18executing program ) = 18 [pid 6483] memfd_create("syzkaller", 0) = 3 [ 118.476329][ T6294] hash_seed=ece93825deac2443 [ 118.476339][ T6294] hash_type=siphash [ 118.476350][ T6294] bi_size=0 [ 118.476359][ T6294] bi_sectors=0 [ 118.476369][ T6294] bi_version=0 [ 118.476378][ T6294] bi_atime=2770562249 [ 118.476388][ T6294] bi_ctime=2780562352 [ 118.476399][ T6294] bi_mtime=2780562352 [ 118.476409][ T6294] bi_otime=2770562249 [ 118.476419][ T6294] bi_uid=0 [ 118.476429][ T6294] bi_gid=0 [ 118.476436][ T6294] bi_nlink=0 [pid 6483] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 118.476445][ T6294] bi_generation=0 [ 118.476454][ T6294] bi_dev=0 [ 118.476464][ T6294] bi_data_checksum=0 [ 118.476472][ T6294] bi_compression=0 [ 118.476481][ T6294] bi_project=0 [ 118.476490][ T6294] bi_background_compression=0 [ 118.476500][ T6294] bi_data_replicas=0 [ 118.476510][ T6294] bi_promote_target=0 [ 118.476520][ T6294] bi_foreground_target=64 [ 118.476530][ T6294] bi_background_target=1 [ 118.476541][ T6294] bi_erasure_code=0 [ 118.476551][ T6294] bi_fields_set=0 [ 118.476561][ T6294] bi_dir=0 [ 118.476572][ T6294] bi_dir_offset=0 [ 118.476581][ T6294] bi_subvol=0 [ 118.476590][ T6294] bi_parent_subvol=0 [ 118.476599][ T6294] bi_nocow=0 [ 118.476608][ T6294] bi_depth=0 [ 118.476618][ T6294] bi_inodes_32bit=0 [ 118.476627][ T6294] bi_casefold=0, fixing [ 118.487347][ T6294] done [ 118.488339][ T6294] bcachefs (loop2): check_xattrs... done [ 118.489947][ T6294] bcachefs (loop2): check_root... done [ 118.491078][ T6294] bcachefs (loop2): check_unreachable_inodes... done [ 118.492820][ T6294] bcachefs (loop2): check_subvolume_structure... done [ 118.493629][ T6294] bcachefs (loop2): check_directory_structure... done [ 118.494487][ T6294] bcachefs (loop2): check_nlinks... [ 118.495205][ T6294] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 118.496305][ T6294] done [ 118.497021][ T6294] bcachefs (loop2): check_rebalance_work... done [ 118.498238][ T6294] bcachefs (loop2): resume_logged_ops... done [ 118.499042][ T6294] bcachefs (loop2): delete_dead_inodes... done [ 118.509173][ T6294] bcachefs (loop2): set_fs_needs_rebalance... [ 118.516940][ T6317] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 118.516964][ T6317] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 118.521241][ T6294] done [ 118.523158][ T6294] bcachefs (loop2): check_extents_to_backpointers... [ 118.527503][ T6294] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 118.530448][ T6294] done [ 118.540512][ T6294] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 118.540538][ T6294] bcachefs (loop2): check_alloc_info... done [ 118.545881][ T6294] bcachefs (loop2): check_lrus... done [ 118.547085][ T6294] bcachefs (loop2): check_btree_backpointers... done [ 118.548339][ T6294] bcachefs (loop2): check_backpointers_to_extents... done [ 118.550648][ T6294] bcachefs (loop2): check_extents_to_backpointers... done [ 118.552330][ T6294] bcachefs (loop2): check_alloc_to_lru_refs... done [ 118.554671][ T6294] bcachefs (loop2): bucket_gens_init... done [pid 6483] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6483] munmap(0x7fbbeb93a000, 138412032) = 0 [ 118.557480][ T6294] bcachefs (loop2): check_snapshot_trees... done [ 118.558697][ T6294] bcachefs (loop2): check_snapshots... done [ 118.560448][ T6294] bcachefs (loop2): check_subvols... done [ 118.561240][ T6294] bcachefs (loop2): check_subvol_children... done [ 118.561942][ T6294] bcachefs (loop2): delete_dead_snapshots... done [ 118.562633][ T6294] bcachefs (loop2): check_inodes... done [ 118.563745][ T6294] bcachefs (loop2): check_extents... done [ 118.565111][ T6294] bcachefs (loop2): check_indirect_extents... done [pid 6483] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6483] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6483] close(3) = 0 [pid 6483] close(4) = 0 [pid 6483] mkdir("./file1", 0777) = 0 [ 118.565826][ T6294] bcachefs (loop2): check_dirents... done [ 118.567449][ T6294] bcachefs (loop2): check_xattrs... done [ 118.568250][ T6294] bcachefs (loop2): check_root... done [ 118.569054][ T6294] bcachefs (loop2): check_unreachable_inodes... done [ 118.570441][ T6294] bcachefs (loop2): check_subvolume_structure... done [ 118.571617][ T6294] bcachefs (loop2): check_directory_structure... done [ 118.572338][ T6294] bcachefs (loop2): check_nlinks... done [ 118.574809][ T6294] bcachefs (loop2): check_rebalance_work... done [ 118.575624][ T6294] bcachefs (loop2): resume_logged_ops... done [ 118.576357][ T6294] bcachefs (loop2): delete_dead_inodes... done [ 118.577045][ T6294] bcachefs (loop2): set_fs_needs_rebalance... done [ 118.590225][ T6294] bcachefs (loop2): done starting filesystem [ 118.605561][ T5841] bcachefs (loop4): shutdown complete [ 118.674448][ T5839] bcachefs (loop2): shutting down [ 118.674471][ T5839] bcachefs (loop2): going read-only [ 118.674501][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 118.739624][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 118.739985][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 118.750611][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 118.752473][ T5839] bcachefs (loop2): marking filesystem clean [ 118.852069][ T5839] bcachefs (loop2): shutdown complete [ 119.476533][ T6315] loop3: detected capacity change from 0 to 32768 [ 119.694547][ T6315] bcachefs (loop3): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 119.694576][ T6315] allowing incompatible features above 0.0: (unknown version) [ 119.694589][ T6315] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 119.694616][ T6315] bcachefs (loop3): Using encoding defined by superblock: utf8-12.1.0 [ 119.694744][ T6315] bcachefs (loop3): recovering from clean shutdown, journal seq 10 [ 119.695006][ T6315] bcachefs (loop3): Version upgrade required: [ 119.695006][ T6315] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 119.695006][ T6315] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 119.695006][ T6315] 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,check_rebalance_work,set_fs_needs_rebalance [ 119.727683][ T6315] bcachefs (loop3): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 119.727709][ T6315] size != 0, deleting [ 119.730412][ T6315] bcachefs (loop3): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 119.734797][ T6315] bcachefs (loop3): check_topology... done [ 119.738983][ T6315] bcachefs (loop3): accounting_read... done [ 119.841138][ T6315] bcachefs (loop3): alloc_read... done [ 119.842046][ T6315] bcachefs (loop3): snapshots_read... done [ 119.842808][ T6315] bcachefs (loop3): check_allocations... [ 119.844705][ T6315] bcachefs (loop3): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 119.844725][ T6315] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 119.862488][ T6315] bcachefs (loop3): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 119.862510][ T6315] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 119.870580][ T6315] bcachefs (loop3): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 119.870601][ T6315] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 119.873762][ T6315] bcachefs (loop3): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 119.873781][ T6315] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 119.876318][ T6315] bcachefs (loop3): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 119.876337][ T6315] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 119.877294][ T6315] bcachefs (loop3): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.877422][ T6315] bcachefs (loop3): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.877981][ T6315] bcachefs (loop3): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.878094][ T6315] bcachefs (loop3): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.878496][ T6315] bcachefs (loop3): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.878601][ T6315] bcachefs (loop3): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.878814][ T6315] bcachefs (loop3): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.878918][ T6315] bcachefs (loop3): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.879132][ T6315] bcachefs (loop3): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.889291][ T6315] bcachefs (loop3): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6483] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6483] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6483] chdir("./file1") = 0 [pid 6483] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6483] ioctl(4, LOOP_CLR_FD) = 0 [pid 6483] close(4) = 0 [pid 6483] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6483] exit_group(0) = ? [pid 6483] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6483, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] umount2("./20", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./20", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 119.889566][ T6315] bcachefs (loop3): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.889676][ T6315] bcachefs (loop3): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.889886][ T6315] bcachefs (loop3): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.889992][ T6315] bcachefs (loop3): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 119.890239][ T6315] bcachefs (loop3): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 119.890343][ T6315] bcachefs (loop3): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 119.890555][ T6315] bcachefs (loop3): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 119.890661][ T6315] bcachefs (loop3): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 119.890866][ T6315] bcachefs (loop3): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 119.890973][ T6315] bcachefs (loop3): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 119.891212][ T6315] bcachefs (loop3): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 119.891228][ T6315] Ratelimiting new instances of previous error [ 119.891352][ T6315] bcachefs (loop3): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 119.891369][ T6315] Ratelimiting new instances of previous error [ 119.933511][ T6315] done [ 119.935591][ T6315] bcachefs (loop3): going read-write [ 119.978032][ T6315] bcachefs (loop3): journal_replay... done [ 120.055437][ T6315] bcachefs (loop3): check_alloc_info... [ 120.057227][ T6315] bcachefs (loop3): bucket incorrectly unset in need_discard btree [ 120.057244][ T6315] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 120.057256][ T6315] gen 0 oldest_gen 0 data_type need_discard [ 120.057264][ T6315] journal_seq_nonempty 6 [ 120.057273][ T6315] journal_seq_empty 0 [ 120.057282][ T6315] need_discard 1 [ 120.057292][ T6315] need_inc_gen 1 [ 120.057301][ T6315] dirty_sectors 0 [ 120.057311][ T6315] stripe_sectors 0 [ 120.057320][ T6315] cached_sectors 0 [ 120.057330][ T6315] stripe 0 [ 120.057340][ T6315] stripe_redundancy 0 [ 120.057349][ T6315] io_time[READ] 1 [ 120.057359][ T6315] io_time[WRITE] 768 [ 120.057370][ T6315] fragmentation 0 [ 120.057380][ T6315] bp_start 8 [ 120.057390][ T6315] , fixing [ 120.137236][ T6315] done [ 120.143057][ T6315] bcachefs (loop3): check_lrus... done [ 120.144012][ T6315] bcachefs (loop3): check_btree_backpointers... done [ 120.145644][ T6315] bcachefs (loop3): check_backpointers_to_extents... done [ 120.148527][ T6315] bcachefs (loop3): check_extents_to_backpointers... [ 120.149954][ T6315] bcachefs (loop3): scanning for missing backpointers in 5/128 buckets [ 120.151836][ T6315] done [ 120.152411][ T6315] bcachefs (loop3): check_alloc_to_lru_refs... [ 120.153947][ T6315] bcachefs (loop3): missing fragmentation lru entry [ 120.153965][ T6315] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 120.153976][ T6315] gen 0 oldest_gen 0 data_type user [ 120.153988][ T6315] journal_seq_nonempty 5 [ 120.154006][ T6315] journal_seq_empty 134217728 [ 120.154018][ T6315] need_discard 1 [ 120.154028][ T6315] need_inc_gen 1 [ 120.154039][ T6315] dirty_sectors 16 [ 120.154049][ T6315] stripe_sectors 1802251 [ 120.154060][ T6315] cached_sectors 0 [ 120.154070][ T6315] stripe 0 [ 120.154080][ T6315] stripe_redundancy 0 [ 120.154091][ T6315] io_time[READ] 1 [ 120.154102][ T6315] io_time[WRITE] 512 [ 120.154112][ T6315] fragmentation 0 [ 120.154122][ T6315] bp_start 7 [ 120.154132][ T6315] , fixing [ 120.161526][ T6315] done [ 120.164618][ T6315] bcachefs (loop3): bucket_gens_init... done [ 120.189477][ T6315] bcachefs (loop3): check_snapshot_trees... done [ 120.191069][ T6315] bcachefs (loop3): check_snapshots... [ 120.191675][ T6315] bcachefs (loop3): snapshot points to missing/incorrect tree: [pid 5839] umount2("./20/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./20/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./20/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./20/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 120.191693][ T6315] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 120.221711][ T6315] done [ 120.229485][ T6315] bcachefs (loop3): check_subvols... done [ 120.261195][ T6315] bcachefs (loop3): check_subvol_children... done [ 120.262141][ T6315] bcachefs (loop3): delete_dead_snapshots... done [ 120.269880][ T6315] bcachefs (loop3): check_inodes... [ 120.271078][ T6315] bcachefs (loop3): inode points to missing dirent [pid 5839] openat(AT_FDCWD, "./20/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 120.271094][ T6315] inum: 4098:4294967295 [ 120.271105][ T6315] mode=40755 [ 120.271115][ T6315] flags=(15300000) [ 120.271124][ T6315] journal_seq=4 [ 120.271134][ T6315] hash_seed=ece93825deac2443 [ 120.271146][ T6315] hash_type=siphash [ 120.271155][ T6315] bi_size=0 [ 120.271164][ T6315] bi_sectors=0 [ 120.271173][ T6315] bi_version=0 [ 120.271182][ T6315] bi_atime=2770562249 [ 120.271192][ T6315] bi_ctime=2780562352 [ 120.271202][ T6315] bi_mtime=2780562352 [ 120.271220][ T6315] bi_otime=2770562249 [pid 5839] close(4) = 0 [pid 5839] rmdir("./20/file1") = 0 [pid 5839] umount2("./20/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./20/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./20/binderfs") = 0 [ 120.271230][ T6315] bi_uid=0 [ 120.271239][ T6315] bi_gid=0 [ 120.271248][ T6315] bi_nlink=0 [ 120.271257][ T6315] bi_generation=0 [ 120.271266][ T6315] bi_dev=0 [ 120.271276][ T6315] bi_data_checksum=0 [ 120.271285][ T6315] bi_compression=0 [ 120.271294][ T6315] bi_project=0 [ 120.271304][ T6315] bi_background_compression=0 [ 120.271314][ T6315] bi_data_replicas=0 [ 120.271323][ T6315] bi_promote_target=0 [ 120.271332][ T6315] bi_foreground_target=64 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./20") = 0 [pid 5839] mkdir("./21", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 120.271342][ T6315] bi_background_target=1 [ 120.271352][ T6315] bi_erasure_code=0 [ 120.271362][ T6315] bi_fields_set=0 [ 120.271371][ T6315] bi_dir=0 [ 120.271380][ T6315] bi_dir_offset=32 [ 120.271392][ T6315] bi_subvol=0 [ 120.271401][ T6315] bi_parent_subvol=0 [ 120.271411][ T6315] bi_nocow=0 [ 120.271421][ T6315] bi_depth=0 [ 120.271430][ T6315] bi_inodes_32bit=0 [ 120.271440][ T6315] bi_casefold=0, fixing [ 120.273489][ T6315] done [ 120.274162][ T6315] bcachefs (loop3): check_extents... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6494 attached , child_tidptr=0x5555901c6750) = 6494 [pid 6494] set_robust_list(0x5555901c6760, 24) = 0 [pid 6494] chdir("./21") = 0 [pid 6494] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 120.275513][ T6315] bcachefs (loop3): check_indirect_extents... done [ 120.276242][ T6315] bcachefs (loop3): check_dirents... [ 120.277975][ T6315] bcachefs (loop3): directory with missing backpointer [ 120.277988][ T6315] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 120.277999][ T6315] inum: 4098:4294967295 [ 120.278007][ T6315] mode=40755 [ 120.278015][ T6315] flags=(11300000) [ 120.278024][ T6315] journal_seq=24 [ 120.278034][ T6315] hash_seed=ece93825deac2443 [pid 6494] setpgid(0, 0) = 0 [pid 6494] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6494] write(3, "1000", 4) = 4 [pid 6494] close(3) = 0 [pid 6494] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6494] write(1, "executing program\n", 18executing program ) = 18 [ 120.278044][ T6315] hash_type=siphash [ 120.278056][ T6315] bi_size=0 [ 120.278065][ T6315] bi_sectors=0 [ 120.278075][ T6315] bi_version=0 [ 120.278084][ T6315] bi_atime=2770562249 [ 120.278095][ T6315] bi_ctime=2780562352 [ 120.278104][ T6315] bi_mtime=2780562352 [ 120.278114][ T6315] bi_otime=2770562249 [ 120.278125][ T6315] bi_uid=0 [ 120.278134][ T6315] bi_gid=0 [ 120.278155][ T6315] bi_nlink=0 [ 120.278164][ T6315] bi_generation=0 [ 120.278173][ T6315] bi_dev=0 [pid 6494] memfd_create("syzkaller", 0) = 3 [pid 6494] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 120.278183][ T6315] bi_data_checksum=0 [ 120.278218][ T6315] bi_compression=0 [ 120.278228][ T6315] bi_project=0 [ 120.278238][ T6315] bi_background_compression=0 [ 120.278248][ T6315] bi_data_replicas=0 [ 120.278260][ T6315] bi_promote_target=0 [ 120.278269][ T6315] bi_foreground_target=64 [ 120.278292][ T6315] bi_background_target=1 [ 120.278301][ T6315] bi_erasure_code=0 [ 120.278311][ T6315] bi_fields_set=0 [ 120.278320][ T6315] bi_dir=0 [ 120.278329][ T6315] bi_dir_offset=0 [ 120.278338][ T6315] bi_subvol=0 [ 120.278347][ T6315] bi_parent_subvol=0 [ 120.278357][ T6315] bi_nocow=0 [ 120.278365][ T6315] bi_depth=0 [ 120.278375][ T6315] bi_inodes_32bit=0 [ 120.278401][ T6315] bi_casefold=0, fixing [ 120.295497][ T6320] loop2: detected capacity change from 0 to 32768 [ 120.303834][ T6315] done [ 120.305120][ T6315] bcachefs (loop3): check_xattrs... done [ 120.310808][ T6315] bcachefs (loop3): check_root... done [ 120.318666][ T6315] bcachefs (loop3): check_unreachable_inodes... done [ 120.331267][ T6315] bcachefs (loop3): check_subvolume_structure... done [ 120.332109][ T6315] bcachefs (loop3): check_directory_structure... done [ 120.340658][ T6315] bcachefs (loop3): check_nlinks... [ 120.341488][ T6315] bcachefs (loop3): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 120.343377][ T6315] done [ 120.345478][ T6315] bcachefs (loop3): check_rebalance_work... done [ 120.347941][ T6315] bcachefs (loop3): resume_logged_ops... done [ 120.349788][ T6315] bcachefs (loop3): delete_dead_inodes... done [ 120.383630][ T6315] bcachefs (loop3): set_fs_needs_rebalance... done [ 120.527735][ T6320] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 120.527763][ T6320] allowing incompatible features above 0.0: (unknown version) [ 120.527776][ T6320] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 120.527804][ T6320] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 120.527926][ T6320] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 120.528172][ T6320] bcachefs (loop2): Version upgrade required: [ 120.528172][ T6320] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 120.528172][ T6320] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 120.528172][ T6320] 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,check_rebalance_work,set_fs_needs_rebalance [ 120.544864][ T6329] bcachefs (loop3): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 6494] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6494] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6494] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6494] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6494] close(3) = 0 [pid 6494] close(4) = 0 [pid 6494] mkdir("./file1", 0777) = 0 [ 120.544890][ T6329] scheduling recovery pass check_extents_to_backpointers (17) [ 120.566762][ T6315] bcachefs (loop3): Fixed errors, running fsck a second time to verify fs is clean [ 120.593222][ T6320] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 120.593248][ T6320] size != 0, deleting [ 120.595182][ T6320] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 120.601874][ T6320] bcachefs (loop2): check_topology... done [ 120.612088][ T6320] bcachefs (loop2): accounting_read... done [ 120.677384][ T6320] bcachefs (loop2): alloc_read... done [ 120.678249][ T6320] bcachefs (loop2): snapshots_read... done [ 120.679034][ T6320] bcachefs (loop2): check_allocations... [ 120.683515][ T6320] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 120.683539][ T6320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 120.690539][ T6320] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 120.690559][ T6320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 120.694931][ T6319] loop4: detected capacity change from 0 to 32768 [ 120.699537][ T6320] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 120.699560][ T6320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 120.709178][ T6320] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 120.709198][ T6320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 120.717306][ T6320] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 120.717328][ T6320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 120.718293][ T6320] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.718419][ T6320] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.718976][ T6320] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.719081][ T6320] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.727819][ T6320] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.727933][ T6320] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.728138][ T6320] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.728251][ T6320] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.728467][ T6320] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.728573][ T6320] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.728773][ T6320] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.728878][ T6320] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.729073][ T6320] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.729181][ T6320] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 120.732786][ T6320] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 120.732901][ T6320] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 120.733108][ T6320] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 120.733225][ T6320] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 120.733437][ T6320] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 120.733543][ T6320] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 120.734882][ T6320] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 120.734901][ T6320] Ratelimiting new instances of previous error [ 120.735032][ T6320] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 120.735048][ T6320] Ratelimiting new instances of previous error [ 120.772835][ T6320] done [ 120.777669][ T6320] bcachefs (loop2): going read-write [ 120.800650][ T6320] bcachefs (loop2): journal_replay... [ 120.880836][ T6319] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 120.880864][ T6319] allowing incompatible features above 0.0: (unknown version) [ 120.880878][ T6319] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 120.880905][ T6319] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 120.881034][ T6319] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 120.881308][ T6319] bcachefs (loop4): Version upgrade required: [ 120.881308][ T6319] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 120.881308][ T6319] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6494] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6494] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6494] chdir("./file1") = 0 [pid 6494] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6494] ioctl(4, LOOP_CLR_FD) = 0 [pid 6494] close(4) = 0 [pid 6494] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6494] exit_group(0) = ? [pid 6494] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6494, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./21", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./21", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 120.881308][ T6319] 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,check_rebalance_work,set_fs_needs_rebalance [ 120.918929][ T6320] done [ 120.919718][ T6320] bcachefs (loop2): check_alloc_info... [ 120.921458][ T6320] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 120.921476][ T6320] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 120.921488][ T6320] gen 0 oldest_gen 0 data_type need_discard [ 120.921499][ T6320] journal_seq_nonempty 6 [ 120.921510][ T6320] journal_seq_empty 0 [ 120.921519][ T6320] need_discard 1 [ 120.921531][ T6320] need_inc_gen 1 [ 120.921540][ T6320] dirty_sectors 0 [ 120.921551][ T6320] stripe_sectors 0 [ 120.921560][ T6320] cached_sectors 0 [ 120.921570][ T6320] stripe 0 [ 120.921580][ T6320] stripe_redundancy 0 [ 120.921589][ T6320] io_time[READ] 1 [ 120.921599][ T6320] io_time[WRITE] 768 [ 120.921608][ T6320] fragmentation 0 [ 120.921617][ T6320] bp_start 8 [ 120.921626][ T6320] , fixing [ 120.939961][ T6319] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 120.939985][ T6319] size != 0, deleting [ 120.940981][ T6319] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 120.946836][ T6319] bcachefs (loop4): check_topology... done [ 120.951144][ T6319] bcachefs (loop4): accounting_read... [ 120.955058][ T6320] done [ 120.962947][ T6320] bcachefs (loop2): check_lrus... done [ 120.965829][ T6320] bcachefs (loop2): check_btree_backpointers... done [ 120.967320][ T6320] bcachefs (loop2): check_backpointers_to_extents... done [ 120.971008][ T6320] bcachefs (loop2): check_extents_to_backpointers... [ 120.972346][ T6320] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 120.973779][ T6320] done [ 120.974437][ T6320] bcachefs (loop2): check_alloc_to_lru_refs... [ 120.977150][ T6320] bcachefs (loop2): missing fragmentation lru entry [ 120.977176][ T6320] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 120.977187][ T6320] gen 0 oldest_gen 0 data_type user [ 120.977198][ T6320] journal_seq_nonempty 5 [ 120.977209][ T6320] journal_seq_empty 134217728 [ 120.977220][ T6320] need_discard 1 [ 120.977230][ T6320] need_inc_gen 1 [ 120.977239][ T6320] dirty_sectors 16 [ 120.977249][ T6320] stripe_sectors 1802251 [ 120.977259][ T6320] cached_sectors 0 [ 120.977269][ T6320] stripe 0 [ 120.977278][ T6320] stripe_redundancy 0 [ 120.977288][ T6320] io_time[READ] 1 [ 120.977299][ T6320] io_time[WRITE] 512 [ 120.977309][ T6320] fragmentation 0 [ 120.977318][ T6320] bp_start 7 [ 120.977328][ T6320] , fixing [ 120.978798][ T6320] done [ 120.982530][ T6320] bcachefs (loop2): bucket_gens_init... done [ 120.984647][ T6320] bcachefs (loop2): check_snapshot_trees... done [ 120.986901][ T6320] bcachefs (loop2): check_snapshots... [ 120.987503][ T6320] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 120.987521][ T6320] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 120.988921][ T6319] done [ 120.988936][ T6319] bcachefs (loop4): alloc_read... done [ 120.991460][ T6319] bcachefs (loop4): snapshots_read... done [ 120.992227][ T6319] bcachefs (loop4): check_allocations... [ 120.998187][ T6319] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 120.998210][ T6319] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 121.001253][ T6319] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 121.001275][ T6319] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 121.008377][ T6319] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 121.008397][ T6319] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 121.010621][ T6319] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 121.010640][ T6319] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 5839] umount2("./21/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./21/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./21/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./21/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./21/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 121.014278][ T6319] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 121.014297][ T6319] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 121.015332][ T6319] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 121.015475][ T6319] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./21/file1") = 0 [pid 5839] umount2("./21/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./21/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./21/binderfs") = 0 [ 121.016048][ T6319] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 121.016153][ T6319] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 121.016690][ T6319] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 121.016802][ T6319] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 121.017006][ T6319] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./21") = 0 [pid 5839] mkdir("./22", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 121.017133][ T6319] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 121.017421][ T6319] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 121.017536][ T6319] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 121.022303][ T6320] done [ 121.023016][ T6320] bcachefs (loop2): check_subvols... done [ 121.024634][ T6320] bcachefs (loop2): check_subvol_children... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6505 attached , child_tidptr=0x5555901c6750) = 6505 [pid 6505] set_robust_list(0x5555901c6760, 24) = 0 [pid 6505] chdir("./22") = 0 [pid 6505] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6505] setpgid(0, 0) = 0 [pid 6505] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 121.026340][ T6319] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 121.026459][ T6319] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 121.026702][ T6319] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 121.026811][ T6319] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 121.027015][ T6319] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6505] write(3, "1000", 4) = 4 [pid 6505] close(3) = 0 [pid 6505] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6505] write(1, "executing program\n", 18executing program ) = 18 [pid 6505] memfd_create("syzkaller", 0) = 3 [ 121.027121][ T6319] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 121.027333][ T6319] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 121.027446][ T6319] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 121.027648][ T6319] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 121.027757][ T6319] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6505] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 121.027995][ T6319] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 121.028010][ T6319] Ratelimiting new instances of previous error [ 121.028138][ T6319] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 121.028155][ T6319] Ratelimiting new instances of previous error [ 121.043237][ T6319] done [ 121.045450][ T6319] bcachefs (loop4): going read-write [ 121.050594][ T6319] bcachefs (loop4): journal_replay... [ 121.061152][ T6320] bcachefs (loop2): delete_dead_snapshots... done [ 121.061922][ T6320] bcachefs (loop2): check_inodes... [ 121.063117][ T6320] bcachefs (loop2): inode points to missing dirent [ 121.063134][ T6320] inum: 4098:4294967295 [ 121.063145][ T6320] mode=40755 [ 121.063154][ T6320] flags=(15300000) [ 121.063164][ T6320] journal_seq=4 [ 121.063174][ T6320] hash_seed=ece93825deac2443 [ 121.063184][ T6320] hash_type=siphash [ 121.063195][ T6320] bi_size=0 [ 121.063204][ T6320] bi_sectors=0 [ 121.063214][ T6320] bi_version=0 [ 121.063233][ T6320] bi_atime=2770562249 [ 121.063244][ T6320] bi_ctime=2780562352 [ 121.063253][ T6320] bi_mtime=2780562352 [ 121.063264][ T6320] bi_otime=2770562249 [ 121.063273][ T6320] bi_uid=0 [ 121.063283][ T6320] bi_gid=0 [ 121.063291][ T6320] bi_nlink=0 [ 121.063301][ T6320] bi_generation=0 [ 121.063310][ T6320] bi_dev=0 [ 121.063320][ T6320] bi_data_checksum=0 [ 121.063331][ T6320] bi_compression=0 [ 121.063340][ T6320] bi_project=0 [ 121.063350][ T6320] bi_background_compression=0 [ 121.063360][ T6320] bi_data_replicas=0 [ 121.063370][ T6320] bi_promote_target=0 [ 121.063380][ T6320] bi_foreground_target=64 [ 121.063390][ T6320] bi_background_target=1 [ 121.063400][ T6320] bi_erasure_code=0 [ 121.063410][ T6320] bi_fields_set=0 [ 121.063419][ T6320] bi_dir=0 [ 121.067033][ T6320] bi_dir_offset=32 [ 121.067046][ T6320] bi_subvol=0 [ 121.067058][ T6320] bi_parent_subvol=0 [ 121.067068][ T6320] bi_nocow=0 [ 121.067078][ T6320] bi_depth=0 [ 121.067087][ T6320] bi_inodes_32bit=0 [ 121.067097][ T6320] bi_casefold=0, fixing [ 121.072707][ T6320] done [ 121.073399][ T6320] bcachefs (loop2): check_extents... done [ 121.076650][ T6320] bcachefs (loop2): check_indirect_extents... done [ 121.078386][ T6320] bcachefs (loop2): check_dirents... [ 121.085046][ T6320] bcachefs (loop2): directory with missing backpointer [ 121.085065][ T6320] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 121.085081][ T6320] inum: 4098:4294967295 [pid 6505] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6505] munmap(0x7fbbeb93a000, 138412032) = 0 [ 121.085092][ T6320] mode=40755 [ 121.085102][ T6320] flags=(11300000) [ 121.085111][ T6320] journal_seq=24 [ 121.085121][ T6320] hash_seed=ece93825deac2443 [ 121.085131][ T6320] hash_type=siphash [ 121.085141][ T6320] bi_size=0 [ 121.085151][ T6320] bi_sectors=0 [ 121.085160][ T6320] bi_version=0 [ 121.085170][ T6320] bi_atime=2770562249 [ 121.085179][ T6320] bi_ctime=2780562352 [ 121.085190][ T6320] bi_mtime=2780562352 [ 121.085200][ T6320] bi_otime=2770562249 [pid 6505] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6505] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6505] close(3) = 0 [pid 6505] close(4) = 0 [pid 6505] mkdir("./file1", 0777) = 0 [ 121.085210][ T6320] bi_uid=0 [ 121.085226][ T6320] bi_gid=0 [ 121.085235][ T6320] bi_nlink=0 [ 121.085246][ T6320] bi_generation=0 [ 121.085255][ T6320] bi_dev=0 [ 121.085264][ T6320] bi_data_checksum=0 [ 121.085274][ T6320] bi_compression=0 [ 121.085284][ T6320] bi_project=0 [ 121.085293][ T6320] bi_background_compression=0 [ 121.085305][ T6320] bi_data_replicas=0 [ 121.085315][ T6320] bi_promote_target=0 [ 121.085325][ T6320] bi_foreground_target=64 [ 121.085349][ T6320] bi_background_target=1 [ 121.085358][ T6320] bi_erasure_code=0 [ 121.085368][ T6320] bi_fields_set=0 [ 121.085378][ T6320] bi_dir=0 [ 121.085387][ T6320] bi_dir_offset=0 [ 121.085397][ T6320] bi_subvol=0 [ 121.085408][ T6320] bi_parent_subvol=0 [ 121.085417][ T6320] bi_nocow=0 [ 121.085426][ T6320] bi_depth=0 [ 121.085436][ T6320] bi_inodes_32bit=0 [ 121.085445][ T6320] bi_casefold=0, fixing [ 121.092784][ T6320] done [ 121.093485][ T6320] bcachefs (loop2): check_xattrs... done [ 121.095155][ T6320] bcachefs (loop2): check_root... done [ 121.100926][ T6320] bcachefs (loop2): check_unreachable_inodes... done [ 121.105692][ T6320] bcachefs (loop2): check_subvolume_structure... done [ 121.107738][ T6320] bcachefs (loop2): check_directory_structure... done [ 121.111680][ T6320] bcachefs (loop2): check_nlinks... [ 121.112404][ T6320] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 121.113858][ T6319] done [ 121.114488][ T6319] bcachefs (loop4): check_alloc_info... [ 121.116255][ T6319] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 121.116273][ T6319] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 121.116285][ T6319] gen 0 oldest_gen 0 data_type need_discard [ 121.116297][ T6319] journal_seq_nonempty 6 [ 121.116308][ T6319] journal_seq_empty 0 [ 121.116318][ T6319] need_discard 1 [ 121.116327][ T6319] need_inc_gen 1 [ 121.116337][ T6319] dirty_sectors 0 [ 121.116347][ T6319] stripe_sectors 0 [ 121.116357][ T6319] cached_sectors 0 [ 121.116367][ T6319] stripe 0 [ 121.116377][ T6319] stripe_redundancy 0 [ 121.116386][ T6319] io_time[READ] 1 [ 121.116396][ T6319] io_time[WRITE] 768 [ 121.116406][ T6319] fragmentation 0 [ 121.116416][ T6319] bp_start 8 [ 121.116426][ T6319] , fixing [ 121.120709][ T6320] done [ 121.121352][ T6320] bcachefs (loop2): check_rebalance_work... done [ 121.125363][ T6320] bcachefs (loop2): resume_logged_ops... done [ 121.126196][ T6320] bcachefs (loop2): delete_dead_inodes... done [ 121.144444][ T6320] bcachefs (loop2): set_fs_needs_rebalance... [ 121.151711][ T6319] done [ 121.155392][ T6319] bcachefs (loop4): check_lrus... done [ 121.160283][ T6319] bcachefs (loop4): check_btree_backpointers... done [ 121.163018][ T6319] bcachefs (loop4): check_backpointers_to_extents... done [ 121.167500][ T6319] bcachefs (loop4): check_extents_to_backpointers... [ 121.168886][ T6319] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 121.173834][ T6319] done [ 121.174555][ T6319] bcachefs (loop4): check_alloc_to_lru_refs... [ 121.176480][ T6319] bcachefs (loop4): missing fragmentation lru entry [ 121.176500][ T6319] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 121.176511][ T6319] gen 0 oldest_gen 0 data_type user [ 121.176523][ T6319] journal_seq_nonempty 5 [ 121.176533][ T6319] journal_seq_empty 134217728 [ 121.176546][ T6319] need_discard 1 [ 121.176556][ T6319] need_inc_gen 1 [ 121.176566][ T6319] dirty_sectors 16 [ 121.176576][ T6319] stripe_sectors 1802251 [ 121.176587][ T6319] cached_sectors 0 [ 121.176597][ T6319] stripe 0 [ 121.176607][ T6319] stripe_redundancy 0 [ 121.176617][ T6319] io_time[READ] 1 [ 121.176627][ T6319] io_time[WRITE] 512 [ 121.176638][ T6319] fragmentation 0 [ 121.176648][ T6319] bp_start 7 [ 121.176658][ T6319] , fixing [ 121.178184][ T6319] done [ 121.181770][ T6319] bcachefs (loop4): bucket_gens_init... done [ 121.185754][ T6319] bcachefs (loop4): check_snapshot_trees... done [ 121.186608][ T6319] bcachefs (loop4): check_snapshots... [ 121.187201][ T6319] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 121.187227][ T6319] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 121.193144][ T6320] done [ 121.202875][ T6319] done [ 121.203596][ T6319] bcachefs (loop4): check_subvols... done [ 121.205189][ T6319] bcachefs (loop4): check_subvol_children... done [pid 6505] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6505] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6505] chdir("./file1") = 0 [pid 6505] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6505] ioctl(4, LOOP_CLR_FD) = 0 [pid 6505] close(4) = 0 [ 121.207456][ T6319] bcachefs (loop4): delete_dead_snapshots... done [ 121.208193][ T6319] bcachefs (loop4): check_inodes... [ 121.209885][ T6319] bcachefs (loop4): inode points to missing dirent [ 121.209903][ T6319] inum: 4098:4294967295 [ 121.209913][ T6319] mode=40755 [ 121.209923][ T6319] flags=(15300000) [ 121.209932][ T6319] journal_seq=4 [ 121.209941][ T6319] hash_seed=ece93825deac2443 [ 121.209952][ T6319] hash_type=siphash [ 121.209961][ T6319] bi_size=0 [ 121.209969][ T6319] bi_sectors=0 [pid 6505] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6505] exit_group(0) = ? [pid 6505] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6505, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=42 /* 0.42 s */} --- [pid 5839] umount2("./22", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./22", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 121.209980][ T6319] bi_version=0 [ 121.209995][ T6319] bi_atime=2770562249 [ 121.210005][ T6319] bi_ctime=2780562352 [ 121.210015][ T6319] bi_mtime=2780562352 [ 121.210024][ T6319] bi_otime=2770562249 [ 121.210036][ T6319] bi_uid=0 [ 121.210043][ T6319] bi_gid=0 [ 121.210052][ T6319] bi_nlink=0 [ 121.210061][ T6319] bi_generation=0 [ 121.210073][ T6319] bi_dev=0 [ 121.210082][ T6319] bi_data_checksum=0 [ 121.210092][ T6319] bi_compression=0 [ 121.210101][ T6319] bi_project=0 [ 121.210111][ T6319] bi_background_compression=0 [ 121.210121][ T6319] bi_data_replicas=0 [ 121.210131][ T6319] bi_promote_target=0 [ 121.210140][ T6319] bi_foreground_target=64 [ 121.210151][ T6319] bi_background_target=1 [ 121.210160][ T6319] bi_erasure_code=0 [ 121.210170][ T6319] bi_fields_set=0 [ 121.210179][ T6319] bi_dir=0 [ 121.210187][ T6319] bi_dir_offset=32 [ 121.210197][ T6319] bi_subvol=0 [ 121.210213][ T6319] bi_parent_subvol=0 [ 121.210225][ T6319] bi_nocow=0 [ 121.210234][ T6319] bi_depth=0 [ 121.210244][ T6319] bi_inodes_32bit=0 [ 121.210254][ T6319] bi_casefold=0, fixing [ 121.211959][ T6319] done [ 121.212629][ T6319] bcachefs (loop4): check_extents... done [ 121.214081][ T6319] bcachefs (loop4): check_indirect_extents... done [ 121.214798][ T6319] bcachefs (loop4): check_dirents... [ 121.216526][ T6319] bcachefs (loop4): directory with missing backpointer [ 121.216543][ T6319] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 121.216558][ T6319] inum: 4098:4294967295 [ 121.216567][ T6319] mode=40755 [ 121.216577][ T6319] flags=(11300000) [ 121.216586][ T6319] journal_seq=23 [ 121.216595][ T6319] hash_seed=ece93825deac2443 [ 121.216606][ T6319] hash_type=siphash [ 121.216615][ T6319] bi_size=0 [ 121.216624][ T6319] bi_sectors=0 [ 121.216633][ T6319] bi_version=0 [ 121.216642][ T6319] bi_atime=2770562249 [ 121.217975][ T6319] bi_ctime=2780562352 [ 121.217999][ T6319] bi_mtime=2780562352 [ 121.218009][ T6319] bi_otime=2770562249 [ 121.218019][ T6319] bi_uid=0 [ 121.218027][ T6319] bi_gid=0 [ 121.218037][ T6319] bi_nlink=0 [ 121.218045][ T6319] bi_generation=0 [ 121.218055][ T6319] bi_dev=0 [ 121.218064][ T6319] bi_data_checksum=0 [ 121.218073][ T6319] bi_compression=0 [ 121.218082][ T6319] bi_project=0 [ 121.218092][ T6319] bi_background_compression=0 [ 121.218103][ T6319] bi_data_replicas=0 [ 121.218113][ T6319] bi_promote_target=0 [ 121.218122][ T6319] bi_foreground_target=64 [ 121.218132][ T6319] bi_background_target=1 [ 121.218142][ T6319] bi_erasure_code=0 [ 121.218151][ T6319] bi_fields_set=0 [ 121.218160][ T6319] bi_dir=0 [ 121.218169][ T6319] bi_dir_offset=0 [ 121.218178][ T6319] bi_subvol=0 [ 121.218187][ T6319] bi_parent_subvol=0 [ 121.218197][ T6319] bi_nocow=0 [ 121.218219][ T6319] bi_depth=0 [ 121.218228][ T6319] bi_inodes_32bit=0 [ 121.218237][ T6319] bi_casefold=0, fixing [ 121.223893][ T6319] done [ 121.224547][ T6319] bcachefs (loop4): check_xattrs... done [ 121.228446][ T6319] bcachefs (loop4): check_root... done [ 121.230872][ T6319] bcachefs (loop4): check_unreachable_inodes... done [ 121.232997][ T6319] bcachefs (loop4): check_subvolume_structure... done [ 121.234611][ T6319] bcachefs (loop4): check_directory_structure... done [ 121.236063][ T6319] bcachefs (loop4): check_nlinks... [ 121.236782][ T6319] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 121.237790][ T6319] done [ 121.238812][ T6319] bcachefs (loop4): check_rebalance_work... done [ 121.241716][ T6319] bcachefs (loop4): resume_logged_ops... done [ 121.242462][ T6319] bcachefs (loop4): delete_dead_inodes... done [ 121.254426][ T6319] bcachefs (loop4): set_fs_needs_rebalance... [ 121.261314][ T6349] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 121.261335][ T6349] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 121.267826][ T6319] done [pid 5839] umount2("./22/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./22/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./22/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 121.268515][ T6319] bcachefs (loop4): check_extents_to_backpointers... [ 121.270278][ T6319] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 121.273113][ T6349] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 121.275332][ T6319] done [ 121.288086][ T6319] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 121.288112][ T6319] bcachefs (loop4): check_alloc_info... done [ 121.294495][ T6319] bcachefs (loop4): check_lrus... done [ 121.295688][ T6319] bcachefs (loop4): check_btree_backpointers... done [pid 5839] umount2("./22/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./22/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./22/file1") = 0 [ 121.296925][ T6319] bcachefs (loop4): check_backpointers_to_extents... done [ 121.298443][ T6319] bcachefs (loop4): check_extents_to_backpointers... [ 121.301130][ T6319] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 121.302870][ T6319] done [ 121.302953][ T6319] bcachefs (loop4): check_alloc_to_lru_refs... [ 121.303756][ T6345] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 5839] umount2("./22/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./22/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./22/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./22") = 0 [pid 5839] mkdir("./23", 0777) = 0 [ 121.303774][ T6345] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 121.305857][ T6320] bcachefs (loop2): check_extents_to_backpointers... [ 121.306711][ T6319] done [ 121.307519][ T6319] bcachefs (loop4): bucket_gens_init... done [ 121.310614][ T6319] bcachefs (loop4): check_snapshot_trees... done [ 121.312006][ T6319] bcachefs (loop4): check_snapshots... done [ 121.312962][ T6319] bcachefs (loop4): check_subvols... done [ 121.313828][ T6319] bcachefs (loop4): check_subvol_children... done [ 121.314644][ T6319] bcachefs (loop4): delete_dead_snapshots... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6516 ./strace-static-x86_64: Process 6516 attached [pid 6516] set_robust_list(0x5555901c6760, 24) = 0 [ 121.315421][ T6319] bcachefs (loop4): check_inodes... done [ 121.316664][ T6319] bcachefs (loop4): check_extents... done [ 121.317995][ T6319] bcachefs (loop4): check_indirect_extents... done [ 121.318614][ T6319] bcachefs (loop4): check_dirents... done [ 121.321877][ T6319] bcachefs (loop4): check_xattrs... done [ 121.323295][ T6319] bcachefs (loop4): check_root... done [ 121.324129][ T6319] bcachefs (loop4): check_unreachable_inodes... done [ 121.325098][ T6319] bcachefs (loop4): check_subvolume_structure... done [pid 6516] chdir("./23") = 0 [pid 6516] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6516] setpgid(0, 0) = 0 [pid 6516] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6516] write(3, "1000", 4) = 4 [pid 6516] close(3) = 0 [pid 6516] symlink("/dev/binderfs", "./binderfs") = 0 [ 121.325938][ T6319] bcachefs (loop4): check_directory_structure... done [ 121.326645][ T6319] bcachefs (loop4): check_nlinks... done [ 121.327826][ T6319] bcachefs (loop4): check_rebalance_work... done [ 121.328728][ T6319] bcachefs (loop4): resume_logged_ops... done [ 121.330449][ T6319] bcachefs (loop4): delete_dead_inodes... done [ 121.331289][ T6319] bcachefs (loop4): set_fs_needs_rebalance... done [ 121.336342][ T6319] bcachefs (loop4): done starting filesystem [ 121.383258][ T6320] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [pid 6516] write(1, "executing program\n", 18executing program ) = 18 [pid 6516] memfd_create("syzkaller", 0) = 3 [pid 6516] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 121.385747][ T6320] done [ 121.423416][ T5841] bcachefs (loop4): shutting down [ 121.423454][ T5841] bcachefs (loop4): going read-only [ 121.423485][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 121.462463][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 33 [ 121.463922][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 34 [ 121.471330][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 35 [ 121.473129][ T5841] bcachefs (loop4): marking filesystem clean [ 121.489022][ T6320] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 121.489049][ T6320] bcachefs (loop2): check_alloc_info... done [ 121.510012][ T6320] bcachefs (loop2): check_lrus... done [ 121.519731][ T6320] bcachefs (loop2): check_btree_backpointers... done [ 121.521020][ T6320] bcachefs (loop2): check_backpointers_to_extents... done [ 121.522734][ T6320] bcachefs (loop2): check_extents_to_backpointers... done [ 121.532952][ T6320] bcachefs (loop2): check_alloc_to_lru_refs... done [ 121.535604][ T6320] bcachefs (loop2): bucket_gens_init... done [ 121.537935][ T6320] bcachefs (loop2): check_snapshot_trees... [ 121.555810][ T5841] bcachefs (loop4): shutdown complete [ 121.556837][ T6320] done [ 121.556852][ T6320] bcachefs (loop2): check_snapshots... done [ 121.557710][ T6320] bcachefs (loop2): check_subvols... done [ 121.559703][ T6320] bcachefs (loop2): check_subvol_children... done [ 121.560424][ T6320] bcachefs (loop2): delete_dead_snapshots... done [ 121.567324][ T6320] bcachefs (loop2): check_inodes... done [ 121.569714][ T6320] bcachefs (loop2): check_extents... done [ 121.600581][ T6320] bcachefs (loop2): check_indirect_extents... done [ 121.601686][ T6320] bcachefs (loop2): check_dirents... done [ 121.610976][ T6320] bcachefs (loop2): check_xattrs... done [ 121.612902][ T6320] bcachefs (loop2): check_root... done [ 121.613653][ T6320] bcachefs (loop2): check_unreachable_inodes... done [ 121.614553][ T6320] bcachefs (loop2): check_subvolume_structure... done [ 121.615299][ T6320] bcachefs (loop2): check_directory_structure... done [ 121.616015][ T6320] bcachefs (loop2): check_nlinks... done [ 121.617159][ T6320] bcachefs (loop2): check_rebalance_work... done [ 121.617971][ T6320] bcachefs (loop2): resume_logged_ops... done [ 121.618725][ T6320] bcachefs (loop2): delete_dead_inodes... done [ 121.630008][ T6320] bcachefs (loop2): set_fs_needs_rebalance... done [ 121.642240][ T6320] bcachefs (loop2): done starting filesystem [ 121.754422][ T5839] bcachefs (loop2): shutting down [ 121.754443][ T5839] bcachefs (loop2): going read-only [ 121.754698][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 121.806394][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 36 [ 121.807692][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 37 [ 121.808692][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 38 [ 121.811938][ T5839] bcachefs (loop2): marking filesystem clean [ 121.886125][ T5839] bcachefs (loop2): shutdown complete [ 122.800577][ T6351] loop4: detected capacity change from 0 to 32768 [pid 6516] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6516] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6516] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6516] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6516] close(3) = 0 [pid 6516] close(4) = 0 [pid 6516] mkdir("./file1", 0777) = 0 [ 122.987165][ T6351] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 122.987193][ T6351] allowing incompatible features above 0.0: (unknown version) [ 122.987205][ T6351] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 122.987231][ T6351] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 122.987352][ T6351] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 122.987584][ T6351] bcachefs (loop4): Version upgrade required: [ 122.987584][ T6351] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 122.987584][ T6351] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 122.987584][ T6351] 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,check_rebalance_work,set_fs_needs_rebalance [ 123.027957][ T6351] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 123.027981][ T6351] size != 0, deleting [ 123.030162][ T6351] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 123.040883][ T6351] bcachefs (loop4): check_topology... done [ 123.042665][ T6351] bcachefs (loop4): accounting_read... done [ 123.089084][ T6351] bcachefs (loop4): alloc_read... done [ 123.090360][ T6351] bcachefs (loop4): snapshots_read... done [ 123.091124][ T6351] bcachefs (loop4): check_allocations... [ 123.093065][ T6351] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 123.093087][ T6351] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 123.096831][ T6351] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 123.096850][ T6351] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 123.098283][ T6351] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 123.098301][ T6351] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 123.100809][ T6351] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 123.100828][ T6351] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 123.103192][ T6351] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 123.103210][ T6351] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 123.104160][ T6351] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.104410][ T6351] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.105054][ T6351] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.105161][ T6351] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.105565][ T6351] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.105670][ T6351] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.105915][ T6351] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.106021][ T6351] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.106223][ T6351] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.108047][ T6351] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.108276][ T6351] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.108381][ T6351] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.108612][ T6351] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.108725][ T6351] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.108930][ T6351] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.109031][ T6351] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 123.113491][ T6351] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 123.113638][ T6351] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 123.113877][ T6351] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6516] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6516] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6516] chdir("./file1") = 0 [pid 6516] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6516] ioctl(4, LOOP_CLR_FD) = 0 [pid 6516] close(4) = 0 [ 123.113992][ T6351] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 123.114230][ T6351] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 123.114247][ T6351] Ratelimiting new instances of previous error [ 123.114377][ T6351] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 123.114392][ T6351] Ratelimiting new instances of previous error [pid 6516] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6516] exit_group(0) = ? [pid 6516] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6516, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./23", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./23", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 123.128495][ T6352] loop2: detected capacity change from 0 to 32768 [ 123.158606][ T6351] done [ 123.164123][ T6351] bcachefs (loop4): going read-write [ 123.175130][ T6351] bcachefs (loop4): journal_replay... done [ 123.316508][ T6351] bcachefs (loop4): check_alloc_info... [ 123.318463][ T6351] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 123.318482][ T6351] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 123.318493][ T6351] gen 0 oldest_gen 0 data_type need_discard [ 123.318506][ T6351] journal_seq_nonempty 6 [ 123.318516][ T6351] journal_seq_empty 0 [ 123.318526][ T6351] need_discard 1 [ 123.318536][ T6351] need_inc_gen 1 [ 123.318546][ T6351] dirty_sectors 0 [ 123.318556][ T6351] stripe_sectors 0 [ 123.318566][ T6351] cached_sectors 0 [ 123.318575][ T6351] stripe 0 [ 123.318585][ T6351] stripe_redundancy 0 [ 123.318595][ T6351] io_time[READ] 1 [ 123.318605][ T6351] io_time[WRITE] 768 [ 123.318616][ T6351] fragmentation 0 [ 123.318626][ T6351] bp_start 8 [ 123.318636][ T6351] , fixing [ 123.327563][ T6352] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 123.327581][ T6352] allowing incompatible features above 0.0: (unknown version) [ 123.327590][ T6352] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 123.327611][ T6352] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 123.327730][ T6352] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 123.327976][ T6352] bcachefs (loop2): Version upgrade required: [ 123.327976][ T6352] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 123.327976][ T6352] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 123.327976][ T6352] 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,check_rebalance_work,set_fs_needs_rebalance [ 123.368566][ T6351] done [ 123.374985][ T6351] bcachefs (loop4): check_lrus... done [ 123.377225][ T6351] bcachefs (loop4): check_btree_backpointers... done [ 123.380494][ T6351] bcachefs (loop4): check_backpointers_to_extents... [ 123.396375][ T6352] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 123.396403][ T6352] size != 0, deleting [ 123.398401][ T6352] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 123.402416][ T6352] bcachefs (loop2): check_topology... done [ 123.403881][ T6352] bcachefs (loop2): accounting_read... done [ 123.477261][ T6352] bcachefs (loop2): alloc_read... [ 123.477847][ T6351] done [ 123.478455][ T6351] bcachefs (loop4): check_extents_to_backpointers... [ 123.480365][ T6352] done [ 123.480382][ T6352] bcachefs (loop2): snapshots_read... [ 123.481633][ T6351] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 123.483387][ T6352] done [ 123.483401][ T6352] bcachefs (loop2): check_allocations... [ 123.486229][ T6351] done [ 123.487892][ T6351] bcachefs (loop4): check_alloc_to_lru_refs... [ 123.489752][ T6352] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 123.489772][ T6352] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 123.493260][ T6351] bcachefs (loop4): missing fragmentation lru entry [ 123.493277][ T6351] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 123.493288][ T6351] gen 0 oldest_gen 0 data_type user [ 123.493299][ T6351] journal_seq_nonempty 5 [ 123.493309][ T6351] journal_seq_empty 134217728 [ 123.493321][ T6351] need_discard 1 [ 123.493331][ T6351] need_inc_gen 1 [ 123.493341][ T6351] dirty_sectors 16 [ 123.493350][ T6351] stripe_sectors 1802251 [ 123.493361][ T6351] cached_sectors 0 [ 123.493370][ T6351] stripe 0 [ 123.493380][ T6351] stripe_redundancy 0 [ 123.493389][ T6351] io_time[READ] 1 [ 123.493400][ T6351] io_time[WRITE] 512 [ 123.493410][ T6351] fragmentation 0 [ 123.493420][ T6351] bp_start 7 [ 123.493429][ T6351] , fixing [pid 5839] umount2("./23/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./23/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./23/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 123.495236][ T6352] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 123.495254][ T6352] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 123.496623][ T6351] done [ 123.498986][ T6352] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 123.499006][ T6352] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 5839] umount2("./23/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./23/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./23/file1") = 0 [ 123.500195][ T6351] bcachefs (loop4): bucket_gens_init... [ 123.504334][ T6352] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 123.504354][ T6352] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 123.505394][ T6351] done [ 123.506017][ T6351] bcachefs (loop4): check_snapshot_trees... done [ 123.507079][ T6351] bcachefs (loop4): check_snapshots... [ 123.507663][ T6351] bcachefs (loop4): snapshot points to missing/incorrect tree: [pid 5839] umount2("./23/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./23/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./23/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./23") = 0 [pid 5839] mkdir("./24", 0777) = 0 [ 123.507690][ T6351] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 123.512018][ T6352] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 123.512037][ T6352] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 123.513010][ T6352] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6527 ./strace-static-x86_64: Process 6527 attached [ 123.513139][ T6352] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.513712][ T6352] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.513821][ T6352] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.514238][ T6352] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.514347][ T6352] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6527] set_robust_list(0x5555901c6760, 24) = 0 [pid 6527] chdir("./24") = 0 [pid 6527] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6527] setpgid(0, 0) = 0 [ 123.514550][ T6352] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.514655][ T6352] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.514874][ T6352] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.514980][ T6352] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.515191][ T6352] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6527] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6527] write(3, "1000", 4) = 4 [pid 6527] close(3) = 0 [pid 6527] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6527] write(1, "executing program\n", 18executing program ) = 18 [ 123.515306][ T6352] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.515522][ T6352] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 123.515628][ T6352] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 123.515844][ T6352] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6527] memfd_create("syzkaller", 0) = 3 [pid 6527] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 123.515947][ T6352] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 123.516152][ T6352] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 123.516260][ T6352] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 123.516461][ T6352] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 123.516568][ T6352] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 123.516824][ T6352] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 123.516841][ T6352] Ratelimiting new instances of previous error [ 123.516980][ T6352] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 123.516997][ T6352] Ratelimiting new instances of previous error [ 123.539739][ T6351] done [ 123.540382][ T6351] bcachefs (loop4): check_subvols... done [ 123.541850][ T6351] bcachefs (loop4): check_subvol_children... done [ 123.547953][ T6351] bcachefs (loop4): delete_dead_snapshots... done [ 123.548653][ T6351] bcachefs (loop4): check_inodes... [ 123.549921][ T6351] bcachefs (loop4): inode points to missing dirent [ 123.549938][ T6351] inum: 4098:4294967295 [ 123.549948][ T6351] mode=40755 [ 123.549957][ T6351] flags=(15300000) [ 123.549967][ T6351] journal_seq=4 [ 123.549977][ T6351] hash_seed=ece93825deac2443 [ 123.549987][ T6351] hash_type=siphash [ 123.549997][ T6351] bi_size=0 [ 123.550006][ T6351] bi_sectors=0 [ 123.550015][ T6351] bi_version=0 [ 123.550026][ T6351] bi_atime=2770562249 [ 123.550036][ T6351] bi_ctime=2780562352 [ 123.550046][ T6351] bi_mtime=2780562352 [ 123.550056][ T6351] bi_otime=2770562249 [ 123.550066][ T6351] bi_uid=0 [ 123.550075][ T6351] bi_gid=0 [ 123.550084][ T6351] bi_nlink=0 [ 123.550094][ T6351] bi_generation=0 [ 123.550103][ T6351] bi_dev=0 [ 123.550112][ T6351] bi_data_checksum=0 [ 123.550122][ T6351] bi_compression=0 [ 123.550132][ T6351] bi_project=0 [ 123.550141][ T6351] bi_background_compression=0 [ 123.550152][ T6351] bi_data_replicas=0 [ 123.550163][ T6351] bi_promote_target=0 [ 123.550173][ T6351] bi_foreground_target=64 [ 123.550183][ T6351] bi_background_target=1 [ 123.550193][ T6351] bi_erasure_code=0 [ 123.550203][ T6351] bi_fields_set=0 [ 123.550213][ T6351] bi_dir=0 [ 123.550222][ T6351] bi_dir_offset=32 [ 123.550232][ T6351] bi_subvol=0 [ 123.550242][ T6351] bi_parent_subvol=0 [ 123.550253][ T6351] bi_nocow=0 [ 123.550262][ T6351] bi_depth=0 [ 123.550272][ T6351] bi_inodes_32bit=0 [ 123.550282][ T6351] bi_casefold=0, fixing [ 123.554957][ T6352] done [ 123.557171][ T6352] bcachefs (loop2): going read-write [ 123.557908][ T6351] done [ 123.558832][ T6351] bcachefs (loop4): check_extents... done [ 123.561933][ T6351] bcachefs (loop4): check_indirect_extents... done [ 123.567336][ T6351] bcachefs (loop4): check_extents_to_backpointers... [ 123.568286][ T6351] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 123.568852][ T6361] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 123.568873][ T6361] running recovery pass check_extents_to_backpointers (17), currently at check_indirect_extents (30) [ 123.572546][ T6361] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 123.575511][ T6351] done [ 123.576236][ T6351] bcachefs (loop4): check_dirents... [ 123.577947][ T6351] bcachefs (loop4): directory with missing backpointer [ 123.577964][ T6351] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 123.577980][ T6351] inum: 4098:4294967295 [ 123.577990][ T6351] mode=40755 [ 123.577999][ T6351] flags=(11300000) [ 123.578009][ T6351] journal_seq=22 [ 123.578018][ T6351] hash_seed=ece93825deac2443 [ 123.578028][ T6351] hash_type=siphash [ 123.578038][ T6351] bi_size=0 [ 123.578047][ T6351] bi_sectors=0 [ 123.578056][ T6351] bi_version=0 [ 123.578065][ T6351] bi_atime=2770562249 [ 123.578076][ T6351] bi_ctime=2780562352 [pid 6527] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 123.578086][ T6351] bi_mtime=2780562352 [ 123.578096][ T6351] bi_otime=2770562249 [ 123.578105][ T6351] bi_uid=0 [ 123.578114][ T6351] bi_gid=0 [ 123.578123][ T6351] bi_nlink=0 [ 123.578132][ T6351] bi_generation=0 [ 123.578141][ T6351] bi_dev=0 [ 123.578152][ T6351] bi_data_checksum=0 [ 123.578162][ T6351] bi_compression=0 [ 123.578171][ T6351] bi_project=0 [ 123.578182][ T6351] bi_background_compression=0 [ 123.578192][ T6351] bi_data_replicas=0 [ 123.578203][ T6351] bi_promote_target=0 [pid 6527] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6527] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6527] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6527] close(3) = 0 [pid 6527] close(4) = 0 [ 123.578211][ T6351] bi_foreground_target=64 [ 123.578222][ T6351] bi_background_target=1 [ 123.578232][ T6351] bi_erasure_code=0 [ 123.578242][ T6351] bi_fields_set=0 [ 123.578253][ T6351] bi_dir=0 [ 123.578262][ T6351] bi_dir_offset=0 [ 123.578271][ T6351] bi_subvol=0 [ 123.578281][ T6351] bi_parent_subvol=0 [ 123.578290][ T6351] bi_nocow=0 [ 123.578300][ T6351] bi_depth=0 [ 123.578309][ T6351] bi_inodes_32bit=0 [ 123.578319][ T6351] bi_casefold=0, fixing [ 123.583260][ T6351] done [pid 6527] mkdir("./file1", 0777) = 0 [ 123.586574][ T6351] bcachefs (loop4): check_xattrs... [ 123.590114][ T6352] bcachefs (loop2): journal_replay... [ 123.598320][ T6351] done [ 123.598337][ T6351] bcachefs (loop4): check_root... done [ 123.601887][ T6351] bcachefs (loop4): check_unreachable_inodes... done [ 123.604421][ T6351] bcachefs (loop4): check_subvolume_structure... done [ 123.605165][ T6351] bcachefs (loop4): check_directory_structure... done [ 123.605894][ T6351] bcachefs (loop4): check_nlinks... [ 123.606620][ T6351] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 123.614575][ T6351] done [ 123.615287][ T6351] bcachefs (loop4): check_rebalance_work... done [ 123.616531][ T6351] bcachefs (loop4): resume_logged_ops... done [ 123.618921][ T6351] bcachefs (loop4): delete_dead_inodes... done [ 123.619966][ T6351] bcachefs (loop4): set_fs_needs_rebalance... done [ 123.665318][ T6352] done [ 123.666135][ T6352] bcachefs (loop2): check_alloc_info... [ 123.667941][ T6352] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 123.667959][ T6352] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 123.667970][ T6352] gen 0 oldest_gen 0 data_type need_discard [ 123.667983][ T6352] journal_seq_nonempty 6 [ 123.667993][ T6352] journal_seq_empty 0 [ 123.668003][ T6352] need_discard 1 [ 123.668013][ T6352] need_inc_gen 1 [ 123.668022][ T6352] dirty_sectors 0 [ 123.668032][ T6352] stripe_sectors 0 [ 123.668042][ T6352] cached_sectors 0 [ 123.668053][ T6352] stripe 0 [ 123.668063][ T6352] stripe_redundancy 0 [ 123.668072][ T6352] io_time[READ] 1 [ 123.668082][ T6352] io_time[WRITE] 768 [ 123.668091][ T6352] fragmentation 0 [ 123.668101][ T6352] bp_start 8 [ 123.668110][ T6352] , fixing [ 123.675963][ T6351] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 123.675986][ T6351] bcachefs (loop4): check_alloc_info... done [ 123.685446][ T6351] bcachefs (loop4): check_lrus... done [ 123.687028][ T6351] bcachefs (loop4): check_btree_backpointers... done [ 123.690163][ T6351] bcachefs (loop4): check_backpointers_to_extents... done [ 123.693864][ T6351] bcachefs (loop4): check_extents_to_backpointers... [ 123.694781][ T6351] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 123.700128][ T6351] done [ 123.700143][ T6351] bcachefs (loop4): check_alloc_to_lru_refs... done [ 123.702404][ T6351] bcachefs (loop4): bucket_gens_init... done [ 123.704344][ T6351] bcachefs (loop4): check_snapshot_trees... done [ 123.705526][ T6351] bcachefs (loop4): check_snapshots... done [ 123.706496][ T6351] bcachefs (loop4): check_subvols... done [ 123.707835][ T6351] bcachefs (loop4): check_subvol_children... done [ 123.709009][ T6351] bcachefs (loop4): delete_dead_snapshots... done [ 123.711838][ T6351] bcachefs (loop4): check_inodes... done [ 123.712971][ T6351] bcachefs (loop4): check_extents... done [ 123.714386][ T6351] bcachefs (loop4): check_indirect_extents... done [ 123.715225][ T6351] bcachefs (loop4): check_dirents... done [ 123.716846][ T6351] bcachefs (loop4): check_xattrs... done [ 123.718136][ T6351] bcachefs (loop4): check_root... done [ 123.719585][ T6351] bcachefs (loop4): check_unreachable_inodes... done [ 123.721379][ T6351] bcachefs (loop4): check_subvolume_structure... done [ 123.722210][ T6351] bcachefs (loop4): check_directory_structure... done [ 123.723003][ T6351] bcachefs (loop4): check_nlinks... done [ 123.724171][ T6351] bcachefs (loop4): check_rebalance_work... done [ 123.725972][ T6351] bcachefs (loop4): resume_logged_ops... done [ 123.726735][ T6351] bcachefs (loop4): delete_dead_inodes... done [ 123.731473][ T6351] bcachefs (loop4): set_fs_needs_rebalance... done [ 123.734535][ T6352] done [ 123.739312][ T6352] bcachefs (loop2): check_lrus... done [ 123.740918][ T6352] bcachefs (loop2): check_btree_backpointers... [ 123.743303][ T6351] bcachefs (loop4): done starting filesystem [ 123.745258][ T6352] done [ 123.745271][ T6352] bcachefs (loop2): check_backpointers_to_extents... done [ 123.751935][ T6352] bcachefs (loop2): check_extents_to_backpointers... [ 123.753423][ T6352] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 123.759198][ T6352] done [ 123.760914][ T6352] bcachefs (loop2): check_alloc_to_lru_refs... [ 123.762783][ T6352] bcachefs (loop2): missing fragmentation lru entry [ 123.762800][ T6352] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 123.762812][ T6352] gen 0 oldest_gen 0 data_type user [ 123.762823][ T6352] journal_seq_nonempty 5 [ 123.762833][ T6352] journal_seq_empty 134217728 [ 123.762845][ T6352] need_discard 1 [ 123.762855][ T6352] need_inc_gen 1 [pid 6527] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6527] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6527] chdir("./file1") = 0 [pid 6527] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6527] ioctl(4, LOOP_CLR_FD) = 0 [pid 6527] close(4) = 0 [pid 6527] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6527] exit_group(0) = ? [pid 6527] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6527, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./24", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./24", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 123.762866][ T6352] dirty_sectors 16 [ 123.762875][ T6352] stripe_sectors 1802251 [ 123.762886][ T6352] cached_sectors 0 [ 123.762896][ T6352] stripe 0 [ 123.762906][ T6352] stripe_redundancy 0 [ 123.762915][ T6352] io_time[READ] 1 [ 123.762926][ T6352] io_time[WRITE] 512 [ 123.762936][ T6352] fragmentation 0 [ 123.762945][ T6352] bp_start 7 [ 123.762955][ T6352] , fixing [ 123.765828][ T6352] done [ 123.768028][ T6352] bcachefs (loop2): bucket_gens_init... done [ 123.772511][ T6352] bcachefs (loop2): check_snapshot_trees... done [ 123.773352][ T6352] bcachefs (loop2): check_snapshots... [ 123.773982][ T6352] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 123.773998][ T6352] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 123.785282][ T6352] done [ 123.786011][ T6352] bcachefs (loop2): check_subvols... done [ 123.787538][ T6352] bcachefs (loop2): check_subvol_children... done [ 123.789200][ T6352] bcachefs (loop2): delete_dead_snapshots... done [ 123.790283][ T6352] bcachefs (loop2): check_inodes... [ 123.791385][ T6352] bcachefs (loop2): inode points to missing dirent [ 123.791402][ T6352] inum: 4098:4294967295 [ 123.791412][ T6352] mode=40755 [ 123.791422][ T6352] flags=(15300000) [ 123.791433][ T6352] journal_seq=4 [ 123.791443][ T6352] hash_seed=ece93825deac2443 [ 123.791453][ T6352] hash_type=siphash [ 123.791462][ T6352] bi_size=0 [ 123.791471][ T6352] bi_sectors=0 [ 123.791481][ T6352] bi_version=0 [ 123.791490][ T6352] bi_atime=2770562249 [ 123.791500][ T6352] bi_ctime=2780562352 [ 123.791510][ T6352] bi_mtime=2780562352 [ 123.791519][ T6352] bi_otime=2770562249 [ 123.791529][ T6352] bi_uid=0 [ 123.791538][ T6352] bi_gid=0 [ 123.791547][ T6352] bi_nlink=0 [ 123.791556][ T6352] bi_generation=0 [ 123.791566][ T6352] bi_dev=0 [ 123.791575][ T6352] bi_data_checksum=0 [ 123.791584][ T6352] bi_compression=0 [ 123.791594][ T6352] bi_project=0 [ 123.791603][ T6352] bi_background_compression=0 [ 123.791613][ T6352] bi_data_replicas=0 [ 123.791622][ T6352] bi_promote_target=0 [ 123.791632][ T6352] bi_foreground_target=64 [ 123.791653][ T6352] bi_background_target=1 [ 123.791663][ T6352] bi_erasure_code=0 [ 123.791673][ T6352] bi_fields_set=0 [ 123.791682][ T6352] bi_dir=0 [ 123.791691][ T6352] bi_dir_offset=32 [ 123.791700][ T6352] bi_subvol=0 [ 123.791709][ T6352] bi_parent_subvol=0 [ 123.791719][ T6352] bi_nocow=0 [ 123.791728][ T6352] bi_depth=0 [ 123.791737][ T6352] bi_inodes_32bit=0 [ 123.791746][ T6352] bi_casefold=0, fixing [ 123.793341][ T6352] done [ 123.794068][ T6352] bcachefs (loop2): check_extents... done [ 123.795547][ T6352] bcachefs (loop2): check_indirect_extents... done [ 123.796379][ T6352] bcachefs (loop2): check_dirents... [ 123.798076][ T6352] bcachefs (loop2): directory with missing backpointer [ 123.798093][ T6352] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 123.798108][ T6352] inum: 4098:4294967295 [ 123.798118][ T6352] mode=40755 [ 123.798128][ T6352] flags=(11300000) [ 123.798138][ T6352] journal_seq=22 [ 123.798147][ T6352] hash_seed=ece93825deac2443 [ 123.798159][ T6352] hash_type=siphash [ 123.798169][ T6352] bi_size=0 [ 123.798178][ T6352] bi_sectors=0 [ 123.798187][ T6352] bi_version=0 [ 123.798199][ T6352] bi_atime=2770562249 [ 123.798209][ T6352] bi_ctime=2780562352 [ 123.798218][ T6352] bi_mtime=2780562352 [ 123.798228][ T6352] bi_otime=2770562249 [ 123.798239][ T6352] bi_uid=0 [ 123.798249][ T6352] bi_gid=0 [ 123.798257][ T6352] bi_nlink=0 [ 123.798267][ T6352] bi_generation=0 [ 123.798276][ T6352] bi_dev=0 [ 123.798286][ T6352] bi_data_checksum=0 [ 123.798296][ T6352] bi_compression=0 [ 123.798305][ T6352] bi_project=0 [ 123.798315][ T6352] bi_background_compression=0 [ 123.798327][ T6352] bi_data_replicas=0 [ 123.798336][ T6352] bi_promote_target=0 [ 123.798346][ T6352] bi_foreground_target=64 [pid 5839] umount2("./24/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 123.798356][ T6352] bi_background_target=1 [ 123.798366][ T6352] bi_erasure_code=0 [ 123.798376][ T6352] bi_fields_set=0 [ 123.798385][ T6352] bi_dir=0 [ 123.798394][ T6352] bi_dir_offset=0 [ 123.798404][ T6352] bi_subvol=0 [ 123.798413][ T6352] bi_parent_subvol=0 [ 123.798422][ T6352] bi_nocow=0 [ 123.798431][ T6352] bi_depth=0 [ 123.798441][ T6352] bi_inodes_32bit=0 [ 123.798450][ T6352] bi_casefold=0, fixing [ 123.805842][ T6352] done [pid 5839] umount2("./24/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./24/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./24/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./24/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 123.806750][ T6352] bcachefs (loop2): check_xattrs... done [ 123.810112][ T6352] bcachefs (loop2): check_root... done [ 123.813903][ T6352] bcachefs (loop2): check_unreachable_inodes... done [ 123.815215][ T6352] bcachefs (loop2): check_subvolume_structure... done [ 123.816423][ T6352] bcachefs (loop2): check_directory_structure... done [ 123.817237][ T6352] bcachefs (loop2): check_nlinks... [ 123.817977][ T6352] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 123.818999][ T6352] done [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./24/file1") = 0 [pid 5839] umount2("./24/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./24/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./24/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./24") = 0 [pid 5839] mkdir("./25", 0777) = 0 [ 123.820809][ T6352] bcachefs (loop2): check_rebalance_work... done [ 123.822046][ T6352] bcachefs (loop2): resume_logged_ops... done [ 123.823727][ T6352] bcachefs (loop2): delete_dead_inodes... done [ 123.839537][ T6352] bcachefs (loop2): set_fs_needs_rebalance... [ 123.846293][ T6371] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 123.846315][ T6371] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 123.851133][ T6352] done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6538 attached [pid 6538] set_robust_list(0x5555901c6760, 24) = 0 [pid 6538] chdir("./25") = 0 [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 6538 [pid 6538] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6538] setpgid(0, 0) = 0 [pid 6538] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6538] write(3, "1000", 4) = 4 [pid 6538] close(3) = 0 [pid 6538] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6538] write(1, "executing program\n", 18executing program ) = 18 [pid 6538] memfd_create("syzkaller", 0) = 3 [pid 6538] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 123.851760][ T6352] bcachefs (loop2): check_extents_to_backpointers... [ 123.852714][ T6352] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 123.854375][ T6371] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 123.856509][ T6352] done [ 123.868122][ T6352] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 123.868143][ T6352] bcachefs (loop2): check_alloc_info... done [ 123.878997][ T6352] bcachefs (loop2): check_lrus... done [ 123.880552][ T6352] bcachefs (loop2): check_btree_backpointers... done [ 123.881787][ T6352] bcachefs (loop2): check_backpointers_to_extents... done [ 123.887098][ T6352] bcachefs (loop2): check_extents_to_backpointers... [ 123.887973][ T6352] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 123.899008][ T6352] done [ 123.899026][ T6352] bcachefs (loop2): check_alloc_to_lru_refs... done [ 123.901693][ T6352] bcachefs (loop2): bucket_gens_init... done [ 123.904201][ T5841] bcachefs (loop4): shutting down [ 123.904217][ T5841] bcachefs (loop4): going read-only [ 123.904246][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 123.905073][ T6352] bcachefs (loop2): check_snapshot_trees... done [ 123.906298][ T6352] bcachefs (loop2): check_snapshots... done [ 123.907030][ T6352] bcachefs (loop2): check_subvols... done [ 123.907817][ T6352] bcachefs (loop2): check_subvol_children... done [ 123.909027][ T6352] bcachefs (loop2): delete_dead_snapshots... done [ 123.911463][ T6352] bcachefs (loop2): check_inodes... done [ 123.912613][ T6352] bcachefs (loop2): check_extents... done [ 123.920340][ T6352] bcachefs (loop2): check_indirect_extents... done [ 123.921112][ T6352] bcachefs (loop2): check_dirents... done [ 123.922655][ T6352] bcachefs (loop2): check_xattrs... done [ 123.923393][ T6352] bcachefs (loop2): check_root... done [ 123.924189][ T6352] bcachefs (loop2): check_unreachable_inodes... done [ 123.925135][ T6352] bcachefs (loop2): check_subvolume_structure... done [ 123.931620][ T6352] bcachefs (loop2): check_directory_structure... done [ 123.933237][ T6352] bcachefs (loop2): check_nlinks... done [ 123.934522][ T6352] bcachefs (loop2): check_rebalance_work... done [ 123.935307][ T6352] bcachefs (loop2): resume_logged_ops... done [ 123.936027][ T6352] bcachefs (loop2): delete_dead_inodes... done [ 123.941036][ T6352] bcachefs (loop2): set_fs_needs_rebalance... [ 123.941976][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 33 [ 123.942324][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 33 [ 123.944186][ T6352] done [ 123.944259][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 34 [ 123.946049][ T5841] bcachefs (loop4): marking filesystem clean [ 123.953542][ T6352] bcachefs (loop2): done starting filesystem [ 124.042322][ T5841] bcachefs (loop4): shutdown complete [ 124.045008][ T5839] bcachefs (loop2): shutting down [ 124.045023][ T5839] bcachefs (loop2): going read-only [ 124.045288][ T5839] bcachefs (loop2): finished waiting for writes to stop [pid 6538] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6538] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6538] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6538] ioctl(4, LOOP_SET_FD, 3) = 0 [ 124.084118][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 124.084484][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 124.085422][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 124.087207][ T5839] bcachefs (loop2): marking filesystem clean [ 124.087716][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 124.087716][ T5900] rw journal devs: [ 124.195924][ T5839] bcachefs (loop2): shutdown complete [ 125.119496][ T6373] loop4: detected capacity change from 0 to 32768 [pid 6538] close(3) = 0 [pid 6538] close(4) = 0 [pid 6538] mkdir("./file1", 0777) = 0 [ 125.312385][ T6373] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 125.312415][ T6373] allowing incompatible features above 0.0: (unknown version) [ 125.312430][ T6373] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 125.312459][ T6373] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 125.312601][ T6373] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 125.312845][ T6373] bcachefs (loop4): Version upgrade required: [ 125.312845][ T6373] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 125.312845][ T6373] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 125.312845][ T6373] 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,check_rebalance_work,set_fs_needs_rebalance [ 125.341090][ T6373] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 125.341116][ T6373] size != 0, deleting [ 125.342113][ T6373] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 125.347008][ T6373] bcachefs (loop4): check_topology... done [ 125.357170][ T6373] bcachefs (loop4): accounting_read... done [ 125.394957][ T6373] bcachefs (loop4): alloc_read... done [ 125.395815][ T6373] bcachefs (loop4): snapshots_read... done [ 125.396545][ T6373] bcachefs (loop4): check_allocations... [ 125.398441][ T6373] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 125.398460][ T6373] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 125.402074][ T6373] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 125.402094][ T6373] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 125.408224][ T6373] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 125.408245][ T6373] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 125.410545][ T6373] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 125.410565][ T6373] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 125.412921][ T6373] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 125.412940][ T6373] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 125.413906][ T6373] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.414030][ T6373] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.414614][ T6373] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.414720][ T6373] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.415126][ T6373] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.415231][ T6373] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.415434][ T6373] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.415551][ T6373] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.415755][ T6373] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.415861][ T6373] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.416063][ T6373] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.416179][ T6373] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.416388][ T6373] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.416497][ T6373] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.416691][ T6373] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.416803][ T6373] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 125.417021][ T6373] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 125.417124][ T6373] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 125.417343][ T6373] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 125.417448][ T6373] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 125.417683][ T6373] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 125.417699][ T6373] Ratelimiting new instances of previous error [ 125.417826][ T6373] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 125.417843][ T6373] Ratelimiting new instances of previous error [ 125.437684][ T6374] loop2: detected capacity change from 0 to 32768 [ 125.467072][ T6373] done [ 125.469889][ T6373] bcachefs (loop4): going read-write [ 125.484500][ T6373] bcachefs (loop4): journal_replay... [ 125.588825][ T6374] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 125.588855][ T6374] allowing incompatible features above 0.0: (unknown version) [ 125.588869][ T6374] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 125.588895][ T6374] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 125.589014][ T6374] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 125.590379][ T6373] done [ 125.590983][ T6373] bcachefs (loop4): check_alloc_info... [ 125.593853][ T6373] bcachefs (loop4): bucket incorrectly unset in need_discard btree [pid 6538] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6538] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6538] chdir("./file1") = 0 [pid 6538] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6538] ioctl(4, LOOP_CLR_FD) = 0 [pid 6538] close(4) = 0 [pid 6538] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6538] exit_group(0) = ? [pid 6538] +++ exited with 0 +++ [ 125.593872][ T6373] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 125.593884][ T6373] gen 0 oldest_gen 0 data_type need_discard [ 125.593895][ T6373] journal_seq_nonempty 6 [ 125.593907][ T6373] journal_seq_empty 0 [ 125.593917][ T6373] need_discard 1 [ 125.593927][ T6373] need_inc_gen 1 [ 125.593937][ T6373] dirty_sectors 0 [ 125.593947][ T6373] stripe_sectors 0 [ 125.593957][ T6373] cached_sectors 0 [ 125.593967][ T6373] stripe 0 [ 125.593977][ T6373] stripe_redundancy 0 [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6538, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] umount2("./25", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./25", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 125.593989][ T6373] io_time[READ] 1 [ 125.593999][ T6373] io_time[WRITE] 768 [ 125.594009][ T6373] fragmentation 0 [ 125.594019][ T6373] bp_start 8 [ 125.594029][ T6373] , fixing [ 125.604736][ T6374] bcachefs (loop2): Version upgrade required: [ 125.604736][ T6374] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 125.604736][ T6374] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 125.604736][ T6374] 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,check_rebalance_work,set_fs_needs_rebalance [ 125.625156][ T6373] done [ 125.631460][ T6373] bcachefs (loop4): check_lrus... done [ 125.637934][ T6373] bcachefs (loop4): check_btree_backpointers... done [ 125.641815][ T6373] bcachefs (loop4): check_backpointers_to_extents... done [ 125.645350][ T6373] bcachefs (loop4): check_extents_to_backpointers... [ 125.646707][ T6373] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [ 125.648752][ T6373] done [ 125.650493][ T6373] bcachefs (loop4): check_alloc_to_lru_refs... [ 125.652612][ T6373] bcachefs (loop4): missing fragmentation lru entry [ 125.652630][ T6373] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 125.652643][ T6373] gen 0 oldest_gen 0 data_type user [ 125.652655][ T6373] journal_seq_nonempty 5 [ 125.652665][ T6373] journal_seq_empty 134217728 [ 125.652675][ T6373] need_discard 1 [ 125.652685][ T6373] need_inc_gen 1 [ 125.652696][ T6373] dirty_sectors 16 [ 125.652706][ T6373] stripe_sectors 1802251 [ 125.652717][ T6373] cached_sectors 0 [ 125.652727][ T6373] stripe 0 [ 125.652737][ T6373] stripe_redundancy 0 [ 125.652746][ T6373] io_time[READ] 1 [ 125.652756][ T6373] io_time[WRITE] 512 [ 125.652766][ T6373] fragmentation 0 [ 125.652776][ T6373] bp_start 7 [ 125.652785][ T6373] , fixing [ 125.658489][ T6373] done [ 125.662424][ T6373] bcachefs (loop4): bucket_gens_init... [ 125.663940][ T6374] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 125.663963][ T6374] size != 0, deleting [ 125.664924][ T6374] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 125.668731][ T6373] done [ 125.670771][ T6373] bcachefs (loop4): check_snapshot_trees... done [ 125.672669][ T6373] bcachefs (loop4): check_snapshots... [ 125.673259][ T6373] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 125.673276][ T6373] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 125.676931][ T6374] bcachefs (loop2): check_topology... done [ 125.678297][ T6374] bcachefs (loop2): accounting_read... [ 125.686609][ T6373] done [ 125.687763][ T6373] bcachefs (loop4): check_subvols... done [ 125.690320][ T6373] bcachefs (loop4): check_subvol_children... done [ 125.691207][ T6373] bcachefs (loop4): delete_dead_snapshots... done [ 125.691957][ T6373] bcachefs (loop4): check_inodes... [ 125.693046][ T6373] bcachefs (loop4): inode points to missing dirent [ 125.693064][ T6373] inum: 4098:4294967295 [ 125.693075][ T6373] mode=40755 [ 125.693085][ T6373] flags=(15300000) [ 125.693095][ T6373] journal_seq=4 [ 125.693104][ T6373] hash_seed=ece93825deac2443 [ 125.693115][ T6373] hash_type=siphash [ 125.693125][ T6373] bi_size=0 [ 125.693134][ T6373] bi_sectors=0 [ 125.693144][ T6373] bi_version=0 [ 125.693153][ T6373] bi_atime=2770562249 [ 125.693163][ T6373] bi_ctime=2780562352 [ 125.693173][ T6373] bi_mtime=2780562352 [ 125.693182][ T6373] bi_otime=2770562249 [ 125.693192][ T6373] bi_uid=0 [ 125.693201][ T6373] bi_gid=0 [ 125.693212][ T6373] bi_nlink=0 [pid 5839] umount2("./25/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./25/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 125.693221][ T6373] bi_generation=0 [ 125.693230][ T6373] bi_dev=0 [ 125.693240][ T6373] bi_data_checksum=0 [ 125.693249][ T6373] bi_compression=0 [ 125.693259][ T6373] bi_project=0 [ 125.693268][ T6373] bi_background_compression=0 [ 125.693278][ T6373] bi_data_replicas=0 [ 125.693288][ T6373] bi_promote_target=0 [ 125.693327][ T6373] bi_foreground_target=64 [ 125.693338][ T6373] bi_background_target=1 [ 125.693348][ T6373] bi_erasure_code=0 [ 125.693357][ T6373] bi_fields_set=0 [pid 5839] newfstatat(AT_FDCWD, "./25/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./25/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./25/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./25/file1") = 0 [pid 5839] umount2("./25/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 125.693366][ T6373] bi_dir=0 [ 125.693375][ T6373] bi_dir_offset=32 [ 125.693385][ T6373] bi_subvol=0 [ 125.693394][ T6373] bi_parent_subvol=0 [ 125.693403][ T6373] bi_nocow=0 [ 125.693413][ T6373] bi_depth=0 [ 125.693422][ T6373] bi_inodes_32bit=0 [ 125.693432][ T6373] bi_casefold=0, fixing [ 125.695011][ T6373] done [ 125.695672][ T6373] bcachefs (loop4): check_extents... done [ 125.697160][ T6373] bcachefs (loop4): check_indirect_extents... done [pid 5839] newfstatat(AT_FDCWD, "./25/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./25/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./25") = 0 [pid 5839] mkdir("./26", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 125.697992][ T6373] bcachefs (loop4): check_dirents... [ 125.705117][ T6373] bcachefs (loop4): directory with missing backpointer [ 125.705136][ T6373] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 125.705152][ T6373] inum: 4098:4294967295 [ 125.705162][ T6373] mode=40755 [ 125.705172][ T6373] flags=(11300000) [ 125.705182][ T6373] journal_seq=23 [ 125.705191][ T6373] hash_seed=ece93825deac2443 [ 125.705202][ T6373] hash_type=siphash [ 125.705211][ T6373] bi_size=0 [ 125.705220][ T6373] bi_sectors=0 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6549 ./strace-static-x86_64: Process 6549 attached [pid 6549] set_robust_list(0x5555901c6760, 24) = 0 [ 125.705230][ T6373] bi_version=0 [ 125.705239][ T6373] bi_atime=2770562249 [ 125.705249][ T6373] bi_ctime=2780562352 [ 125.705259][ T6373] bi_mtime=2780562352 [ 125.705269][ T6373] bi_otime=2770562249 [ 125.705279][ T6373] bi_uid=0 [ 125.705289][ T6373] bi_gid=0 [ 125.705298][ T6373] bi_nlink=0 [ 125.705307][ T6373] bi_generation=0 [ 125.705328][ T6373] bi_dev=0 [ 125.705338][ T6373] bi_data_checksum=0 [ 125.705347][ T6373] bi_compression=0 [pid 6549] chdir("./26") = 0 [pid 6549] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6549] setpgid(0, 0) = 0 [pid 6549] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6549] write(3, "1000", 4) = 4 [pid 6549] close(3) = 0 [ 125.705356][ T6373] bi_project=0 [ 125.705365][ T6373] bi_background_compression=0 [ 125.705375][ T6373] bi_data_replicas=0 [ 125.705384][ T6373] bi_promote_target=0 [ 125.705394][ T6373] bi_foreground_target=64 [ 125.705403][ T6373] bi_background_target=1 [ 125.705412][ T6373] bi_erasure_code=0 [ 125.705422][ T6373] bi_fields_set=0 [ 125.705431][ T6373] bi_dir=0 [ 125.705440][ T6373] bi_dir_offset=0 [ 125.705449][ T6373] bi_subvol=0 [ 125.705458][ T6373] bi_parent_subvol=0 [pid 6549] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6549] write(1, "executing program\n", 18) = 18 [pid 6549] memfd_create("syzkaller", 0) = 3 [pid 6549] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 125.705467][ T6373] bi_nocow=0 [ 125.705476][ T6373] bi_depth=0 [ 125.705486][ T6373] bi_inodes_32bit=0 [ 125.705496][ T6373] bi_casefold=0, fixing [ 125.713051][ T6373] done [ 125.713930][ T6373] bcachefs (loop4): check_xattrs... done [ 125.715718][ T6373] bcachefs (loop4): check_root... done [ 125.716891][ T6373] bcachefs (loop4): check_unreachable_inodes... [ 125.717954][ T6374] done [ 125.717969][ T6374] bcachefs (loop2): alloc_read... done [ 125.718778][ T6374] bcachefs (loop2): snapshots_read... done [ 125.720305][ T6374] bcachefs (loop2): check_allocations... [ 125.722908][ T6373] done [ 125.722923][ T6373] bcachefs (loop4): check_subvolume_structure... done [ 125.724060][ T6373] bcachefs (loop4): check_directory_structure... [ 125.724847][ T6374] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 125.724866][ T6374] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 125.726542][ T6373] done [ 125.726555][ T6373] bcachefs (loop4): check_nlinks... [ 125.727260][ T6373] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 125.728524][ T6374] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 125.728541][ T6374] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 125.731554][ T6374] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 125.731574][ T6374] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 125.733457][ T6373] done [ 125.734143][ T6373] bcachefs (loop4): check_rebalance_work... done [ 125.735505][ T6373] bcachefs (loop4): resume_logged_ops... done [ 125.737042][ T6373] bcachefs (loop4): delete_dead_inodes... [ 125.739560][ T6374] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 125.739580][ T6374] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 125.742687][ T6374] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 125.742707][ T6374] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 125.745684][ T6374] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.745819][ T6374] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.746331][ T6374] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.746451][ T6374] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.746860][ T6374] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.746965][ T6374] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6549] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6549] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6549] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6549] ioctl(4, LOOP_SET_FD, 3) = 0 [ 125.747176][ T6374] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.747282][ T6374] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.747485][ T6374] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.747597][ T6374] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.747798][ T6374] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6549] close(3) = 0 [pid 6549] close(4) = 0 [pid 6549] mkdir("./file1", 0777) = 0 [ 125.747905][ T6374] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.748113][ T6374] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.748213][ T6374] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 125.748404][ T6374] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 125.748506][ T6374] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 125.748731][ T6374] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 125.748836][ T6374] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 125.749033][ T6374] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 125.749141][ T6374] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 125.753600][ T6374] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 125.753619][ T6374] Ratelimiting new instances of previous error [ 125.753754][ T6374] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 125.753769][ T6374] Ratelimiting new instances of previous error [ 125.760938][ T6373] done [ 125.760952][ T6373] bcachefs (loop4): set_fs_needs_rebalance... [ 125.773691][ T6374] done [ 125.776547][ T6374] bcachefs (loop2): going read-write [ 125.782245][ T6374] bcachefs (loop2): journal_replay... [ 125.800060][ T6383] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 125.800083][ T6383] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 125.807168][ T6373] done [ 125.807987][ T6373] bcachefs (loop4): check_extents_to_backpointers... [ 125.808988][ T6373] bcachefs (loop4): scanning for missing backpointers in 3/128 buckets [ 125.814702][ T6383] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 125.818333][ T6373] done [ 125.837354][ T6374] done [ 125.838332][ T6374] bcachefs (loop2): check_alloc_info... [ 125.840560][ T6373] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 125.840584][ T6373] bcachefs (loop4): check_alloc_info... [ 125.844164][ T6374] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 125.844183][ T6374] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 125.844195][ T6374] gen 0 oldest_gen 0 data_type need_discard [ 125.844208][ T6374] journal_seq_nonempty 6 [ 125.844218][ T6374] journal_seq_empty 0 [ 125.844229][ T6374] need_discard 1 [ 125.844239][ T6374] need_inc_gen 1 [ 125.844249][ T6374] dirty_sectors 0 [ 125.844259][ T6374] stripe_sectors 0 [ 125.844271][ T6374] cached_sectors 0 [ 125.844281][ T6374] stripe 0 [ 125.844291][ T6374] stripe_redundancy 0 [ 125.844302][ T6374] io_time[READ] 1 [ 125.844312][ T6374] io_time[WRITE] 768 [ 125.844323][ T6374] fragmentation 0 [ 125.844334][ T6374] bp_start 8 [ 125.844344][ T6374] , fixing [ 125.854058][ T6373] done [ 125.854076][ T6373] bcachefs (loop4): check_lrus... done [ 125.855175][ T6373] bcachefs (loop4): check_btree_backpointers... done [ 125.856373][ T6373] bcachefs (loop4): check_backpointers_to_extents... done [ 125.861078][ T6373] bcachefs (loop4): check_extents_to_backpointers... [ 125.861993][ T6373] bcachefs (loop4): scanning for missing backpointers in 1/128 buckets [ 125.865090][ T6373] done [ 125.865105][ T6373] bcachefs (loop4): check_alloc_to_lru_refs... done [ 125.872061][ T6373] bcachefs (loop4): bucket_gens_init... done [ 125.875826][ T6373] bcachefs (loop4): check_snapshot_trees... done [ 125.877381][ T6373] bcachefs (loop4): check_snapshots... [ 125.877934][ T6374] done [ 125.882361][ T6374] bcachefs (loop2): check_lrus... [ 125.883765][ T6373] done [ 125.883780][ T6373] bcachefs (loop4): check_subvols... [ 125.884573][ T6374] done [ 125.884588][ T6374] bcachefs (loop2): check_btree_backpointers... [ 125.888684][ T6373] done [ 125.888701][ T6373] bcachefs (loop4): check_subvol_children... done [ 125.889847][ T6373] bcachefs (loop4): delete_dead_snapshots... done [ 125.890557][ T6373] bcachefs (loop4): check_inodes... [ 125.893224][ T6374] done [ 125.893240][ T6374] bcachefs (loop2): check_backpointers_to_extents... [ 125.895215][ T6373] done [ 125.895231][ T6373] bcachefs (loop4): check_extents... done [ 125.897029][ T6373] bcachefs (loop4): check_indirect_extents... [ 125.898159][ T6374] done [ 125.898896][ T6374] bcachefs (loop2): check_extents_to_backpointers... [pid 6549] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6549] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6549] chdir("./file1") = 0 [pid 6549] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6549] ioctl(4, LOOP_CLR_FD) = 0 [pid 6549] close(4) = 0 [pid 6549] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6549] exit_group(0) = ? [pid 6549] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6549, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] umount2("./26", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./26", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 125.900588][ T6373] done [ 125.900603][ T6373] bcachefs (loop4): check_dirents... done [ 125.904224][ T6373] bcachefs (loop4): check_xattrs... [ 125.905097][ T6374] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 125.906533][ T6373] done [ 125.906545][ T6373] bcachefs (loop4): check_root... done [ 125.907315][ T6373] bcachefs (loop4): check_unreachable_inodes... [ 125.908108][ T6374] done [ 125.908866][ T6374] bcachefs (loop2): check_alloc_to_lru_refs... [ 125.909816][ T6373] done [ 125.909830][ T6373] bcachefs (loop4): check_subvolume_structure... [ 125.912469][ T6374] bcachefs (loop2): missing fragmentation lru entry [ 125.912485][ T6374] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 125.912504][ T6374] gen 0 oldest_gen 0 data_type user [ 125.912517][ T6374] journal_seq_nonempty 5 [ 125.912528][ T6374] journal_seq_empty 134217728 [ 125.912539][ T6374] need_discard 1 [ 125.912549][ T6374] need_inc_gen 1 [ 125.912559][ T6374] dirty_sectors 16 [ 125.912579][ T6374] stripe_sectors 1802251 [ 125.912590][ T6374] cached_sectors 0 [ 125.912601][ T6374] stripe 0 [ 125.912611][ T6374] stripe_redundancy 0 [ 125.912621][ T6374] io_time[READ] 1 [ 125.912631][ T6374] io_time[WRITE] 512 [ 125.912641][ T6374] fragmentation 0 [ 125.912651][ T6374] bp_start 7 [ 125.912663][ T6374] , fixing [ 125.915001][ T6373] done [ 125.915015][ T6373] bcachefs (loop4): check_directory_structure... done [ 125.915785][ T6373] bcachefs (loop4): check_nlinks... done [ 125.916950][ T6373] bcachefs (loop4): check_rebalance_work... done [ 125.918032][ T6373] bcachefs (loop4): resume_logged_ops... done [ 125.919060][ T6373] bcachefs (loop4): delete_dead_inodes... [ 125.919442][ T6374] done [ 125.922332][ T6374] bcachefs (loop2): bucket_gens_init... [ 125.923365][ T6373] done [ 125.923379][ T6373] bcachefs (loop4): set_fs_needs_rebalance... done [ 125.927896][ T6374] done [ 125.929777][ T6374] bcachefs (loop2): check_snapshot_trees... done [ 125.931194][ T6374] bcachefs (loop2): check_snapshots... [ 125.931817][ T6374] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 125.931835][ T6374] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 125.937477][ T6373] bcachefs (loop4): done starting filesystem [ 125.964698][ T6374] done [ 125.965299][ T6374] bcachefs (loop2): check_subvols... done [ 125.970251][ T6374] bcachefs (loop2): check_subvol_children... done [ 125.971171][ T6374] bcachefs (loop2): delete_dead_snapshots... done [ 125.975662][ T6374] bcachefs (loop2): check_inodes... [ 125.976810][ T6374] bcachefs (loop2): inode points to missing dirent [ 125.976827][ T6374] inum: 4098:4294967295 [ 125.976838][ T6374] mode=40755 [ 125.976848][ T6374] flags=(15300000) [ 125.976858][ T6374] journal_seq=4 [ 125.976867][ T6374] hash_seed=ece93825deac2443 [ 125.976877][ T6374] hash_type=siphash [ 125.976886][ T6374] bi_size=0 [ 125.976895][ T6374] bi_sectors=0 [ 125.976904][ T6374] bi_version=0 [ 125.976913][ T6374] bi_atime=2770562249 [ 125.976922][ T6374] bi_ctime=2780562352 [ 125.976931][ T6374] bi_mtime=2780562352 [ 125.976942][ T6374] bi_otime=2770562249 [ 125.976951][ T6374] bi_uid=0 [ 125.976960][ T6374] bi_gid=0 [ 125.976968][ T6374] bi_nlink=0 [ 125.976977][ T6374] bi_generation=0 [ 125.976986][ T6374] bi_dev=0 [ 125.976995][ T6374] bi_data_checksum=0 [ 125.977006][ T6374] bi_compression=0 [ 125.977015][ T6374] bi_project=0 [ 125.977023][ T6374] bi_background_compression=0 [ 125.977034][ T6374] bi_data_replicas=0 [ 125.977043][ T6374] bi_promote_target=0 [ 125.977052][ T6374] bi_foreground_target=64 [ 125.977061][ T6374] bi_background_target=1 [ 125.977071][ T6374] bi_erasure_code=0 [ 125.977080][ T6374] bi_fields_set=0 [ 125.977089][ T6374] bi_dir=0 [ 125.977098][ T6374] bi_dir_offset=32 [ 125.977107][ T6374] bi_subvol=0 [ 125.977116][ T6374] bi_parent_subvol=0 [ 125.977125][ T6374] bi_nocow=0 [ 125.977134][ T6374] bi_depth=0 [pid 5839] umount2("./26/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 125.977142][ T6374] bi_inodes_32bit=0 [ 125.977152][ T6374] bi_casefold=0, fixing [ 125.986477][ T6374] done [ 125.987150][ T6374] bcachefs (loop2): check_extents... done [ 125.988809][ T6374] bcachefs (loop2): check_indirect_extents... done [ 125.996903][ T6374] bcachefs (loop2): check_dirents... [ 125.998678][ T6374] bcachefs (loop2): directory with missing backpointer [ 125.998696][ T6374] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 125.998711][ T6374] inum: 4098:4294967295 [pid 5839] umount2("./26/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./26/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./26/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./26/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./26/file1") = 0 [pid 5839] umount2("./26/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./26/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./26/binderfs") = 0 [ 125.998721][ T6374] mode=40755 [ 125.998731][ T6374] flags=(11300000) [ 125.998740][ T6374] journal_seq=23 [ 125.998750][ T6374] hash_seed=ece93825deac2443 [ 125.998761][ T6374] hash_type=siphash [ 125.998771][ T6374] bi_size=0 [ 125.998781][ T6374] bi_sectors=0 [ 125.998790][ T6374] bi_version=0 [ 125.998799][ T6374] bi_atime=2770562249 [ 125.998809][ T6374] bi_ctime=2780562352 [ 125.998819][ T6374] bi_mtime=2780562352 [ 125.998829][ T6374] bi_otime=2770562249 [ 125.998838][ T6374] bi_uid=0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./26") = 0 [pid 5839] mkdir("./27", 0777) = 0 [ 125.998847][ T6374] bi_gid=0 [ 125.998856][ T6374] bi_nlink=0 [ 125.998865][ T6374] bi_generation=0 [ 125.998877][ T6374] bi_dev=0 [ 125.998897][ T6374] bi_data_checksum=0 [ 125.998906][ T6374] bi_compression=0 [ 125.998916][ T6374] bi_project=0 [ 125.998925][ T6374] bi_background_compression=0 [ 125.998934][ T6374] bi_data_replicas=0 [ 125.998944][ T6374] bi_promote_target=0 [ 125.998953][ T6374] bi_foreground_target=64 [ 125.998963][ T6374] bi_background_target=1 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6560 ./strace-static-x86_64: Process 6560 attached [pid 6560] set_robust_list(0x5555901c6760, 24) = 0 [ 125.998972][ T6374] bi_erasure_code=0 [ 125.998982][ T6374] bi_fields_set=0 [ 125.998991][ T6374] bi_dir=0 [ 125.999000][ T6374] bi_dir_offset=0 [ 125.999009][ T6374] bi_subvol=0 [ 125.999017][ T6374] bi_parent_subvol=0 [ 125.999027][ T6374] bi_nocow=0 [ 125.999036][ T6374] bi_depth=0 [ 125.999045][ T6374] bi_inodes_32bit=0 [ 125.999054][ T6374] bi_casefold=0, fixing [ 126.013783][ T6374] done [ 126.014375][ T6374] bcachefs (loop2): check_xattrs... done [pid 6560] chdir("./27") = 0 [pid 6560] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6560] setpgid(0, 0) = 0 [pid 6560] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 126.015676][ T6374] bcachefs (loop2): check_root... done [ 126.016685][ T6374] bcachefs (loop2): check_unreachable_inodes... [ 126.017438][ T5841] bcachefs (loop4): shutting down [ 126.017454][ T5841] bcachefs (loop4): going read-only [ 126.017482][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 126.018177][ T6374] done [ 126.018189][ T6374] bcachefs (loop2): check_subvolume_structure... done [ 126.018933][ T6374] bcachefs (loop2): check_directory_structure... done [ 126.021469][ T6374] bcachefs (loop2): check_nlinks... [pid 6560] write(3, "1000", 4) = 4 [pid 6560] close(3) = 0 [pid 6560] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6560] write(1, "executing program\n", 18executing program ) = 18 [pid 6560] memfd_create("syzkaller", 0) = 3 [pid 6560] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 126.022162][ T6374] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 126.030149][ T6374] done [ 126.031024][ T6374] bcachefs (loop2): check_rebalance_work... done [ 126.032559][ T6374] bcachefs (loop2): resume_logged_ops... done [ 126.033327][ T6374] bcachefs (loop2): delete_dead_inodes... done [ 126.050940][ T6374] bcachefs (loop2): set_fs_needs_rebalance... [ 126.059102][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 33 [ 126.059944][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 33 [ 126.061213][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 34 [ 126.063027][ T5841] bcachefs (loop4): marking filesystem clean [ 126.103506][ T6374] done [ 126.106309][ T6393] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 126.106331][ T6393] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 126.109473][ T6374] bcachefs (loop2): check_extents_to_backpointers... [ 126.111319][ T6374] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 126.116685][ T6393] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 126.122109][ T6374] done [ 126.128038][ T6374] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 126.128062][ T6374] bcachefs (loop2): check_alloc_info... done [ 126.138636][ T6374] bcachefs (loop2): check_lrus... done [ 126.142796][ T6374] bcachefs (loop2): check_btree_backpointers... done [ 126.143926][ T6374] bcachefs (loop2): check_backpointers_to_extents... done [ 126.145343][ T6374] bcachefs (loop2): check_extents_to_backpointers... [ 126.146238][ T6374] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 126.151040][ T6374] done [ 126.151056][ T6374] bcachefs (loop2): check_alloc_to_lru_refs... [ 126.154814][ T5841] bcachefs (loop4): shutdown complete [ 126.163805][ T6374] done [ 126.164465][ T6374] bcachefs (loop2): bucket_gens_init... done [ 126.171414][ T6374] bcachefs (loop2): check_snapshot_trees... done [ 126.172533][ T6374] bcachefs (loop2): check_snapshots... done [ 126.173800][ T6374] bcachefs (loop2): check_subvols... done [ 126.174628][ T6374] bcachefs (loop2): check_subvol_children... done [ 126.175333][ T6374] bcachefs (loop2): delete_dead_snapshots... done [ 126.180410][ T6374] bcachefs (loop2): check_inodes... done [ 126.181630][ T6374] bcachefs (loop2): check_extents... done [ 126.182949][ T6374] bcachefs (loop2): check_indirect_extents... done [ 126.184079][ T6374] bcachefs (loop2): check_dirents... done [ 126.190190][ T6374] bcachefs (loop2): check_xattrs... done [ 126.191041][ T6374] bcachefs (loop2): check_root... done [ 126.191779][ T6374] bcachefs (loop2): check_unreachable_inodes... done [ 126.192683][ T6374] bcachefs (loop2): check_subvolume_structure... done [ 126.193405][ T6374] bcachefs (loop2): check_directory_structure... done [ 126.194627][ T6374] bcachefs (loop2): check_nlinks... done [ 126.200925][ T6374] bcachefs (loop2): check_rebalance_work... done [ 126.201758][ T6374] bcachefs (loop2): resume_logged_ops... done [ 126.202481][ T6374] bcachefs (loop2): delete_dead_inodes... done [pid 6560] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6560] munmap(0x7fbbeb93a000, 138412032) = 0 [ 126.203234][ T6374] bcachefs (loop2): set_fs_needs_rebalance... done [ 126.210827][ T6374] bcachefs (loop2): done starting filesystem [ 126.293662][ T5839] bcachefs (loop2): shutting down [ 126.293682][ T5839] bcachefs (loop2): going read-only [ 126.293714][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 126.342787][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 126.343583][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [pid 6560] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6560] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6560] close(3) = 0 [pid 6560] close(4) = 0 [pid 6560] mkdir("./file1", 0777) = 0 [ 126.344481][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 126.346280][ T5839] bcachefs (loop2): marking filesystem clean [ 126.417116][ T5839] bcachefs (loop2): shutdown complete [ 127.171278][ T6395] loop4: detected capacity change from 0 to 32768 [ 127.347605][ T6395] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 127.347632][ T6395] allowing incompatible features above 0.0: (unknown version) [ 127.347644][ T6395] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 127.347670][ T6395] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 127.347798][ T6395] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 127.348032][ T6395] bcachefs (loop4): Version upgrade required: [ 127.348032][ T6395] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 127.348032][ T6395] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 127.348032][ T6395] 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,check_rebalance_work,set_fs_needs_rebalance [ 127.408383][ T6395] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 127.408410][ T6395] size != 0, deleting [ 127.411104][ T6395] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 127.424551][ T6395] bcachefs (loop4): check_topology... done [ 127.430568][ T6395] bcachefs (loop4): accounting_read... done [ 127.476414][ T6395] bcachefs (loop4): alloc_read... done [ 127.477302][ T6395] bcachefs (loop4): snapshots_read... done [ 127.478061][ T6395] bcachefs (loop4): check_allocations... [ 127.481340][ T6395] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 127.481361][ T6395] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 127.487421][ T6395] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 127.487442][ T6395] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 127.488777][ T6395] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 127.488795][ T6395] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 127.499576][ T6395] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 127.499597][ T6395] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 127.503409][ T6395] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 127.503429][ T6395] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 127.504388][ T6395] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 127.504520][ T6395] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.505072][ T6395] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 127.505181][ T6395] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.505600][ T6395] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 127.505707][ T6395] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.505926][ T6395] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6560] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6560] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6560] chdir("./file1") = 0 [pid 6560] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 127.506034][ T6395] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.506232][ T6395] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 127.506516][ T6395] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.506762][ T6395] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6560] ioctl(4, LOOP_CLR_FD) = 0 [pid 6560] close(4) = 0 [pid 6560] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6560] exit_group(0) = ? [pid 6560] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6560, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] umount2("./27", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./27", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 127.506871][ T6395] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.507093][ T6395] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 127.507202][ T6395] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 127.507454][ T6395] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 127.520817][ T6395] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 127.521079][ T6395] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 127.521206][ T6395] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 127.521452][ T6395] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 127.521564][ T6395] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 127.521795][ T6395] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 127.521812][ T6395] Ratelimiting new instances of previous error [ 127.521958][ T6395] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 127.521975][ T6395] Ratelimiting new instances of previous error [ 127.552352][ T6395] done [ 127.561318][ T6395] bcachefs (loop4): going read-write [ 127.579897][ T6395] bcachefs (loop4): journal_replay... done [ 127.615009][ T6395] bcachefs (loop4): check_alloc_info... [ 127.616840][ T6395] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 127.616859][ T6395] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 127.616872][ T6395] gen 0 oldest_gen 0 data_type need_discard [ 127.616883][ T6395] journal_seq_nonempty 6 [ 127.616893][ T6395] journal_seq_empty 0 [ 127.616903][ T6395] need_discard 1 [ 127.616912][ T6395] need_inc_gen 1 [ 127.616923][ T6395] dirty_sectors 0 [ 127.616932][ T6395] stripe_sectors 0 [ 127.616943][ T6395] cached_sectors 0 [ 127.616954][ T6395] stripe 0 [ 127.616964][ T6395] stripe_redundancy 0 [ 127.616974][ T6395] io_time[READ] 1 [ 127.616984][ T6395] io_time[WRITE] 768 [ 127.616994][ T6395] fragmentation 0 [ 127.617003][ T6395] bp_start 8 [ 127.617013][ T6395] , fixing [ 127.650067][ T6395] done [ 127.655898][ T6395] bcachefs (loop4): check_lrus... done [ 127.660847][ T6395] bcachefs (loop4): check_btree_backpointers... done [ 127.663424][ T6395] bcachefs (loop4): check_backpointers_to_extents... done [ 127.668311][ T6395] bcachefs (loop4): check_extents_to_backpointers... [ 127.670449][ T6395] bcachefs (loop4): scanning for missing backpointers in 6/128 buckets [ 127.678451][ T6395] done [ 127.679027][ T6395] bcachefs (loop4): check_alloc_to_lru_refs... [ 127.681045][ T6395] bcachefs (loop4): missing fragmentation lru entry [ 127.681063][ T6395] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 127.681075][ T6395] gen 0 oldest_gen 0 data_type user [ 127.681086][ T6395] journal_seq_nonempty 5 [ 127.681097][ T6395] journal_seq_empty 134217728 [ 127.681108][ T6395] need_discard 1 [ 127.681118][ T6395] need_inc_gen 1 [ 127.681127][ T6395] dirty_sectors 16 [ 127.681137][ T6395] stripe_sectors 1802251 [ 127.681148][ T6395] cached_sectors 0 [ 127.681157][ T6395] stripe 0 [ 127.681167][ T6395] stripe_redundancy 0 [ 127.681177][ T6395] io_time[READ] 1 [ 127.681187][ T6395] io_time[WRITE] 512 [ 127.681196][ T6395] fragmentation 0 [ 127.681206][ T6395] bp_start 7 [ 127.681215][ T6395] , fixing [ 127.685737][ T6395] done [ 127.687137][ T6395] bcachefs (loop4): bucket_gens_init... done [ 127.692803][ T6395] bcachefs (loop4): check_snapshot_trees... done [ 127.693678][ T6395] bcachefs (loop4): check_snapshots... [ 127.694295][ T6395] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 127.694313][ T6395] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 127.714832][ T6395] done [pid 5839] umount2("./27/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./27/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 127.715830][ T6395] bcachefs (loop4): check_subvols... done [ 127.718604][ T6395] bcachefs (loop4): check_subvol_children... done [ 127.720095][ T6395] bcachefs (loop4): delete_dead_snapshots... done [ 127.721551][ T6395] bcachefs (loop4): check_inodes... [ 127.722616][ T6395] bcachefs (loop4): inode points to missing dirent [ 127.722635][ T6395] inum: 4098:4294967295 [ 127.722645][ T6395] mode=40755 [ 127.722654][ T6395] flags=(15300000) [ 127.722664][ T6395] journal_seq=4 [ 127.722673][ T6395] hash_seed=ece93825deac2443 [pid 5839] newfstatat(AT_FDCWD, "./27/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./27/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./27/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./27/file1") = 0 [pid 5839] umount2("./27/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./27/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./27/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./27") = 0 [pid 5839] mkdir("./28", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6571 ./strace-static-x86_64: Process 6571 attached [ 127.722683][ T6395] hash_type=siphash [ 127.722693][ T6395] bi_size=0 [ 127.722701][ T6395] bi_sectors=0 [ 127.722712][ T6395] bi_version=0 [ 127.722721][ T6395] bi_atime=2770562249 [ 127.722730][ T6395] bi_ctime=2780562352 [ 127.722740][ T6395] bi_mtime=2780562352 [ 127.722749][ T6395] bi_otime=2770562249 [ 127.722759][ T6395] bi_uid=0 [ 127.722767][ T6395] bi_gid=0 [ 127.722776][ T6395] bi_nlink=0 [ 127.722785][ T6395] bi_generation=0 [ 127.722794][ T6395] bi_dev=0 [pid 6571] set_robust_list(0x5555901c6760, 24) = 0 [pid 6571] chdir("./28") = 0 [pid 6571] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6571] setpgid(0, 0) = 0 [pid 6571] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6571] write(3, "1000", 4) = 4 [pid 6571] close(3) = 0 [ 127.722803][ T6395] bi_data_checksum=0 [ 127.722812][ T6395] bi_compression=0 [ 127.722821][ T6395] bi_project=0 [ 127.722830][ T6395] bi_background_compression=0 [ 127.722840][ T6395] bi_data_replicas=0 [ 127.722849][ T6395] bi_promote_target=0 [ 127.722860][ T6395] bi_foreground_target=64 [ 127.722871][ T6395] bi_background_target=1 [ 127.722880][ T6395] bi_erasure_code=0 [ 127.722889][ T6395] bi_fields_set=0 [ 127.722898][ T6395] bi_dir=0 [ 127.722908][ T6395] bi_dir_offset=32 [pid 6571] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6571] write(1, "executing program\n", 18executing program ) = 18 [pid 6571] memfd_create("syzkaller", 0) = 3 [pid 6571] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 127.722917][ T6395] bi_subvol=0 [ 127.722926][ T6395] bi_parent_subvol=0 [ 127.722935][ T6395] bi_nocow=0 [ 127.722944][ T6395] bi_depth=0 [ 127.722953][ T6395] bi_inodes_32bit=0 [ 127.722962][ T6395] bi_casefold=0, fixing [ 127.732537][ T6395] done [ 127.733262][ T6395] bcachefs (loop4): check_extents... done [ 127.736206][ T6395] bcachefs (loop4): check_indirect_extents... done [ 127.736964][ T6395] bcachefs (loop4): check_dirents... [ 127.738695][ T6395] bcachefs (loop4): directory with missing backpointer [ 127.738711][ T6395] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 127.738728][ T6395] inum: 4098:4294967295 [ 127.738737][ T6395] mode=40755 [ 127.738747][ T6395] flags=(11300000) [ 127.738756][ T6395] journal_seq=25 [ 127.738766][ T6395] hash_seed=ece93825deac2443 [ 127.738777][ T6395] hash_type=siphash [ 127.738788][ T6395] bi_size=0 [ 127.738797][ T6395] bi_sectors=0 [ 127.738807][ T6395] bi_version=0 [ 127.738816][ T6395] bi_atime=2770562249 [ 127.738826][ T6395] bi_ctime=2780562352 [ 127.738836][ T6395] bi_mtime=2780562352 [ 127.738846][ T6395] bi_otime=2770562249 [ 127.738856][ T6395] bi_uid=0 [ 127.738865][ T6395] bi_gid=0 [ 127.738874][ T6395] bi_nlink=0 [ 127.738883][ T6395] bi_generation=0 [ 127.738893][ T6395] bi_dev=0 [ 127.738902][ T6395] bi_data_checksum=0 [ 127.738912][ T6395] bi_compression=0 [ 127.738921][ T6395] bi_project=0 [ 127.738931][ T6395] bi_background_compression=0 [ 127.738941][ T6395] bi_data_replicas=0 [ 127.738951][ T6395] bi_promote_target=0 [ 127.738962][ T6395] bi_foreground_target=64 [ 127.738972][ T6395] bi_background_target=1 [ 127.738983][ T6395] bi_erasure_code=0 [ 127.738992][ T6395] bi_fields_set=0 [ 127.739002][ T6395] bi_dir=0 [ 127.739011][ T6395] bi_dir_offset=0 [ 127.739021][ T6395] bi_subvol=0 [ 127.739030][ T6395] bi_parent_subvol=0 [ 127.739040][ T6395] bi_nocow=0 [ 127.739049][ T6395] bi_depth=0 [ 127.739059][ T6395] bi_inodes_32bit=0 [ 127.739069][ T6395] bi_casefold=0, fixing [ 127.751536][ T6395] done [ 127.752212][ T6395] bcachefs (loop4): check_xattrs... done [ 127.754193][ T6395] bcachefs (loop4): check_root... done [ 127.755281][ T6395] bcachefs (loop4): check_unreachable_inodes... done [ 127.756313][ T6395] bcachefs (loop4): check_subvolume_structure... done [ 127.756987][ T6395] bcachefs (loop4): check_directory_structure... done [ 127.757772][ T6395] bcachefs (loop4): check_nlinks... [ 127.758489][ T6395] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 127.764850][ T6395] done [ 127.765535][ T6395] bcachefs (loop4): check_rebalance_work... done [ 127.766700][ T6395] bcachefs (loop4): resume_logged_ops... done [ 127.767380][ T6395] bcachefs (loop4): delete_dead_inodes... done [ 127.814295][ T6395] bcachefs (loop4): set_fs_needs_rebalance... done [ 127.833243][ T6405] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 6571] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6571] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6571] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6571] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6571] close(3) = 0 [pid 6571] close(4) = 0 [ 127.833264][ T6405] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 127.839941][ T6395] bcachefs (loop4): check_extents_to_backpointers... [ 127.840984][ T6395] bcachefs (loop4): scanning for missing backpointers in 2/128 buckets [ 127.844383][ T6395] done [ 127.851461][ T6395] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 127.851486][ T6395] bcachefs (loop4): check_alloc_info... done [ 127.861532][ T6395] bcachefs (loop4): check_lrus... done [ 127.862673][ T6395] bcachefs (loop4): check_btree_backpointers... done [pid 6571] mkdir("./file1", 0777) = 0 [ 127.863921][ T6395] bcachefs (loop4): check_backpointers_to_extents... done [ 127.870370][ T6395] bcachefs (loop4): check_extents_to_backpointers... done [ 127.871906][ T6395] bcachefs (loop4): check_alloc_to_lru_refs... done [ 127.877446][ T6395] bcachefs (loop4): bucket_gens_init... done [ 127.880161][ T6395] bcachefs (loop4): check_snapshot_trees... done [ 127.886223][ T6395] bcachefs (loop4): check_snapshots... done [ 127.887804][ T6395] bcachefs (loop4): check_subvols... done [ 127.888611][ T6395] bcachefs (loop4): check_subvol_children... done [ 127.890450][ T6395] bcachefs (loop4): delete_dead_snapshots... done [ 127.897864][ T6395] bcachefs (loop4): check_inodes... done [ 127.898991][ T6395] bcachefs (loop4): check_extents... done [ 127.901030][ T6395] bcachefs (loop4): check_indirect_extents... done [ 127.902434][ T6395] bcachefs (loop4): check_dirents... done [ 127.903920][ T6395] bcachefs (loop4): check_xattrs... done [ 127.904719][ T6395] bcachefs (loop4): check_root... done [ 127.905467][ T6395] bcachefs (loop4): check_unreachable_inodes... done [ 127.906282][ T6395] bcachefs (loop4): check_subvolume_structure... done [ 127.907020][ T6395] bcachefs (loop4): check_directory_structure... done [ 127.910529][ T6395] bcachefs (loop4): check_nlinks... done [ 127.912481][ T6395] bcachefs (loop4): check_rebalance_work... done [ 127.916716][ T6395] bcachefs (loop4): resume_logged_ops... done [ 127.917485][ T6395] bcachefs (loop4): delete_dead_inodes... done [ 127.918165][ T6395] bcachefs (loop4): set_fs_needs_rebalance... done [ 127.922803][ T6395] bcachefs (loop4): done starting filesystem [ 127.957141][ T6396] loop2: detected capacity change from 0 to 32768 [ 127.990558][ T5841] bcachefs (loop4): shutting down [ 127.990578][ T5841] bcachefs (loop4): going read-only [ 127.990607][ T5841] bcachefs (loop4): finished waiting for writes to stop [ 128.058441][ T5841] bcachefs (loop4): flushing journal and stopping allocators, journal seq 36 [ 128.089414][ T5841] bcachefs (loop4): flushing journal and stopping allocators complete, journal seq 36 [ 128.111490][ T5841] bcachefs (loop4): clean shutdown complete, journal seq 37 [ 128.113349][ T5841] bcachefs (loop4): marking filesystem clean [ 128.144173][ T6396] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 128.144250][ T6396] allowing incompatible features above 0.0: (unknown version) [ 128.144264][ T6396] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 128.144292][ T6396] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 128.144420][ T6396] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 128.144660][ T6396] bcachefs (loop2): Version upgrade required: [ 128.144660][ T6396] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 128.144660][ T6396] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 128.144660][ T6396] 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,check_rebalance_work,set_fs_needs_rebalance [ 128.187896][ T6396] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 128.187921][ T6396] size != 0, deleting [ 128.188761][ T6396] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 128.193029][ T6396] bcachefs (loop2): check_topology... done [ 128.194497][ T6396] bcachefs (loop2): accounting_read... [ 128.222320][ T5841] bcachefs (loop4): shutdown complete [ 128.225714][ T6396] done [ 128.225731][ T6396] bcachefs (loop2): alloc_read... done [ 128.230108][ T6396] bcachefs (loop2): snapshots_read... done [ 128.241721][ T6396] bcachefs (loop2): check_allocations... [ 128.244167][ T6396] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 128.244187][ T6396] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 128.248171][ T6396] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 128.248191][ T6396] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 128.251375][ T6396] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 6571] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6571] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6571] chdir("./file1") = 0 [pid 6571] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6571] ioctl(4, LOOP_CLR_FD) = 0 [pid 6571] close(4) = 0 [pid 6571] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6571] exit_group(0) = ? [pid 6571] +++ exited with 0 +++ [ 128.251397][ T6396] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 128.261010][ T6396] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 128.261033][ T6396] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 128.263504][ T6396] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6571, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./28", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./28", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 128.263523][ T6396] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 128.264499][ T6396] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.264627][ T6396] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.265178][ T6396] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.265289][ T6396] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.265718][ T6396] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.265826][ T6396] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.266029][ T6396] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.266134][ T6396] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.266336][ T6396] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.266571][ T6396] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.266830][ T6396] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.266942][ T6396] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.267149][ T6396] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.267252][ T6396] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 128.267481][ T6396] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 128.267586][ T6396] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 128.267804][ T6396] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 128.267911][ T6396] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 128.268121][ T6396] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 128.268225][ T6396] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 128.268477][ T6396] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 128.268494][ T6396] Ratelimiting new instances of previous error [ 128.268626][ T6396] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 128.268643][ T6396] Ratelimiting new instances of previous error [ 128.300862][ T6396] done [ 128.302866][ T6396] bcachefs (loop2): going read-write [ 128.320468][ T6396] bcachefs (loop2): journal_replay... done [ 128.358147][ T6396] bcachefs (loop2): check_alloc_info... [ 128.364684][ T6396] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 128.364705][ T6396] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 128.364716][ T6396] gen 0 oldest_gen 0 data_type need_discard [ 128.364730][ T6396] journal_seq_nonempty 6 [ 128.364740][ T6396] journal_seq_empty 0 [ 128.364750][ T6396] need_discard 1 [ 128.364760][ T6396] need_inc_gen 1 [ 128.364770][ T6396] dirty_sectors 0 [ 128.364780][ T6396] stripe_sectors 0 [ 128.364791][ T6396] cached_sectors 0 [ 128.364801][ T6396] stripe 0 [ 128.364811][ T6396] stripe_redundancy 0 [ 128.364821][ T6396] io_time[READ] 1 [ 128.364831][ T6396] io_time[WRITE] 768 [ 128.364841][ T6396] fragmentation 0 [ 128.364851][ T6396] bp_start 8 [ 128.364861][ T6396] , fixing [ 128.392453][ T6396] done [ 128.399017][ T6396] bcachefs (loop2): check_lrus... done [ 128.401408][ T6396] bcachefs (loop2): check_btree_backpointers... done [ 128.405162][ T6396] bcachefs (loop2): check_backpointers_to_extents... done [ 128.411314][ T6396] bcachefs (loop2): check_extents_to_backpointers... [ 128.412751][ T6396] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 128.414687][ T6396] done [pid 5839] umount2("./28/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./28/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./28/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./28/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./28/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./28/file1") = 0 [pid 5839] umount2("./28/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./28/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 128.415244][ T6396] bcachefs (loop2): check_alloc_to_lru_refs... [ 128.417206][ T6396] bcachefs (loop2): missing fragmentation lru entry [ 128.417223][ T6396] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 128.417235][ T6396] gen 0 oldest_gen 0 data_type user [ 128.417246][ T6396] journal_seq_nonempty 5 [ 128.417255][ T6396] journal_seq_empty 134217728 [ 128.417265][ T6396] need_discard 1 [ 128.417275][ T6396] need_inc_gen 1 [ 128.417285][ T6396] dirty_sectors 16 [pid 5839] unlink("./28/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./28") = 0 [pid 5839] mkdir("./29", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 128.417294][ T6396] stripe_sectors 1802251 [ 128.417306][ T6396] cached_sectors 0 [ 128.417315][ T6396] stripe 0 [ 128.417325][ T6396] stripe_redundancy 0 [ 128.417335][ T6396] io_time[READ] 1 [ 128.417345][ T6396] io_time[WRITE] 512 [ 128.417355][ T6396] fragmentation 0 [ 128.417364][ T6396] bp_start 7 [ 128.417373][ T6396] , fixing [ 128.418972][ T6396] done [ 128.423327][ T6396] bcachefs (loop2): bucket_gens_init... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6582 ./strace-static-x86_64: Process 6582 attached [pid 6582] set_robust_list(0x5555901c6760, 24) = 0 [pid 6582] chdir("./29") = 0 [ 128.426174][ T6396] bcachefs (loop2): check_snapshot_trees... done [ 128.427038][ T6396] bcachefs (loop2): check_snapshots... [ 128.427632][ T6396] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 128.427649][ T6396] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 128.438688][ T6396] done [ 128.442297][ T6396] bcachefs (loop2): check_subvols... done [ 128.444989][ T6396] bcachefs (loop2): check_subvol_children... done [ 128.445862][ T6396] bcachefs (loop2): delete_dead_snapshots... done [pid 6582] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6582] setpgid(0, 0) = 0 [pid 6582] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6582] write(3, "1000", 4) = 4 [pid 6582] close(3) = 0 [pid 6582] symlink("/dev/binderfs", "./binderfs") = 0 [ 128.446573][ T6396] bcachefs (loop2): check_inodes... [ 128.447634][ T6396] bcachefs (loop2): inode points to missing dirent [ 128.447651][ T6396] inum: 4098:4294967295 [ 128.447660][ T6396] mode=40755 [ 128.447670][ T6396] flags=(15300000) [ 128.447679][ T6396] journal_seq=4 [ 128.447688][ T6396] hash_seed=ece93825deac2443 [ 128.447698][ T6396] hash_type=siphash [ 128.447708][ T6396] bi_size=0 [ 128.447717][ T6396] bi_sectors=0 [ 128.447726][ T6396] bi_version=0 [pid 6582] write(1, "executing program\n", 18executing program ) = 18 [pid 6582] memfd_create("syzkaller", 0) = 3 [pid 6582] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 128.447753][ T6396] bi_atime=2770562249 [ 128.447763][ T6396] bi_ctime=2780562352 [ 128.447772][ T6396] bi_mtime=2780562352 [ 128.447782][ T6396] bi_otime=2770562249 [ 128.447794][ T6396] bi_uid=0 [ 128.447803][ T6396] bi_gid=0 [ 128.447812][ T6396] bi_nlink=0 [ 128.447821][ T6396] bi_generation=0 [ 128.447831][ T6396] bi_dev=0 [ 128.447840][ T6396] bi_data_checksum=0 [ 128.447849][ T6396] bi_compression=0 [ 128.447858][ T6396] bi_project=0 [ 128.447868][ T6396] bi_background_compression=0 [ 128.447879][ T6396] bi_data_replicas=0 [ 128.447889][ T6396] bi_promote_target=0 [ 128.447899][ T6396] bi_foreground_target=64 [ 128.447909][ T6396] bi_background_target=1 [ 128.447917][ T6396] bi_erasure_code=0 [ 128.447926][ T6396] bi_fields_set=0 [ 128.447936][ T6396] bi_dir=0 [ 128.447945][ T6396] bi_dir_offset=32 [ 128.447955][ T6396] bi_subvol=0 [ 128.447964][ T6396] bi_parent_subvol=0 [ 128.447974][ T6396] bi_nocow=0 [ 128.447983][ T6396] bi_depth=0 [ 128.447992][ T6396] bi_inodes_32bit=0 [ 128.448001][ T6396] bi_casefold=0, fixing [ 128.465953][ T6396] done [ 128.466691][ T6396] bcachefs (loop2): check_extents... done [ 128.468127][ T6396] bcachefs (loop2): check_indirect_extents... done [ 128.468863][ T6396] bcachefs (loop2): check_dirents... [ 128.470714][ T6396] bcachefs (loop2): directory with missing backpointer [ 128.470733][ T6396] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 128.470749][ T6396] inum: 4098:4294967295 [ 128.470759][ T6396] mode=40755 [ 128.470768][ T6396] flags=(11300000) [ 128.470778][ T6396] journal_seq=23 [ 128.470787][ T6396] hash_seed=ece93825deac2443 [ 128.470797][ T6396] hash_type=siphash [ 128.470807][ T6396] bi_size=0 [ 128.470816][ T6396] bi_sectors=0 [ 128.470826][ T6396] bi_version=0 [ 128.470835][ T6396] bi_atime=2770562249 [ 128.470845][ T6396] bi_ctime=2780562352 [ 128.470854][ T6396] bi_mtime=2780562352 [ 128.470866][ T6396] bi_otime=2770562249 [ 128.470876][ T6396] bi_uid=0 [ 128.470883][ T6396] bi_gid=0 [ 128.470892][ T6396] bi_nlink=0 [ 128.470903][ T6396] bi_generation=0 [ 128.470912][ T6396] bi_dev=0 [ 128.470921][ T6396] bi_data_checksum=0 [ 128.470931][ T6396] bi_compression=0 [ 128.470941][ T6396] bi_project=0 [ 128.470950][ T6396] bi_background_compression=0 [ 128.470960][ T6396] bi_data_replicas=0 [ 128.470970][ T6396] bi_promote_target=0 [ 128.470979][ T6396] bi_foreground_target=64 [ 128.470989][ T6396] bi_background_target=1 [ 128.470999][ T6396] bi_erasure_code=0 [ 128.471008][ T6396] bi_fields_set=0 [ 128.471018][ T6396] bi_dir=0 [ 128.471027][ T6396] bi_dir_offset=0 [ 128.471036][ T6396] bi_subvol=0 [ 128.471046][ T6396] bi_parent_subvol=0 [ 128.471055][ T6396] bi_nocow=0 [ 128.471065][ T6396] bi_depth=0 [ 128.471074][ T6396] bi_inodes_32bit=0 [ 128.471083][ T6396] bi_casefold=0, fixing [ 128.487498][ T6396] done [ 128.488198][ T6396] bcachefs (loop2): check_xattrs... done [pid 6582] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6582] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6582] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6582] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6582] close(3) = 0 [pid 6582] close(4) = 0 [pid 6582] mkdir("./file1", 0777) = 0 [ 128.499711][ T6396] bcachefs (loop2): check_root... done [ 128.500880][ T6396] bcachefs (loop2): check_unreachable_inodes... done [ 128.501909][ T6396] bcachefs (loop2): check_subvolume_structure... done [ 128.507656][ T6396] bcachefs (loop2): check_directory_structure... done [ 128.508384][ T6396] bcachefs (loop2): check_nlinks... [ 128.509131][ T6396] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 128.512965][ T6396] done [ 128.513669][ T6396] bcachefs (loop2): check_rebalance_work... done [ 128.514890][ T6396] bcachefs (loop2): resume_logged_ops... done [ 128.515641][ T6396] bcachefs (loop2): delete_dead_inodes... done [ 128.539763][ T6396] bcachefs (loop2): set_fs_needs_rebalance... done [ 128.587067][ T6396] bcachefs (loop2): check_extents_to_backpointers... [ 128.588083][ T6396] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 128.588444][ T6415] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 128.588462][ T6415] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 128.595596][ T6415] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 128.598775][ T6396] done [ 128.620420][ T6396] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 128.620447][ T6396] bcachefs (loop2): check_alloc_info... done [ 128.625301][ T6396] bcachefs (loop2): check_lrus... done [ 128.626366][ T6396] bcachefs (loop2): check_btree_backpointers... done [ 128.627736][ T6396] bcachefs (loop2): check_backpointers_to_extents... done [ 128.639483][ T6396] bcachefs (loop2): check_extents_to_backpointers... [ 128.640543][ T6396] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 128.642284][ T6396] done [ 128.642298][ T6396] bcachefs (loop2): check_alloc_to_lru_refs... done [ 128.644454][ T6396] bcachefs (loop2): bucket_gens_init... done [ 128.646436][ T6396] bcachefs (loop2): check_snapshot_trees... done [ 128.647487][ T6396] bcachefs (loop2): check_snapshots... done [ 128.648309][ T6396] bcachefs (loop2): check_subvols... done [ 128.649046][ T6396] bcachefs (loop2): check_subvol_children... done [ 128.651489][ T6396] bcachefs (loop2): delete_dead_snapshots... done [ 128.664316][ T6396] bcachefs (loop2): check_inodes... done [ 128.665447][ T6396] bcachefs (loop2): check_extents... done [ 128.666940][ T6396] bcachefs (loop2): check_indirect_extents... done [ 128.667775][ T6396] bcachefs (loop2): check_dirents... done [ 128.673893][ T6396] bcachefs (loop2): check_xattrs... done [ 128.674719][ T6396] bcachefs (loop2): check_root... done [ 128.675466][ T6396] bcachefs (loop2): check_unreachable_inodes... done [ 128.676334][ T6396] bcachefs (loop2): check_subvolume_structure... done [ 128.677077][ T6396] bcachefs (loop2): check_directory_structure... done [ 128.677746][ T6396] bcachefs (loop2): check_nlinks... done [ 128.679645][ T6396] bcachefs (loop2): check_rebalance_work... done [ 128.682402][ T6396] bcachefs (loop2): resume_logged_ops... done [ 128.683338][ T6396] bcachefs (loop2): delete_dead_inodes... done [ 128.684236][ T6396] bcachefs (loop2): set_fs_needs_rebalance... done [ 128.687843][ T6396] bcachefs (loop2): done starting filesystem [ 128.772232][ T5839] bcachefs (loop2): shutting down [ 128.772252][ T5839] bcachefs (loop2): going read-only [ 128.772283][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 128.811513][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 128.811863][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 128.820807][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 128.822596][ T5839] bcachefs (loop2): marking filesystem clean [ 128.883768][ T5839] bcachefs (loop2): shutdown complete [ 129.524008][ T6417] loop4: detected capacity change from 0 to 32768 [ 129.696768][ T6417] bcachefs (loop4): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 129.696797][ T6417] allowing incompatible features above 0.0: (unknown version) [ 129.696813][ T6417] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 129.696847][ T6417] bcachefs (loop4): Using encoding defined by superblock: utf8-12.1.0 [ 129.696979][ T6417] bcachefs (loop4): recovering from clean shutdown, journal seq 10 [ 129.697209][ T6417] bcachefs (loop4): Version upgrade required: [ 129.697209][ T6417] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 129.697209][ T6417] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 129.697209][ T6417] 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,check_rebalance_work,set_fs_needs_rebalance [ 129.744834][ T6417] bcachefs (loop4): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [pid 6582] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6582] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6582] chdir("./file1") = 0 [pid 6582] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6582] ioctl(4, LOOP_CLR_FD) = 0 [pid 6582] close(4) = 0 [pid 6582] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6582] exit_group(0) = ? [pid 6582] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6582, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./29", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./29", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 129.744860][ T6417] size != 0, deleting [ 129.745872][ T6417] bcachefs (loop4): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 129.749110][ T6417] bcachefs (loop4): check_topology... done [ 129.755430][ T6417] bcachefs (loop4): accounting_read... done [ 129.787506][ T6417] bcachefs (loop4): alloc_read... done [ 129.788360][ T6417] bcachefs (loop4): snapshots_read... done [ 129.789146][ T6417] bcachefs (loop4): check_allocations... [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 129.792300][ T6417] bcachefs (loop4): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 129.792321][ T6417] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 129.798519][ T6417] bcachefs (loop4): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 129.798538][ T6417] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 129.800773][ T6417] bcachefs (loop4): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 129.800792][ T6417] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 129.802256][ T6417] bcachefs (loop4): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 129.802274][ T6417] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 129.807521][ T6417] bcachefs (loop4): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 129.807540][ T6417] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 129.808626][ T6417] bcachefs (loop4): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.808752][ T6417] bcachefs (loop4): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.810859][ T6417] bcachefs (loop4): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.810968][ T6417] bcachefs (loop4): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.811405][ T6417] bcachefs (loop4): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.811512][ T6417] bcachefs (loop4): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.811712][ T6417] bcachefs (loop4): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.811805][ T6417] bcachefs (loop4): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.812011][ T6417] bcachefs (loop4): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.812116][ T6417] bcachefs (loop4): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.812320][ T6417] bcachefs (loop4): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.812432][ T6417] bcachefs (loop4): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.812629][ T6417] bcachefs (loop4): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.812733][ T6417] bcachefs (loop4): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 129.812956][ T6417] bcachefs (loop4): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 129.813059][ T6417] bcachefs (loop4): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 129.813257][ T6417] bcachefs (loop4): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 129.813369][ T6417] bcachefs (loop4): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 129.813583][ T6417] bcachefs (loop4): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 129.813689][ T6417] bcachefs (loop4): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 129.813931][ T6417] bcachefs (loop4): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 129.813948][ T6417] Ratelimiting new instances of previous error [ 129.814075][ T6417] bcachefs (loop4): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 129.814090][ T6417] Ratelimiting new instances of previous error [ 129.836681][ T6417] done [ 129.838635][ T6417] bcachefs (loop4): going read-write [ 129.855435][ T6417] bcachefs (loop4): journal_replay... done [ 129.901270][ T6417] bcachefs (loop4): check_alloc_info... [ 129.903126][ T6417] bcachefs (loop4): bucket incorrectly unset in need_discard btree [ 129.903145][ T6417] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [pid 5839] umount2("./29/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./29/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./29/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./29/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./29/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 129.903156][ T6417] gen 0 oldest_gen 0 data_type need_discard [ 129.903167][ T6417] journal_seq_nonempty 6 [ 129.903178][ T6417] journal_seq_empty 0 [ 129.903189][ T6417] need_discard 1 [ 129.903199][ T6417] need_inc_gen 1 [ 129.903209][ T6417] dirty_sectors 0 [ 129.903219][ T6417] stripe_sectors 0 [ 129.903228][ T6417] cached_sectors 0 [ 129.903239][ T6417] stripe 0 [ 129.903248][ T6417] stripe_redundancy 0 [ 129.903258][ T6417] io_time[READ] 1 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./29/file1") = 0 [pid 5839] umount2("./29/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./29/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./29/binderfs") = 0 [ 129.903268][ T6417] io_time[WRITE] 768 [ 129.903280][ T6417] fragmentation 0 [ 129.903289][ T6417] bp_start 8 [ 129.903299][ T6417] , fixing [ 129.933284][ T6417] done [ 129.939692][ T6417] bcachefs (loop4): check_lrus... done [ 129.940528][ T6417] bcachefs (loop4): check_btree_backpointers... done [ 129.941812][ T6417] bcachefs (loop4): check_backpointers_to_extents... done [ 129.945306][ T6417] bcachefs (loop4): check_extents_to_backpointers... [ 129.946568][ T6417] bcachefs (loop4): scanning for missing backpointers in 5/128 buckets [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./29") = 0 [pid 5839] mkdir("./30", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 129.954343][ T6417] done [ 129.981451][ T6417] bcachefs (loop4): check_alloc_to_lru_refs... [ 129.983378][ T6417] bcachefs (loop4): missing fragmentation lru entry [ 129.983396][ T6417] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 129.983407][ T6417] gen 0 oldest_gen 0 data_type user [ 129.983418][ T6417] journal_seq_nonempty 5 [ 129.983428][ T6417] journal_seq_empty 134217728 [ 129.983440][ T6417] need_discard 1 [ 129.983450][ T6417] need_inc_gen 1 [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6593 ./strace-static-x86_64: Process 6593 attached [pid 6593] set_robust_list(0x5555901c6760, 24) = 0 [pid 6593] chdir("./30") = 0 [ 129.983460][ T6417] dirty_sectors 16 [ 129.983470][ T6417] stripe_sectors 1802251 [ 129.983480][ T6417] cached_sectors 0 [ 129.983490][ T6417] stripe 0 [ 129.983500][ T6417] stripe_redundancy 0 [ 129.983510][ T6417] io_time[READ] 1 [ 129.983519][ T6417] io_time[WRITE] 512 [ 129.983529][ T6417] fragmentation 0 [ 129.983539][ T6417] bp_start 7 [ 129.983548][ T6417] , fixing [ 129.986460][ T6417] done [ 129.987944][ T6417] bcachefs (loop4): bucket_gens_init... done [pid 6593] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6593] setpgid(0, 0) = 0 [pid 6593] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6593] write(3, "1000", 4) = 4 [pid 6593] close(3) = 0 [ 129.991765][ T6417] bcachefs (loop4): check_snapshot_trees... done [ 129.992455][ T6417] bcachefs (loop4): check_snapshots... [ 129.993074][ T6417] bcachefs (loop4): snapshot points to missing/incorrect tree: [ 129.993092][ T6417] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 130.015605][ T6417] done [ 130.016661][ T6417] bcachefs (loop4): check_subvols... done [ 130.019446][ T6417] bcachefs (loop4): check_subvol_children... done [pid 6593] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6593] write(1, "executing program\n", 18executing program ) = 18 [pid 6593] memfd_create("syzkaller", 0) = 3 [pid 6593] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 130.020752][ T6417] bcachefs (loop4): delete_dead_snapshots... done [ 130.021446][ T6417] bcachefs (loop4): check_inodes... [ 130.022550][ T6417] bcachefs (loop4): inode points to missing dirent [ 130.022567][ T6417] inum: 4098:4294967295 [ 130.022577][ T6417] mode=40755 [ 130.022587][ T6417] flags=(15300000) [ 130.022596][ T6417] journal_seq=4 [ 130.022605][ T6417] hash_seed=ece93825deac2443 [ 130.022617][ T6417] hash_type=siphash [ 130.022627][ T6417] bi_size=0 [ 130.022634][ T6417] bi_sectors=0 [ 130.022646][ T6417] bi_version=0 [ 130.022655][ T6417] bi_atime=2770562249 [ 130.022664][ T6417] bi_ctime=2780562352 [ 130.022674][ T6417] bi_mtime=2780562352 [ 130.022684][ T6417] bi_otime=2770562249 [ 130.022693][ T6417] bi_uid=0 [ 130.022702][ T6417] bi_gid=0 [ 130.022711][ T6417] bi_nlink=0 [ 130.022721][ T6417] bi_generation=0 [ 130.022730][ T6417] bi_dev=0 [ 130.022739][ T6417] bi_data_checksum=0 [ 130.022749][ T6417] bi_compression=0 [ 130.022758][ T6417] bi_project=0 [ 130.022767][ T6417] bi_background_compression=0 [ 130.022777][ T6417] bi_data_replicas=0 [ 130.022787][ T6417] bi_promote_target=0 [ 130.022797][ T6417] bi_foreground_target=64 [ 130.022806][ T6417] bi_background_target=1 [ 130.022816][ T6417] bi_erasure_code=0 [ 130.022826][ T6417] bi_fields_set=0 [ 130.022836][ T6417] bi_dir=0 [ 130.022845][ T6417] bi_dir_offset=32 [ 130.022855][ T6417] bi_subvol=0 [ 130.022864][ T6417] bi_parent_subvol=0 [ 130.022874][ T6417] bi_nocow=0 [ 130.022883][ T6417] bi_depth=0 [ 130.022892][ T6417] bi_inodes_32bit=0 [ 130.022901][ T6417] bi_casefold=0, fixing [ 130.032947][ T6417] done [ 130.036102][ T6417] bcachefs (loop4): check_extents... done [ 130.037588][ T6417] bcachefs (loop4): check_indirect_extents... done [ 130.038279][ T6417] bcachefs (loop4): check_dirents... [ 130.040116][ T6417] bcachefs (loop4): directory with missing backpointer [ 130.040135][ T6417] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 130.040150][ T6417] inum: 4098:4294967295 [ 130.040160][ T6417] mode=40755 [ 130.040169][ T6417] flags=(11300000) [ 130.040179][ T6417] journal_seq=23 [ 130.040189][ T6417] hash_seed=ece93825deac2443 [ 130.040200][ T6417] hash_type=siphash [ 130.040209][ T6417] bi_size=0 [ 130.040218][ T6417] bi_sectors=0 [ 130.040228][ T6417] bi_version=0 [ 130.040237][ T6417] bi_atime=2770562249 [ 130.040247][ T6417] bi_ctime=2780562352 [ 130.040257][ T6417] bi_mtime=2780562352 [ 130.040266][ T6417] bi_otime=2770562249 [ 130.040277][ T6417] bi_uid=0 [ 130.040286][ T6417] bi_gid=0 [ 130.040294][ T6417] bi_nlink=0 [ 130.040304][ T6417] bi_generation=0 [ 130.040313][ T6417] bi_dev=0 [ 130.040332][ T6417] bi_data_checksum=0 [ 130.040343][ T6417] bi_compression=0 [ 130.040352][ T6417] bi_project=0 [ 130.040362][ T6417] bi_background_compression=0 [ 130.040372][ T6417] bi_data_replicas=0 [ 130.040382][ T6417] bi_promote_target=0 [ 130.040392][ T6417] bi_foreground_target=64 [pid 6593] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6593] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6593] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 130.040402][ T6417] bi_background_target=1 [ 130.040412][ T6417] bi_erasure_code=0 [ 130.040422][ T6417] bi_fields_set=0 [ 130.040431][ T6417] bi_dir=0 [ 130.040440][ T6417] bi_dir_offset=0 [ 130.040450][ T6417] bi_subvol=0 [ 130.040459][ T6417] bi_parent_subvol=0 [ 130.040469][ T6417] bi_nocow=0 [ 130.040478][ T6417] bi_depth=0 [ 130.040488][ T6417] bi_inodes_32bit=0 [ 130.040499][ T6417] bi_casefold=0, fixing [ 130.049204][ T6417] done [pid 6593] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6593] close(3) = 0 [pid 6593] close(4) = 0 [pid 6593] mkdir("./file1", 0777) = 0 [ 130.050239][ T6417] bcachefs (loop4): check_xattrs... done [ 130.051530][ T6417] bcachefs (loop4): check_root... done [ 130.057397][ T6417] bcachefs (loop4): check_unreachable_inodes... done [ 130.058462][ T6417] bcachefs (loop4): check_subvolume_structure... done [ 130.059358][ T6417] bcachefs (loop4): check_directory_structure... done [ 130.060783][ T6417] bcachefs (loop4): check_nlinks... [ 130.061517][ T6417] bcachefs (loop4): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 130.062570][ T6417] done [ 130.067465][ T6417] bcachefs (loop4): check_rebalance_work... done [ 130.068903][ T6417] bcachefs (loop4): resume_logged_ops... done [ 130.070309][ T6417] bcachefs (loop4): delete_dead_inodes... done [ 130.082659][ T6417] bcachefs (loop4): set_fs_needs_rebalance... done [ 130.139858][ T6427] bcachefs (loop4): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 130.139882][ T6427] scheduling recovery pass check_extents_to_backpointers (17) [ 130.145158][ T6417] bcachefs (loop4): Fixed errors, running fsck a second time to verify fs is clean [ 130.170884][ T6418] loop2: detected capacity change from 0 to 32768 [ 130.303236][ T6418] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 130.303264][ T6418] allowing incompatible features above 0.0: (unknown version) [ 130.303278][ T6418] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 130.303307][ T6418] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 130.303434][ T6418] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 130.303674][ T6418] bcachefs (loop2): Version upgrade required: [ 130.303674][ T6418] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 130.303674][ T6418] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 130.303674][ T6418] 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,check_rebalance_work,set_fs_needs_rebalance [ 130.324167][ T6418] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 130.324192][ T6418] size != 0, deleting [ 130.325822][ T6418] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 130.329132][ T6418] bcachefs (loop2): check_topology... done [ 130.331298][ T6418] bcachefs (loop2): accounting_read... done [ 130.425007][ T6418] bcachefs (loop2): alloc_read... done [ 130.425958][ T6418] bcachefs (loop2): snapshots_read... done [ 130.426804][ T6418] bcachefs (loop2): check_allocations... [ 130.430216][ T6418] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 130.430247][ T6418] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 130.432307][ T6418] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 130.432325][ T6418] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 130.433780][ T6418] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 130.433798][ T6418] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 130.435249][ T6418] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 130.435267][ T6418] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 130.437724][ T6418] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 130.437742][ T6418] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 130.438678][ T6418] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.438807][ T6418] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 130.441891][ T6418] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.441995][ T6418] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6593] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 130.442495][ T6418] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.442613][ T6418] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 130.442817][ T6418] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.442920][ T6418] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6593] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6593] chdir("./file1") = 0 [pid 6593] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6593] ioctl(4, LOOP_CLR_FD) = 0 [ 130.443122][ T6418] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.443226][ T6418] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 130.443431][ T6418] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.443536][ T6418] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 130.443737][ T6418] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6593] close(4) = 0 [pid 6593] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6593] exit_group(0) = ? [pid 6593] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6593, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./30", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./30", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 130.443844][ T6418] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 130.444040][ T6418] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 130.444143][ T6418] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 130.444348][ T6418] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 130.444453][ T6418] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 130.444666][ T6418] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 130.444772][ T6418] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 130.444998][ T6418] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 130.445014][ T6418] Ratelimiting new instances of previous error [ 130.445144][ T6418] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 130.445160][ T6418] Ratelimiting new instances of previous error [ 130.459073][ T6418] done [ 130.461582][ T6418] bcachefs (loop2): going read-write [ 130.467639][ T6418] bcachefs (loop2): journal_replay... done [ 130.497247][ T6418] bcachefs (loop2): check_alloc_info... [ 130.499097][ T6418] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 130.499178][ T6418] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 130.499190][ T6418] gen 0 oldest_gen 0 data_type need_discard [ 130.499200][ T6418] journal_seq_nonempty 6 [ 130.499216][ T6418] journal_seq_empty 0 [ 130.501325][ T6418] need_discard 1 [ 130.501339][ T6418] need_inc_gen 1 [ 130.501352][ T6418] dirty_sectors 0 [ 130.501361][ T6418] stripe_sectors 0 [ 130.501371][ T6418] cached_sectors 0 [ 130.501382][ T6418] stripe 0 [ 130.501391][ T6418] stripe_redundancy 0 [ 130.501402][ T6418] io_time[READ] 1 [ 130.501411][ T6418] io_time[WRITE] 768 [ 130.501421][ T6418] fragmentation 0 [ 130.501431][ T6418] bp_start 8 [ 130.501441][ T6418] , fixing [ 130.518275][ T6418] done [ 130.524192][ T6418] bcachefs (loop2): check_lrus... done [ 130.525442][ T6418] bcachefs (loop2): check_btree_backpointers... done [ 130.526711][ T6418] bcachefs (loop2): check_backpointers_to_extents... done [ 130.530963][ T6418] bcachefs (loop2): check_extents_to_backpointers... [ 130.532344][ T6418] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 130.535105][ T6418] done [ 130.535806][ T6418] bcachefs (loop2): check_alloc_to_lru_refs... [ 130.537661][ T6418] bcachefs (loop2): missing fragmentation lru entry [ 130.537678][ T6418] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 130.537688][ T6418] gen 0 oldest_gen 0 data_type user [ 130.537701][ T6418] journal_seq_nonempty 5 [ 130.537710][ T6418] journal_seq_empty 134217728 [ 130.537722][ T6418] need_discard 1 [ 130.537731][ T6418] need_inc_gen 1 [ 130.537741][ T6418] dirty_sectors 16 [ 130.537751][ T6418] stripe_sectors 1802251 [ 130.537762][ T6418] cached_sectors 0 [ 130.537772][ T6418] stripe 0 [ 130.537782][ T6418] stripe_redundancy 0 [ 130.537791][ T6418] io_time[READ] 1 [ 130.537803][ T6418] io_time[WRITE] 512 [ 130.537812][ T6418] fragmentation 0 [ 130.537822][ T6418] bp_start 7 [ 130.537832][ T6418] , fixing [ 130.542601][ T6418] done [ 130.544014][ T6418] bcachefs (loop2): bucket_gens_init... done [ 130.547470][ T6418] bcachefs (loop2): check_snapshot_trees... done [pid 5839] umount2("./30/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./30/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 130.548406][ T6418] bcachefs (loop2): check_snapshots... [ 130.549010][ T6418] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 130.549027][ T6418] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 130.560694][ T6418] done [ 130.561406][ T6418] bcachefs (loop2): check_subvols... done [ 130.563037][ T6418] bcachefs (loop2): check_subvol_children... done [ 130.564640][ T6418] bcachefs (loop2): delete_dead_snapshots... done [pid 5839] newfstatat(AT_FDCWD, "./30/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./30/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./30/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./30/file1") = 0 [pid 5839] umount2("./30/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./30/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./30/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./30") = 0 [ 130.565377][ T6418] bcachefs (loop2): check_inodes... [ 130.566474][ T6418] bcachefs (loop2): inode points to missing dirent [ 130.566490][ T6418] inum: 4098:4294967295 [ 130.566502][ T6418] mode=40755 [ 130.566512][ T6418] flags=(15300000) [ 130.566522][ T6418] journal_seq=4 [ 130.566531][ T6418] hash_seed=ece93825deac2443 [ 130.566542][ T6418] hash_type=siphash [ 130.566552][ T6418] bi_size=0 [ 130.566562][ T6418] bi_sectors=0 [ 130.566571][ T6418] bi_version=0 [ 130.566580][ T6418] bi_atime=2770562249 [pid 5839] mkdir("./31", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6604 ./strace-static-x86_64: Process 6604 attached [pid 6604] set_robust_list(0x5555901c6760, 24) = 0 [ 130.566590][ T6418] bi_ctime=2780562352 [ 130.566602][ T6418] bi_mtime=2780562352 [ 130.566612][ T6418] bi_otime=2770562249 [ 130.566622][ T6418] bi_uid=0 [ 130.566631][ T6418] bi_gid=0 [ 130.566641][ T6418] bi_nlink=0 [ 130.566650][ T6418] bi_generation=0 [ 130.566660][ T6418] bi_dev=0 [ 130.566669][ T6418] bi_data_checksum=0 [ 130.566679][ T6418] bi_compression=0 [ 130.566689][ T6418] bi_project=0 [ 130.566699][ T6418] bi_background_compression=0 [ 130.566709][ T6418] bi_data_replicas=0 [pid 6604] chdir("./31") = 0 [pid 6604] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6604] setpgid(0, 0) = 0 [pid 6604] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6604] write(3, "1000", 4) = 4 [pid 6604] close(3) = 0 [pid 6604] symlink("/dev/binderfs", "./binderfs") = 0 [ 130.566720][ T6418] bi_promote_target=0 [ 130.566731][ T6418] bi_foreground_target=64 [ 130.566740][ T6418] bi_background_target=1 [ 130.566750][ T6418] bi_erasure_code=0 [ 130.566760][ T6418] bi_fields_set=0 [ 130.566770][ T6418] bi_dir=0 [ 130.566779][ T6418] bi_dir_offset=32 [ 130.566788][ T6418] bi_subvol=0 [ 130.566797][ T6418] bi_parent_subvol=0 [ 130.566807][ T6418] bi_nocow=0 [ 130.566817][ T6418] bi_depth=0 [ 130.566826][ T6418] bi_inodes_32bit=0 [pid 6604] write(1, "executing program\n", 18executing program ) = 18 [pid 6604] memfd_create("syzkaller", 0) = 3 [pid 6604] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 130.566836][ T6418] bi_casefold=0, fixing [ 130.568422][ T6418] done [ 130.569083][ T6418] bcachefs (loop2): check_extents... done [ 130.573637][ T6418] bcachefs (loop2): check_indirect_extents... done [ 130.576205][ T6418] bcachefs (loop2): check_dirents... [ 130.577955][ T6418] bcachefs (loop2): directory with missing backpointer [ 130.577983][ T6418] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 130.577999][ T6418] inum: 4098:4294967295 [ 130.578009][ T6418] mode=40755 [ 130.578019][ T6418] flags=(11300000) [ 130.578031][ T6418] journal_seq=22 [ 130.578041][ T6418] hash_seed=ece93825deac2443 [ 130.578051][ T6418] hash_type=siphash [ 130.578063][ T6418] bi_size=0 [ 130.578073][ T6418] bi_sectors=0 [ 130.578082][ T6418] bi_version=0 [ 130.578091][ T6418] bi_atime=2770562249 [ 130.578101][ T6418] bi_ctime=2780562352 [ 130.578111][ T6418] bi_mtime=2780562352 [ 130.578121][ T6418] bi_otime=2770562249 [ 130.578131][ T6418] bi_uid=0 [ 130.578140][ T6418] bi_gid=0 [ 130.578150][ T6418] bi_nlink=0 [ 130.578159][ T6418] bi_generation=0 [ 130.578169][ T6418] bi_dev=0 [ 130.578178][ T6418] bi_data_checksum=0 [ 130.578188][ T6418] bi_compression=0 [ 130.578198][ T6418] bi_project=0 [ 130.578207][ T6418] bi_background_compression=0 [ 130.578218][ T6418] bi_data_replicas=0 [ 130.578228][ T6418] bi_promote_target=0 [ 130.578237][ T6418] bi_foreground_target=64 [ 130.578248][ T6418] bi_background_target=1 [ 130.578258][ T6418] bi_erasure_code=0 [ 130.578269][ T6418] bi_fields_set=0 [ 130.578278][ T6418] bi_dir=0 [ 130.578288][ T6418] bi_dir_offset=0 [ 130.578297][ T6418] bi_subvol=0 [ 130.578306][ T6418] bi_parent_subvol=0 [ 130.578316][ T6418] bi_nocow=0 [ 130.578326][ T6418] bi_depth=0 [ 130.578335][ T6418] bi_inodes_32bit=0 [ 130.578345][ T6418] bi_casefold=0, fixing [ 130.586166][ T6418] done [ 130.586864][ T6418] bcachefs (loop2): check_xattrs... done [ 130.588135][ T6418] bcachefs (loop2): check_root... done [ 130.589650][ T6418] bcachefs (loop2): check_unreachable_inodes... done [ 130.590749][ T6418] bcachefs (loop2): check_subvolume_structure... done [ 130.591601][ T6418] bcachefs (loop2): check_directory_structure... done [ 130.592426][ T6418] bcachefs (loop2): check_nlinks... [ 130.593157][ T6418] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 130.594205][ T6418] done [ 130.594875][ T6418] bcachefs (loop2): check_rebalance_work... done [ 130.597053][ T6418] bcachefs (loop2): resume_logged_ops... done [ 130.597859][ T6418] bcachefs (loop2): delete_dead_inodes... done [ 130.607653][ T6418] bcachefs (loop2): set_fs_needs_rebalance... [ 130.616226][ T6437] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 130.616251][ T6437] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 130.618968][ T6418] done [ 130.622060][ T6418] bcachefs (loop2): check_extents_to_backpointers... [pid 6604] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6604] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6604] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 130.623024][ T6418] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 130.629061][ T6418] done [ 130.642136][ T6418] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 130.642162][ T6418] bcachefs (loop2): check_alloc_info... done [ 130.661280][ T6418] bcachefs (loop2): check_lrus... done [ 130.662436][ T6418] bcachefs (loop2): check_btree_backpointers... done [ 130.663608][ T6418] bcachefs (loop2): check_backpointers_to_extents... done [ 130.665024][ T6418] bcachefs (loop2): check_extents_to_backpointers... done [pid 6604] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6604] close(3) = 0 [pid 6604] close(4) = 0 [pid 6604] mkdir("./file1", 0777) = 0 [ 130.666670][ T6418] bcachefs (loop2): check_alloc_to_lru_refs... done [ 130.668807][ T6418] bcachefs (loop2): bucket_gens_init... done [ 130.672549][ T6418] bcachefs (loop2): check_snapshot_trees... done [ 130.673867][ T6418] bcachefs (loop2): check_snapshots... done [ 130.680070][ T6418] bcachefs (loop2): check_subvols... done [ 130.680867][ T6418] bcachefs (loop2): check_subvol_children... done [ 130.682471][ T6418] bcachefs (loop2): delete_dead_snapshots... done [ 130.683165][ T6418] bcachefs (loop2): check_inodes... done [ 130.684366][ T6418] bcachefs (loop2): check_extents... done [ 130.690353][ T6418] bcachefs (loop2): check_indirect_extents... done [ 130.691116][ T6418] bcachefs (loop2): check_dirents... done [ 130.693564][ T6418] bcachefs (loop2): check_xattrs... done [ 130.700097][ T6418] bcachefs (loop2): check_root... done [ 130.700847][ T6418] bcachefs (loop2): check_unreachable_inodes... done [ 130.701694][ T6418] bcachefs (loop2): check_subvolume_structure... done [ 130.703393][ T6418] bcachefs (loop2): check_directory_structure... done [ 130.704138][ T6418] bcachefs (loop2): check_nlinks... done [ 130.705331][ T6418] bcachefs (loop2): check_rebalance_work... done [ 130.710053][ T6418] bcachefs (loop2): resume_logged_ops... done [ 130.710855][ T6418] bcachefs (loop2): delete_dead_inodes... done [ 130.711560][ T6418] bcachefs (loop2): set_fs_needs_rebalance... done [ 130.720200][ T6418] bcachefs (loop2): done starting filesystem [ 130.793026][ T5839] bcachefs (loop2): shutting down [ 130.793048][ T5839] bcachefs (loop2): going read-only [ 130.793077][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 130.831696][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 130.832489][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 130.833306][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 130.835100][ T5839] bcachefs (loop2): marking filesystem clean [ 130.894468][ T5839] bcachefs (loop2): shutdown complete [ 131.703403][ T6439] loop2: detected capacity change from 0 to 32768 [ 131.832004][ T6439] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 131.832030][ T6439] allowing incompatible features above 0.0: (unknown version) [ 131.832045][ T6439] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 131.832073][ T6439] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 131.832207][ T6439] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 131.832447][ T6439] bcachefs (loop2): Version upgrade required: [ 131.832447][ T6439] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 131.832447][ T6439] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 131.832447][ T6439] 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,check_rebalance_work,set_fs_needs_rebalance [ 131.852599][ T6439] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 131.852625][ T6439] size != 0, deleting [ 131.853533][ T6439] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 131.856725][ T6439] bcachefs (loop2): check_topology... done [ 131.858060][ T6439] bcachefs (loop2): accounting_read... done [ 131.890925][ T6439] bcachefs (loop2): alloc_read... done [ 131.891868][ T6439] bcachefs (loop2): snapshots_read... done [ 131.892740][ T6439] bcachefs (loop2): check_allocations... [ 131.895276][ T6439] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 131.895296][ T6439] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 131.897272][ T6439] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 131.897291][ T6439] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 131.898682][ T6439] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 131.898703][ T6439] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 6604] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6604] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6604] chdir("./file1") = 0 [pid 6604] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6604] ioctl(4, LOOP_CLR_FD) = 0 [pid 6604] close(4) = 0 [pid 6604] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6604] exit_group(0) = ? [pid 6604] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6604, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] umount2("./31", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./31", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 131.901459][ T6439] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 131.901478][ T6439] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 131.903966][ T6439] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 131.903984][ T6439] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 131.905271][ T6439] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.905408][ T6439] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.905933][ T6439] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.906038][ T6439] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.906435][ T6439] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.906537][ T6439] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.906726][ T6439] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.906825][ T6439] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.907016][ T6439] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.907111][ T6439] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.907329][ T6439] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.907439][ T6439] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.907639][ T6439] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.907744][ T6439] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 131.907941][ T6439] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 131.908045][ T6439] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 131.908255][ T6439] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 131.908371][ T6439] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 131.908604][ T6439] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 131.908713][ T6439] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 131.908956][ T6439] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 131.908973][ T6439] Ratelimiting new instances of previous error [ 131.909112][ T6439] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 131.909130][ T6439] Ratelimiting new instances of previous error [ 131.924208][ T6439] done [ 131.926235][ T6439] bcachefs (loop2): going read-write [ 131.932343][ T6439] bcachefs (loop2): journal_replay... done [ 131.960148][ T6439] bcachefs (loop2): check_alloc_info... [ 131.961928][ T6439] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 131.961947][ T6439] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 131.961959][ T6439] gen 0 oldest_gen 0 data_type need_discard [ 131.961970][ T6439] journal_seq_nonempty 6 [ 131.961980][ T6439] journal_seq_empty 0 [ 131.961991][ T6439] need_discard 1 [ 131.962002][ T6439] need_inc_gen 1 [ 131.962012][ T6439] dirty_sectors 0 [ 131.962022][ T6439] stripe_sectors 0 [ 131.962032][ T6439] cached_sectors 0 [ 131.962042][ T6439] stripe 0 [ 131.962052][ T6439] stripe_redundancy 0 [ 131.962062][ T6439] io_time[READ] 1 [ 131.962072][ T6439] io_time[WRITE] 768 [ 131.962082][ T6439] fragmentation 0 [ 131.962092][ T6439] bp_start 8 [ 131.962111][ T6439] , fixing [ 131.979796][ T6439] done [ 131.984500][ T6439] bcachefs (loop2): check_lrus... done [ 131.986029][ T6439] bcachefs (loop2): check_btree_backpointers... done [ 131.988507][ T6439] bcachefs (loop2): check_backpointers_to_extents... done [ 131.993495][ T6439] bcachefs (loop2): check_extents_to_backpointers... [ 131.994858][ T6439] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 131.996977][ T6439] done [ 131.997631][ T6439] bcachefs (loop2): check_alloc_to_lru_refs... [ 132.000907][ T6439] bcachefs (loop2): missing fragmentation lru entry [pid 5839] umount2("./31/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 132.000925][ T6439] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 132.000936][ T6439] gen 0 oldest_gen 0 data_type user [ 132.000947][ T6439] journal_seq_nonempty 5 [ 132.000958][ T6439] journal_seq_empty 134217728 [ 132.000968][ T6439] need_discard 1 [ 132.000979][ T6439] need_inc_gen 1 [ 132.000990][ T6439] dirty_sectors 16 [ 132.001000][ T6439] stripe_sectors 1802251 [ 132.001010][ T6439] cached_sectors 0 [ 132.001021][ T6439] stripe 0 [ 132.001031][ T6439] stripe_redundancy 0 [pid 5839] umount2("./31/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./31/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./31/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./31/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 132.001040][ T6439] io_time[READ] 1 [ 132.001051][ T6439] io_time[WRITE] 512 [ 132.001061][ T6439] fragmentation 0 [ 132.001070][ T6439] bp_start 7 [ 132.001082][ T6439] , fixing [ 132.002624][ T6439] done [ 132.004173][ T6439] bcachefs (loop2): bucket_gens_init... done [ 132.007016][ T6439] bcachefs (loop2): check_snapshot_trees... done [ 132.007827][ T6439] bcachefs (loop2): check_snapshots... [ 132.008409][ T6439] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./31/file1") = 0 [pid 5839] umount2("./31/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./31/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./31/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 132.008425][ T6439] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 132.022450][ T6439] done [ 132.023172][ T6439] bcachefs (loop2): check_subvols... done [ 132.024807][ T6439] bcachefs (loop2): check_subvol_children... done [ 132.025602][ T6439] bcachefs (loop2): delete_dead_snapshots... done [ 132.026388][ T6439] bcachefs (loop2): check_inodes... [ 132.027442][ T6439] bcachefs (loop2): inode points to missing dirent [ 132.027459][ T6439] inum: 4098:4294967295 [pid 5839] close(3) = 0 [pid 5839] rmdir("./31") = 0 [pid 5839] mkdir("./32", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6615 ./strace-static-x86_64: Process 6615 attached [ 132.027468][ T6439] mode=40755 [ 132.027478][ T6439] flags=(15300000) [ 132.027487][ T6439] journal_seq=4 [ 132.027496][ T6439] hash_seed=ece93825deac2443 [ 132.027506][ T6439] hash_type=siphash [ 132.027515][ T6439] bi_size=0 [ 132.027525][ T6439] bi_sectors=0 [ 132.027533][ T6439] bi_version=0 [ 132.027543][ T6439] bi_atime=2770562249 [ 132.027552][ T6439] bi_ctime=2780562352 [ 132.027562][ T6439] bi_mtime=2780562352 [ 132.027572][ T6439] bi_otime=2770562249 [pid 6615] set_robust_list(0x5555901c6760, 24) = 0 [pid 6615] chdir("./32") = 0 [pid 6615] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6615] setpgid(0, 0) = 0 [pid 6615] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6615] write(3, "1000", 4) = 4 [pid 6615] close(3) = 0 [pid 6615] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6615] write(1, "executing program\n", 18executing program ) = 18 [pid 6615] memfd_create("syzkaller", 0) = 3 [pid 6615] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 132.027581][ T6439] bi_uid=0 [ 132.027590][ T6439] bi_gid=0 [ 132.027598][ T6439] bi_nlink=0 [ 132.027608][ T6439] bi_generation=0 [ 132.027617][ T6439] bi_dev=0 [ 132.027626][ T6439] bi_data_checksum=0 [ 132.027637][ T6439] bi_compression=0 [ 132.027646][ T6439] bi_project=0 [ 132.027653][ T6439] bi_background_compression=0 [ 132.027664][ T6439] bi_data_replicas=0 [ 132.027674][ T6439] bi_promote_target=0 [ 132.027683][ T6439] bi_foreground_target=64 [ 132.027693][ T6439] bi_background_target=1 [ 132.027703][ T6439] bi_erasure_code=0 [ 132.027712][ T6439] bi_fields_set=0 [ 132.027721][ T6439] bi_dir=0 [ 132.027730][ T6439] bi_dir_offset=32 [ 132.027739][ T6439] bi_subvol=0 [ 132.027748][ T6439] bi_parent_subvol=0 [ 132.027757][ T6439] bi_nocow=0 [ 132.027766][ T6439] bi_depth=0 [ 132.027775][ T6439] bi_inodes_32bit=0 [ 132.027784][ T6439] bi_casefold=0, fixing [ 132.033839][ T6439] done [ 132.034636][ T6439] bcachefs (loop2): check_extents... done [ 132.036132][ T6439] bcachefs (loop2): check_indirect_extents... done [ 132.036941][ T6439] bcachefs (loop2): check_dirents... [ 132.038646][ T6439] bcachefs (loop2): directory with missing backpointer [ 132.038664][ T6439] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 132.038679][ T6439] inum: 4098:4294967295 [ 132.038689][ T6439] mode=40755 [ 132.038698][ T6439] flags=(11300000) [ 132.038708][ T6439] journal_seq=22 [ 132.038717][ T6439] hash_seed=ece93825deac2443 [ 132.038727][ T6439] hash_type=siphash [ 132.038737][ T6439] bi_size=0 [ 132.038746][ T6439] bi_sectors=0 [ 132.038755][ T6439] bi_version=0 [ 132.038764][ T6439] bi_atime=2770562249 [ 132.038774][ T6439] bi_ctime=2780562352 [ 132.038785][ T6439] bi_mtime=2780562352 [ 132.038794][ T6439] bi_otime=2770562249 [ 132.041294][ T6439] bi_uid=0 [ 132.041306][ T6439] bi_gid=0 [ 132.041315][ T6439] bi_nlink=0 [ 132.041325][ T6439] bi_generation=0 [ 132.041335][ T6439] bi_dev=0 [ 132.041344][ T6439] bi_data_checksum=0 [ 132.041354][ T6439] bi_compression=0 [ 132.041363][ T6439] bi_project=0 [ 132.041371][ T6439] bi_background_compression=0 [ 132.041381][ T6439] bi_data_replicas=0 [ 132.041393][ T6439] bi_promote_target=0 [ 132.041402][ T6439] bi_foreground_target=64 [ 132.041412][ T6439] bi_background_target=1 [ 132.041421][ T6439] bi_erasure_code=0 [ 132.041432][ T6439] bi_fields_set=0 [ 132.041441][ T6439] bi_dir=0 [ 132.041450][ T6439] bi_dir_offset=0 [ 132.041459][ T6439] bi_subvol=0 [ 132.041469][ T6439] bi_parent_subvol=0 [ 132.041479][ T6439] bi_nocow=0 [ 132.041488][ T6439] bi_depth=0 [ 132.041497][ T6439] bi_inodes_32bit=0 [ 132.041507][ T6439] bi_casefold=0, fixing [ 132.043644][ T6439] done [ 132.044333][ T6439] bcachefs (loop2): check_xattrs... done [ 132.045537][ T6439] bcachefs (loop2): check_root... done [ 132.046650][ T6439] bcachefs (loop2): check_unreachable_inodes... done [ 132.047700][ T6439] bcachefs (loop2): check_subvolume_structure... done [pid 6615] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6615] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6615] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 132.048521][ T6439] bcachefs (loop2): check_directory_structure... done [ 132.050664][ T6439] bcachefs (loop2): check_nlinks... [ 132.051377][ T6439] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 132.054995][ T6439] done [ 132.055840][ T6439] bcachefs (loop2): check_rebalance_work... done [ 132.057381][ T6439] bcachefs (loop2): resume_logged_ops... done [ 132.058223][ T6439] bcachefs (loop2): delete_dead_inodes... done [ 132.067659][ T6439] bcachefs (loop2): set_fs_needs_rebalance... [pid 6615] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6615] close(3) = 0 [pid 6615] close(4) = 0 [pid 6615] mkdir("./file1", 0777) = 0 [ 132.075451][ T6448] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 132.075473][ T6448] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 132.079119][ T6439] done [ 132.080432][ T6439] bcachefs (loop2): check_extents_to_backpointers... [ 132.081391][ T6439] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 132.087471][ T6439] done [ 132.097796][ T6439] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 132.097819][ T6439] bcachefs (loop2): check_alloc_info... done [ 132.102701][ T6439] bcachefs (loop2): check_lrus... done [ 132.104666][ T6439] bcachefs (loop2): check_btree_backpointers... done [ 132.105940][ T6439] bcachefs (loop2): check_backpointers_to_extents... done [ 132.107376][ T6439] bcachefs (loop2): check_extents_to_backpointers... done [ 132.108991][ T6439] bcachefs (loop2): check_alloc_to_lru_refs... done [ 132.112623][ T6439] bcachefs (loop2): bucket_gens_init... done [ 132.115577][ T6439] bcachefs (loop2): check_snapshot_trees... done [ 132.116747][ T6439] bcachefs (loop2): check_snapshots... done [ 132.117596][ T6439] bcachefs (loop2): check_subvols... done [ 132.118378][ T6439] bcachefs (loop2): check_subvol_children... done [ 132.119129][ T6439] bcachefs (loop2): delete_dead_snapshots... done [ 132.120444][ T6439] bcachefs (loop2): check_inodes... done [ 132.121606][ T6439] bcachefs (loop2): check_extents... done [ 132.123089][ T6439] bcachefs (loop2): check_indirect_extents... done [ 132.123895][ T6439] bcachefs (loop2): check_dirents... done [ 132.126412][ T6439] bcachefs (loop2): check_xattrs... done [ 132.127312][ T6439] bcachefs (loop2): check_root... done [ 132.128128][ T6439] bcachefs (loop2): check_unreachable_inodes... done [ 132.129050][ T6439] bcachefs (loop2): check_subvolume_structure... done [ 132.131536][ T6439] bcachefs (loop2): check_directory_structure... done [ 132.132327][ T6439] bcachefs (loop2): check_nlinks... done [ 132.133573][ T6439] bcachefs (loop2): check_rebalance_work... done [ 132.134460][ T6439] bcachefs (loop2): resume_logged_ops... done [ 132.135201][ T6439] bcachefs (loop2): delete_dead_inodes... done [ 132.135976][ T6439] bcachefs (loop2): set_fs_needs_rebalance... done [ 132.141710][ T6439] bcachefs (loop2): done starting filesystem [ 132.210023][ T5839] bcachefs (loop2): shutting down [ 132.210042][ T5839] bcachefs (loop2): going read-only [ 132.210081][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 132.262322][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 132.263296][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 132.264447][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 132.266281][ T5839] bcachefs (loop2): marking filesystem clean [ 132.326413][ T5839] bcachefs (loop2): shutdown complete [ 133.067721][ T6450] loop2: detected capacity change from 0 to 32768 [ 133.198186][ T6450] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 133.198213][ T6450] allowing incompatible features above 0.0: (unknown version) [ 133.198225][ T6450] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 133.198251][ T6450] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 133.198392][ T6450] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 133.198632][ T6450] bcachefs (loop2): Version upgrade required: [ 133.198632][ T6450] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 133.198632][ T6450] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 133.198632][ T6450] 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,check_rebalance_work,set_fs_needs_rebalance [ 133.218384][ T6450] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 133.218410][ T6450] size != 0, deleting [ 133.220195][ T6450] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 133.223479][ T6450] bcachefs (loop2): check_topology... done [ 133.224953][ T6450] bcachefs (loop2): accounting_read... done [ 133.271606][ T6450] bcachefs (loop2): alloc_read... done [ 133.273051][ T6450] bcachefs (loop2): snapshots_read... done [ 133.273906][ T6450] bcachefs (loop2): check_allocations... [ 133.275885][ T6450] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 133.275906][ T6450] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 133.277930][ T6450] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 6615] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6615] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6615] chdir("./file1") = 0 [pid 6615] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6615] ioctl(4, LOOP_CLR_FD) = 0 [pid 6615] close(4) = 0 [pid 6615] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6615] exit_group(0) = ? [ 133.277949][ T6450] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 133.280277][ T6450] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 133.280296][ T6450] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 133.281802][ T6450] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 6615] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6615, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./32", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./32", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 133.281821][ T6450] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 133.285213][ T6450] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 133.285231][ T6450] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 133.286183][ T6450] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.286305][ T6450] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.286849][ T6450] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.286953][ T6450] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.287367][ T6450] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.287472][ T6450] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.287671][ T6450] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.287775][ T6450] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.287974][ T6450] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.288090][ T6450] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.288292][ T6450] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.288395][ T6450] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.288599][ T6450] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.288702][ T6450] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 133.288911][ T6450] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 133.289024][ T6450] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 133.290067][ T6450] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 133.290185][ T6450] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 133.290406][ T6450] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 133.290513][ T6450] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 133.290751][ T6450] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 133.290768][ T6450] Ratelimiting new instances of previous error [ 133.290896][ T6450] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 133.290913][ T6450] Ratelimiting new instances of previous error [ 133.304683][ T6450] done [ 133.306797][ T6450] bcachefs (loop2): going read-write [ 133.313346][ T6450] bcachefs (loop2): journal_replay... done [ 133.341219][ T6450] bcachefs (loop2): check_alloc_info... [ 133.342991][ T6450] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 133.343010][ T6450] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 133.343022][ T6450] gen 0 oldest_gen 0 data_type need_discard [ 133.343034][ T6450] journal_seq_nonempty 6 [ 133.343046][ T6450] journal_seq_empty 0 [ 133.343056][ T6450] need_discard 1 [ 133.343066][ T6450] need_inc_gen 1 [ 133.343076][ T6450] dirty_sectors 0 [ 133.343087][ T6450] stripe_sectors 0 [pid 5839] umount2("./32/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 133.343097][ T6450] cached_sectors 0 [ 133.343107][ T6450] stripe 0 [ 133.343117][ T6450] stripe_redundancy 0 [ 133.343128][ T6450] io_time[READ] 1 [ 133.343139][ T6450] io_time[WRITE] 768 [ 133.343150][ T6450] fragmentation 0 [ 133.343160][ T6450] bp_start 8 [ 133.343169][ T6450] , fixing [ 133.359757][ T6450] done [ 133.365472][ T6450] bcachefs (loop2): check_lrus... done [ 133.366903][ T6450] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./32/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./32/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./32/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./32/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 133.368188][ T6450] bcachefs (loop2): check_backpointers_to_extents... done [ 133.373152][ T6450] bcachefs (loop2): check_extents_to_backpointers... [ 133.374495][ T6450] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 133.377997][ T6450] done [ 133.378714][ T6450] bcachefs (loop2): check_alloc_to_lru_refs... [ 133.380650][ T6450] bcachefs (loop2): missing fragmentation lru entry [ 133.380669][ T6450] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 133.380682][ T6450] gen 0 oldest_gen 0 data_type user [ 133.380694][ T6450] journal_seq_nonempty 5 [pid 5839] rmdir("./32/file1") = 0 [pid 5839] umount2("./32/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./32/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./32/binderfs") = 0 [ 133.380704][ T6450] journal_seq_empty 134217728 [ 133.380715][ T6450] need_discard 1 [ 133.380725][ T6450] need_inc_gen 1 [ 133.380735][ T6450] dirty_sectors 16 [ 133.380744][ T6450] stripe_sectors 1802251 [ 133.380757][ T6450] cached_sectors 0 [ 133.380767][ T6450] stripe 0 [ 133.380777][ T6450] stripe_redundancy 0 [ 133.380787][ T6450] io_time[READ] 1 [ 133.380798][ T6450] io_time[WRITE] 512 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./32") = 0 [pid 5839] mkdir("./33", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 133.380808][ T6450] fragmentation 0 [ 133.380818][ T6450] bp_start 7 [ 133.380828][ T6450] , fixing [ 133.384229][ T6450] done [ 133.385707][ T6450] bcachefs (loop2): bucket_gens_init... done [ 133.388685][ T6450] bcachefs (loop2): check_snapshot_trees... done [ 133.390892][ T6450] bcachefs (loop2): check_snapshots... [ 133.391576][ T6450] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6626 ./strace-static-x86_64: Process 6626 attached [pid 6626] set_robust_list(0x5555901c6760, 24) = 0 [pid 6626] chdir("./33") = 0 [pid 6626] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6626] setpgid(0, 0) = 0 [pid 6626] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6626] write(3, "1000", 4) = 4 [ 133.391594][ T6450] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 133.403103][ T6450] done [ 133.403791][ T6450] bcachefs (loop2): check_subvols... done [ 133.405481][ T6450] bcachefs (loop2): check_subvol_children... done [ 133.406227][ T6450] bcachefs (loop2): delete_dead_snapshots... done [ 133.407008][ T6450] bcachefs (loop2): check_inodes... [ 133.408055][ T6450] bcachefs (loop2): inode points to missing dirent [ 133.408071][ T6450] inum: 4098:4294967295 [ 133.408083][ T6450] mode=40755 [ 133.408092][ T6450] flags=(15300000) [ 133.408102][ T6450] journal_seq=4 [pid 6626] close(3) = 0 [pid 6626] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6626] write(1, "executing program\n", 18executing program ) = 18 [pid 6626] memfd_create("syzkaller", 0) = 3 [pid 6626] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 133.408111][ T6450] hash_seed=ece93825deac2443 [ 133.408122][ T6450] hash_type=siphash [ 133.408131][ T6450] bi_size=0 [ 133.408140][ T6450] bi_sectors=0 [ 133.408150][ T6450] bi_version=0 [ 133.408159][ T6450] bi_atime=2770562249 [ 133.408169][ T6450] bi_ctime=2780562352 [ 133.408180][ T6450] bi_mtime=2780562352 [ 133.408189][ T6450] bi_otime=2770562249 [ 133.408199][ T6450] bi_uid=0 [ 133.408208][ T6450] bi_gid=0 [ 133.408217][ T6450] bi_nlink=0 [ 133.408226][ T6450] bi_generation=0 [ 133.408236][ T6450] bi_dev=0 [ 133.408245][ T6450] bi_data_checksum=0 [ 133.408254][ T6450] bi_compression=0 [ 133.408264][ T6450] bi_project=0 [ 133.408273][ T6450] bi_background_compression=0 [ 133.408283][ T6450] bi_data_replicas=0 [ 133.408295][ T6450] bi_promote_target=0 [ 133.408304][ T6450] bi_foreground_target=64 [ 133.408315][ T6450] bi_background_target=1 [ 133.408325][ T6450] bi_erasure_code=0 [ 133.408334][ T6450] bi_fields_set=0 [ 133.408343][ T6450] bi_dir=0 [ 133.408353][ T6450] bi_dir_offset=32 [ 133.408362][ T6450] bi_subvol=0 [ 133.408371][ T6450] bi_parent_subvol=0 [ 133.408381][ T6450] bi_nocow=0 [ 133.408390][ T6450] bi_depth=0 [ 133.408399][ T6450] bi_inodes_32bit=0 [ 133.408408][ T6450] bi_casefold=0, fixing [ 133.414658][ T6450] done [ 133.415353][ T6450] bcachefs (loop2): check_extents... done [ 133.416777][ T6450] bcachefs (loop2): check_indirect_extents... done [ 133.417549][ T6450] bcachefs (loop2): check_dirents... [ 133.419857][ T6450] bcachefs (loop2): directory with missing backpointer [ 133.419875][ T6450] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 133.419890][ T6450] inum: 4098:4294967295 [ 133.419901][ T6450] mode=40755 [ 133.419910][ T6450] flags=(11300000) [ 133.419920][ T6450] journal_seq=22 [ 133.419930][ T6450] hash_seed=ece93825deac2443 [ 133.419940][ T6450] hash_type=siphash [ 133.419949][ T6450] bi_size=0 [ 133.419959][ T6450] bi_sectors=0 [ 133.419968][ T6450] bi_version=0 [ 133.419989][ T6450] bi_atime=2770562249 [ 133.420666][ T6450] bi_ctime=2780562352 [ 133.420678][ T6450] bi_mtime=2780562352 [ 133.420687][ T6450] bi_otime=2770562249 [ 133.420698][ T6450] bi_uid=0 [ 133.420707][ T6450] bi_gid=0 [ 133.420716][ T6450] bi_nlink=0 [ 133.420725][ T6450] bi_generation=0 [ 133.420732][ T6450] bi_dev=0 [ 133.420741][ T6450] bi_data_checksum=0 [ 133.420751][ T6450] bi_compression=0 [ 133.420760][ T6450] bi_project=0 [ 133.420770][ T6450] bi_background_compression=0 [ 133.420780][ T6450] bi_data_replicas=0 [ 133.420790][ T6450] bi_promote_target=0 [ 133.420799][ T6450] bi_foreground_target=64 [ 133.420809][ T6450] bi_background_target=1 [ 133.420821][ T6450] bi_erasure_code=0 [ 133.420830][ T6450] bi_fields_set=0 [ 133.420839][ T6450] bi_dir=0 [ 133.420849][ T6450] bi_dir_offset=0 [ 133.420858][ T6450] bi_subvol=0 [ 133.420867][ T6450] bi_parent_subvol=0 [ 133.420877][ T6450] bi_nocow=0 [pid 6626] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6626] munmap(0x7fbbeb93a000, 138412032) = 0 [ 133.420886][ T6450] bi_depth=0 [ 133.420895][ T6450] bi_inodes_32bit=0 [ 133.420904][ T6450] bi_casefold=0, fixing [ 133.423069][ T6450] done [ 133.423739][ T6450] bcachefs (loop2): check_xattrs... done [ 133.425012][ T6450] bcachefs (loop2): check_root... done [ 133.426197][ T6450] bcachefs (loop2): check_unreachable_inodes... done [ 133.427443][ T6450] bcachefs (loop2): check_subvolume_structure... done [ 133.428332][ T6450] bcachefs (loop2): check_directory_structure... done [ 133.429157][ T6450] bcachefs (loop2): check_nlinks... [pid 6626] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6626] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6626] close(3) = 0 [pid 6626] close(4) = 0 [pid 6626] mkdir("./file1", 0777) = 0 [ 133.432266][ T6450] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 133.436431][ T6450] done [ 133.437065][ T6450] bcachefs (loop2): check_rebalance_work... done [ 133.438347][ T6450] bcachefs (loop2): resume_logged_ops... done [ 133.439180][ T6450] bcachefs (loop2): delete_dead_inodes... done [ 133.448585][ T6450] bcachefs (loop2): set_fs_needs_rebalance... done [ 133.459170][ T6450] bcachefs (loop2): check_extents_to_backpointers... [ 133.459719][ T6459] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 133.459741][ T6459] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 133.461399][ T6450] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 133.467253][ T6459] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 133.469119][ T6450] done [ 133.479831][ T6450] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 133.479854][ T6450] bcachefs (loop2): check_alloc_info... done [ 133.484522][ T6450] bcachefs (loop2): check_lrus... done [ 133.486457][ T6450] bcachefs (loop2): check_btree_backpointers... done [ 133.487728][ T6450] bcachefs (loop2): check_backpointers_to_extents... done [ 133.489859][ T6450] bcachefs (loop2): check_extents_to_backpointers... [ 133.490750][ T6450] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 133.492596][ T6450] done [ 133.492610][ T6450] bcachefs (loop2): check_alloc_to_lru_refs... done [ 133.494907][ T6450] bcachefs (loop2): bucket_gens_init... done [ 133.497683][ T6450] bcachefs (loop2): check_snapshot_trees... done [ 133.498795][ T6450] bcachefs (loop2): check_snapshots... done [ 133.500801][ T6450] bcachefs (loop2): check_subvols... done [ 133.501745][ T6450] bcachefs (loop2): check_subvol_children... done [ 133.502640][ T6450] bcachefs (loop2): delete_dead_snapshots... done [ 133.503437][ T6450] bcachefs (loop2): check_inodes... done [ 133.504752][ T6450] bcachefs (loop2): check_extents... done [ 133.506206][ T6450] bcachefs (loop2): check_indirect_extents... done [ 133.507896][ T6450] bcachefs (loop2): check_dirents... done [ 133.510494][ T6450] bcachefs (loop2): check_xattrs... done [ 133.511416][ T6450] bcachefs (loop2): check_root... done [ 133.512256][ T6450] bcachefs (loop2): check_unreachable_inodes... done [ 133.513209][ T6450] bcachefs (loop2): check_subvolume_structure... done [ 133.513984][ T6450] bcachefs (loop2): check_directory_structure... done [ 133.514800][ T6450] bcachefs (loop2): check_nlinks... done [ 133.515996][ T6450] bcachefs (loop2): check_rebalance_work... done [ 133.516869][ T6450] bcachefs (loop2): resume_logged_ops... done [ 133.518374][ T6450] bcachefs (loop2): delete_dead_inodes... done [ 133.519202][ T6450] bcachefs (loop2): set_fs_needs_rebalance... done [ 133.523677][ T6450] bcachefs (loop2): done starting filesystem [ 133.610483][ T5839] bcachefs (loop2): shutting down [ 133.610502][ T5839] bcachefs (loop2): going read-only [ 133.610531][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 133.664546][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 133.665528][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 133.666225][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 133.668022][ T5839] bcachefs (loop2): marking filesystem clean [ 133.712938][ T5839] bcachefs (loop2): shutdown complete [ 134.573644][ T6461] loop2: detected capacity change from 0 to 32768 [ 134.709069][ T6461] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 134.709098][ T6461] allowing incompatible features above 0.0: (unknown version) [ 134.709111][ T6461] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 134.709139][ T6461] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 134.709880][ T6461] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 134.710154][ T6461] bcachefs (loop2): Version upgrade required: [pid 6626] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 134.710154][ T6461] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 134.710154][ T6461] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6626] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6626] chdir("./file1") = 0 [pid 6626] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6626] ioctl(4, LOOP_CLR_FD) = 0 [pid 6626] close(4) = 0 [pid 6626] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6626] exit_group(0) = ? [pid 6626] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6626, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] umount2("./33", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./33", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 134.710154][ T6461] 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,check_rebalance_work,set_fs_needs_rebalance [ 134.728708][ T6461] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 134.728734][ T6461] size != 0, deleting [ 134.730474][ T6461] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 134.734291][ T6461] bcachefs (loop2): check_topology... done [ 134.735748][ T6461] bcachefs (loop2): accounting_read... done [ 134.770722][ T6461] bcachefs (loop2): alloc_read... done [ 134.771692][ T6461] bcachefs (loop2): snapshots_read... done [ 134.772595][ T6461] bcachefs (loop2): check_allocations... [ 134.775116][ T6461] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 134.775136][ T6461] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 134.777042][ T6461] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 134.777060][ T6461] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 134.778389][ T6461] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 134.778406][ T6461] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 134.781862][ T6461] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 134.781880][ T6461] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 134.784383][ T6461] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 134.784398][ T6461] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 134.785659][ T6461] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.785795][ T6461] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.786358][ T6461] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.786466][ T6461] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.786866][ T6461] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.786974][ T6461] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.787177][ T6461] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.787286][ T6461] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.787484][ T6461] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.787589][ T6461] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.787785][ T6461] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.787890][ T6461] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.788103][ T6461] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.788207][ T6461] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 134.788416][ T6461] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 134.788519][ T6461] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 134.788719][ T6461] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 134.788825][ T6461] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 134.789032][ T6461] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5839] umount2("./33/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./33/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./33/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 134.789138][ T6461] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 134.791954][ T6461] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 134.791975][ T6461] Ratelimiting new instances of previous error [ 134.792106][ T6461] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 134.792123][ T6461] Ratelimiting new instances of previous error [ 134.803785][ T6461] done [ 134.805928][ T6461] bcachefs (loop2): going read-write [ 134.810472][ T6461] bcachefs (loop2): journal_replay... done [pid 5839] umount2("./33/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./33/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./33/file1") = 0 [pid 5839] umount2("./33/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./33/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./33/binderfs") = 0 [ 134.838840][ T6461] bcachefs (loop2): check_alloc_info... [ 134.841166][ T6461] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 134.841186][ T6461] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 134.841198][ T6461] gen 0 oldest_gen 0 data_type need_discard [ 134.841210][ T6461] journal_seq_nonempty 6 [ 134.841221][ T6461] journal_seq_empty 0 [ 134.841231][ T6461] need_discard 1 [ 134.841242][ T6461] need_inc_gen 1 [ 134.841252][ T6461] dirty_sectors 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./33") = 0 [pid 5839] mkdir("./34", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 134.841262][ T6461] stripe_sectors 0 [ 134.841272][ T6461] cached_sectors 0 [ 134.841282][ T6461] stripe 0 [ 134.841292][ T6461] stripe_redundancy 0 [ 134.841304][ T6461] io_time[READ] 1 [ 134.841314][ T6461] io_time[WRITE] 768 [ 134.841325][ T6461] fragmentation 0 [ 134.841335][ T6461] bp_start 8 [ 134.841345][ T6461] , fixing [ 134.859375][ T6461] done [ 134.864794][ T6461] bcachefs (loop2): check_lrus... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6637 ./strace-static-x86_64: Process 6637 attached [pid 6637] set_robust_list(0x5555901c6760, 24) = 0 [pid 6637] chdir("./34") = 0 [pid 6637] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6637] setpgid(0, 0) = 0 [pid 6637] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6637] write(3, "1000", 4) = 4 executing program [pid 6637] close(3) = 0 [pid 6637] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6637] write(1, "executing program\n", 18) = 18 [pid 6637] memfd_create("syzkaller", 0) = 3 [pid 6637] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 134.865649][ T6461] bcachefs (loop2): check_btree_backpointers... done [ 134.866980][ T6461] bcachefs (loop2): check_backpointers_to_extents... done [ 134.870408][ T6461] bcachefs (loop2): check_extents_to_backpointers... [ 134.871856][ T6461] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 134.874173][ T6461] done [ 134.876449][ T6461] bcachefs (loop2): check_alloc_to_lru_refs... [ 134.878368][ T6461] bcachefs (loop2): missing fragmentation lru entry [ 134.878386][ T6461] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 134.878397][ T6461] gen 0 oldest_gen 0 data_type user [ 134.878410][ T6461] journal_seq_nonempty 5 [ 134.878420][ T6461] journal_seq_empty 134217728 [ 134.878430][ T6461] need_discard 1 [ 134.878440][ T6461] need_inc_gen 1 [ 134.878449][ T6461] dirty_sectors 16 [ 134.878460][ T6461] stripe_sectors 1802251 [ 134.878470][ T6461] cached_sectors 0 [ 134.878480][ T6461] stripe 0 [ 134.878489][ T6461] stripe_redundancy 0 [ 134.878499][ T6461] io_time[READ] 1 [ 134.878509][ T6461] io_time[WRITE] 512 [ 134.878520][ T6461] fragmentation 0 [ 134.878530][ T6461] bp_start 7 [ 134.878540][ T6461] , fixing [ 134.882611][ T6461] done [ 134.884200][ T6461] bcachefs (loop2): bucket_gens_init... done [ 134.886850][ T6461] bcachefs (loop2): check_snapshot_trees... done [ 134.887690][ T6461] bcachefs (loop2): check_snapshots... [ 134.888315][ T6461] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 134.888331][ T6461] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 134.900168][ T6461] done [ 134.900929][ T6461] bcachefs (loop2): check_subvols... done [ 134.902303][ T6461] bcachefs (loop2): check_subvol_children... done [ 134.903165][ T6461] bcachefs (loop2): delete_dead_snapshots... done [ 134.903924][ T6461] bcachefs (loop2): check_inodes... [ 134.905048][ T6461] bcachefs (loop2): inode points to missing dirent [ 134.905065][ T6461] inum: 4098:4294967295 [ 134.905075][ T6461] mode=40755 [ 134.905085][ T6461] flags=(15300000) [ 134.905095][ T6461] journal_seq=4 [ 134.905104][ T6461] hash_seed=ece93825deac2443 [ 134.905115][ T6461] hash_type=siphash [ 134.905125][ T6461] bi_size=0 [ 134.905134][ T6461] bi_sectors=0 [ 134.905143][ T6461] bi_version=0 [ 134.905153][ T6461] bi_atime=2770562249 [ 134.905163][ T6461] bi_ctime=2780562352 [ 134.905172][ T6461] bi_mtime=2780562352 [ 134.905182][ T6461] bi_otime=2770562249 [ 134.905193][ T6461] bi_uid=0 [ 134.905202][ T6461] bi_gid=0 [ 134.905211][ T6461] bi_nlink=0 [ 134.905220][ T6461] bi_generation=0 [ 134.905230][ T6461] bi_dev=0 [ 134.905239][ T6461] bi_data_checksum=0 [ 134.905249][ T6461] bi_compression=0 [ 134.905261][ T6461] bi_project=0 [ 134.905270][ T6461] bi_background_compression=0 [ 134.905281][ T6461] bi_data_replicas=0 [ 134.905291][ T6461] bi_promote_target=0 [ 134.905301][ T6461] bi_foreground_target=64 [ 134.905311][ T6461] bi_background_target=1 [ 134.905321][ T6461] bi_erasure_code=0 [pid 6637] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 134.905332][ T6461] bi_fields_set=0 [ 134.905343][ T6461] bi_dir=0 [ 134.905352][ T6461] bi_dir_offset=32 [ 134.905361][ T6461] bi_subvol=0 [ 134.905371][ T6461] bi_parent_subvol=0 [ 134.905381][ T6461] bi_nocow=0 [ 134.905390][ T6461] bi_depth=0 [ 134.905400][ T6461] bi_inodes_32bit=0 [ 134.905410][ T6461] bi_casefold=0, fixing [ 134.907462][ T6461] done [ 134.908124][ T6461] bcachefs (loop2): check_extents... done [ 134.910716][ T6461] bcachefs (loop2): check_indirect_extents... done [pid 6637] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6637] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6637] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6637] close(3) = 0 [pid 6637] close(4) = 0 [pid 6637] mkdir("./file1", 0777) = 0 [ 134.912560][ T6461] bcachefs (loop2): check_dirents... [ 134.914303][ T6461] bcachefs (loop2): directory with missing backpointer [ 134.914320][ T6461] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 134.914337][ T6461] inum: 4098:4294967295 [ 134.914347][ T6461] mode=40755 [ 134.914356][ T6461] flags=(11300000) [ 134.914366][ T6461] journal_seq=22 [ 134.914375][ T6461] hash_seed=ece93825deac2443 [ 134.914386][ T6461] hash_type=siphash [ 134.914395][ T6461] bi_size=0 [ 134.914404][ T6461] bi_sectors=0 [ 134.914414][ T6461] bi_version=0 [ 134.914423][ T6461] bi_atime=2770562249 [ 134.914433][ T6461] bi_ctime=2780562352 [ 134.914443][ T6461] bi_mtime=2780562352 [ 134.914452][ T6461] bi_otime=2770562249 [ 134.914462][ T6461] bi_uid=0 [ 134.914471][ T6461] bi_gid=0 [ 134.914480][ T6461] bi_nlink=0 [ 134.914494][ T6461] bi_generation=0 [ 134.914503][ T6461] bi_dev=0 [ 134.914513][ T6461] bi_data_checksum=0 [ 134.914522][ T6461] bi_compression=0 [ 134.914532][ T6461] bi_project=0 [ 134.914541][ T6461] bi_background_compression=0 [ 134.914560][ T6461] bi_data_replicas=0 [ 134.914569][ T6461] bi_promote_target=0 [ 134.914579][ T6461] bi_foreground_target=64 [ 134.914589][ T6461] bi_background_target=1 [ 134.914599][ T6461] bi_erasure_code=0 [ 134.914610][ T6461] bi_fields_set=0 [ 134.914619][ T6461] bi_dir=0 [ 134.914628][ T6461] bi_dir_offset=0 [ 134.914636][ T6461] bi_subvol=0 [ 134.914647][ T6461] bi_parent_subvol=0 [ 134.914657][ T6461] bi_nocow=0 [ 134.914664][ T6461] bi_depth=0 [ 134.914674][ T6461] bi_inodes_32bit=0 [ 134.914684][ T6461] bi_casefold=0, fixing [ 134.922003][ T6461] done [ 134.922985][ T6461] bcachefs (loop2): check_xattrs... done [ 134.925785][ T6461] bcachefs (loop2): check_root... done [ 134.926986][ T6461] bcachefs (loop2): check_unreachable_inodes... done [ 134.928446][ T6461] bcachefs (loop2): check_subvolume_structure... done [ 134.929494][ T6461] bcachefs (loop2): check_directory_structure... done [ 134.930711][ T6461] bcachefs (loop2): check_nlinks... [ 134.931445][ T6461] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 134.932589][ T6461] done [ 134.933266][ T6461] bcachefs (loop2): check_rebalance_work... done [ 134.934444][ T6461] bcachefs (loop2): resume_logged_ops... done [ 134.935256][ T6461] bcachefs (loop2): delete_dead_inodes... done [ 134.981032][ T6461] bcachefs (loop2): set_fs_needs_rebalance... [ 134.987570][ T6470] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 134.987593][ T6470] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 134.996132][ T6461] done [ 134.996848][ T6461] bcachefs (loop2): check_extents_to_backpointers... [ 134.997873][ T6461] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 135.000907][ T6461] done [ 135.010126][ T6461] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 135.010150][ T6461] bcachefs (loop2): check_alloc_info... done [ 135.015426][ T6461] bcachefs (loop2): check_lrus... done [ 135.016628][ T6461] bcachefs (loop2): check_btree_backpointers... done [ 135.017919][ T6461] bcachefs (loop2): check_backpointers_to_extents... done [ 135.019801][ T6461] bcachefs (loop2): check_extents_to_backpointers... done [ 135.022245][ T6461] bcachefs (loop2): check_alloc_to_lru_refs... done [ 135.024591][ T6461] bcachefs (loop2): bucket_gens_init... done [ 135.027009][ T6461] bcachefs (loop2): check_snapshot_trees... done [ 135.028177][ T6461] bcachefs (loop2): check_snapshots... done [ 135.029052][ T6461] bcachefs (loop2): check_subvols... done [ 135.030775][ T6461] bcachefs (loop2): check_subvol_children... done [ 135.031626][ T6461] bcachefs (loop2): delete_dead_snapshots... done [ 135.032496][ T6461] bcachefs (loop2): check_inodes... done [ 135.033668][ T6461] bcachefs (loop2): check_extents... done [ 135.035152][ T6461] bcachefs (loop2): check_indirect_extents... done [ 135.036272][ T6461] bcachefs (loop2): check_dirents... done [ 135.037804][ T6461] bcachefs (loop2): check_xattrs... done [ 135.038692][ T6461] bcachefs (loop2): check_root... done [ 135.040417][ T6461] bcachefs (loop2): check_unreachable_inodes... done [ 135.042107][ T6461] bcachefs (loop2): check_subvolume_structure... done [ 135.042816][ T6461] bcachefs (loop2): check_directory_structure... done [ 135.044151][ T6461] bcachefs (loop2): check_nlinks... done [ 135.045796][ T6461] bcachefs (loop2): check_rebalance_work... done [ 135.047143][ T6461] bcachefs (loop2): resume_logged_ops... done [ 135.047876][ T6461] bcachefs (loop2): delete_dead_inodes... done [pid 6637] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6637] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6637] chdir("./file1") = 0 [pid 6637] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6637] ioctl(4, LOOP_CLR_FD) = 0 [pid 6637] close(4) = 0 [pid 6637] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6637] exit_group(0) = ? [pid 6637] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6637, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [ 135.048657][ T6461] bcachefs (loop2): set_fs_needs_rebalance... done [ 135.053062][ T6461] bcachefs (loop2): done starting filesystem [ 135.124757][ T5839] bcachefs (loop2): shutting down [ 135.124786][ T5839] bcachefs (loop2): going read-only [ 135.124816][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 135.160411][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 135.161375][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [pid 5839] umount2("./34", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./34", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 135.162194][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 135.163985][ T5839] bcachefs (loop2): marking filesystem clean [ 135.211471][ T5839] bcachefs (loop2): shutdown complete [ 135.980889][ T6472] loop2: detected capacity change from 0 to 32768 [ 136.117855][ T6472] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 136.117883][ T6472] allowing incompatible features above 0.0: (unknown version) [ 136.117897][ T6472] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 136.117924][ T6472] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 136.118052][ T6472] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 136.118281][ T6472] bcachefs (loop2): Version upgrade required: [ 136.118281][ T6472] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 136.118281][ T6472] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 136.118281][ T6472] 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,check_rebalance_work,set_fs_needs_rebalance [ 136.137169][ T6472] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 136.137193][ T6472] size != 0, deleting [ 136.138369][ T6472] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 136.142178][ T6472] bcachefs (loop2): check_topology... done [ 136.143926][ T6472] bcachefs (loop2): accounting_read... done [ 136.186107][ T6472] bcachefs (loop2): alloc_read... done [ 136.187052][ T6472] bcachefs (loop2): snapshots_read... done [ 136.187904][ T6472] bcachefs (loop2): check_allocations... [ 136.190432][ T6472] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 136.190453][ T6472] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 136.192528][ T6472] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 136.192546][ T6472] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 136.193961][ T6472] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 136.193979][ T6472] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 136.195821][ T6472] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 136.195839][ T6472] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 136.198284][ T6472] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 136.198302][ T6472] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 136.200426][ T6472] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.200558][ T6472] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.201129][ T6472] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.201237][ T6472] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.201634][ T6472] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.201750][ T6472] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.201953][ T6472] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.202057][ T6472] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.202255][ T6472] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.202360][ T6472] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.202558][ T6472] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] umount2("./34/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 136.202666][ T6472] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.202870][ T6472] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.202988][ T6472] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 136.203190][ T6472] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 136.203294][ T6472] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 5839] umount2("./34/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./34/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./34/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./34/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./34/file1") = 0 [ 136.203496][ T6472] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.203602][ T6472] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.203822][ T6472] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 136.203929][ T6472] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.204180][ T6472] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5839] umount2("./34/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./34/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./34/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./34") = 0 [pid 5839] mkdir("./35", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 136.204197][ T6472] Ratelimiting new instances of previous error [ 136.204335][ T6472] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 136.204353][ T6472] Ratelimiting new instances of previous error [ 136.217824][ T6472] done [ 136.220206][ T6472] bcachefs (loop2): going read-write [ 136.226290][ T6472] bcachefs (loop2): journal_replay... done [ 136.254576][ T6472] bcachefs (loop2): check_alloc_info... [ 136.256353][ T6472] bcachefs (loop2): bucket incorrectly unset in need_discard btree [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6648 ./strace-static-x86_64: Process 6648 attached [pid 6648] set_robust_list(0x5555901c6760, 24) = 0 [ 136.256371][ T6472] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 136.256383][ T6472] gen 0 oldest_gen 0 data_type need_discard [ 136.256394][ T6472] journal_seq_nonempty 6 [ 136.256422][ T6472] journal_seq_empty 0 [ 136.256432][ T6472] need_discard 1 [ 136.256442][ T6472] need_inc_gen 1 [ 136.256453][ T6472] dirty_sectors 0 [ 136.256464][ T6472] stripe_sectors 0 [ 136.256475][ T6472] cached_sectors 0 [ 136.256485][ T6472] stripe 0 [pid 6648] chdir("./35") = 0 [pid 6648] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6648] setpgid(0, 0) = 0 [pid 6648] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6648] write(3, "1000", 4) = 4 [pid 6648] close(3) = 0 [pid 6648] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6648] write(1, "executing program\n", 18executing program [ 136.256495][ T6472] stripe_redundancy 0 [ 136.256506][ T6472] io_time[READ] 1 [ 136.256516][ T6472] io_time[WRITE] 768 [ 136.256527][ T6472] fragmentation 0 [ 136.256537][ T6472] bp_start 8 [ 136.256546][ T6472] , fixing [ 136.273482][ T6472] done [ 136.279615][ T6472] bcachefs (loop2): check_lrus... done [ 136.280664][ T6472] bcachefs (loop2): check_btree_backpointers... done [ 136.281984][ T6472] bcachefs (loop2): check_backpointers_to_extents... done ) = 18 [pid 6648] memfd_create("syzkaller", 0) = 3 [pid 6648] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 136.286030][ T6472] bcachefs (loop2): check_extents_to_backpointers... [ 136.287389][ T6472] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 136.290525][ T6472] done [ 136.291232][ T6472] bcachefs (loop2): check_alloc_to_lru_refs... [ 136.293142][ T6472] bcachefs (loop2): missing fragmentation lru entry [ 136.293159][ T6472] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 136.293171][ T6472] gen 0 oldest_gen 0 data_type user [ 136.293182][ T6472] journal_seq_nonempty 5 [ 136.293192][ T6472] journal_seq_empty 134217728 [ 136.293203][ T6472] need_discard 1 [ 136.293214][ T6472] need_inc_gen 1 [ 136.293225][ T6472] dirty_sectors 16 [ 136.293235][ T6472] stripe_sectors 1802251 [ 136.293245][ T6472] cached_sectors 0 [ 136.293255][ T6472] stripe 0 [ 136.293265][ T6472] stripe_redundancy 0 [ 136.293275][ T6472] io_time[READ] 1 [ 136.293285][ T6472] io_time[WRITE] 512 [ 136.293295][ T6472] fragmentation 0 [ 136.293306][ T6472] bp_start 7 [ 136.293316][ T6472] , fixing [ 136.295343][ T6472] done [ 136.296865][ T6472] bcachefs (loop2): bucket_gens_init... done [ 136.298902][ T6472] bcachefs (loop2): check_snapshot_trees... done [ 136.302891][ T6472] bcachefs (loop2): check_snapshots... [ 136.303472][ T6472] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 136.303490][ T6472] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 136.314394][ T6472] done [ 136.315167][ T6472] bcachefs (loop2): check_subvols... done [ 136.317266][ T6472] bcachefs (loop2): check_subvol_children... done [ 136.318107][ T6472] bcachefs (loop2): delete_dead_snapshots... done [ 136.318839][ T6472] bcachefs (loop2): check_inodes... [ 136.320562][ T6472] bcachefs (loop2): inode points to missing dirent [ 136.320579][ T6472] inum: 4098:4294967295 [ 136.320590][ T6472] mode=40755 [ 136.320601][ T6472] flags=(15300000) [ 136.320610][ T6472] journal_seq=4 [ 136.320620][ T6472] hash_seed=ece93825deac2443 [ 136.320630][ T6472] hash_type=siphash [ 136.320640][ T6472] bi_size=0 [ 136.320649][ T6472] bi_sectors=0 [ 136.320659][ T6472] bi_version=0 [ 136.320668][ T6472] bi_atime=2770562249 [ 136.320685][ T6472] bi_ctime=2780562352 [ 136.320695][ T6472] bi_mtime=2780562352 [ 136.320705][ T6472] bi_otime=2770562249 [ 136.320715][ T6472] bi_uid=0 [ 136.320724][ T6472] bi_gid=0 [ 136.320733][ T6472] bi_nlink=0 [ 136.320743][ T6472] bi_generation=0 [ 136.320752][ T6472] bi_dev=0 [pid 6648] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 136.320761][ T6472] bi_data_checksum=0 [ 136.320771][ T6472] bi_compression=0 [ 136.320781][ T6472] bi_project=0 [ 136.320790][ T6472] bi_background_compression=0 [ 136.320800][ T6472] bi_data_replicas=0 [ 136.320812][ T6472] bi_promote_target=0 [ 136.320822][ T6472] bi_foreground_target=64 [ 136.320831][ T6472] bi_background_target=1 [ 136.320842][ T6472] bi_erasure_code=0 [ 136.320851][ T6472] bi_fields_set=0 [ 136.320861][ T6472] bi_dir=0 [ 136.320869][ T6472] bi_dir_offset=32 [pid 6648] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6648] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6648] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6648] close(3) = 0 [pid 6648] close(4) = 0 [pid 6648] mkdir("./file1", 0777) = 0 [ 136.320879][ T6472] bi_subvol=0 [ 136.320889][ T6472] bi_parent_subvol=0 [ 136.320898][ T6472] bi_nocow=0 [ 136.320908][ T6472] bi_depth=0 [ 136.320917][ T6472] bi_inodes_32bit=0 [ 136.320927][ T6472] bi_casefold=0, fixing [ 136.322602][ T6472] done [ 136.323295][ T6472] bcachefs (loop2): check_extents... done [ 136.324802][ T6472] bcachefs (loop2): check_indirect_extents... done [ 136.325491][ T6472] bcachefs (loop2): check_dirents... [ 136.327743][ T6472] bcachefs (loop2): directory with missing backpointer [ 136.327761][ T6472] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 136.327776][ T6472] inum: 4098:4294967295 [ 136.327786][ T6472] mode=40755 [ 136.327796][ T6472] flags=(11300000) [ 136.327806][ T6472] journal_seq=22 [ 136.327815][ T6472] hash_seed=ece93825deac2443 [ 136.327826][ T6472] hash_type=siphash [ 136.327835][ T6472] bi_size=0 [ 136.327845][ T6472] bi_sectors=0 [ 136.327856][ T6472] bi_version=0 [ 136.327865][ T6472] bi_atime=2770562249 [ 136.327875][ T6472] bi_ctime=2780562352 [ 136.327884][ T6472] bi_mtime=2780562352 [ 136.327894][ T6472] bi_otime=2770562249 [ 136.327903][ T6472] bi_uid=0 [ 136.327911][ T6472] bi_gid=0 [ 136.327920][ T6472] bi_nlink=0 [ 136.327929][ T6472] bi_generation=0 [ 136.327939][ T6472] bi_dev=0 [ 136.327948][ T6472] bi_data_checksum=0 [ 136.327957][ T6472] bi_compression=0 [ 136.327968][ T6472] bi_project=0 [ 136.327977][ T6472] bi_background_compression=0 [ 136.327988][ T6472] bi_data_replicas=0 [ 136.327997][ T6472] bi_promote_target=0 [ 136.328007][ T6472] bi_foreground_target=64 [ 136.328017][ T6472] bi_background_target=1 [ 136.328027][ T6472] bi_erasure_code=0 [ 136.328036][ T6472] bi_fields_set=0 [ 136.328045][ T6472] bi_dir=0 [ 136.328054][ T6472] bi_dir_offset=0 [ 136.328063][ T6472] bi_subvol=0 [ 136.328072][ T6472] bi_parent_subvol=0 [ 136.328082][ T6472] bi_nocow=0 [ 136.328092][ T6472] bi_depth=0 [ 136.328101][ T6472] bi_inodes_32bit=0 [ 136.328110][ T6472] bi_casefold=0, fixing [ 136.333711][ T6472] done [ 136.334312][ T6472] bcachefs (loop2): check_xattrs... done [ 136.335397][ T6472] bcachefs (loop2): check_root... done [ 136.337891][ T6472] bcachefs (loop2): check_unreachable_inodes... done [ 136.339777][ T6472] bcachefs (loop2): check_subvolume_structure... done [ 136.341611][ T6472] bcachefs (loop2): check_directory_structure... done [ 136.343159][ T6472] bcachefs (loop2): check_nlinks... [ 136.343868][ T6472] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 136.346022][ T6472] done [ 136.346692][ T6472] bcachefs (loop2): check_rebalance_work... done [ 136.348413][ T6472] bcachefs (loop2): resume_logged_ops... done [ 136.349622][ T6472] bcachefs (loop2): delete_dead_inodes... done [ 136.357778][ T6472] bcachefs (loop2): set_fs_needs_rebalance... [ 136.368099][ T6481] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 136.368124][ T6481] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 136.369975][ T6472] done [ 136.370680][ T6472] bcachefs (loop2): check_extents_to_backpointers... [ 136.371654][ T6472] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 136.380455][ T6472] done [ 136.392066][ T6472] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 136.392089][ T6472] bcachefs (loop2): check_alloc_info... done [ 136.401464][ T6472] bcachefs (loop2): check_lrus... done [ 136.402944][ T6472] bcachefs (loop2): check_btree_backpointers... done [ 136.404197][ T6472] bcachefs (loop2): check_backpointers_to_extents... done [ 136.410350][ T6472] bcachefs (loop2): check_extents_to_backpointers... done [ 136.412365][ T6472] bcachefs (loop2): check_alloc_to_lru_refs... done [ 136.414924][ T6472] bcachefs (loop2): bucket_gens_init... done [ 136.421091][ T6472] bcachefs (loop2): check_snapshot_trees... done [ 136.422205][ T6472] bcachefs (loop2): check_snapshots... done [ 136.422993][ T6472] bcachefs (loop2): check_subvols... done [ 136.424891][ T6472] bcachefs (loop2): check_subvol_children... done [ 136.430451][ T6472] bcachefs (loop2): delete_dead_snapshots... done [ 136.431154][ T6472] bcachefs (loop2): check_inodes... done [ 136.432296][ T6472] bcachefs (loop2): check_extents... done [ 136.435203][ T6472] bcachefs (loop2): check_indirect_extents... done [ 136.436150][ T6472] bcachefs (loop2): check_dirents... done [ 136.440192][ T6472] bcachefs (loop2): check_xattrs... done [ 136.441283][ T6472] bcachefs (loop2): check_root... done [ 136.442078][ T6472] bcachefs (loop2): check_unreachable_inodes... done [pid 6648] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6648] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 136.446794][ T6472] bcachefs (loop2): check_subvolume_structure... done [ 136.447502][ T6472] bcachefs (loop2): check_directory_structure... done [ 136.448234][ T6472] bcachefs (loop2): check_nlinks... done [ 136.457258][ T6472] bcachefs (loop2): check_rebalance_work... done [ 136.458077][ T6472] bcachefs (loop2): resume_logged_ops... done [ 136.458801][ T6472] bcachefs (loop2): delete_dead_inodes... done [ 136.460019][ T6472] bcachefs (loop2): set_fs_needs_rebalance... done [ 136.462986][ T6472] bcachefs (loop2): done starting filesystem [pid 6648] chdir("./file1") = 0 [pid 6648] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6648] ioctl(4, LOOP_CLR_FD) = 0 [pid 6648] close(4) = 0 [pid 6648] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6648] exit_group(0) = ? [pid 6648] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6648, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] umount2("./35", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./35", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 136.550262][ T5839] bcachefs (loop2): shutting down [ 136.550282][ T5839] bcachefs (loop2): going read-only [ 136.550537][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 136.596066][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 136.596883][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 136.597784][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 136.599669][ T5839] bcachefs (loop2): marking filesystem clean [ 136.660584][ T5839] bcachefs (loop2): shutdown complete [ 137.401351][ T6483] loop2: detected capacity change from 0 to 32768 [ 137.529051][ T6483] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 137.529079][ T6483] allowing incompatible features above 0.0: (unknown version) [ 137.529092][ T6483] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 137.529119][ T6483] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 137.531647][ T6483] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 137.531900][ T6483] bcachefs (loop2): Version upgrade required: [ 137.531900][ T6483] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 137.531900][ T6483] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 137.531900][ T6483] 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,check_rebalance_work,set_fs_needs_rebalance [ 137.551042][ T6483] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 137.551068][ T6483] size != 0, deleting [ 137.552246][ T6483] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 137.555554][ T6483] bcachefs (loop2): check_topology... done [ 137.557447][ T6483] bcachefs (loop2): accounting_read... done [ 137.650502][ T6483] bcachefs (loop2): alloc_read... done [ 137.651452][ T6483] bcachefs (loop2): snapshots_read... done [ 137.652356][ T6483] bcachefs (loop2): check_allocations... [ 137.654216][ T6483] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 137.654235][ T6483] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 137.656181][ T6483] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 137.656196][ T6483] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 137.657554][ T6483] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 137.657571][ T6483] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 137.659166][ T6483] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 137.659184][ T6483] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 137.664334][ T6483] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 137.664354][ T6483] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 137.665304][ T6483] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.665447][ T6483] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 137.665996][ T6483] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.666103][ T6483] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 137.666487][ T6483] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.666596][ T6483] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 137.666797][ T6483] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.666901][ T6483] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] umount2("./35/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./35/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 137.667092][ T6483] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.667193][ T6483] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 137.667388][ T6483] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.667491][ T6483] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] newfstatat(AT_FDCWD, "./35/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./35/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./35/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./35/file1") = 0 [pid 5839] umount2("./35/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./35/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./35/binderfs") = 0 [ 137.667692][ T6483] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.667794][ T6483] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 137.667994][ T6483] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 137.668095][ T6483] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 137.668285][ T6483] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./35") = 0 [pid 5839] mkdir("./36", 0777) = 0 [ 137.668385][ T6483] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 137.668616][ T6483] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 137.668741][ T6483] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 137.668977][ T6483] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 137.668993][ T6483] Ratelimiting new instances of previous error [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6659 ./strace-static-x86_64: Process 6659 attached [ 137.669121][ T6483] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 137.669136][ T6483] Ratelimiting new instances of previous error [ 137.683594][ T6483] done [ 137.686220][ T6483] bcachefs (loop2): going read-write [ 137.692211][ T6483] bcachefs (loop2): journal_replay... done [ 137.719705][ T6483] bcachefs (loop2): check_alloc_info... [ 137.721473][ T6483] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 137.721491][ T6483] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [pid 6659] set_robust_list(0x5555901c6760, 24) = 0 [pid 6659] chdir("./36") = 0 [pid 6659] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6659] setpgid(0, 0) = 0 [pid 6659] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6659] write(3, "1000", 4) = 4 [pid 6659] close(3) = 0 [pid 6659] symlink("/dev/binderfs", "./binderfs") = 0 [ 137.721502][ T6483] gen 0 oldest_gen 0 data_type need_discard [ 137.721515][ T6483] journal_seq_nonempty 6 [ 137.721525][ T6483] journal_seq_empty 0 [ 137.721535][ T6483] need_discard 1 [ 137.721545][ T6483] need_inc_gen 1 [ 137.721567][ T6483] dirty_sectors 0 [ 137.721577][ T6483] stripe_sectors 0 [ 137.721587][ T6483] cached_sectors 0 [ 137.721596][ T6483] stripe 0 [ 137.721606][ T6483] stripe_redundancy 0 [ 137.721618][ T6483] io_time[READ] 1 [pid 6659] write(1, "executing program\n", 18executing program ) = 18 [pid 6659] memfd_create("syzkaller", 0) = 3 [pid 6659] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 137.721627][ T6483] io_time[WRITE] 768 [ 137.721637][ T6483] fragmentation 0 [ 137.721647][ T6483] bp_start 8 [ 137.721657][ T6483] , fixing [ 137.738346][ T6483] done [ 137.744887][ T6483] bcachefs (loop2): check_lrus... done [ 137.745846][ T6483] bcachefs (loop2): check_btree_backpointers... done [ 137.747160][ T6483] bcachefs (loop2): check_backpointers_to_extents... done [ 137.752593][ T6483] bcachefs (loop2): check_extents_to_backpointers... [ 137.754006][ T6483] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 137.755467][ T6483] done [ 137.756119][ T6483] bcachefs (loop2): check_alloc_to_lru_refs... [ 137.757981][ T6483] bcachefs (loop2): missing fragmentation lru entry [ 137.757997][ T6483] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 137.758010][ T6483] gen 0 oldest_gen 0 data_type user [ 137.758021][ T6483] journal_seq_nonempty 5 [ 137.758031][ T6483] journal_seq_empty 134217728 [ 137.758041][ T6483] need_discard 1 [ 137.758050][ T6483] need_inc_gen 1 [ 137.758060][ T6483] dirty_sectors 16 [ 137.758071][ T6483] stripe_sectors 1802251 [ 137.758081][ T6483] cached_sectors 0 [ 137.758091][ T6483] stripe 0 [ 137.758101][ T6483] stripe_redundancy 0 [ 137.758110][ T6483] io_time[READ] 1 [ 137.758120][ T6483] io_time[WRITE] 512 [ 137.758130][ T6483] fragmentation 0 [ 137.758140][ T6483] bp_start 7 [ 137.758149][ T6483] , fixing [ 137.762336][ T6483] done [ 137.763839][ T6483] bcachefs (loop2): bucket_gens_init... done [ 137.765911][ T6483] bcachefs (loop2): check_snapshot_trees... done [ 137.766695][ T6483] bcachefs (loop2): check_snapshots... [ 137.767255][ T6483] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 137.767271][ T6483] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 137.778148][ T6483] done [ 137.778862][ T6483] bcachefs (loop2): check_subvols... done [ 137.781691][ T6483] bcachefs (loop2): check_subvol_children... done [ 137.782642][ T6483] bcachefs (loop2): delete_dead_snapshots... done [ 137.783893][ T6483] bcachefs (loop2): check_inodes... [ 137.784993][ T6483] bcachefs (loop2): inode points to missing dirent [ 137.785010][ T6483] inum: 4098:4294967295 [ 137.785020][ T6483] mode=40755 [ 137.785030][ T6483] flags=(15300000) [ 137.785040][ T6483] journal_seq=4 [ 137.785049][ T6483] hash_seed=ece93825deac2443 [ 137.785061][ T6483] hash_type=siphash [ 137.785070][ T6483] bi_size=0 [ 137.785079][ T6483] bi_sectors=0 [ 137.785089][ T6483] bi_version=0 [ 137.785099][ T6483] bi_atime=2770562249 [ 137.785109][ T6483] bi_ctime=2780562352 [ 137.785118][ T6483] bi_mtime=2780562352 [ 137.785128][ T6483] bi_otime=2770562249 [ 137.785138][ T6483] bi_uid=0 [ 137.785147][ T6483] bi_gid=0 [ 137.785156][ T6483] bi_nlink=0 [ 137.785165][ T6483] bi_generation=0 [ 137.785175][ T6483] bi_dev=0 [ 137.785184][ T6483] bi_data_checksum=0 [ 137.785194][ T6483] bi_compression=0 [pid 6659] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6659] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6659] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6659] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6659] close(3) = 0 [pid 6659] close(4) = 0 [pid 6659] mkdir("./file1", 0777) = 0 [ 137.785203][ T6483] bi_project=0 [ 137.785213][ T6483] bi_background_compression=0 [ 137.785223][ T6483] bi_data_replicas=0 [ 137.785233][ T6483] bi_promote_target=0 [ 137.785242][ T6483] bi_foreground_target=64 [ 137.785254][ T6483] bi_background_target=1 [ 137.785264][ T6483] bi_erasure_code=0 [ 137.785274][ T6483] bi_fields_set=0 [ 137.785284][ T6483] bi_dir=0 [ 137.785293][ T6483] bi_dir_offset=32 [ 137.785301][ T6483] bi_subvol=0 [ 137.785310][ T6483] bi_parent_subvol=0 [ 137.785320][ T6483] bi_nocow=0 [ 137.785329][ T6483] bi_depth=0 [ 137.785338][ T6483] bi_inodes_32bit=0 [ 137.785348][ T6483] bi_casefold=0, fixing [ 137.786977][ T6483] done [ 137.787648][ T6483] bcachefs (loop2): check_extents... done [ 137.789087][ T6483] bcachefs (loop2): check_indirect_extents... done [ 137.794383][ T6483] bcachefs (loop2): check_dirents... [ 137.796173][ T6483] bcachefs (loop2): directory with missing backpointer [ 137.796189][ T6483] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 137.796205][ T6483] inum: 4098:4294967295 [ 137.796215][ T6483] mode=40755 [ 137.796224][ T6483] flags=(11300000) [ 137.796234][ T6483] journal_seq=22 [ 137.796244][ T6483] hash_seed=ece93825deac2443 [ 137.796254][ T6483] hash_type=siphash [ 137.796264][ T6483] bi_size=0 [ 137.796273][ T6483] bi_sectors=0 [ 137.796282][ T6483] bi_version=0 [ 137.796291][ T6483] bi_atime=2770562249 [ 137.796299][ T6483] bi_ctime=2780562352 [ 137.796308][ T6483] bi_mtime=2780562352 [ 137.796318][ T6483] bi_otime=2770562249 [ 137.796327][ T6483] bi_uid=0 [ 137.796336][ T6483] bi_gid=0 [ 137.796345][ T6483] bi_nlink=0 [ 137.796354][ T6483] bi_generation=0 [ 137.796363][ T6483] bi_dev=0 [ 137.796372][ T6483] bi_data_checksum=0 [ 137.796382][ T6483] bi_compression=0 [ 137.796391][ T6483] bi_project=0 [ 137.796400][ T6483] bi_background_compression=0 [ 137.796410][ T6483] bi_data_replicas=0 [ 137.796420][ T6483] bi_promote_target=0 [ 137.796429][ T6483] bi_foreground_target=64 [ 137.796439][ T6483] bi_background_target=1 [ 137.796448][ T6483] bi_erasure_code=0 [ 137.796458][ T6483] bi_fields_set=0 [ 137.796470][ T6483] bi_dir=0 [ 137.796479][ T6483] bi_dir_offset=0 [ 137.796488][ T6483] bi_subvol=0 [ 137.796498][ T6483] bi_parent_subvol=0 [ 137.796507][ T6483] bi_nocow=0 [ 137.796516][ T6483] bi_depth=0 [ 137.796526][ T6483] bi_inodes_32bit=0 [ 137.796536][ T6483] bi_casefold=0, fixing [ 137.802812][ T6483] done [ 137.803518][ T6483] bcachefs (loop2): check_xattrs... done [ 137.805311][ T6483] bcachefs (loop2): check_root... done [ 137.806509][ T6483] bcachefs (loop2): check_unreachable_inodes... done [ 137.807554][ T6483] bcachefs (loop2): check_subvolume_structure... done [ 137.808379][ T6483] bcachefs (loop2): check_directory_structure... done [ 137.810068][ T6483] bcachefs (loop2): check_nlinks... [ 137.810789][ T6483] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 137.811801][ T6483] done [ 137.812389][ T6483] bcachefs (loop2): check_rebalance_work... done [ 137.813483][ T6483] bcachefs (loop2): resume_logged_ops... done [ 137.814149][ T6483] bcachefs (loop2): delete_dead_inodes... done [ 137.823469][ T6483] bcachefs (loop2): set_fs_needs_rebalance... [ 137.832080][ T6492] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 137.832105][ T6492] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 137.835318][ T6483] done [ 137.836421][ T6483] bcachefs (loop2): check_extents_to_backpointers... [ 137.837381][ T6483] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 137.850191][ T6483] done [ 137.859119][ T6483] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 137.859145][ T6483] bcachefs (loop2): check_alloc_info... done [ 137.874334][ T6483] bcachefs (loop2): check_lrus... done [ 137.875427][ T6483] bcachefs (loop2): check_btree_backpointers... done [ 137.876614][ T6483] bcachefs (loop2): check_backpointers_to_extents... done [ 137.878008][ T6483] bcachefs (loop2): check_extents_to_backpointers... done [ 137.879750][ T6483] bcachefs (loop2): check_alloc_to_lru_refs... done [ 137.882489][ T6483] bcachefs (loop2): bucket_gens_init... done [ 137.891770][ T6483] bcachefs (loop2): check_snapshot_trees... done [ 137.892966][ T6483] bcachefs (loop2): check_snapshots... done [ 137.893812][ T6483] bcachefs (loop2): check_subvols... done [ 137.894570][ T6483] bcachefs (loop2): check_subvol_children... done [ 137.900363][ T6483] bcachefs (loop2): delete_dead_snapshots... done [pid 6659] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 137.901112][ T6483] bcachefs (loop2): check_inodes... done [ 137.902188][ T6483] bcachefs (loop2): check_extents... done [ 137.903725][ T6483] bcachefs (loop2): check_indirect_extents... done [ 137.904473][ T6483] bcachefs (loop2): check_dirents... done [ 137.910804][ T6483] bcachefs (loop2): check_xattrs... done [ 137.911911][ T6483] bcachefs (loop2): check_root... done [ 137.912694][ T6483] bcachefs (loop2): check_unreachable_inodes... done [ 137.916370][ T6483] bcachefs (loop2): check_subvolume_structure... done [pid 6659] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6659] chdir("./file1") = 0 [pid 6659] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6659] ioctl(4, LOOP_CLR_FD) = 0 [pid 6659] close(4) = 0 [pid 6659] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6659] exit_group(0) = ? [pid 6659] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6659, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./36", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./36", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 137.917137][ T6483] bcachefs (loop2): check_directory_structure... done [ 137.917851][ T6483] bcachefs (loop2): check_nlinks... done [ 137.920637][ T6483] bcachefs (loop2): check_rebalance_work... done [ 137.923981][ T6483] bcachefs (loop2): resume_logged_ops... done [ 137.924690][ T6483] bcachefs (loop2): delete_dead_inodes... done [ 137.925445][ T6483] bcachefs (loop2): set_fs_needs_rebalance... done [ 137.932473][ T6483] bcachefs (loop2): done starting filesystem [ 137.987505][ T5839] bcachefs (loop2): shutting down [ 137.987523][ T5839] bcachefs (loop2): going read-only [ 137.987550][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 138.030895][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 138.031658][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 138.032581][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 138.034401][ T5839] bcachefs (loop2): marking filesystem clean [ 138.094798][ T5839] bcachefs (loop2): shutdown complete [ 138.974278][ T6494] loop2: detected capacity change from 0 to 32768 [ 139.131825][ T6494] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 139.131856][ T6494] allowing incompatible features above 0.0: (unknown version) [ 139.131868][ T6494] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 139.131896][ T6494] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 139.132054][ T6494] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 139.132293][ T6494] bcachefs (loop2): Version upgrade required: [ 139.132293][ T6494] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 139.132293][ T6494] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 139.132293][ T6494] 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,check_rebalance_work,set_fs_needs_rebalance [ 139.159654][ T6494] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 139.159678][ T6494] size != 0, deleting [ 139.161526][ T6494] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 139.171978][ T6494] bcachefs (loop2): check_topology... done [ 139.178660][ T6494] bcachefs (loop2): accounting_read... done [ 139.221020][ T6494] bcachefs (loop2): alloc_read... done [ 139.221860][ T6494] bcachefs (loop2): snapshots_read... done [ 139.222626][ T6494] bcachefs (loop2): check_allocations... [ 139.224850][ T6494] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 139.224871][ T6494] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 139.226899][ T6494] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 139.226917][ T6494] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 139.228316][ T6494] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 139.228335][ T6494] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 139.231601][ T6494] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 139.231620][ T6494] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 139.234049][ T6494] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 139.234068][ T6494] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 139.235506][ T6494] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 139.235639][ T6494] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 139.236189][ T6494] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 139.236297][ T6494] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] umount2("./36/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./36/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./36/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./36/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./36/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 139.236714][ T6494] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 139.236820][ T6494] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 139.237028][ T6494] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 139.237132][ T6494] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 139.237343][ T6494] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./36/file1") = 0 [pid 5839] umount2("./36/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./36/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./36/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./36") = 0 [pid 5839] mkdir("./37", 0777) = 0 [ 139.237456][ T6494] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 139.237659][ T6494] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 139.237765][ T6494] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 139.237965][ T6494] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6670 ./strace-static-x86_64: Process 6670 attached [ 139.238071][ T6494] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 139.238267][ T6494] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 139.238374][ T6494] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 139.238589][ T6494] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 139.238695][ T6494] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6670] set_robust_list(0x5555901c6760, 24) = 0 [pid 6670] chdir("./37") = 0 [pid 6670] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6670] setpgid(0, 0) = 0 [pid 6670] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 139.238909][ T6494] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 139.239014][ T6494] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 139.239684][ T6494] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 139.239705][ T6494] Ratelimiting new instances of previous error [ 139.239857][ T6494] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 6670] write(3, "1000", 4) = 4 [pid 6670] close(3) = 0 [pid 6670] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6670] write(1, "executing program\n", 18executing program ) = 18 [ 139.239874][ T6494] Ratelimiting new instances of previous error [ 139.254547][ T6494] done [ 139.256695][ T6494] bcachefs (loop2): going read-write [ 139.263166][ T6494] bcachefs (loop2): journal_replay... done [ 139.290540][ T6494] bcachefs (loop2): check_alloc_info... [ 139.292848][ T6494] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 139.292868][ T6494] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 139.292881][ T6494] gen 0 oldest_gen 0 data_type need_discard [ 139.292892][ T6494] journal_seq_nonempty 6 [ 139.292902][ T6494] journal_seq_empty 0 [pid 6670] memfd_create("syzkaller", 0) = 3 [pid 6670] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 139.292912][ T6494] need_discard 1 [ 139.292922][ T6494] need_inc_gen 1 [ 139.292934][ T6494] dirty_sectors 0 [ 139.292944][ T6494] stripe_sectors 0 [ 139.292954][ T6494] cached_sectors 0 [ 139.292964][ T6494] stripe 0 [ 139.292974][ T6494] stripe_redundancy 0 [ 139.292985][ T6494] io_time[READ] 1 [ 139.292997][ T6494] io_time[WRITE] 768 [ 139.293007][ T6494] fragmentation 0 [ 139.293017][ T6494] bp_start 8 [ 139.293027][ T6494] , fixing [ 139.310012][ T6494] done [ 139.313673][ T6494] bcachefs (loop2): check_lrus... done [ 139.314610][ T6494] bcachefs (loop2): check_btree_backpointers... done [ 139.318629][ T6494] bcachefs (loop2): check_backpointers_to_extents... done [ 139.324383][ T6494] bcachefs (loop2): check_extents_to_backpointers... [ 139.325780][ T6494] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 139.327190][ T6494] done [ 139.327871][ T6494] bcachefs (loop2): check_alloc_to_lru_refs... [ 139.330394][ T6494] bcachefs (loop2): missing fragmentation lru entry [ 139.330422][ T6494] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 139.330434][ T6494] gen 0 oldest_gen 0 data_type user [ 139.330446][ T6494] journal_seq_nonempty 5 [ 139.330457][ T6494] journal_seq_empty 134217728 [ 139.330468][ T6494] need_discard 1 [ 139.330478][ T6494] need_inc_gen 1 [ 139.330488][ T6494] dirty_sectors 16 [ 139.330498][ T6494] stripe_sectors 1802251 [ 139.330510][ T6494] cached_sectors 0 [ 139.330520][ T6494] stripe 0 [ 139.330530][ T6494] stripe_redundancy 0 [ 139.330540][ T6494] io_time[READ] 1 [ 139.330550][ T6494] io_time[WRITE] 512 [ 139.330560][ T6494] fragmentation 0 [ 139.330570][ T6494] bp_start 7 [ 139.330580][ T6494] , fixing [ 139.332166][ T6494] done [ 139.333652][ T6494] bcachefs (loop2): bucket_gens_init... done [ 139.336348][ T6494] bcachefs (loop2): check_snapshot_trees... done [ 139.337192][ T6494] bcachefs (loop2): check_snapshots... [ 139.337819][ T6494] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 139.337836][ T6494] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 139.351213][ T6494] done [ 139.351939][ T6494] bcachefs (loop2): check_subvols... done [ 139.353609][ T6494] bcachefs (loop2): check_subvol_children... done [ 139.354453][ T6494] bcachefs (loop2): delete_dead_snapshots... done [ 139.355228][ T6494] bcachefs (loop2): check_inodes... [pid 6670] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6670] munmap(0x7fbbeb93a000, 138412032) = 0 [ 139.356805][ T6494] bcachefs (loop2): inode points to missing dirent [ 139.356822][ T6494] inum: 4098:4294967295 [ 139.356832][ T6494] mode=40755 [ 139.356842][ T6494] flags=(15300000) [ 139.356852][ T6494] journal_seq=4 [ 139.356863][ T6494] hash_seed=ece93825deac2443 [ 139.356873][ T6494] hash_type=siphash [ 139.356883][ T6494] bi_size=0 [ 139.356892][ T6494] bi_sectors=0 [ 139.356901][ T6494] bi_version=0 [ 139.356910][ T6494] bi_atime=2770562249 [ 139.356919][ T6494] bi_ctime=2780562352 [pid 6670] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6670] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6670] close(3) = 0 [pid 6670] close(4) = 0 [pid 6670] mkdir("./file1", 0777) = 0 [ 139.356929][ T6494] bi_mtime=2780562352 [ 139.356939][ T6494] bi_otime=2770562249 [ 139.356948][ T6494] bi_uid=0 [ 139.356957][ T6494] bi_gid=0 [ 139.356966][ T6494] bi_nlink=0 [ 139.356975][ T6494] bi_generation=0 [ 139.356984][ T6494] bi_dev=0 [ 139.356993][ T6494] bi_data_checksum=0 [ 139.357003][ T6494] bi_compression=0 [ 139.357012][ T6494] bi_project=0 [ 139.357021][ T6494] bi_background_compression=0 [ 139.357031][ T6494] bi_data_replicas=0 [ 139.357041][ T6494] bi_promote_target=0 [ 139.357050][ T6494] bi_foreground_target=64 [ 139.357060][ T6494] bi_background_target=1 [ 139.357070][ T6494] bi_erasure_code=0 [ 139.357079][ T6494] bi_fields_set=0 [ 139.357089][ T6494] bi_dir=0 [ 139.357097][ T6494] bi_dir_offset=32 [ 139.357107][ T6494] bi_subvol=0 [ 139.357117][ T6494] bi_parent_subvol=0 [ 139.357126][ T6494] bi_nocow=0 [ 139.357135][ T6494] bi_depth=0 [ 139.357145][ T6494] bi_inodes_32bit=0 [ 139.357154][ T6494] bi_casefold=0, fixing [ 139.358793][ T6494] done [ 139.359944][ T6494] bcachefs (loop2): check_extents... done [ 139.363361][ T6494] bcachefs (loop2): check_indirect_extents... done [ 139.365809][ T6494] bcachefs (loop2): check_dirents... [ 139.368025][ T6494] bcachefs (loop2): directory with missing backpointer [ 139.368042][ T6494] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 139.368056][ T6494] inum: 4098:4294967295 [ 139.368066][ T6494] mode=40755 [ 139.368078][ T6494] flags=(11300000) [ 139.368088][ T6494] journal_seq=22 [ 139.368097][ T6494] hash_seed=ece93825deac2443 [ 139.368107][ T6494] hash_type=siphash [ 139.368117][ T6494] bi_size=0 [ 139.368127][ T6494] bi_sectors=0 [ 139.368135][ T6494] bi_version=0 [ 139.368145][ T6494] bi_atime=2770562249 [ 139.368153][ T6494] bi_ctime=2780562352 [ 139.368163][ T6494] bi_mtime=2780562352 [ 139.368173][ T6494] bi_otime=2770562249 [ 139.368182][ T6494] bi_uid=0 [ 139.368192][ T6494] bi_gid=0 [ 139.368201][ T6494] bi_nlink=0 [ 139.368210][ T6494] bi_generation=0 [ 139.368219][ T6494] bi_dev=0 [ 139.368228][ T6494] bi_data_checksum=0 [ 139.368237][ T6494] bi_compression=0 [ 139.368247][ T6494] bi_project=0 [ 139.368256][ T6494] bi_background_compression=0 [ 139.368268][ T6494] bi_data_replicas=0 [ 139.368277][ T6494] bi_promote_target=0 [ 139.368287][ T6494] bi_foreground_target=64 [ 139.368297][ T6494] bi_background_target=1 [ 139.368307][ T6494] bi_erasure_code=0 [ 139.368316][ T6494] bi_fields_set=0 [ 139.368325][ T6494] bi_dir=0 [ 139.368335][ T6494] bi_dir_offset=0 [ 139.368344][ T6494] bi_subvol=0 [ 139.368353][ T6494] bi_parent_subvol=0 [ 139.368363][ T6494] bi_nocow=0 [ 139.368372][ T6494] bi_depth=0 [ 139.368381][ T6494] bi_inodes_32bit=0 [ 139.368391][ T6494] bi_casefold=0, fixing [ 139.372790][ T6494] done [ 139.373486][ T6494] bcachefs (loop2): check_xattrs... done [ 139.376176][ T6494] bcachefs (loop2): check_root... done [ 139.377844][ T6494] bcachefs (loop2): check_unreachable_inodes... done [ 139.378846][ T6494] bcachefs (loop2): check_subvolume_structure... done [ 139.380129][ T6494] bcachefs (loop2): check_directory_structure... done [ 139.380967][ T6494] bcachefs (loop2): check_nlinks... [ 139.381707][ T6494] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 139.382768][ T6494] done [ 139.383464][ T6494] bcachefs (loop2): check_rebalance_work... done [ 139.384661][ T6494] bcachefs (loop2): resume_logged_ops... done [ 139.385413][ T6494] bcachefs (loop2): delete_dead_inodes... done [ 139.394947][ T6494] bcachefs (loop2): set_fs_needs_rebalance... [ 139.403434][ T6503] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 139.403458][ T6503] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 139.407128][ T6494] done [ 139.407727][ T6494] bcachefs (loop2): check_extents_to_backpointers... [ 139.408833][ T6494] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 139.415202][ T6494] done [ 139.431866][ T6494] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 139.431894][ T6494] bcachefs (loop2): check_alloc_info... done [ 139.439964][ T6494] bcachefs (loop2): check_lrus... done [ 139.441346][ T6494] bcachefs (loop2): check_btree_backpointers... done [ 139.442617][ T6494] bcachefs (loop2): check_backpointers_to_extents... done [ 139.447730][ T6494] bcachefs (loop2): check_extents_to_backpointers... done [ 139.458561][ T6494] bcachefs (loop2): check_alloc_to_lru_refs... done [ 139.461663][ T6494] bcachefs (loop2): bucket_gens_init... done [ 139.463638][ T6494] bcachefs (loop2): check_snapshot_trees... done [ 139.464914][ T6494] bcachefs (loop2): check_snapshots... done [ 139.465697][ T6494] bcachefs (loop2): check_subvols... done [ 139.466465][ T6494] bcachefs (loop2): check_subvol_children... done [ 139.467194][ T6494] bcachefs (loop2): delete_dead_snapshots... done [ 139.467879][ T6494] bcachefs (loop2): check_inodes... done [ 139.479704][ T6494] bcachefs (loop2): check_extents... done [pid 6670] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6670] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6670] chdir("./file1") = 0 [pid 6670] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6670] ioctl(4, LOOP_CLR_FD) = 0 [pid 6670] close(4) = 0 [pid 6670] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6670] exit_group(0) = ? [pid 6670] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6670, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./37", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./37", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 139.481447][ T6494] bcachefs (loop2): check_indirect_extents... done [ 139.482147][ T6494] bcachefs (loop2): check_dirents... done [ 139.483714][ T6494] bcachefs (loop2): check_xattrs... done [ 139.484726][ T6494] bcachefs (loop2): check_root... done [ 139.485476][ T6494] bcachefs (loop2): check_unreachable_inodes... done [ 139.486383][ T6494] bcachefs (loop2): check_subvolume_structure... done [ 139.487014][ T6494] bcachefs (loop2): check_directory_structure... done [ 139.487669][ T6494] bcachefs (loop2): check_nlinks... done [ 139.488858][ T6494] bcachefs (loop2): check_rebalance_work... done [ 139.499799][ T6494] bcachefs (loop2): resume_logged_ops... done [ 139.501001][ T6494] bcachefs (loop2): delete_dead_inodes... done [ 139.501753][ T6494] bcachefs (loop2): set_fs_needs_rebalance... done [ 139.504739][ T6494] bcachefs (loop2): done starting filesystem [ 139.529364][ T6494] syz-executor217 (6494) used greatest stack depth: 13672 bytes left [ 139.561163][ T5839] bcachefs (loop2): shutting down [ 139.561182][ T5839] bcachefs (loop2): going read-only [ 139.561211][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 139.602992][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 139.604113][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 139.604993][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 139.606740][ T5839] bcachefs (loop2): marking filesystem clean [ 139.663312][ T5839] bcachefs (loop2): shutdown complete [ 140.513227][ T6505] loop2: detected capacity change from 0 to 32768 [ 140.640213][ T6505] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 140.640240][ T6505] allowing incompatible features above 0.0: (unknown version) [ 140.640255][ T6505] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 140.640283][ T6505] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 140.640416][ T6505] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 140.640665][ T6505] bcachefs (loop2): Version upgrade required: [ 140.640665][ T6505] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 140.640665][ T6505] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 140.640665][ T6505] 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,check_rebalance_work,set_fs_needs_rebalance [ 140.660292][ T6505] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 140.660325][ T6505] size != 0, deleting [ 140.661483][ T6505] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 140.665213][ T6505] bcachefs (loop2): check_topology... done [ 140.666695][ T6505] bcachefs (loop2): accounting_read... done [ 140.690617][ T6505] bcachefs (loop2): alloc_read... done [ 140.691563][ T6505] bcachefs (loop2): snapshots_read... done [ 140.692461][ T6505] bcachefs (loop2): check_allocations... [ 140.694417][ T6505] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 140.694439][ T6505] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 140.696492][ T6505] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 140.696512][ T6505] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 140.697829][ T6505] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./37/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./37/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./37/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 140.697847][ T6505] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 140.700528][ T6505] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 140.700548][ T6505] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 140.704177][ T6505] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./37/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./37/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 140.704196][ T6505] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 140.705141][ T6505] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.705266][ T6505] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 140.705825][ T6505] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.705934][ T6505] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] close(4) = 0 [pid 5839] rmdir("./37/file1") = 0 [pid 5839] umount2("./37/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./37/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./37/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./37") = 0 [ 140.706466][ T6505] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.706575][ T6505] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 140.706779][ T6505] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.706884][ T6505] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 140.707077][ T6505] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] mkdir("./38", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6681 ./strace-static-x86_64: Process 6681 attached [pid 6681] set_robust_list(0x5555901c6760, 24) = 0 [pid 6681] chdir("./38") = 0 [pid 6681] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6681] setpgid(0, 0) = 0 [pid 6681] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6681] write(3, "1000", 4) = 4 [pid 6681] close(3) = 0 [pid 6681] symlink("/dev/binderfs", "./binderfs") = 0 [ 140.707179][ T6505] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 140.707398][ T6505] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.707506][ T6505] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 140.707717][ T6505] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.707823][ T6505] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing executing program [pid 6681] write(1, "executing program\n", 18) = 18 [pid 6681] memfd_create("syzkaller", 0) = 3 [pid 6681] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 140.708020][ T6505] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 140.708120][ T6505] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 140.708344][ T6505] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 140.708451][ T6505] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 140.708653][ T6505] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 140.708758][ T6505] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 140.708987][ T6505] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 140.709004][ T6505] Ratelimiting new instances of previous error [ 140.709131][ T6505] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 140.709148][ T6505] Ratelimiting new instances of previous error [ 140.725170][ T6505] done [ 140.727302][ T6505] bcachefs (loop2): going read-write [ 140.733076][ T6505] bcachefs (loop2): journal_replay... done [ 140.760545][ T6505] bcachefs (loop2): check_alloc_info... [ 140.762347][ T6505] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 140.762365][ T6505] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 140.762376][ T6505] gen 0 oldest_gen 0 data_type need_discard [ 140.762390][ T6505] journal_seq_nonempty 6 [ 140.762400][ T6505] journal_seq_empty 0 [ 140.762410][ T6505] need_discard 1 [ 140.762421][ T6505] need_inc_gen 1 [ 140.762431][ T6505] dirty_sectors 0 [ 140.762441][ T6505] stripe_sectors 0 [ 140.762453][ T6505] cached_sectors 0 [ 140.762463][ T6505] stripe 0 [ 140.762473][ T6505] stripe_redundancy 0 [ 140.762485][ T6505] io_time[READ] 1 [ 140.762495][ T6505] io_time[WRITE] 768 [ 140.762506][ T6505] fragmentation 0 [ 140.762517][ T6505] bp_start 8 [ 140.762528][ T6505] , fixing [ 140.780062][ T6505] done [ 140.785627][ T6505] bcachefs (loop2): check_lrus... done [ 140.786956][ T6505] bcachefs (loop2): check_btree_backpointers... done [ 140.788296][ T6505] bcachefs (loop2): check_backpointers_to_extents... done [ 140.793671][ T6505] bcachefs (loop2): check_extents_to_backpointers... [ 140.795047][ T6505] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 140.796452][ T6505] done [ 140.797629][ T6505] bcachefs (loop2): check_alloc_to_lru_refs... [pid 6681] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 140.800329][ T6505] bcachefs (loop2): missing fragmentation lru entry [ 140.800348][ T6505] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 140.800359][ T6505] gen 0 oldest_gen 0 data_type user [ 140.800371][ T6505] journal_seq_nonempty 5 [ 140.800381][ T6505] journal_seq_empty 134217728 [ 140.800393][ T6505] need_discard 1 [ 140.800404][ T6505] need_inc_gen 1 [ 140.800414][ T6505] dirty_sectors 16 [ 140.800424][ T6505] stripe_sectors 1802251 [ 140.800435][ T6505] cached_sectors 0 [pid 6681] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6681] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6681] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6681] close(3) = 0 [pid 6681] close(4) = 0 [pid 6681] mkdir("./file1", 0777) = 0 [ 140.800445][ T6505] stripe 0 [ 140.800456][ T6505] stripe_redundancy 0 [ 140.800466][ T6505] io_time[READ] 1 [ 140.800476][ T6505] io_time[WRITE] 512 [ 140.800486][ T6505] fragmentation 0 [ 140.800496][ T6505] bp_start 7 [ 140.800505][ T6505] , fixing [ 140.802056][ T6505] done [ 140.803565][ T6505] bcachefs (loop2): bucket_gens_init... done [ 140.805552][ T6505] bcachefs (loop2): check_snapshot_trees... done [ 140.806310][ T6505] bcachefs (loop2): check_snapshots... [ 140.806897][ T6505] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 140.806914][ T6505] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 140.820835][ T6505] done [ 140.821611][ T6505] bcachefs (loop2): check_subvols... done [ 140.823138][ T6505] bcachefs (loop2): check_subvol_children... done [ 140.824052][ T6505] bcachefs (loop2): delete_dead_snapshots... done [ 140.824848][ T6505] bcachefs (loop2): check_inodes... [ 140.825924][ T6505] bcachefs (loop2): inode points to missing dirent [ 140.825941][ T6505] inum: 4098:4294967295 [ 140.825951][ T6505] mode=40755 [ 140.825961][ T6505] flags=(15300000) [ 140.825971][ T6505] journal_seq=4 [ 140.825980][ T6505] hash_seed=ece93825deac2443 [ 140.825991][ T6505] hash_type=siphash [ 140.826001][ T6505] bi_size=0 [ 140.826010][ T6505] bi_sectors=0 [ 140.826019][ T6505] bi_version=0 [ 140.826029][ T6505] bi_atime=2770562249 [ 140.826038][ T6505] bi_ctime=2780562352 [ 140.826050][ T6505] bi_mtime=2780562352 [ 140.826060][ T6505] bi_otime=2770562249 [ 140.826069][ T6505] bi_uid=0 [ 140.826078][ T6505] bi_gid=0 [ 140.826087][ T6505] bi_nlink=0 [ 140.826096][ T6505] bi_generation=0 [ 140.826106][ T6505] bi_dev=0 [ 140.826115][ T6505] bi_data_checksum=0 [ 140.826125][ T6505] bi_compression=0 [ 140.826134][ T6505] bi_project=0 [ 140.826144][ T6505] bi_background_compression=0 [ 140.826154][ T6505] bi_data_replicas=0 [ 140.826164][ T6505] bi_promote_target=0 [ 140.826174][ T6505] bi_foreground_target=64 [ 140.826184][ T6505] bi_background_target=1 [ 140.826195][ T6505] bi_erasure_code=0 [ 140.826205][ T6505] bi_fields_set=0 [ 140.826214][ T6505] bi_dir=0 [ 140.826224][ T6505] bi_dir_offset=32 [ 140.826233][ T6505] bi_subvol=0 [ 140.826243][ T6505] bi_parent_subvol=0 [ 140.826253][ T6505] bi_nocow=0 [ 140.826262][ T6505] bi_depth=0 [ 140.826271][ T6505] bi_inodes_32bit=0 [ 140.826281][ T6505] bi_casefold=0, fixing [ 140.827892][ T6505] done [ 140.829055][ T6505] bcachefs (loop2): check_extents... done [ 140.835006][ T6505] bcachefs (loop2): check_indirect_extents... done [ 140.835833][ T6505] bcachefs (loop2): check_dirents... [ 140.837531][ T6505] bcachefs (loop2): directory with missing backpointer [ 140.837548][ T6505] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 140.837564][ T6505] inum: 4098:4294967295 [ 140.837574][ T6505] mode=40755 [ 140.837583][ T6505] flags=(11300000) [ 140.837593][ T6505] journal_seq=22 [ 140.837603][ T6505] hash_seed=ece93825deac2443 [ 140.837613][ T6505] hash_type=siphash [ 140.837623][ T6505] bi_size=0 [ 140.837644][ T6505] bi_sectors=0 [ 140.837653][ T6505] bi_version=0 [ 140.837661][ T6505] bi_atime=2770562249 [ 140.837672][ T6505] bi_ctime=2780562352 [ 140.837681][ T6505] bi_mtime=2780562352 [ 140.837691][ T6505] bi_otime=2770562249 [ 140.837718][ T6505] bi_uid=0 [ 140.837727][ T6505] bi_gid=0 [ 140.837737][ T6505] bi_nlink=0 [ 140.837746][ T6505] bi_generation=0 [ 140.837755][ T6505] bi_dev=0 [ 140.837765][ T6505] bi_data_checksum=0 [ 140.837774][ T6505] bi_compression=0 [ 140.837784][ T6505] bi_project=0 [ 140.837793][ T6505] bi_background_compression=0 [ 140.837803][ T6505] bi_data_replicas=0 [ 140.837813][ T6505] bi_promote_target=0 [ 140.837824][ T6505] bi_foreground_target=64 [ 140.837834][ T6505] bi_background_target=1 [ 140.837844][ T6505] bi_erasure_code=0 [ 140.837854][ T6505] bi_fields_set=0 [ 140.837863][ T6505] bi_dir=0 [ 140.837872][ T6505] bi_dir_offset=0 [ 140.837881][ T6505] bi_subvol=0 [ 140.837891][ T6505] bi_parent_subvol=0 [ 140.837900][ T6505] bi_nocow=0 [ 140.837910][ T6505] bi_depth=0 [ 140.837919][ T6505] bi_inodes_32bit=0 [ 140.837929][ T6505] bi_casefold=0, fixing [ 140.844383][ T6505] done [ 140.845091][ T6505] bcachefs (loop2): check_xattrs... done [ 140.846372][ T6505] bcachefs (loop2): check_root... done [ 140.847457][ T6505] bcachefs (loop2): check_unreachable_inodes... done [ 140.848476][ T6505] bcachefs (loop2): check_subvolume_structure... done [ 140.850007][ T6505] bcachefs (loop2): check_directory_structure... done [ 140.850849][ T6505] bcachefs (loop2): check_nlinks... [ 140.852035][ T6505] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 140.853108][ T6505] done [ 140.853820][ T6505] bcachefs (loop2): check_rebalance_work... done [ 140.854997][ T6505] bcachefs (loop2): resume_logged_ops... done [ 140.855775][ T6505] bcachefs (loop2): delete_dead_inodes... done [pid 6681] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 140.865327][ T6505] bcachefs (loop2): set_fs_needs_rebalance... [ 140.873185][ T6514] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 140.873208][ T6514] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 140.876722][ T6505] done [ 140.877877][ T6505] bcachefs (loop2): check_extents_to_backpointers... [ 140.878831][ T6505] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 140.884775][ T6505] done [pid 6681] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6681] chdir("./file1") = 0 [pid 6681] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6681] ioctl(4, LOOP_CLR_FD) = 0 [pid 6681] close(4) = 0 [pid 6681] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6681] exit_group(0) = ? [pid 6681] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6681, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./38", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./38", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 140.902178][ T6505] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 140.902205][ T6505] bcachefs (loop2): check_alloc_info... done [ 140.919837][ T6505] bcachefs (loop2): check_lrus... done [ 140.921018][ T6505] bcachefs (loop2): check_btree_backpointers... done [ 140.922189][ T6505] bcachefs (loop2): check_backpointers_to_extents... done [ 140.923644][ T6505] bcachefs (loop2): check_extents_to_backpointers... done [ 140.925650][ T6505] bcachefs (loop2): check_alloc_to_lru_refs... done [ 140.927815][ T6505] bcachefs (loop2): bucket_gens_init... done [ 140.937008][ T6505] bcachefs (loop2): check_snapshot_trees... done [ 140.938165][ T6505] bcachefs (loop2): check_snapshots... done [ 140.939421][ T6505] bcachefs (loop2): check_subvols... done [ 140.940577][ T6505] bcachefs (loop2): check_subvol_children... done [ 140.941441][ T6505] bcachefs (loop2): delete_dead_snapshots... done [ 140.942123][ T6505] bcachefs (loop2): check_inodes... done [ 140.943263][ T6505] bcachefs (loop2): check_extents... done [ 140.951427][ T6505] bcachefs (loop2): check_indirect_extents... done [ 140.952192][ T6505] bcachefs (loop2): check_dirents... done [ 140.953692][ T6505] bcachefs (loop2): check_xattrs... done [ 140.954755][ T6505] bcachefs (loop2): check_root... done [ 140.955510][ T6505] bcachefs (loop2): check_unreachable_inodes... done [ 140.960207][ T6505] bcachefs (loop2): check_subvolume_structure... done [ 140.961466][ T6505] bcachefs (loop2): check_directory_structure... done [ 140.962156][ T6505] bcachefs (loop2): check_nlinks... done [ 140.963327][ T6505] bcachefs (loop2): check_rebalance_work... done [ 140.970221][ T6505] bcachefs (loop2): resume_logged_ops... done [ 140.970996][ T6505] bcachefs (loop2): delete_dead_inodes... done [ 140.972283][ T6505] bcachefs (loop2): set_fs_needs_rebalance... done [ 140.975188][ T6505] bcachefs (loop2): done starting filesystem [ 141.070229][ T5839] bcachefs (loop2): shutting down [ 141.070249][ T5839] bcachefs (loop2): going read-only [ 141.070280][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 141.110296][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 141.114079][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 141.114944][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 141.116735][ T5839] bcachefs (loop2): marking filesystem clean [ 141.178046][ T5839] bcachefs (loop2): shutdown complete [ 141.988189][ T6516] loop2: detected capacity change from 0 to 32768 [ 142.148615][ T6516] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 142.148642][ T6516] allowing incompatible features above 0.0: (unknown version) [ 142.148657][ T6516] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 142.148684][ T6516] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 142.148821][ T6516] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 142.149073][ T6516] bcachefs (loop2): Version upgrade required: [ 142.149073][ T6516] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 142.149073][ T6516] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 142.149073][ T6516] 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,check_rebalance_work,set_fs_needs_rebalance [ 142.168286][ T6516] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 142.168312][ T6516] size != 0, deleting [ 142.169653][ T6516] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 142.173877][ T6516] bcachefs (loop2): check_topology... done [ 142.175285][ T6516] bcachefs (loop2): accounting_read... done [ 142.205459][ T6516] bcachefs (loop2): alloc_read... done [ 142.206386][ T6516] bcachefs (loop2): snapshots_read... done [ 142.207193][ T6516] bcachefs (loop2): check_allocations... [ 142.209083][ T6516] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 142.209103][ T6516] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 142.212475][ T6516] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./38/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./38/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./38/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./38/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./38/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./38/file1") = 0 [ 142.212495][ T6516] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 142.213868][ T6516] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 142.213886][ T6516] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 142.215985][ T6516] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./38/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./38/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./38/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./38") = 0 [ 142.216003][ T6516] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 142.218392][ T6516] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 142.218410][ T6516] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 142.220010][ T6516] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] mkdir("./39", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6692 ./strace-static-x86_64: Process 6692 attached [ 142.220139][ T6516] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 142.220717][ T6516] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 142.220834][ T6516] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 142.221229][ T6516] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6692] set_robust_list(0x5555901c6760, 24) = 0 [pid 6692] chdir("./39") = 0 [pid 6692] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6692] setpgid(0, 0) = 0 [pid 6692] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6692] write(3, "1000", 4) = 4 [pid 6692] close(3) = 0 [pid 6692] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6692] write(1, "executing program\n", 18executing program ) = 18 [ 142.221330][ T6516] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 142.221550][ T6516] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 142.221656][ T6516] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 142.221859][ T6516] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 142.221972][ T6516] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6692] memfd_create("syzkaller", 0) = 3 [pid 6692] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 142.222177][ T6516] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 142.222278][ T6516] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 142.222494][ T6516] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 142.222600][ T6516] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 142.222808][ T6516] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 142.222917][ T6516] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 142.223113][ T6516] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 142.223215][ T6516] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 142.223422][ T6516] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 142.223542][ T6516] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 142.223771][ T6516] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 142.223787][ T6516] Ratelimiting new instances of previous error [ 142.223926][ T6516] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 142.223942][ T6516] Ratelimiting new instances of previous error [ 142.237605][ T6516] done [ 142.240559][ T6516] bcachefs (loop2): going read-write [ 142.246702][ T6516] bcachefs (loop2): journal_replay... done [ 142.274387][ T6516] bcachefs (loop2): check_alloc_info... [ 142.276185][ T6516] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 142.276203][ T6516] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 142.276217][ T6516] gen 0 oldest_gen 0 data_type need_discard [ 142.276228][ T6516] journal_seq_nonempty 6 [ 142.276238][ T6516] journal_seq_empty 0 [ 142.276248][ T6516] need_discard 1 [ 142.276258][ T6516] need_inc_gen 1 [ 142.276269][ T6516] dirty_sectors 0 [ 142.276281][ T6516] stripe_sectors 0 [ 142.276291][ T6516] cached_sectors 0 [ 142.276301][ T6516] stripe 0 [ 142.276311][ T6516] stripe_redundancy 0 [ 142.276322][ T6516] io_time[READ] 1 [ 142.276332][ T6516] io_time[WRITE] 768 [ 142.276342][ T6516] fragmentation 0 [ 142.276354][ T6516] bp_start 8 [ 142.276364][ T6516] , fixing [ 142.294031][ T6516] done [ 142.299359][ T6516] bcachefs (loop2): check_lrus... done [pid 6692] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 142.300550][ T6516] bcachefs (loop2): check_btree_backpointers... done [ 142.301824][ T6516] bcachefs (loop2): check_backpointers_to_extents... done [ 142.307184][ T6516] bcachefs (loop2): check_extents_to_backpointers... [ 142.308563][ T6516] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 142.311793][ T6516] done [ 142.312501][ T6516] bcachefs (loop2): check_alloc_to_lru_refs... [ 142.314848][ T6516] bcachefs (loop2): missing fragmentation lru entry [ 142.314866][ T6516] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 142.314878][ T6516] gen 0 oldest_gen 0 data_type user [pid 6692] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6692] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6692] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6692] close(3) = 0 [pid 6692] close(4) = 0 [pid 6692] mkdir("./file1", 0777) = 0 [ 142.314890][ T6516] journal_seq_nonempty 5 [ 142.314899][ T6516] journal_seq_empty 134217728 [ 142.314911][ T6516] need_discard 1 [ 142.314921][ T6516] need_inc_gen 1 [ 142.314931][ T6516] dirty_sectors 16 [ 142.314941][ T6516] stripe_sectors 1802251 [ 142.314952][ T6516] cached_sectors 0 [ 142.314962][ T6516] stripe 0 [ 142.314972][ T6516] stripe_redundancy 0 [ 142.314982][ T6516] io_time[READ] 1 [ 142.314993][ T6516] io_time[WRITE] 512 [ 142.315003][ T6516] fragmentation 0 [ 142.315013][ T6516] bp_start 7 [ 142.315023][ T6516] , fixing [ 142.316561][ T6516] done [ 142.318056][ T6516] bcachefs (loop2): bucket_gens_init... done [ 142.320813][ T6516] bcachefs (loop2): check_snapshot_trees... done [ 142.322842][ T6516] bcachefs (loop2): check_snapshots... [ 142.325149][ T6516] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 142.325167][ T6516] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 142.337718][ T6516] done [ 142.338437][ T6516] bcachefs (loop2): check_subvols... done [ 142.340393][ T6516] bcachefs (loop2): check_subvol_children... done [ 142.341479][ T6516] bcachefs (loop2): delete_dead_snapshots... done [ 142.342300][ T6516] bcachefs (loop2): check_inodes... [ 142.343424][ T6516] bcachefs (loop2): inode points to missing dirent [ 142.343440][ T6516] inum: 4098:4294967295 [ 142.343450][ T6516] mode=40755 [ 142.343461][ T6516] flags=(15300000) [ 142.343470][ T6516] journal_seq=4 [ 142.343480][ T6516] hash_seed=ece93825deac2443 [ 142.343492][ T6516] hash_type=siphash [ 142.343502][ T6516] bi_size=0 [ 142.343511][ T6516] bi_sectors=0 [ 142.343520][ T6516] bi_version=0 [ 142.343529][ T6516] bi_atime=2770562249 [ 142.343539][ T6516] bi_ctime=2780562352 [ 142.343549][ T6516] bi_mtime=2780562352 [ 142.343558][ T6516] bi_otime=2770562249 [ 142.343568][ T6516] bi_uid=0 [ 142.343576][ T6516] bi_gid=0 [ 142.343585][ T6516] bi_nlink=0 [ 142.343594][ T6516] bi_generation=0 [ 142.343604][ T6516] bi_dev=0 [ 142.343613][ T6516] bi_data_checksum=0 [ 142.343622][ T6516] bi_compression=0 [ 142.343631][ T6516] bi_project=0 [ 142.343641][ T6516] bi_background_compression=0 [ 142.343651][ T6516] bi_data_replicas=0 [ 142.343660][ T6516] bi_promote_target=0 [ 142.343670][ T6516] bi_foreground_target=64 [ 142.343680][ T6516] bi_background_target=1 [ 142.343689][ T6516] bi_erasure_code=0 [ 142.343699][ T6516] bi_fields_set=0 [ 142.343710][ T6516] bi_dir=0 [ 142.343719][ T6516] bi_dir_offset=32 [ 142.343728][ T6516] bi_subvol=0 [ 142.343737][ T6516] bi_parent_subvol=0 [ 142.343747][ T6516] bi_nocow=0 [ 142.343756][ T6516] bi_depth=0 [ 142.343766][ T6516] bi_inodes_32bit=0 [ 142.343775][ T6516] bi_casefold=0, fixing [ 142.345447][ T6516] done [ 142.346607][ T6516] bcachefs (loop2): check_extents... done [ 142.348162][ T6516] bcachefs (loop2): check_indirect_extents... done [ 142.348938][ T6516] bcachefs (loop2): check_dirents... [ 142.351575][ T6516] bcachefs (loop2): directory with missing backpointer [ 142.351593][ T6516] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 142.351608][ T6516] inum: 4098:4294967295 [ 142.351620][ T6516] mode=40755 [ 142.351629][ T6516] flags=(11300000) [ 142.351639][ T6516] journal_seq=22 [ 142.351649][ T6516] hash_seed=ece93825deac2443 [ 142.351659][ T6516] hash_type=siphash [ 142.351669][ T6516] bi_size=0 [ 142.351678][ T6516] bi_sectors=0 [ 142.351714][ T6516] bi_version=0 [ 142.351724][ T6516] bi_atime=2770562249 [ 142.351733][ T6516] bi_ctime=2780562352 [ 142.351743][ T6516] bi_mtime=2780562352 [ 142.351753][ T6516] bi_otime=2770562249 [ 142.351763][ T6516] bi_uid=0 [ 142.351772][ T6516] bi_gid=0 [ 142.351781][ T6516] bi_nlink=0 [ 142.351791][ T6516] bi_generation=0 [ 142.351800][ T6516] bi_dev=0 [ 142.351809][ T6516] bi_data_checksum=0 [ 142.351818][ T6516] bi_compression=0 [ 142.351828][ T6516] bi_project=0 [ 142.351837][ T6516] bi_background_compression=0 [ 142.351847][ T6516] bi_data_replicas=0 [ 142.351857][ T6516] bi_promote_target=0 [ 142.351867][ T6516] bi_foreground_target=64 [ 142.351877][ T6516] bi_background_target=1 [ 142.351887][ T6516] bi_erasure_code=0 [ 142.351896][ T6516] bi_fields_set=0 [ 142.351906][ T6516] bi_dir=0 [ 142.351915][ T6516] bi_dir_offset=0 [ 142.351925][ T6516] bi_subvol=0 [ 142.351934][ T6516] bi_parent_subvol=0 [pid 6692] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6692] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6692] chdir("./file1") = 0 [pid 6692] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6692] ioctl(4, LOOP_CLR_FD) = 0 [pid 6692] close(4) = 0 [pid 6692] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6692] exit_group(0) = ? [pid 6692] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6692, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=44 /* 0.44 s */} --- [pid 5839] umount2("./39", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./39", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 142.351943][ T6516] bi_nocow=0 [ 142.351953][ T6516] bi_depth=0 [ 142.351962][ T6516] bi_inodes_32bit=0 [ 142.351971][ T6516] bi_casefold=0, fixing [ 142.360205][ T6516] done [ 142.361084][ T6516] bcachefs (loop2): check_xattrs... done [ 142.363472][ T6516] bcachefs (loop2): check_root... done [ 142.364654][ T6516] bcachefs (loop2): check_unreachable_inodes... done [ 142.365746][ T6516] bcachefs (loop2): check_subvolume_structure... done [ 142.366607][ T6516] bcachefs (loop2): check_directory_structure... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 142.367361][ T6516] bcachefs (loop2): check_nlinks... [ 142.368596][ T6516] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 142.370524][ T6516] done [ 142.371220][ T6516] bcachefs (loop2): check_rebalance_work... done [ 142.372460][ T6516] bcachefs (loop2): resume_logged_ops... done [ 142.373290][ T6516] bcachefs (loop2): delete_dead_inodes... done [ 142.383268][ T6516] bcachefs (loop2): set_fs_needs_rebalance... done [ 142.393745][ T6516] bcachefs (loop2): check_extents_to_backpointers... [ 142.394733][ T6516] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 142.395165][ T6525] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 142.395184][ T6525] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 142.398978][ T6516] done [ 142.414549][ T6516] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 142.414612][ T6516] bcachefs (loop2): check_alloc_info... done [ 142.430752][ T6516] bcachefs (loop2): check_lrus... done [ 142.431968][ T6516] bcachefs (loop2): check_btree_backpointers... done [ 142.433157][ T6516] bcachefs (loop2): check_backpointers_to_extents... done [ 142.434592][ T6516] bcachefs (loop2): check_extents_to_backpointers... done [ 142.436273][ T6516] bcachefs (loop2): check_alloc_to_lru_refs... done [ 142.438422][ T6516] bcachefs (loop2): bucket_gens_init... done [ 142.442055][ T6516] bcachefs (loop2): check_snapshot_trees... done [ 142.450325][ T6516] bcachefs (loop2): check_snapshots... done [ 142.451893][ T6516] bcachefs (loop2): check_subvols... done [ 142.452692][ T6516] bcachefs (loop2): check_subvol_children... done [ 142.453448][ T6516] bcachefs (loop2): delete_dead_snapshots... done [ 142.454132][ T6516] bcachefs (loop2): check_inodes... done [ 142.455295][ T6516] bcachefs (loop2): check_extents... done [ 142.456930][ T6516] bcachefs (loop2): check_indirect_extents... done [ 142.457658][ T6516] bcachefs (loop2): check_dirents... done [ 142.462166][ T6516] bcachefs (loop2): check_xattrs... done [ 142.463234][ T6516] bcachefs (loop2): check_root... done [ 142.463946][ T6516] bcachefs (loop2): check_unreachable_inodes... done [ 142.470286][ T6516] bcachefs (loop2): check_subvolume_structure... done [ 142.471064][ T6516] bcachefs (loop2): check_directory_structure... done [ 142.472291][ T6516] bcachefs (loop2): check_nlinks... done [ 142.473493][ T6516] bcachefs (loop2): check_rebalance_work... done [ 142.474290][ T6516] bcachefs (loop2): resume_logged_ops... done [ 142.475006][ T6516] bcachefs (loop2): delete_dead_inodes... done [ 142.480705][ T6516] bcachefs (loop2): set_fs_needs_rebalance... done [ 142.490165][ T6516] bcachefs (loop2): done starting filesystem [ 142.570308][ T5839] bcachefs (loop2): shutting down [ 142.570330][ T5839] bcachefs (loop2): going read-only [ 142.570602][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 142.572002][ T37] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 142.572002][ T37] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 142.572190][ T37] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 142.572207][ T37] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 142.572226][ T37] loop2 checksum error [ 142.624606][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 142.628548][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [pid 5839] umount2("./39/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./39/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 142.630713][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 142.632537][ T5839] bcachefs (loop2): marking filesystem clean [ 142.633062][ T5902] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 142.633062][ T5902] rw journal devs: [ 142.745295][ T5839] bcachefs (loop2): shutdown complete [ 143.743058][ T6527] loop2: detected capacity change from 0 to 32768 [pid 5839] newfstatat(AT_FDCWD, "./39/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./39/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./39/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./39/file1") = 0 [pid 5839] umount2("./39/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./39/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./39/binderfs") = 0 [ 143.871107][ T6527] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 143.871133][ T6527] allowing incompatible features above 0.0: (unknown version) [ 143.871146][ T6527] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 143.871176][ T6527] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 143.871309][ T6527] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 143.871573][ T6527] bcachefs (loop2): Version upgrade required: [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./39") = 0 [pid 5839] mkdir("./40", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 143.871573][ T6527] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 143.871573][ T6527] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6703 ./strace-static-x86_64: Process 6703 attached [pid 6703] set_robust_list(0x5555901c6760, 24) = 0 [pid 6703] chdir("./40") = 0 [ 143.871573][ T6527] 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,check_rebalance_work,set_fs_needs_rebalance [ 143.891335][ T6527] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 143.891361][ T6527] size != 0, deleting [ 143.892537][ T6527] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 143.895870][ T6527] bcachefs (loop2): check_topology... done [pid 6703] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6703] setpgid(0, 0) = 0 [pid 6703] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6703] write(3, "1000", 4) = 4 [pid 6703] close(3) = 0 [pid 6703] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6703] write(1, "executing program\n", 18executing program ) = 18 [ 143.897390][ T6527] bcachefs (loop2): accounting_read... done [ 143.930483][ T6527] bcachefs (loop2): alloc_read... done [ 143.931567][ T6527] bcachefs (loop2): snapshots_read... done [ 143.932439][ T6527] bcachefs (loop2): check_allocations... [ 143.934476][ T6527] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 143.934498][ T6527] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [pid 6703] memfd_create("syzkaller", 0) = 3 [pid 6703] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 143.936767][ T6527] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 143.936787][ T6527] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 143.938308][ T6527] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 143.938327][ T6527] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 143.942179][ T6527] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 143.942199][ T6527] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 143.944912][ T6527] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 143.944930][ T6527] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 143.945889][ T6527] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.946030][ T6527] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.946584][ T6527] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.946692][ T6527] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.947106][ T6527] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.947216][ T6527] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.947425][ T6527] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.947531][ T6527] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.947733][ T6527] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.947839][ T6527] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.948053][ T6527] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.948159][ T6527] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.948374][ T6527] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 143.948481][ T6527] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 143.948689][ T6527] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6703] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 143.948796][ T6527] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 143.949012][ T6527] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 143.949117][ T6527] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 143.949878][ T6527] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6703] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6703] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6703] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6703] close(3) = 0 [pid 6703] close(4) = 0 [pid 6703] mkdir("./file1", 0777) = 0 [ 143.950001][ T6527] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 143.950254][ T6527] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 143.950270][ T6527] Ratelimiting new instances of previous error [ 143.950402][ T6527] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 143.950419][ T6527] Ratelimiting new instances of previous error [ 143.965497][ T6527] done [ 143.967780][ T6527] bcachefs (loop2): going read-write [ 143.974110][ T6527] bcachefs (loop2): journal_replay... done [ 144.001927][ T6527] bcachefs (loop2): check_alloc_info... [ 144.003752][ T6527] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 144.003777][ T6527] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 144.003789][ T6527] gen 0 oldest_gen 0 data_type need_discard [ 144.003800][ T6527] journal_seq_nonempty 6 [ 144.003810][ T6527] journal_seq_empty 0 [ 144.003820][ T6527] need_discard 1 [ 144.003831][ T6527] need_inc_gen 1 [ 144.003841][ T6527] dirty_sectors 0 [ 144.003851][ T6527] stripe_sectors 0 [ 144.003861][ T6527] cached_sectors 0 [ 144.003871][ T6527] stripe 0 [ 144.003881][ T6527] stripe_redundancy 0 [ 144.003891][ T6527] io_time[READ] 1 [ 144.003901][ T6527] io_time[WRITE] 768 [ 144.003912][ T6527] fragmentation 0 [ 144.003922][ T6527] bp_start 8 [ 144.003932][ T6527] , fixing [ 144.020636][ T6527] done [ 144.026377][ T6527] bcachefs (loop2): check_lrus... done [ 144.027317][ T6527] bcachefs (loop2): check_btree_backpointers... done [ 144.029153][ T6527] bcachefs (loop2): check_backpointers_to_extents... done [ 144.034034][ T6527] bcachefs (loop2): check_extents_to_backpointers... [ 144.035407][ T6527] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 144.036843][ T6527] done [ 144.037559][ T6527] bcachefs (loop2): check_alloc_to_lru_refs... [ 144.041015][ T6527] bcachefs (loop2): missing fragmentation lru entry [ 144.041033][ T6527] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 144.041045][ T6527] gen 0 oldest_gen 0 data_type user [ 144.041055][ T6527] journal_seq_nonempty 5 [ 144.041067][ T6527] journal_seq_empty 134217728 [ 144.041077][ T6527] need_discard 1 [ 144.041088][ T6527] need_inc_gen 1 [ 144.041098][ T6527] dirty_sectors 16 [ 144.041108][ T6527] stripe_sectors 1802251 [ 144.041119][ T6527] cached_sectors 0 [ 144.041129][ T6527] stripe 0 [ 144.041139][ T6527] stripe_redundancy 0 [ 144.041149][ T6527] io_time[READ] 1 [ 144.041161][ T6527] io_time[WRITE] 512 [ 144.041171][ T6527] fragmentation 0 [ 144.041182][ T6527] bp_start 7 [ 144.041192][ T6527] , fixing [ 144.042783][ T6527] done [ 144.044331][ T6527] bcachefs (loop2): bucket_gens_init... done [ 144.046433][ T6527] bcachefs (loop2): check_snapshot_trees... done [ 144.047294][ T6527] bcachefs (loop2): check_snapshots... [ 144.047880][ T6527] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 144.047898][ T6527] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 144.063095][ T6527] done [ 144.063846][ T6527] bcachefs (loop2): check_subvols... done [ 144.065403][ T6527] bcachefs (loop2): check_subvol_children... done [ 144.066334][ T6527] bcachefs (loop2): delete_dead_snapshots... done [ 144.067125][ T6527] bcachefs (loop2): check_inodes... [ 144.068219][ T6527] bcachefs (loop2): inode points to missing dirent [ 144.068237][ T6527] inum: 4098:4294967295 [ 144.068247][ T6527] mode=40755 [ 144.068257][ T6527] flags=(15300000) [ 144.068267][ T6527] journal_seq=4 [ 144.068278][ T6527] hash_seed=ece93825deac2443 [ 144.068288][ T6527] hash_type=siphash [ 144.068299][ T6527] bi_size=0 [ 144.068308][ T6527] bi_sectors=0 [ 144.068318][ T6527] bi_version=0 [ 144.068327][ T6527] bi_atime=2770562249 [ 144.068337][ T6527] bi_ctime=2780562352 [ 144.068347][ T6527] bi_mtime=2780562352 [ 144.068356][ T6527] bi_otime=2770562249 [ 144.068366][ T6527] bi_uid=0 [ 144.068375][ T6527] bi_gid=0 [ 144.068384][ T6527] bi_nlink=0 [ 144.068394][ T6527] bi_generation=0 [ 144.068403][ T6527] bi_dev=0 [ 144.068413][ T6527] bi_data_checksum=0 [ 144.068425][ T6527] bi_compression=0 [ 144.068434][ T6527] bi_project=0 [ 144.068444][ T6527] bi_background_compression=0 [ 144.068454][ T6527] bi_data_replicas=0 [ 144.068464][ T6527] bi_promote_target=0 [ 144.068474][ T6527] bi_foreground_target=64 [ 144.068485][ T6527] bi_background_target=1 [pid 6703] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6703] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 144.068495][ T6527] bi_erasure_code=0 [ 144.068506][ T6527] bi_fields_set=0 [ 144.068516][ T6527] bi_dir=0 [ 144.068525][ T6527] bi_dir_offset=32 [ 144.068535][ T6527] bi_subvol=0 [ 144.068545][ T6527] bi_parent_subvol=0 [ 144.068555][ T6527] bi_nocow=0 [ 144.068564][ T6527] bi_depth=0 [ 144.068574][ T6527] bi_inodes_32bit=0 [ 144.068585][ T6527] bi_casefold=0, fixing [ 144.075512][ T6527] done [ 144.076263][ T6527] bcachefs (loop2): check_extents... done [pid 6703] chdir("./file1") = 0 [pid 6703] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6703] ioctl(4, LOOP_CLR_FD) = 0 [pid 6703] close(4) = 0 [pid 6703] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6703] exit_group(0) = ? [pid 6703] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6703, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./40", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./40", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 144.077785][ T6527] bcachefs (loop2): check_indirect_extents... done [ 144.078605][ T6527] bcachefs (loop2): check_dirents... [ 144.081011][ T6527] bcachefs (loop2): directory with missing backpointer [ 144.081027][ T6527] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 144.081043][ T6527] inum: 4098:4294967295 [ 144.081054][ T6527] mode=40755 [ 144.081063][ T6527] flags=(11300000) [ 144.081074][ T6527] journal_seq=22 [ 144.081083][ T6527] hash_seed=ece93825deac2443 [ 144.081095][ T6527] hash_type=siphash [ 144.081106][ T6527] bi_size=0 [ 144.081115][ T6527] bi_sectors=0 [ 144.081124][ T6527] bi_version=0 [ 144.081134][ T6527] bi_atime=2770562249 [ 144.081143][ T6527] bi_ctime=2780562352 [ 144.081153][ T6527] bi_mtime=2780562352 [ 144.081163][ T6527] bi_otime=2770562249 [ 144.081173][ T6527] bi_uid=0 [ 144.081182][ T6527] bi_gid=0 [ 144.081191][ T6527] bi_nlink=0 [ 144.081201][ T6527] bi_generation=0 [ 144.081210][ T6527] bi_dev=0 [ 144.081219][ T6527] bi_data_checksum=0 [ 144.081229][ T6527] bi_compression=0 [ 144.081239][ T6527] bi_project=0 [ 144.081248][ T6527] bi_background_compression=0 [ 144.081260][ T6527] bi_data_replicas=0 [ 144.081270][ T6527] bi_promote_target=0 [ 144.081280][ T6527] bi_foreground_target=64 [ 144.081290][ T6527] bi_background_target=1 [ 144.081300][ T6527] bi_erasure_code=0 [ 144.081309][ T6527] bi_fields_set=0 [ 144.081319][ T6527] bi_dir=0 [ 144.081329][ T6527] bi_dir_offset=0 [ 144.081338][ T6527] bi_subvol=0 [ 144.081348][ T6527] bi_parent_subvol=0 [ 144.081358][ T6527] bi_nocow=0 [ 144.081367][ T6527] bi_depth=0 [ 144.081377][ T6527] bi_inodes_32bit=0 [ 144.081387][ T6527] bi_casefold=0, fixing [ 144.084023][ T6527] done [ 144.084726][ T6527] bcachefs (loop2): check_xattrs... done [ 144.085988][ T6527] bcachefs (loop2): check_root... done [ 144.087130][ T6527] bcachefs (loop2): check_unreachable_inodes... done [ 144.088171][ T6527] bcachefs (loop2): check_subvolume_structure... done [ 144.089007][ T6527] bcachefs (loop2): check_directory_structure... done [ 144.092388][ T6527] bcachefs (loop2): check_nlinks... [ 144.093609][ T6527] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 144.096341][ T6527] done [ 144.097001][ T6527] bcachefs (loop2): check_rebalance_work... done [ 144.098400][ T6527] bcachefs (loop2): resume_logged_ops... done [ 144.099127][ T6527] bcachefs (loop2): delete_dead_inodes... done [ 144.108132][ T6527] bcachefs (loop2): set_fs_needs_rebalance... done [ 144.118965][ T6527] bcachefs (loop2): check_extents_to_backpointers... [ 144.120086][ T6527] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 144.120706][ T6536] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 144.120725][ T6536] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 144.124659][ T6527] done [ 144.141063][ T6527] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 144.141089][ T6527] bcachefs (loop2): check_alloc_info... done [ 144.149867][ T6527] bcachefs (loop2): check_lrus... done [ 144.151039][ T6527] bcachefs (loop2): check_btree_backpointers... done [ 144.152498][ T6527] bcachefs (loop2): check_backpointers_to_extents... done [ 144.154605][ T6527] bcachefs (loop2): check_extents_to_backpointers... done [ 144.156336][ T6527] bcachefs (loop2): check_alloc_to_lru_refs... done [ 144.161931][ T6527] bcachefs (loop2): bucket_gens_init... done [ 144.165427][ T6527] bcachefs (loop2): check_snapshot_trees... done [ 144.170713][ T6527] bcachefs (loop2): check_snapshots... done [ 144.171549][ T6527] bcachefs (loop2): check_subvols... done [ 144.172401][ T6527] bcachefs (loop2): check_subvol_children... done [ 144.175191][ T6527] bcachefs (loop2): delete_dead_snapshots... done [ 144.175904][ T6527] bcachefs (loop2): check_inodes... done [ 144.180409][ T6527] bcachefs (loop2): check_extents... done [ 144.182082][ T6527] bcachefs (loop2): check_indirect_extents... done [ 144.182830][ T6527] bcachefs (loop2): check_dirents... done [ 144.190035][ T6527] bcachefs (loop2): check_xattrs... done [pid 5839] umount2("./40/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./40/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./40/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./40/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./40/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./40/file1") = 0 [pid 5839] umount2("./40/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 144.191173][ T6527] bcachefs (loop2): check_root... done [ 144.191981][ T6527] bcachefs (loop2): check_unreachable_inodes... done [ 144.192844][ T6527] bcachefs (loop2): check_subvolume_structure... done [ 144.193528][ T6527] bcachefs (loop2): check_directory_structure... done [ 144.194242][ T6527] bcachefs (loop2): check_nlinks... done [ 144.200489][ T6527] bcachefs (loop2): check_rebalance_work... done [ 144.201240][ T6527] bcachefs (loop2): resume_logged_ops... done [ 144.201963][ T6527] bcachefs (loop2): delete_dead_inodes... done [pid 5839] newfstatat(AT_FDCWD, "./40/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./40/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./40") = 0 [pid 5839] mkdir("./41", 0777) = 0 [ 144.202779][ T6527] bcachefs (loop2): set_fs_needs_rebalance... done [ 144.205768][ T6527] bcachefs (loop2): done starting filesystem [ 144.284507][ T5839] bcachefs (loop2): shutting down [ 144.284530][ T5839] bcachefs (loop2): going read-only [ 144.284929][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 144.324324][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 144.325108][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6714 attached , child_tidptr=0x5555901c6750) = 6714 [pid 6714] set_robust_list(0x5555901c6760, 24) = 0 [ 144.325929][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 144.327722][ T5839] bcachefs (loop2): marking filesystem clean [ 144.373253][ T5839] bcachefs (loop2): shutdown complete [ 145.114724][ T6538] loop2: detected capacity change from 0 to 32768 [ 145.447287][ T6538] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 145.447319][ T6538] allowing incompatible features above 0.0: (unknown version) [pid 6714] chdir("./41") = 0 [pid 6714] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6714] setpgid(0, 0) = 0 [pid 6714] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6714] write(3, "1000", 4) = 4 [pid 6714] close(3) = 0 [ 145.447332][ T6538] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 145.447360][ T6538] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 145.447488][ T6538] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 145.448213][ T6538] bcachefs (loop2): Version upgrade required: [ 145.448213][ T6538] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 145.448213][ T6538] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6714] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6714] write(1, "executing program\n", 18executing program ) = 18 [pid 6714] memfd_create("syzkaller", 0) = 3 [ 145.448213][ T6538] 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,check_rebalance_work,set_fs_needs_rebalance [pid 6714] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 145.465938][ T6538] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 145.465965][ T6538] size != 0, deleting [ 145.470158][ T6538] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 145.473444][ T6538] bcachefs (loop2): check_topology... done [ 145.474972][ T6538] bcachefs (loop2): accounting_read... done [ 145.505570][ T6538] bcachefs (loop2): alloc_read... done [ 145.506510][ T6538] bcachefs (loop2): snapshots_read... done [ 145.507259][ T6538] bcachefs (loop2): check_allocations... [ 145.510104][ T6538] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 145.510124][ T6538] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 145.512558][ T6538] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 145.512576][ T6538] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 145.513998][ T6538] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 145.514016][ T6538] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 145.515515][ T6538] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 145.515533][ T6538] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 145.518019][ T6538] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 145.518037][ T6538] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 145.518983][ T6538] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 145.519109][ T6538] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.521163][ T6538] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 145.521276][ T6538] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.521694][ T6538] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 145.521799][ T6538] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.523650][ T6538] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6714] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6714] munmap(0x7fbbeb93a000, 138412032) = 0 [ 145.523759][ T6538] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.523978][ T6538] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 145.524091][ T6538] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.524304][ T6538] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6714] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6714] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6714] close(3) = 0 [pid 6714] close(4) = 0 [pid 6714] mkdir("./file1", 0777) = 0 [ 145.524411][ T6538] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.524621][ T6538] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 145.524727][ T6538] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 145.524935][ T6538] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 145.525042][ T6538] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 145.525242][ T6538] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 145.525347][ T6538] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 145.525554][ T6538] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 145.525661][ T6538] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 145.525903][ T6538] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 145.525919][ T6538] Ratelimiting new instances of previous error [ 145.526047][ T6538] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 145.526063][ T6538] Ratelimiting new instances of previous error [ 145.538785][ T6538] done [ 145.541901][ T6538] bcachefs (loop2): going read-write [ 145.546588][ T6538] bcachefs (loop2): journal_replay... done [ 145.574975][ T6538] bcachefs (loop2): check_alloc_info... [ 145.576763][ T6538] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 145.576782][ T6538] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 145.576793][ T6538] gen 0 oldest_gen 0 data_type need_discard [ 145.576805][ T6538] journal_seq_nonempty 6 [ 145.576815][ T6538] journal_seq_empty 0 [ 145.576825][ T6538] need_discard 1 [ 145.576835][ T6538] need_inc_gen 1 [ 145.576845][ T6538] dirty_sectors 0 [ 145.576855][ T6538] stripe_sectors 0 [ 145.576865][ T6538] cached_sectors 0 [ 145.576875][ T6538] stripe 0 [ 145.576886][ T6538] stripe_redundancy 0 [ 145.576896][ T6538] io_time[READ] 1 [ 145.576908][ T6538] io_time[WRITE] 768 [ 145.576918][ T6538] fragmentation 0 [ 145.576927][ T6538] bp_start 8 [ 145.576937][ T6538] , fixing [ 145.593964][ T6538] done [ 145.599628][ T6538] bcachefs (loop2): check_lrus... done [ 145.600612][ T6538] bcachefs (loop2): check_btree_backpointers... done [ 145.605037][ T6538] bcachefs (loop2): check_backpointers_to_extents... done [ 145.607993][ T6538] bcachefs (loop2): check_extents_to_backpointers... [ 145.610456][ T6538] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 145.611926][ T6538] done [ 145.613030][ T6538] bcachefs (loop2): check_alloc_to_lru_refs... [ 145.614551][ T6538] bcachefs (loop2): missing fragmentation lru entry [ 145.614569][ T6538] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 145.614582][ T6538] gen 0 oldest_gen 0 data_type user [ 145.614593][ T6538] journal_seq_nonempty 5 [ 145.614603][ T6538] journal_seq_empty 134217728 [ 145.614613][ T6538] need_discard 1 [ 145.614624][ T6538] need_inc_gen 1 [ 145.614634][ T6538] dirty_sectors 16 [ 145.614644][ T6538] stripe_sectors 1802251 [ 145.614655][ T6538] cached_sectors 0 [ 145.614666][ T6538] stripe 0 [ 145.614676][ T6538] stripe_redundancy 0 [ 145.614686][ T6538] io_time[READ] 1 [ 145.614696][ T6538] io_time[WRITE] 512 [ 145.614706][ T6538] fragmentation 0 [ 145.614716][ T6538] bp_start 7 [ 145.614725][ T6538] , fixing [ 145.616237][ T6538] done [ 145.617705][ T6538] bcachefs (loop2): bucket_gens_init... done [ 145.621779][ T6538] bcachefs (loop2): check_snapshot_trees... done [ 145.624081][ T6538] bcachefs (loop2): check_snapshots... [ 145.624677][ T6538] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 145.624695][ T6538] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 145.635928][ T6538] done [ 145.636645][ T6538] bcachefs (loop2): check_subvols... done [ 145.638178][ T6538] bcachefs (loop2): check_subvol_children... done [ 145.639097][ T6538] bcachefs (loop2): delete_dead_snapshots... done [ 145.640445][ T6538] bcachefs (loop2): check_inodes... [ 145.641554][ T6538] bcachefs (loop2): inode points to missing dirent [ 145.641571][ T6538] inum: 4098:4294967295 [ 145.641581][ T6538] mode=40755 [ 145.641591][ T6538] flags=(15300000) [ 145.641601][ T6538] journal_seq=4 [ 145.641611][ T6538] hash_seed=ece93825deac2443 [pid 6714] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6714] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6714] chdir("./file1") = 0 [pid 6714] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6714] ioctl(4, LOOP_CLR_FD) = 0 [pid 6714] close(4) = 0 [ 145.641622][ T6538] hash_type=siphash [ 145.641630][ T6538] bi_size=0 [ 145.641639][ T6538] bi_sectors=0 [ 145.641648][ T6538] bi_version=0 [ 145.641657][ T6538] bi_atime=2770562249 [ 145.641667][ T6538] bi_ctime=2780562352 [ 145.641676][ T6538] bi_mtime=2780562352 [ 145.641686][ T6538] bi_otime=2770562249 [ 145.641695][ T6538] bi_uid=0 [ 145.641704][ T6538] bi_gid=0 [ 145.641713][ T6538] bi_nlink=0 [ 145.641722][ T6538] bi_generation=0 [ 145.641731][ T6538] bi_dev=0 [pid 6714] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6714] exit_group(0) = ? [pid 6714] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6714, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] umount2("./41", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./41", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 145.641740][ T6538] bi_data_checksum=0 [ 145.641750][ T6538] bi_compression=0 [ 145.641759][ T6538] bi_project=0 [ 145.641766][ T6538] bi_background_compression=0 [ 145.641776][ T6538] bi_data_replicas=0 [ 145.641785][ T6538] bi_promote_target=0 [ 145.641795][ T6538] bi_foreground_target=64 [ 145.641805][ T6538] bi_background_target=1 [ 145.641815][ T6538] bi_erasure_code=0 [ 145.641824][ T6538] bi_fields_set=0 [ 145.641833][ T6538] bi_dir=0 [ 145.641842][ T6538] bi_dir_offset=32 [ 145.641854][ T6538] bi_subvol=0 [ 145.641864][ T6538] bi_parent_subvol=0 [ 145.641873][ T6538] bi_nocow=0 [ 145.641882][ T6538] bi_depth=0 [ 145.641892][ T6538] bi_inodes_32bit=0 [ 145.641902][ T6538] bi_casefold=0, fixing [ 145.643560][ T6538] done [ 145.644769][ T6538] bcachefs (loop2): check_extents... done [ 145.646248][ T6538] bcachefs (loop2): check_indirect_extents... done [ 145.647033][ T6538] bcachefs (loop2): check_dirents... [ 145.648752][ T6538] bcachefs (loop2): directory with missing backpointer [ 145.648767][ T6538] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 145.648781][ T6538] inum: 4098:4294967295 [ 145.648791][ T6538] mode=40755 [ 145.648800][ T6538] flags=(11300000) [ 145.648810][ T6538] journal_seq=23 [ 145.648821][ T6538] hash_seed=ece93825deac2443 [ 145.648831][ T6538] hash_type=siphash [ 145.648841][ T6538] bi_size=0 [ 145.648850][ T6538] bi_sectors=0 [ 145.648860][ T6538] bi_version=0 [ 145.648870][ T6538] bi_atime=2770562249 [ 145.648880][ T6538] bi_ctime=2780562352 [ 145.648890][ T6538] bi_mtime=2780562352 [ 145.648901][ T6538] bi_otime=2770562249 [ 145.648911][ T6538] bi_uid=0 [ 145.648920][ T6538] bi_gid=0 [ 145.648928][ T6538] bi_nlink=0 [ 145.648937][ T6538] bi_generation=0 [ 145.648946][ T6538] bi_dev=0 [ 145.648956][ T6538] bi_data_checksum=0 [ 145.648965][ T6538] bi_compression=0 [ 145.648975][ T6538] bi_project=0 [ 145.648984][ T6538] bi_background_compression=0 [ 145.648994][ T6538] bi_data_replicas=0 [ 145.649004][ T6538] bi_promote_target=0 [ 145.649013][ T6538] bi_foreground_target=64 [ 145.649023][ T6538] bi_background_target=1 [ 145.649033][ T6538] bi_erasure_code=0 [ 145.649043][ T6538] bi_fields_set=0 [ 145.649052][ T6538] bi_dir=0 [ 145.649061][ T6538] bi_dir_offset=0 [ 145.649072][ T6538] bi_subvol=0 [ 145.649081][ T6538] bi_parent_subvol=0 [ 145.649091][ T6538] bi_nocow=0 [ 145.649100][ T6538] bi_depth=0 [ 145.649108][ T6538] bi_inodes_32bit=0 [ 145.649118][ T6538] bi_casefold=0, fixing [ 145.659637][ T6538] done [ 145.660582][ T6538] bcachefs (loop2): check_xattrs... done [ 145.663255][ T6538] bcachefs (loop2): check_root... done [ 145.664437][ T6538] bcachefs (loop2): check_unreachable_inodes... done [ 145.665516][ T6538] bcachefs (loop2): check_subvolume_structure... done [ 145.666889][ T6538] bcachefs (loop2): check_directory_structure... done [ 145.667684][ T6538] bcachefs (loop2): check_nlinks... [ 145.668400][ T6538] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 145.670285][ T6538] done [ 145.671000][ T6538] bcachefs (loop2): check_rebalance_work... done [ 145.672223][ T6538] bcachefs (loop2): resume_logged_ops... done [ 145.672988][ T6538] bcachefs (loop2): delete_dead_inodes... done [ 145.682247][ T6538] bcachefs (loop2): set_fs_needs_rebalance... [ 145.690156][ T6547] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 145.690180][ T6547] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 145.693415][ T6538] done [ 145.694099][ T6538] bcachefs (loop2): check_extents_to_backpointers... [ 145.695048][ T6538] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 145.708827][ T6538] done [ 145.722075][ T6538] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 145.722102][ T6538] bcachefs (loop2): check_alloc_info... done [ 145.735151][ T6538] bcachefs (loop2): check_lrus... done [ 145.736249][ T6538] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./41/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 145.737433][ T6538] bcachefs (loop2): check_backpointers_to_extents... done [ 145.738851][ T6538] bcachefs (loop2): check_extents_to_backpointers... done [ 145.749823][ T6538] bcachefs (loop2): check_alloc_to_lru_refs... done [ 145.752523][ T6538] bcachefs (loop2): bucket_gens_init... done [ 145.754562][ T6538] bcachefs (loop2): check_snapshot_trees... done [ 145.755709][ T6538] bcachefs (loop2): check_snapshots... done [ 145.756386][ T6538] bcachefs (loop2): check_subvols... done [pid 5839] umount2("./41/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./41/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./41/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./41/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 145.757161][ T6538] bcachefs (loop2): check_subvol_children... done [ 145.757927][ T6538] bcachefs (loop2): delete_dead_snapshots... done [ 145.758609][ T6538] bcachefs (loop2): check_inodes... done [ 145.761417][ T6538] bcachefs (loop2): check_extents... done [ 145.769979][ T6538] bcachefs (loop2): check_indirect_extents... done [ 145.770708][ T6538] bcachefs (loop2): check_dirents... done [ 145.772247][ T6538] bcachefs (loop2): check_xattrs... done [ 145.773760][ T6538] bcachefs (loop2): check_root... done [ 145.774488][ T6538] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] close(4) = 0 [pid 5839] rmdir("./41/file1") = 0 [pid 5839] umount2("./41/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./41/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./41/binderfs") = 0 [ 145.775407][ T6538] bcachefs (loop2): check_subvolume_structure... done [ 145.776067][ T6538] bcachefs (loop2): check_directory_structure... done [ 145.776727][ T6538] bcachefs (loop2): check_nlinks... done [ 145.780514][ T6538] bcachefs (loop2): check_rebalance_work... done [ 145.781266][ T6538] bcachefs (loop2): resume_logged_ops... done [ 145.781998][ T6538] bcachefs (loop2): delete_dead_inodes... done [ 145.783692][ T6538] bcachefs (loop2): set_fs_needs_rebalance... done [ 145.792379][ T6538] bcachefs (loop2): done starting filesystem [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./41") = 0 [pid 5839] mkdir("./42", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 145.916692][ T5839] bcachefs (loop2): shutting down [ 145.916715][ T5839] bcachefs (loop2): going read-only [ 145.916743][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 145.953435][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 145.953804][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 145.954785][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 145.956583][ T5839] bcachefs (loop2): marking filesystem clean [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6725 ./strace-static-x86_64: Process 6725 attached [pid 6725] set_robust_list(0x5555901c6760, 24) = 0 [pid 6725] chdir("./42") = 0 [ 146.017393][ T5839] bcachefs (loop2): shutdown complete [ 146.820428][ T6549] loop2: detected capacity change from 0 to 32768 [ 146.948553][ T6549] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 146.948581][ T6549] allowing incompatible features above 0.0: (unknown version) [ 146.948594][ T6549] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 6725] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6725] setpgid(0, 0) = 0 [pid 6725] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6725] write(3, "1000", 4) = 4 [pid 6725] close(3) = 0 [pid 6725] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6725] write(1, "executing program\n", 18executing program ) = 18 [pid 6725] memfd_create("syzkaller", 0) = 3 [ 146.948621][ T6549] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 146.948757][ T6549] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 146.948998][ T6549] bcachefs (loop2): Version upgrade required: [ 146.948998][ T6549] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 146.948998][ T6549] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6725] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 146.948998][ T6549] 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,check_rebalance_work,set_fs_needs_rebalance [ 146.968581][ T6549] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 146.968608][ T6549] size != 0, deleting [ 146.970272][ T6549] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 146.973631][ T6549] bcachefs (loop2): check_topology... done [ 146.975092][ T6549] bcachefs (loop2): accounting_read... done [ 147.006586][ T6549] bcachefs (loop2): alloc_read... done [ 147.007527][ T6549] bcachefs (loop2): snapshots_read... done [ 147.008375][ T6549] bcachefs (loop2): check_allocations... [ 147.011696][ T6549] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 147.011717][ T6549] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 147.013607][ T6549] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 147.013631][ T6549] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 147.015014][ T6549] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 147.015032][ T6549] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 147.016476][ T6549] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 147.016494][ T6549] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 147.019034][ T6549] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 147.019052][ T6549] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 147.020337][ T6549] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.020459][ T6549] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 147.023257][ T6549] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6725] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 147.023366][ T6549] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 147.023775][ T6549] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.023882][ T6549] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 147.024094][ T6549] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.024208][ T6549] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6725] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6725] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6725] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6725] close(3) = 0 [pid 6725] close(4) = 0 [pid 6725] mkdir("./file1", 0777) = 0 [ 147.024412][ T6549] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.024514][ T6549] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 147.024721][ T6549] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.024827][ T6549] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 147.025027][ T6549] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.025132][ T6549] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 147.025340][ T6549] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 147.025442][ T6549] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 147.025669][ T6549] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 147.025776][ T6549] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 147.025980][ T6549] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 147.026088][ T6549] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 147.026313][ T6549] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 147.026329][ T6549] Ratelimiting new instances of previous error [ 147.026454][ T6549] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 147.026470][ T6549] Ratelimiting new instances of previous error [ 147.039754][ T6549] done [ 147.041813][ T6549] bcachefs (loop2): going read-write [ 147.047827][ T6549] bcachefs (loop2): journal_replay... done [ 147.076750][ T6549] bcachefs (loop2): check_alloc_info... [ 147.078527][ T6549] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 147.078544][ T6549] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 147.078556][ T6549] gen 0 oldest_gen 0 data_type need_discard [ 147.078567][ T6549] journal_seq_nonempty 6 [ 147.078579][ T6549] journal_seq_empty 0 [ 147.078588][ T6549] need_discard 1 [ 147.078597][ T6549] need_inc_gen 1 [ 147.078608][ T6549] dirty_sectors 0 [ 147.078624][ T6549] stripe_sectors 0 [ 147.078636][ T6549] cached_sectors 0 [ 147.078645][ T6549] stripe 0 [ 147.078655][ T6549] stripe_redundancy 0 [ 147.078665][ T6549] io_time[READ] 1 [ 147.078675][ T6549] io_time[WRITE] 768 [ 147.078684][ T6549] fragmentation 0 [ 147.078694][ T6549] bp_start 8 [ 147.078704][ T6549] , fixing [ 147.094643][ T6549] done [ 147.098433][ T6549] bcachefs (loop2): check_lrus... done [ 147.099832][ T6549] bcachefs (loop2): check_btree_backpointers... done [ 147.103497][ T6549] bcachefs (loop2): check_backpointers_to_extents... done [ 147.108206][ T6549] bcachefs (loop2): check_extents_to_backpointers... [ 147.110706][ T6549] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 147.112184][ T6549] done [ 147.112868][ T6549] bcachefs (loop2): check_alloc_to_lru_refs... [ 147.114748][ T6549] bcachefs (loop2): missing fragmentation lru entry [ 147.114766][ T6549] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 147.114777][ T6549] gen 0 oldest_gen 0 data_type user [ 147.114788][ T6549] journal_seq_nonempty 5 [ 147.114798][ T6549] journal_seq_empty 134217728 [ 147.114810][ T6549] need_discard 1 [ 147.114820][ T6549] need_inc_gen 1 [ 147.114830][ T6549] dirty_sectors 16 [ 147.114840][ T6549] stripe_sectors 1802251 [ 147.114851][ T6549] cached_sectors 0 [ 147.114861][ T6549] stripe 0 [ 147.114871][ T6549] stripe_redundancy 0 [ 147.114882][ T6549] io_time[READ] 1 [ 147.114892][ T6549] io_time[WRITE] 512 [ 147.114902][ T6549] fragmentation 0 [ 147.114913][ T6549] bp_start 7 [ 147.114923][ T6549] , fixing [ 147.116469][ T6549] done [ 147.117991][ T6549] bcachefs (loop2): bucket_gens_init... done [ 147.123549][ T6549] bcachefs (loop2): check_snapshot_trees... done [ 147.124381][ T6549] bcachefs (loop2): check_snapshots... [ 147.124967][ T6549] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 147.124985][ T6549] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 147.136038][ T6549] done [ 147.136742][ T6549] bcachefs (loop2): check_subvols... done [ 147.138200][ T6549] bcachefs (loop2): check_subvol_children... done [pid 6725] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6725] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6725] chdir("./file1") = 0 [pid 6725] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6725] ioctl(4, LOOP_CLR_FD) = 0 [ 147.139091][ T6549] bcachefs (loop2): delete_dead_snapshots... done [ 147.140395][ T6549] bcachefs (loop2): check_inodes... [ 147.141440][ T6549] bcachefs (loop2): inode points to missing dirent [ 147.141457][ T6549] inum: 4098:4294967295 [ 147.141467][ T6549] mode=40755 [ 147.141477][ T6549] flags=(15300000) [ 147.141487][ T6549] journal_seq=4 [ 147.141496][ T6549] hash_seed=ece93825deac2443 [ 147.141524][ T6549] hash_type=siphash [ 147.141534][ T6549] bi_size=0 [ 147.141544][ T6549] bi_sectors=0 [ 147.141553][ T6549] bi_version=0 [pid 6725] close(4) = 0 [pid 6725] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6725] exit_group(0) = ? [pid 6725] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6725, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] umount2("./42", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./42", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 147.141563][ T6549] bi_atime=2770562249 [ 147.141573][ T6549] bi_ctime=2780562352 [ 147.141583][ T6549] bi_mtime=2780562352 [ 147.141593][ T6549] bi_otime=2770562249 [ 147.141603][ T6549] bi_uid=0 [ 147.141620][ T6549] bi_gid=0 [ 147.141629][ T6549] bi_nlink=0 [ 147.141639][ T6549] bi_generation=0 [ 147.141648][ T6549] bi_dev=0 [ 147.141657][ T6549] bi_data_checksum=0 [ 147.141667][ T6549] bi_compression=0 [ 147.141679][ T6549] bi_project=0 [ 147.141688][ T6549] bi_background_compression=0 [ 147.141698][ T6549] bi_data_replicas=0 [ 147.141708][ T6549] bi_promote_target=0 [ 147.141718][ T6549] bi_foreground_target=64 [ 147.141728][ T6549] bi_background_target=1 [ 147.141737][ T6549] bi_erasure_code=0 [ 147.141747][ T6549] bi_fields_set=0 [ 147.141757][ T6549] bi_dir=0 [ 147.141765][ T6549] bi_dir_offset=32 [ 147.141775][ T6549] bi_subvol=0 [ 147.141784][ T6549] bi_parent_subvol=0 [ 147.141806][ T6549] bi_nocow=0 [ 147.141815][ T6549] bi_depth=0 [ 147.141824][ T6549] bi_inodes_32bit=0 [ 147.141833][ T6549] bi_casefold=0, fixing [ 147.143923][ T6549] done [ 147.144634][ T6549] bcachefs (loop2): check_extents... done [ 147.146069][ T6549] bcachefs (loop2): check_indirect_extents... done [ 147.146882][ T6549] bcachefs (loop2): check_dirents... [ 147.148798][ T6549] bcachefs (loop2): directory with missing backpointer [ 147.148817][ T6549] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 147.148832][ T6549] inum: 4098:4294967295 [ 147.148844][ T6549] mode=40755 [ 147.148854][ T6549] flags=(11300000) [ 147.148864][ T6549] journal_seq=22 [ 147.148874][ T6549] hash_seed=ece93825deac2443 [ 147.148885][ T6549] hash_type=siphash [ 147.148895][ T6549] bi_size=0 [ 147.148905][ T6549] bi_sectors=0 [ 147.148914][ T6549] bi_version=0 [ 147.148924][ T6549] bi_atime=2770562249 [ 147.148934][ T6549] bi_ctime=2780562352 [ 147.148944][ T6549] bi_mtime=2780562352 [ 147.148954][ T6549] bi_otime=2770562249 [ 147.148965][ T6549] bi_uid=0 [ 147.148975][ T6549] bi_gid=0 [ 147.148983][ T6549] bi_nlink=0 [ 147.148994][ T6549] bi_generation=0 [ 147.149004][ T6549] bi_dev=0 [ 147.149013][ T6549] bi_data_checksum=0 [ 147.149023][ T6549] bi_compression=0 [ 147.149032][ T6549] bi_project=0 [ 147.149042][ T6549] bi_background_compression=0 [ 147.149053][ T6549] bi_data_replicas=0 [ 147.149063][ T6549] bi_promote_target=0 [ 147.149073][ T6549] bi_foreground_target=64 [ 147.149083][ T6549] bi_background_target=1 [ 147.149093][ T6549] bi_erasure_code=0 [ 147.149103][ T6549] bi_fields_set=0 [ 147.149112][ T6549] bi_dir=0 [ 147.149121][ T6549] bi_dir_offset=0 [ 147.149131][ T6549] bi_subvol=0 [ 147.149141][ T6549] bi_parent_subvol=0 [ 147.149151][ T6549] bi_nocow=0 [ 147.149160][ T6549] bi_depth=0 [ 147.149169][ T6549] bi_inodes_32bit=0 [ 147.149177][ T6549] bi_casefold=0, fixing [ 147.155793][ T6549] done [ 147.156870][ T6549] bcachefs (loop2): check_xattrs... done [ 147.160102][ T6549] bcachefs (loop2): check_root... done [ 147.163375][ T6549] bcachefs (loop2): check_unreachable_inodes... done [ 147.165431][ T6549] bcachefs (loop2): check_subvolume_structure... done [ 147.166279][ T6549] bcachefs (loop2): check_directory_structure... done [ 147.167146][ T6549] bcachefs (loop2): check_nlinks... [ 147.167878][ T6549] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 147.169008][ T6549] done [ 147.170323][ T6549] bcachefs (loop2): check_rebalance_work... done [ 147.172422][ T6549] bcachefs (loop2): resume_logged_ops... done [ 147.173164][ T6549] bcachefs (loop2): delete_dead_inodes... done [ 147.182610][ T6549] bcachefs (loop2): set_fs_needs_rebalance... [ 147.190734][ T6558] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 147.190758][ T6558] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 147.194933][ T6549] done [ 147.195766][ T6549] bcachefs (loop2): check_extents_to_backpointers... [pid 5839] umount2("./42/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./42/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./42/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./42/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./42/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 147.197122][ T6549] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 147.203555][ T6549] done [ 147.220929][ T6549] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 147.220955][ T6549] bcachefs (loop2): check_alloc_info... done [ 147.230670][ T6549] bcachefs (loop2): check_lrus... done [ 147.233293][ T6549] bcachefs (loop2): check_btree_backpointers... done [ 147.234492][ T6549] bcachefs (loop2): check_backpointers_to_extents... done [ 147.240033][ T6549] bcachefs (loop2): check_extents_to_backpointers... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./42/file1") = 0 [pid 5839] umount2("./42/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./42/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./42/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./42") = 0 [ 147.242340][ T6549] bcachefs (loop2): check_alloc_to_lru_refs... done [ 147.244456][ T6549] bcachefs (loop2): bucket_gens_init... done [ 147.250840][ T6549] bcachefs (loop2): check_snapshot_trees... done [ 147.252552][ T6549] bcachefs (loop2): check_snapshots... done [ 147.254301][ T6549] bcachefs (loop2): check_subvols... done [ 147.255044][ T6549] bcachefs (loop2): check_subvol_children... done [ 147.255815][ T6549] bcachefs (loop2): delete_dead_snapshots... done [ 147.256543][ T6549] bcachefs (loop2): check_inodes... done [pid 5839] mkdir("./43", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6736 ./strace-static-x86_64: Process 6736 attached [ 147.260635][ T6549] bcachefs (loop2): check_extents... done [ 147.263468][ T6549] bcachefs (loop2): check_indirect_extents... done [ 147.264195][ T6549] bcachefs (loop2): check_dirents... done [ 147.270171][ T6549] bcachefs (loop2): check_xattrs... done [ 147.271280][ T6549] bcachefs (loop2): check_root... done [ 147.272032][ T6549] bcachefs (loop2): check_unreachable_inodes... done [ 147.272898][ T6549] bcachefs (loop2): check_subvolume_structure... done [ 147.274160][ T6549] bcachefs (loop2): check_directory_structure... done [pid 6736] set_robust_list(0x5555901c6760, 24) = 0 [pid 6736] chdir("./43") = 0 [pid 6736] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6736] setpgid(0, 0) = 0 [pid 6736] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6736] write(3, "1000", 4) = 4 [pid 6736] close(3) = 0 [ 147.274833][ T6549] bcachefs (loop2): check_nlinks... done [ 147.280045][ T6549] bcachefs (loop2): check_rebalance_work... done [ 147.280892][ T6549] bcachefs (loop2): resume_logged_ops... done [ 147.281603][ T6549] bcachefs (loop2): delete_dead_inodes... done [ 147.282363][ T6549] bcachefs (loop2): set_fs_needs_rebalance... done [ 147.292104][ T6549] bcachefs (loop2): done starting filesystem [ 147.343557][ T5839] bcachefs (loop2): shutting down [ 147.343577][ T5839] bcachefs (loop2): going read-only [pid 6736] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6736] write(1, "executing program\n", 18executing program ) = 18 [pid 6736] memfd_create("syzkaller", 0) = 3 [pid 6736] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 147.343605][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 147.352207][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 147.352207][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 147.352380][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 147.352397][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 147.352416][ T87] loop2 checksum error [ 147.381063][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 147.385061][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 147.385941][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 147.387670][ T5839] bcachefs (loop2): marking filesystem clean [ 147.455947][ T5839] bcachefs (loop2): shutdown complete [ 148.296122][ T6560] loop2: detected capacity change from 0 to 32768 [ 148.430336][ T6560] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 148.430365][ T6560] allowing incompatible features above 0.0: (unknown version) [ 148.430380][ T6560] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 148.430408][ T6560] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 148.430536][ T6560] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 148.431281][ T6560] bcachefs (loop2): Version upgrade required: [ 148.431281][ T6560] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 148.431281][ T6560] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 148.431281][ T6560] 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,check_rebalance_work,set_fs_needs_rebalance [ 148.451390][ T6560] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 148.451416][ T6560] size != 0, deleting [ 148.452931][ T6560] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 148.456220][ T6560] bcachefs (loop2): check_topology... done [ 148.457719][ T6560] bcachefs (loop2): accounting_read... done [ 148.458598][ T6560] bcachefs (loop2): alloc_read... done [ 148.463063][ T6560] bcachefs (loop2): snapshots_read... done [ 148.463878][ T6560] bcachefs (loop2): check_allocations... [ 148.465840][ T6560] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 6736] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6736] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6736] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 148.465862][ T6560] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 148.467819][ T6560] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 148.467838][ T6560] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 148.469188][ T6560] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 6736] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6736] close(3) = 0 [pid 6736] close(4) = 0 [pid 6736] mkdir("./file1", 0777) = 0 [ 148.469205][ T6560] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 148.471859][ T6560] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 148.471879][ T6560] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 148.474899][ T6560] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 148.474917][ T6560] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 148.475884][ T6560] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.476012][ T6560] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.476570][ T6560] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.476679][ T6560] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.477076][ T6560] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.477180][ T6560] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.477394][ T6560] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.477512][ T6560] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.477719][ T6560] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.477819][ T6560] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.478017][ T6560] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.478116][ T6560] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.478321][ T6560] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.478421][ T6560] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 148.478613][ T6560] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 148.478716][ T6560] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 148.478911][ T6560] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 148.479023][ T6560] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 148.481382][ T6560] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 148.481493][ T6560] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 148.481757][ T6560] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 148.481774][ T6560] Ratelimiting new instances of previous error [ 148.481906][ T6560] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 148.481923][ T6560] Ratelimiting new instances of previous error [ 148.493733][ T6560] done [ 148.496243][ T6560] bcachefs (loop2): going read-write [ 148.502173][ T6560] bcachefs (loop2): journal_replay... done [ 148.530501][ T6560] bcachefs (loop2): check_alloc_info... [ 148.532357][ T6560] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 148.532374][ T6560] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 148.532386][ T6560] gen 0 oldest_gen 0 data_type need_discard [ 148.532398][ T6560] journal_seq_nonempty 6 [ 148.532408][ T6560] journal_seq_empty 0 [ 148.532419][ T6560] need_discard 1 [ 148.532430][ T6560] need_inc_gen 1 [ 148.532440][ T6560] dirty_sectors 0 [ 148.532450][ T6560] stripe_sectors 0 [ 148.532460][ T6560] cached_sectors 0 [ 148.532470][ T6560] stripe 0 [ 148.532480][ T6560] stripe_redundancy 0 [ 148.532490][ T6560] io_time[READ] 1 [ 148.532500][ T6560] io_time[WRITE] 768 [ 148.532512][ T6560] fragmentation 0 [ 148.532522][ T6560] bp_start 8 [ 148.532541][ T6560] , fixing [ 148.548584][ T6560] done [ 148.552098][ T6560] bcachefs (loop2): check_lrus... done [ 148.556164][ T6560] bcachefs (loop2): check_btree_backpointers... done [ 148.557536][ T6560] bcachefs (loop2): check_backpointers_to_extents... done [ 148.561582][ T6560] bcachefs (loop2): check_extents_to_backpointers... [ 148.564156][ T6560] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 148.565640][ T6560] done [ 148.566355][ T6560] bcachefs (loop2): check_alloc_to_lru_refs... [pid 6736] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6736] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6736] chdir("./file1") = 0 [pid 6736] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6736] ioctl(4, LOOP_CLR_FD) = 0 [pid 6736] close(4) = 0 [pid 6736] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6736] exit_group(0) = ? [pid 6736] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6736, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=41 /* 0.41 s */} --- [ 148.568201][ T6560] bcachefs (loop2): missing fragmentation lru entry [ 148.568219][ T6560] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 148.568231][ T6560] gen 0 oldest_gen 0 data_type user [ 148.568243][ T6560] journal_seq_nonempty 5 [ 148.568255][ T6560] journal_seq_empty 134217728 [ 148.568266][ T6560] need_discard 1 [ 148.568275][ T6560] need_inc_gen 1 [ 148.568299][ T6560] dirty_sectors 16 [ 148.568309][ T6560] stripe_sectors 1802251 [ 148.568320][ T6560] cached_sectors 0 [pid 5839] umount2("./43", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./43", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 148.568330][ T6560] stripe 0 [ 148.568340][ T6560] stripe_redundancy 0 [ 148.568349][ T6560] io_time[READ] 1 [ 148.568361][ T6560] io_time[WRITE] 512 [ 148.568371][ T6560] fragmentation 0 [ 148.568381][ T6560] bp_start 7 [ 148.568390][ T6560] , fixing [ 148.572263][ T6560] done [ 148.574870][ T6560] bcachefs (loop2): bucket_gens_init... done [ 148.576963][ T6560] bcachefs (loop2): check_snapshot_trees... done [ 148.577780][ T6560] bcachefs (loop2): check_snapshots... [ 148.578367][ T6560] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 148.578384][ T6560] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 148.589540][ T6560] done [ 148.590236][ T6560] bcachefs (loop2): check_subvols... done [ 148.591797][ T6560] bcachefs (loop2): check_subvol_children... done [ 148.592923][ T6560] bcachefs (loop2): delete_dead_snapshots... done [ 148.593700][ T6560] bcachefs (loop2): check_inodes... [ 148.595434][ T6560] bcachefs (loop2): inode points to missing dirent [ 148.595451][ T6560] inum: 4098:4294967295 [ 148.595462][ T6560] mode=40755 [ 148.595472][ T6560] flags=(15300000) [ 148.595481][ T6560] journal_seq=4 [ 148.595491][ T6560] hash_seed=ece93825deac2443 [ 148.595501][ T6560] hash_type=siphash [ 148.595511][ T6560] bi_size=0 [ 148.595521][ T6560] bi_sectors=0 [ 148.595530][ T6560] bi_version=0 [ 148.595539][ T6560] bi_atime=2770562249 [ 148.595549][ T6560] bi_ctime=2780562352 [ 148.595559][ T6560] bi_mtime=2780562352 [ 148.595569][ T6560] bi_otime=2770562249 [ 148.595580][ T6560] bi_uid=0 [ 148.595589][ T6560] bi_gid=0 [ 148.595598][ T6560] bi_nlink=0 [ 148.595607][ T6560] bi_generation=0 [ 148.595617][ T6560] bi_dev=0 [ 148.595626][ T6560] bi_data_checksum=0 [ 148.595636][ T6560] bi_compression=0 [ 148.595645][ T6560] bi_project=0 [ 148.595654][ T6560] bi_background_compression=0 [ 148.595665][ T6560] bi_data_replicas=0 [ 148.595674][ T6560] bi_promote_target=0 [ 148.595684][ T6560] bi_foreground_target=64 [ 148.595693][ T6560] bi_background_target=1 [ 148.595703][ T6560] bi_erasure_code=0 [ 148.595713][ T6560] bi_fields_set=0 [ 148.595722][ T6560] bi_dir=0 [ 148.595731][ T6560] bi_dir_offset=32 [ 148.595740][ T6560] bi_subvol=0 [ 148.595749][ T6560] bi_parent_subvol=0 [ 148.595760][ T6560] bi_nocow=0 [ 148.595769][ T6560] bi_depth=0 [ 148.595779][ T6560] bi_inodes_32bit=0 [ 148.595790][ T6560] bi_casefold=0, fixing [ 148.597459][ T6560] done [ 148.598175][ T6560] bcachefs (loop2): check_extents... done [ 148.601151][ T6560] bcachefs (loop2): check_indirect_extents... done [ 148.602962][ T6560] bcachefs (loop2): check_dirents... [ 148.606766][ T6560] bcachefs (loop2): directory with missing backpointer [ 148.606784][ T6560] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 148.606800][ T6560] inum: 4098:4294967295 [ 148.606809][ T6560] mode=40755 [ 148.606819][ T6560] flags=(11300000) [ 148.606828][ T6560] journal_seq=22 [ 148.606838][ T6560] hash_seed=ece93825deac2443 [ 148.606848][ T6560] hash_type=siphash [ 148.606858][ T6560] bi_size=0 [ 148.606867][ T6560] bi_sectors=0 [ 148.606876][ T6560] bi_version=0 [ 148.606886][ T6560] bi_atime=2770562249 [ 148.606895][ T6560] bi_ctime=2780562352 [ 148.606905][ T6560] bi_mtime=2780562352 [ 148.606915][ T6560] bi_otime=2770562249 [ 148.606924][ T6560] bi_uid=0 [ 148.606934][ T6560] bi_gid=0 [ 148.606943][ T6560] bi_nlink=0 [ 148.606952][ T6560] bi_generation=0 [ 148.606961][ T6560] bi_dev=0 [ 148.606970][ T6560] bi_data_checksum=0 [ 148.606979][ T6560] bi_compression=0 [ 148.606989][ T6560] bi_project=0 [ 148.606998][ T6560] bi_background_compression=0 [ 148.607010][ T6560] bi_data_replicas=0 [ 148.607020][ T6560] bi_promote_target=0 [ 148.607029][ T6560] bi_foreground_target=64 [ 148.607039][ T6560] bi_background_target=1 [ 148.607049][ T6560] bi_erasure_code=0 [pid 5839] umount2("./43/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./43/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./43/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./43/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./43/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 148.607059][ T6560] bi_fields_set=0 [ 148.607068][ T6560] bi_dir=0 [ 148.607077][ T6560] bi_dir_offset=0 [ 148.607087][ T6560] bi_subvol=0 [ 148.607096][ T6560] bi_parent_subvol=0 [ 148.607106][ T6560] bi_nocow=0 [ 148.607115][ T6560] bi_depth=0 [ 148.607124][ T6560] bi_inodes_32bit=0 [ 148.607134][ T6560] bi_casefold=0, fixing [ 148.610103][ T6560] done [ 148.611209][ T6560] bcachefs (loop2): check_xattrs... done [ 148.613557][ T6560] bcachefs (loop2): check_root... done [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./43/file1") = 0 [pid 5839] umount2("./43/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./43/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./43/binderfs") = 0 [ 148.616521][ T6560] bcachefs (loop2): check_unreachable_inodes... done [ 148.617564][ T6560] bcachefs (loop2): check_subvolume_structure... done [ 148.618402][ T6560] bcachefs (loop2): check_directory_structure... done [ 148.619093][ T6560] bcachefs (loop2): check_nlinks... [ 148.619871][ T6560] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 148.621645][ T6560] done [ 148.622285][ T6560] bcachefs (loop2): check_rebalance_work... done [ 148.623443][ T6560] bcachefs (loop2): resume_logged_ops... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./43") = 0 [pid 5839] mkdir("./44", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6747 ./strace-static-x86_64: Process 6747 attached [ 148.624211][ T6560] bcachefs (loop2): delete_dead_inodes... done [ 148.633636][ T6560] bcachefs (loop2): set_fs_needs_rebalance... [ 148.643837][ T6569] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 148.643862][ T6569] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 148.647078][ T6560] done [ 148.648067][ T6560] bcachefs (loop2): check_extents_to_backpointers... [ 148.649068][ T6560] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [pid 6747] set_robust_list(0x5555901c6760, 24) = 0 [pid 6747] chdir("./44") = 0 [pid 6747] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6747] setpgid(0, 0) = 0 [pid 6747] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 148.654759][ T6560] done [ 148.664341][ T6560] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 148.664365][ T6560] bcachefs (loop2): check_alloc_info... done [ 148.669844][ T6560] bcachefs (loop2): check_lrus... done [ 148.671047][ T6560] bcachefs (loop2): check_btree_backpointers... done [ 148.672365][ T6560] bcachefs (loop2): check_backpointers_to_extents... done [ 148.673908][ T6560] bcachefs (loop2): check_extents_to_backpointers... done [ 148.675625][ T6560] bcachefs (loop2): check_alloc_to_lru_refs... done [pid 6747] write(3, "1000", 4) = 4 [pid 6747] close(3) = 0 [pid 6747] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6747] write(1, "executing program\n", 18executing program ) = 18 [pid 6747] memfd_create("syzkaller", 0) = 3 [pid 6747] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 148.677926][ T6560] bcachefs (loop2): bucket_gens_init... done [ 148.681243][ T6560] bcachefs (loop2): check_snapshot_trees... done [ 148.682379][ T6560] bcachefs (loop2): check_snapshots... done [ 148.683204][ T6560] bcachefs (loop2): check_subvols... done [ 148.684079][ T6560] bcachefs (loop2): check_subvol_children... done [ 148.684908][ T6560] bcachefs (loop2): delete_dead_snapshots... done [ 148.685602][ T6560] bcachefs (loop2): check_inodes... done [ 148.686808][ T6560] bcachefs (loop2): check_extents... done [ 148.688262][ T6560] bcachefs (loop2): check_indirect_extents... done [ 148.689072][ T6560] bcachefs (loop2): check_dirents... done [ 148.692104][ T6560] bcachefs (loop2): check_xattrs... done [ 148.692999][ T6560] bcachefs (loop2): check_root... done [ 148.693795][ T6560] bcachefs (loop2): check_unreachable_inodes... done [ 148.694817][ T6560] bcachefs (loop2): check_subvolume_structure... done [ 148.695588][ T6560] bcachefs (loop2): check_directory_structure... done [ 148.696394][ T6560] bcachefs (loop2): check_nlinks... done [ 148.697589][ T6560] bcachefs (loop2): check_rebalance_work... done [ 148.698488][ T6560] bcachefs (loop2): resume_logged_ops... done [ 148.700132][ T6560] bcachefs (loop2): delete_dead_inodes... done [ 148.702313][ T6560] bcachefs (loop2): set_fs_needs_rebalance... done [ 148.705707][ T6560] bcachefs (loop2): done starting filesystem [ 148.788268][ T5839] bcachefs (loop2): shutting down [ 148.788289][ T5839] bcachefs (loop2): going read-only [ 148.788318][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 148.822172][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 148.823507][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 148.824442][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 148.826217][ T5839] bcachefs (loop2): marking filesystem clean [ 148.886185][ T5839] bcachefs (loop2): shutdown complete [ 149.632709][ T6571] loop2: detected capacity change from 0 to 32768 [ 149.762272][ T6571] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 149.762300][ T6571] allowing incompatible features above 0.0: (unknown version) [ 149.762315][ T6571] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 149.762348][ T6571] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 149.762492][ T6571] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 149.762728][ T6571] bcachefs (loop2): Version upgrade required: [ 149.762728][ T6571] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 149.762728][ T6571] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6747] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6747] munmap(0x7fbbeb93a000, 138412032) = 0 [ 149.762728][ T6571] 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,check_rebalance_work,set_fs_needs_rebalance [ 149.781718][ T6571] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 149.781744][ T6571] size != 0, deleting [ 149.782891][ T6571] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 149.786207][ T6571] bcachefs (loop2): check_topology... done [pid 6747] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6747] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6747] close(3) = 0 [pid 6747] close(4) = 0 [pid 6747] mkdir("./file1", 0777) = 0 [ 149.788175][ T6571] bcachefs (loop2): accounting_read... done [ 149.818040][ T6571] bcachefs (loop2): alloc_read... done [ 149.819083][ T6571] bcachefs (loop2): snapshots_read... done [ 149.820619][ T6571] bcachefs (loop2): check_allocations... [ 149.822553][ T6571] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 149.822573][ T6571] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 149.824603][ T6571] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 149.824621][ T6571] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 149.825989][ T6571] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 149.826008][ T6571] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 149.827580][ T6571] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 149.827597][ T6571] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 149.831732][ T6571] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 149.831751][ T6571] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 149.832703][ T6571] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.832828][ T6571] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.833377][ T6571] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.833492][ T6571] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.833893][ T6571] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.834003][ T6571] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.834213][ T6571] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.834329][ T6571] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.834541][ T6571] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.834648][ T6571] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.834849][ T6571] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.834954][ T6571] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.835154][ T6571] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.835260][ T6571] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 149.835483][ T6571] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 149.835588][ T6571] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 149.835791][ T6571] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 149.835899][ T6571] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 149.836101][ T6571] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 149.836206][ T6571] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 149.836460][ T6571] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 149.836477][ T6571] Ratelimiting new instances of previous error [ 149.836606][ T6571] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 149.836623][ T6571] Ratelimiting new instances of previous error [ 149.850902][ T6571] done [ 149.853318][ T6571] bcachefs (loop2): going read-write [ 149.858548][ T6571] bcachefs (loop2): journal_replay... done [ 149.885292][ T6571] bcachefs (loop2): check_alloc_info... [ 149.887088][ T6571] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 149.887106][ T6571] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 149.887117][ T6571] gen 0 oldest_gen 0 data_type need_discard [ 149.887128][ T6571] journal_seq_nonempty 6 [ 149.887138][ T6571] journal_seq_empty 0 [ 149.887148][ T6571] need_discard 1 [ 149.887158][ T6571] need_inc_gen 1 [pid 6747] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6747] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6747] chdir("./file1") = 0 [pid 6747] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 149.887170][ T6571] dirty_sectors 0 [ 149.887180][ T6571] stripe_sectors 0 [ 149.887190][ T6571] cached_sectors 0 [ 149.887199][ T6571] stripe 0 [ 149.887210][ T6571] stripe_redundancy 0 [ 149.887220][ T6571] io_time[READ] 1 [ 149.887229][ T6571] io_time[WRITE] 768 [ 149.887239][ T6571] fragmentation 0 [ 149.887249][ T6571] bp_start 8 [ 149.887260][ T6571] , fixing [ 149.903176][ T6571] done [ 149.909334][ T6571] bcachefs (loop2): check_lrus... done [pid 6747] ioctl(4, LOOP_CLR_FD) = 0 [pid 6747] close(4) = 0 [pid 6747] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6747] exit_group(0) = ? [pid 6747] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6747, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=44 /* 0.44 s */} --- [pid 5839] umount2("./44", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./44", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 149.910513][ T6571] bcachefs (loop2): check_btree_backpointers... done [ 149.911886][ T6571] bcachefs (loop2): check_backpointers_to_extents... done [ 149.917293][ T6571] bcachefs (loop2): check_extents_to_backpointers... [ 149.918619][ T6571] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 149.921086][ T6571] done [ 149.921779][ T6571] bcachefs (loop2): check_alloc_to_lru_refs... [ 149.923701][ T6571] bcachefs (loop2): missing fragmentation lru entry [ 149.923718][ T6571] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 149.923729][ T6571] gen 0 oldest_gen 0 data_type user [ 149.923740][ T6571] journal_seq_nonempty 5 [ 149.923750][ T6571] journal_seq_empty 134217728 [ 149.923762][ T6571] need_discard 1 [ 149.923772][ T6571] need_inc_gen 1 [ 149.923782][ T6571] dirty_sectors 16 [ 149.923792][ T6571] stripe_sectors 1802251 [ 149.923803][ T6571] cached_sectors 0 [ 149.923812][ T6571] stripe 0 [ 149.923822][ T6571] stripe_redundancy 0 [ 149.923832][ T6571] io_time[READ] 1 [ 149.923842][ T6571] io_time[WRITE] 512 [ 149.923852][ T6571] fragmentation 0 [ 149.923861][ T6571] bp_start 7 [ 149.923872][ T6571] , fixing [ 149.925407][ T6571] done [ 149.926917][ T6571] bcachefs (loop2): bucket_gens_init... done [ 149.932668][ T6571] bcachefs (loop2): check_snapshot_trees... done [ 149.933770][ T6571] bcachefs (loop2): check_snapshots... [ 149.934358][ T6571] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 149.934376][ T6571] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 149.945595][ T6571] done [ 149.946302][ T6571] bcachefs (loop2): check_subvols... done [ 149.947915][ T6571] bcachefs (loop2): check_subvol_children... done [ 149.949178][ T6571] bcachefs (loop2): delete_dead_snapshots... done [ 149.950408][ T6571] bcachefs (loop2): check_inodes... [ 149.951508][ T6571] bcachefs (loop2): inode points to missing dirent [ 149.951523][ T6571] inum: 4098:4294967295 [ 149.951535][ T6571] mode=40755 [ 149.951545][ T6571] flags=(15300000) [ 149.951554][ T6571] journal_seq=4 [ 149.951564][ T6571] hash_seed=ece93825deac2443 [ 149.951574][ T6571] hash_type=siphash [ 149.951584][ T6571] bi_size=0 [ 149.951593][ T6571] bi_sectors=0 [ 149.951602][ T6571] bi_version=0 [ 149.951612][ T6571] bi_atime=2770562249 [ 149.951622][ T6571] bi_ctime=2780562352 [ 149.951631][ T6571] bi_mtime=2780562352 [ 149.951642][ T6571] bi_otime=2770562249 [ 149.951652][ T6571] bi_uid=0 [ 149.951661][ T6571] bi_gid=0 [ 149.951670][ T6571] bi_nlink=0 [ 149.951678][ T6571] bi_generation=0 [ 149.951688][ T6571] bi_dev=0 [ 149.951697][ T6571] bi_data_checksum=0 [ 149.951708][ T6571] bi_compression=0 [ 149.951718][ T6571] bi_project=0 [ 149.951727][ T6571] bi_background_compression=0 [ 149.951737][ T6571] bi_data_replicas=0 [ 149.951747][ T6571] bi_promote_target=0 [ 149.951756][ T6571] bi_foreground_target=64 [ 149.951766][ T6571] bi_background_target=1 [ 149.951776][ T6571] bi_erasure_code=0 [ 149.951785][ T6571] bi_fields_set=0 [ 149.951795][ T6571] bi_dir=0 [ 149.951804][ T6571] bi_dir_offset=32 [ 149.951814][ T6571] bi_subvol=0 [ 149.951823][ T6571] bi_parent_subvol=0 [ 149.951833][ T6571] bi_nocow=0 [ 149.951842][ T6571] bi_depth=0 [ 149.951851][ T6571] bi_inodes_32bit=0 [ 149.951861][ T6571] bi_casefold=0, fixing [ 149.953488][ T6571] done [ 149.954249][ T6571] bcachefs (loop2): check_extents... done [pid 5839] umount2("./44/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./44/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./44/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./44/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./44/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 149.955740][ T6571] bcachefs (loop2): check_indirect_extents... done [ 149.956525][ T6571] bcachefs (loop2): check_dirents... [ 149.958247][ T6571] bcachefs (loop2): directory with missing backpointer [ 149.958264][ T6571] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 149.958279][ T6571] inum: 4098:4294967295 [ 149.958289][ T6571] mode=40755 [ 149.958298][ T6571] flags=(11300000) [ 149.958308][ T6571] journal_seq=22 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./44/file1") = 0 [ 149.958319][ T6571] hash_seed=ece93825deac2443 [ 149.958329][ T6571] hash_type=siphash [ 149.958339][ T6571] bi_size=0 [ 149.958350][ T6571] bi_sectors=0 [ 149.958359][ T6571] bi_version=0 [ 149.958369][ T6571] bi_atime=2770562249 [ 149.958386][ T6571] bi_ctime=2780562352 [ 149.958396][ T6571] bi_mtime=2780562352 [ 149.958407][ T6571] bi_otime=2770562249 [ 149.958866][ T6571] bi_uid=0 [ 149.958876][ T6571] bi_gid=0 [ 149.958885][ T6571] bi_nlink=0 [ 149.958895][ T6571] bi_generation=0 [pid 5839] umount2("./44/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./44/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./44/binderfs") = 0 [ 149.958904][ T6571] bi_dev=0 [ 149.958913][ T6571] bi_data_checksum=0 [ 149.958923][ T6571] bi_compression=0 [ 149.958932][ T6571] bi_project=0 [ 149.958942][ T6571] bi_background_compression=0 [ 149.958952][ T6571] bi_data_replicas=0 [ 149.958962][ T6571] bi_promote_target=0 [ 149.958972][ T6571] bi_foreground_target=64 [ 149.958981][ T6571] bi_background_target=1 [ 149.958991][ T6571] bi_erasure_code=0 [ 149.959001][ T6571] bi_fields_set=0 [ 149.959011][ T6571] bi_dir=0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./44") = 0 [pid 5839] mkdir("./45", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6759 ./strace-static-x86_64: Process 6759 attached [pid 6759] set_robust_list(0x5555901c6760, 24) = 0 [pid 6759] chdir("./45") = 0 [pid 6759] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6759] setpgid(0, 0) = 0 [pid 6759] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6759] write(3, "1000", 4) = 4 [ 149.959020][ T6571] bi_dir_offset=0 [ 149.959029][ T6571] bi_subvol=0 [ 149.959038][ T6571] bi_parent_subvol=0 [ 149.959049][ T6571] bi_nocow=0 [ 149.959057][ T6571] bi_depth=0 [ 149.959068][ T6571] bi_inodes_32bit=0 [ 149.959078][ T6571] bi_casefold=0, fixing [ 149.967545][ T6571] done [ 149.968221][ T6571] bcachefs (loop2): check_xattrs... done [ 149.971719][ T6571] bcachefs (loop2): check_root... done [ 149.974321][ T6571] bcachefs (loop2): check_unreachable_inodes... done [pid 6759] close(3) = 0 [pid 6759] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6759] write(1, "executing program\n", 18executing program ) = 18 [pid 6759] memfd_create("syzkaller", 0) = 3 [pid 6759] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 149.975396][ T6571] bcachefs (loop2): check_subvolume_structure... done [ 149.976247][ T6571] bcachefs (loop2): check_directory_structure... done [ 149.977067][ T6571] bcachefs (loop2): check_nlinks... [ 149.977767][ T6571] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 149.978838][ T6571] done [ 149.980671][ T6571] bcachefs (loop2): check_rebalance_work... done [ 149.982063][ T6571] bcachefs (loop2): resume_logged_ops... done [ 149.982886][ T6571] bcachefs (loop2): delete_dead_inodes... done [ 149.992199][ T6571] bcachefs (loop2): set_fs_needs_rebalance... [ 150.000398][ T6580] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 150.000423][ T6580] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 150.001908][ T6571] done [ 150.003108][ T6571] bcachefs (loop2): check_extents_to_backpointers... [ 150.004071][ T6571] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 150.010547][ T6571] done [ 150.029128][ T6571] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 150.029147][ T6571] bcachefs (loop2): check_alloc_info... done [ 150.039133][ T6571] bcachefs (loop2): check_lrus... done [ 150.040783][ T6571] bcachefs (loop2): check_btree_backpointers... done [ 150.041963][ T6571] bcachefs (loop2): check_backpointers_to_extents... done [ 150.043337][ T6571] bcachefs (loop2): check_extents_to_backpointers... done [ 150.050081][ T6571] bcachefs (loop2): check_alloc_to_lru_refs... done [ 150.052219][ T6571] bcachefs (loop2): bucket_gens_init... done [ 150.054204][ T6571] bcachefs (loop2): check_snapshot_trees... done [ 150.060828][ T6571] bcachefs (loop2): check_snapshots... done [ 150.061646][ T6571] bcachefs (loop2): check_subvols... done [ 150.062457][ T6571] bcachefs (loop2): check_subvol_children... done [ 150.063163][ T6571] bcachefs (loop2): delete_dead_snapshots... done [ 150.063863][ T6571] bcachefs (loop2): check_inodes... done [ 150.071434][ T6571] bcachefs (loop2): check_extents... done [ 150.073177][ T6571] bcachefs (loop2): check_indirect_extents... done [ 150.073924][ T6571] bcachefs (loop2): check_dirents... done [ 150.078984][ T6571] bcachefs (loop2): check_xattrs... done [ 150.080748][ T6571] bcachefs (loop2): check_root... done [ 150.081966][ T6571] bcachefs (loop2): check_unreachable_inodes... done [ 150.082822][ T6571] bcachefs (loop2): check_subvolume_structure... done [ 150.083561][ T6571] bcachefs (loop2): check_directory_structure... done [ 150.089849][ T6571] bcachefs (loop2): check_nlinks... done [ 150.091112][ T6571] bcachefs (loop2): check_rebalance_work... done [ 150.092350][ T6571] bcachefs (loop2): resume_logged_ops... done [ 150.092990][ T6571] bcachefs (loop2): delete_dead_inodes... done [ 150.093754][ T6571] bcachefs (loop2): set_fs_needs_rebalance... done [ 150.096663][ T6571] bcachefs (loop2): done starting filesystem [ 150.191254][ T5839] bcachefs (loop2): shutting down [ 150.191274][ T5839] bcachefs (loop2): going read-only [ 150.191303][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 150.236765][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [pid 6759] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6759] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6759] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 150.237604][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 150.238472][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 150.242905][ T5839] bcachefs (loop2): marking filesystem clean [ 150.302877][ T5839] bcachefs (loop2): shutdown complete [ 151.081486][ T6582] loop2: detected capacity change from 0 to 32768 [ 151.214073][ T6582] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 6759] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6759] close(3) = 0 [pid 6759] close(4) = 0 [pid 6759] mkdir("./file1", 0777) = 0 [ 151.214100][ T6582] allowing incompatible features above 0.0: (unknown version) [ 151.214115][ T6582] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 151.214148][ T6582] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 151.214288][ T6582] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 151.214550][ T6582] bcachefs (loop2): Version upgrade required: [ 151.214550][ T6582] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 151.214550][ T6582] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 151.214550][ T6582] 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,check_rebalance_work,set_fs_needs_rebalance [ 151.233964][ T6582] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 151.233988][ T6582] size != 0, deleting [ 151.234857][ T6582] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 151.238086][ T6582] bcachefs (loop2): check_topology... done [ 151.240818][ T6582] bcachefs (loop2): accounting_read... done [ 151.274862][ T6582] bcachefs (loop2): alloc_read... done [ 151.275806][ T6582] bcachefs (loop2): snapshots_read... done [ 151.276673][ T6582] bcachefs (loop2): check_allocations... [ 151.278553][ T6582] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 151.278574][ T6582] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 151.281865][ T6582] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 151.281886][ T6582] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 151.283276][ T6582] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 151.283295][ T6582] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 151.284852][ T6582] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 151.284870][ T6582] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 151.287300][ T6582] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 151.287318][ T6582] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 151.288253][ T6582] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.288397][ T6582] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.288966][ T6582] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.289073][ T6582] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.291411][ T6582] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.291517][ T6582] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.291716][ T6582] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.291822][ T6582] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.292014][ T6582] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.292119][ T6582] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.292337][ T6582] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.292438][ T6582] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.292630][ T6582] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 151.292733][ T6582] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 151.292920][ T6582] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6759] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6759] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6759] chdir("./file1") = 0 [pid 6759] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6759] ioctl(4, LOOP_CLR_FD) = 0 [pid 6759] close(4) = 0 [pid 6759] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6759] exit_group(0) = ? [pid 6759] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6759, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [ 151.293017][ T6582] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 151.293219][ T6582] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 151.293321][ T6582] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 151.293541][ T6582] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5839] umount2("./45", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./45", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 151.293647][ T6582] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 151.293876][ T6582] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 151.293893][ T6582] Ratelimiting new instances of previous error [ 151.294019][ T6582] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 151.294036][ T6582] Ratelimiting new instances of previous error [ 151.307593][ T6582] done [ 151.310054][ T6582] bcachefs (loop2): going read-write [ 151.314741][ T6582] bcachefs (loop2): journal_replay... done [ 151.344773][ T6582] bcachefs (loop2): check_alloc_info... [ 151.346573][ T6582] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 151.346594][ T6582] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 151.346605][ T6582] gen 0 oldest_gen 0 data_type need_discard [ 151.346616][ T6582] journal_seq_nonempty 6 [ 151.346626][ T6582] journal_seq_empty 0 [ 151.346635][ T6582] need_discard 1 [ 151.346645][ T6582] need_inc_gen 1 [ 151.346655][ T6582] dirty_sectors 0 [ 151.346666][ T6582] stripe_sectors 0 [ 151.346675][ T6582] cached_sectors 0 [ 151.346685][ T6582] stripe 0 [ 151.346695][ T6582] stripe_redundancy 0 [ 151.346704][ T6582] io_time[READ] 1 [ 151.346714][ T6582] io_time[WRITE] 768 [ 151.346724][ T6582] fragmentation 0 [ 151.346733][ T6582] bp_start 8 [ 151.346742][ T6582] , fixing [ 151.362998][ T6582] done [ 151.371090][ T6582] bcachefs (loop2): check_lrus... done [ 151.372671][ T6582] bcachefs (loop2): check_btree_backpointers... done [ 151.374090][ T6582] bcachefs (loop2): check_backpointers_to_extents... done [ 151.377071][ T6582] bcachefs (loop2): check_extents_to_backpointers... [ 151.378445][ T6582] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 151.380582][ T6582] done [ 151.381791][ T6582] bcachefs (loop2): check_alloc_to_lru_refs... [ 151.383352][ T6582] bcachefs (loop2): missing fragmentation lru entry [ 151.383369][ T6582] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 151.383382][ T6582] gen 0 oldest_gen 0 data_type user [ 151.383393][ T6582] journal_seq_nonempty 5 [ 151.383404][ T6582] journal_seq_empty 134217728 [ 151.383414][ T6582] need_discard 1 [ 151.383424][ T6582] need_inc_gen 1 [ 151.383434][ T6582] dirty_sectors 16 [ 151.383444][ T6582] stripe_sectors 1802251 [ 151.383454][ T6582] cached_sectors 0 [ 151.383464][ T6582] stripe 0 [ 151.383476][ T6582] stripe_redundancy 0 [ 151.383486][ T6582] io_time[READ] 1 [ 151.383496][ T6582] io_time[WRITE] 512 [ 151.383506][ T6582] fragmentation 0 [ 151.383516][ T6582] bp_start 7 [ 151.383526][ T6582] , fixing [ 151.385012][ T6582] done [ 151.386441][ T6582] bcachefs (loop2): bucket_gens_init... done [ 151.388423][ T6582] bcachefs (loop2): check_snapshot_trees... done [ 151.390722][ T6582] bcachefs (loop2): check_snapshots... [ 151.391330][ T6582] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 151.391347][ T6582] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 151.402810][ T6582] done [ 151.404052][ T6582] bcachefs (loop2): check_subvols... done [ 151.405660][ T6582] bcachefs (loop2): check_subvol_children... done [ 151.406548][ T6582] bcachefs (loop2): delete_dead_snapshots... done [ 151.407281][ T6582] bcachefs (loop2): check_inodes... [ 151.408384][ T6582] bcachefs (loop2): inode points to missing dirent [ 151.408402][ T6582] inum: 4098:4294967295 [ 151.408412][ T6582] mode=40755 [ 151.408422][ T6582] flags=(15300000) [ 151.408431][ T6582] journal_seq=4 [ 151.408443][ T6582] hash_seed=ece93825deac2443 [ 151.408453][ T6582] hash_type=siphash [ 151.408463][ T6582] bi_size=0 [ 151.408473][ T6582] bi_sectors=0 [ 151.408483][ T6582] bi_version=0 [ 151.408492][ T6582] bi_atime=2770562249 [ 151.408502][ T6582] bi_ctime=2780562352 [ 151.408512][ T6582] bi_mtime=2780562352 [pid 5839] umount2("./45/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./45/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 151.408521][ T6582] bi_otime=2770562249 [ 151.408532][ T6582] bi_uid=0 [ 151.408542][ T6582] bi_gid=0 [ 151.408551][ T6582] bi_nlink=0 [ 151.408560][ T6582] bi_generation=0 [ 151.408569][ T6582] bi_dev=0 [ 151.408579][ T6582] bi_data_checksum=0 [ 151.408588][ T6582] bi_compression=0 [ 151.408598][ T6582] bi_project=0 [ 151.408607][ T6582] bi_background_compression=0 [ 151.408617][ T6582] bi_data_replicas=0 [ 151.408626][ T6582] bi_promote_target=0 [ 151.408637][ T6582] bi_foreground_target=64 [pid 5839] newfstatat(AT_FDCWD, "./45/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./45/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./45/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./45/file1") = 0 [pid 5839] umount2("./45/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./45/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./45/binderfs") = 0 [ 151.408646][ T6582] bi_background_target=1 [ 151.408657][ T6582] bi_erasure_code=0 [ 151.408666][ T6582] bi_fields_set=0 [ 151.408676][ T6582] bi_dir=0 [ 151.408685][ T6582] bi_dir_offset=32 [ 151.408694][ T6582] bi_subvol=0 [ 151.408703][ T6582] bi_parent_subvol=0 [ 151.408712][ T6582] bi_nocow=0 [ 151.408721][ T6582] bi_depth=0 [ 151.408730][ T6582] bi_inodes_32bit=0 [ 151.408740][ T6582] bi_casefold=0, fixing [ 151.414599][ T6582] done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./45") = 0 [pid 5839] mkdir("./46", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6774 attached , child_tidptr=0x5555901c6750) = 6774 [ 151.415309][ T6582] bcachefs (loop2): check_extents... done [ 151.416811][ T6582] bcachefs (loop2): check_indirect_extents... done [ 151.417666][ T6582] bcachefs (loop2): check_dirents... [ 151.419468][ T6582] bcachefs (loop2): directory with missing backpointer [ 151.419486][ T6582] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 151.419501][ T6582] inum: 4098:4294967295 [ 151.419511][ T6582] mode=40755 [ 151.419520][ T6582] flags=(11300000) [ 151.419530][ T6582] journal_seq=23 [pid 6774] set_robust_list(0x5555901c6760, 24) = 0 [pid 6774] chdir("./46") = 0 [pid 6774] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6774] setpgid(0, 0) = 0 [ 151.419540][ T6582] hash_seed=ece93825deac2443 [ 151.419550][ T6582] hash_type=siphash [ 151.419561][ T6582] bi_size=0 [ 151.419571][ T6582] bi_sectors=0 [ 151.419580][ T6582] bi_version=0 [ 151.419590][ T6582] bi_atime=2770562249 [ 151.419601][ T6582] bi_ctime=2780562352 [ 151.419611][ T6582] bi_mtime=2780562352 [ 151.419621][ T6582] bi_otime=2770562249 [ 151.419632][ T6582] bi_uid=0 [ 151.419641][ T6582] bi_gid=0 [ 151.419651][ T6582] bi_nlink=0 [ 151.419660][ T6582] bi_generation=0 [pid 6774] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6774] write(3, "1000", 4) = 4 [pid 6774] close(3) = 0 [pid 6774] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6774] write(1, "executing program\n", 18executing program ) = 18 [pid 6774] memfd_create("syzkaller", 0) = 3 [pid 6774] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 151.419671][ T6582] bi_dev=0 [ 151.419681][ T6582] bi_data_checksum=0 [ 151.419690][ T6582] bi_compression=0 [ 151.419700][ T6582] bi_project=0 [ 151.419709][ T6582] bi_background_compression=0 [ 151.419719][ T6582] bi_data_replicas=0 [ 151.419729][ T6582] bi_promote_target=0 [ 151.419738][ T6582] bi_foreground_target=64 [ 151.419748][ T6582] bi_background_target=1 [ 151.419758][ T6582] bi_erasure_code=0 [ 151.419768][ T6582] bi_fields_set=0 [ 151.419777][ T6582] bi_dir=0 [ 151.419786][ T6582] bi_dir_offset=0 [ 151.419795][ T6582] bi_subvol=0 [ 151.419804][ T6582] bi_parent_subvol=0 [ 151.419814][ T6582] bi_nocow=0 [ 151.419823][ T6582] bi_depth=0 [ 151.419832][ T6582] bi_inodes_32bit=0 [ 151.419842][ T6582] bi_casefold=0, fixing [ 151.426097][ T6582] done [ 151.426751][ T6582] bcachefs (loop2): check_xattrs... done [ 151.428033][ T6582] bcachefs (loop2): check_root... done [ 151.429107][ T6582] bcachefs (loop2): check_unreachable_inodes... done [ 151.431423][ T6582] bcachefs (loop2): check_subvolume_structure... done [ 151.432220][ T6582] bcachefs (loop2): check_directory_structure... done [ 151.432956][ T6582] bcachefs (loop2): check_nlinks... [ 151.433632][ T6582] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 151.434730][ T6582] done [ 151.435849][ T6582] bcachefs (loop2): check_rebalance_work... done [ 151.437139][ T6582] bcachefs (loop2): resume_logged_ops... done [ 151.437985][ T6582] bcachefs (loop2): delete_dead_inodes... done [ 151.447683][ T6582] bcachefs (loop2): set_fs_needs_rebalance... [ 151.455586][ T6591] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 151.455611][ T6591] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 151.458130][ T6582] done [ 151.459128][ T6582] bcachefs (loop2): check_extents_to_backpointers... [ 151.460253][ T6582] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 151.466186][ T6582] done [ 151.481985][ T6582] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 151.482015][ T6582] bcachefs (loop2): check_alloc_info... done [ 151.490391][ T6582] bcachefs (loop2): check_lrus... done [ 151.500435][ T6582] bcachefs (loop2): check_btree_backpointers... done [ 151.501929][ T6582] bcachefs (loop2): check_backpointers_to_extents... done [ 151.503508][ T6582] bcachefs (loop2): check_extents_to_backpointers... done [ 151.505183][ T6582] bcachefs (loop2): check_alloc_to_lru_refs... done [ 151.507317][ T6582] bcachefs (loop2): bucket_gens_init... done [ 151.511071][ T6582] bcachefs (loop2): check_snapshot_trees... done [ 151.519954][ T6582] bcachefs (loop2): check_snapshots... done [ 151.521353][ T6582] bcachefs (loop2): check_subvols... done [ 151.522127][ T6582] bcachefs (loop2): check_subvol_children... done [ 151.522867][ T6582] bcachefs (loop2): delete_dead_snapshots... done [ 151.523560][ T6582] bcachefs (loop2): check_inodes... done [ 151.524726][ T6582] bcachefs (loop2): check_extents... done [ 151.526293][ T6582] bcachefs (loop2): check_indirect_extents... done [pid 6774] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6774] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6774] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 151.526939][ T6582] bcachefs (loop2): check_dirents... done [ 151.528509][ T6582] bcachefs (loop2): check_xattrs... done [ 151.530569][ T6582] bcachefs (loop2): check_root... done [ 151.531986][ T6582] bcachefs (loop2): check_unreachable_inodes... done [ 151.534607][ T6582] bcachefs (loop2): check_subvolume_structure... done [ 151.535284][ T6582] bcachefs (loop2): check_directory_structure... done [ 151.535986][ T6582] bcachefs (loop2): check_nlinks... done [ 151.540628][ T6582] bcachefs (loop2): check_rebalance_work... done [pid 6774] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6774] close(3) = 0 [pid 6774] close(4) = 0 [pid 6774] mkdir("./file1", 0777) = 0 [ 151.541456][ T6582] bcachefs (loop2): resume_logged_ops... done [ 151.542707][ T6582] bcachefs (loop2): delete_dead_inodes... done [ 151.543425][ T6582] bcachefs (loop2): set_fs_needs_rebalance... done [ 151.551322][ T6582] bcachefs (loop2): done starting filesystem [ 151.640237][ T5839] bcachefs (loop2): shutting down [ 151.640256][ T5839] bcachefs (loop2): going read-only [ 151.640538][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 151.698705][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 35 [ 151.702263][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 35 [ 151.703142][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 36 [ 151.704921][ T5839] bcachefs (loop2): marking filesystem clean [ 151.747832][ T5839] bcachefs (loop2): shutdown complete [ 152.606882][ T6593] loop2: detected capacity change from 0 to 32768 [ 152.785541][ T6593] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 152.785570][ T6593] allowing incompatible features above 0.0: (unknown version) [ 152.785585][ T6593] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 152.785613][ T6593] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 152.785743][ T6593] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 152.785983][ T6593] bcachefs (loop2): Version upgrade required: [ 152.785983][ T6593] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 152.785983][ T6593] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 152.785983][ T6593] 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,check_rebalance_work,set_fs_needs_rebalance [ 152.818202][ T6593] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 152.818229][ T6593] size != 0, deleting [ 152.820081][ T6593] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 152.827812][ T6593] bcachefs (loop2): check_topology... done [ 152.831514][ T6593] bcachefs (loop2): accounting_read... done [ 152.850506][ T6593] bcachefs (loop2): alloc_read... done [ 152.851455][ T6593] bcachefs (loop2): snapshots_read... done [ 152.852308][ T6593] bcachefs (loop2): check_allocations... [ 152.854228][ T6593] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 152.854248][ T6593] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 152.856391][ T6593] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 152.856410][ T6593] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 152.857807][ T6593] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 152.857824][ T6593] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 152.860861][ T6593] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 152.860881][ T6593] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 152.866409][ T6593] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 152.866428][ T6593] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 152.867378][ T6593] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.867503][ T6593] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 152.868038][ T6593] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.868156][ T6593] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 152.868558][ T6593] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.868663][ T6593] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 152.868861][ T6593] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.868967][ T6593] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 152.869182][ T6593] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.871405][ T6593] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6774] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6774] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6774] chdir("./file1") = 0 [pid 6774] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6774] ioctl(4, LOOP_CLR_FD) = 0 [pid 6774] close(4) = 0 [pid 6774] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6774] exit_group(0) = ? [ 152.871653][ T6593] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.871761][ T6593] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 152.871963][ T6593] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 152.872081][ T6593] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 152.872300][ T6593] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6774] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6774, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] umount2("./46", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./46", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 152.872405][ T6593] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 152.872610][ T6593] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 152.872719][ T6593] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 152.872923][ T6593] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 152.873032][ T6593] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 152.873293][ T6593] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 152.873310][ T6593] Ratelimiting new instances of previous error [ 152.873438][ T6593] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 152.873455][ T6593] Ratelimiting new instances of previous error [ 152.886735][ T6593] done [ 152.888891][ T6593] bcachefs (loop2): going read-write [ 152.896387][ T6593] bcachefs (loop2): journal_replay... done [ 152.923120][ T6593] bcachefs (loop2): check_alloc_info... [ 152.925419][ T6593] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 152.925438][ T6593] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 152.925449][ T6593] gen 0 oldest_gen 0 data_type need_discard [ 152.925461][ T6593] journal_seq_nonempty 6 [ 152.925471][ T6593] journal_seq_empty 0 [ 152.925481][ T6593] need_discard 1 [ 152.925492][ T6593] need_inc_gen 1 [ 152.925502][ T6593] dirty_sectors 0 [ 152.925512][ T6593] stripe_sectors 0 [ 152.925522][ T6593] cached_sectors 0 [ 152.925532][ T6593] stripe 0 [ 152.925542][ T6593] stripe_redundancy 0 [ 152.925551][ T6593] io_time[READ] 1 [ 152.925561][ T6593] io_time[WRITE] 768 [ 152.925571][ T6593] fragmentation 0 [ 152.925583][ T6593] bp_start 8 [ 152.925592][ T6593] , fixing [ 152.941343][ T6593] done [ 152.944768][ T6593] bcachefs (loop2): check_lrus... done [ 152.945663][ T6593] bcachefs (loop2): check_btree_backpointers... done [ 152.950026][ T6593] bcachefs (loop2): check_backpointers_to_extents... done [ 152.954875][ T6593] bcachefs (loop2): check_extents_to_backpointers... [ 152.956771][ T6593] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 152.958172][ T6593] done [ 152.958899][ T6593] bcachefs (loop2): check_alloc_to_lru_refs... [ 152.961378][ T6593] bcachefs (loop2): missing fragmentation lru entry [ 152.961395][ T6593] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 152.961408][ T6593] gen 0 oldest_gen 0 data_type user [ 152.961418][ T6593] journal_seq_nonempty 5 [ 152.961428][ T6593] journal_seq_empty 134217728 [ 152.961439][ T6593] need_discard 1 [ 152.961448][ T6593] need_inc_gen 1 [ 152.961458][ T6593] dirty_sectors 16 [ 152.961469][ T6593] stripe_sectors 1802251 [ 152.961479][ T6593] cached_sectors 0 [ 152.961489][ T6593] stripe 0 [ 152.961498][ T6593] stripe_redundancy 0 [ 152.961508][ T6593] io_time[READ] 1 [ 152.961518][ T6593] io_time[WRITE] 512 [ 152.961528][ T6593] fragmentation 0 [ 152.961537][ T6593] bp_start 7 [ 152.961548][ T6593] , fixing [ 152.963081][ T6593] done [ 152.964495][ T6593] bcachefs (loop2): bucket_gens_init... done [ 152.966998][ T6593] bcachefs (loop2): check_snapshot_trees... done [ 152.967816][ T6593] bcachefs (loop2): check_snapshots... [ 152.968408][ T6593] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 152.968426][ T6593] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 152.981031][ T6593] done [ 152.981751][ T6593] bcachefs (loop2): check_subvols... done [ 152.983417][ T6593] bcachefs (loop2): check_subvol_children... done [ 152.984250][ T6593] bcachefs (loop2): delete_dead_snapshots... done [ 152.985021][ T6593] bcachefs (loop2): check_inodes... [ 152.986118][ T6593] bcachefs (loop2): inode points to missing dirent [ 152.986136][ T6593] inum: 4098:4294967295 [ 152.986146][ T6593] mode=40755 [pid 5839] umount2("./46/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./46/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./46/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./46/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./46/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 152.986156][ T6593] flags=(15300000) [ 152.986165][ T6593] journal_seq=4 [ 152.986175][ T6593] hash_seed=ece93825deac2443 [ 152.986185][ T6593] hash_type=siphash [ 152.986194][ T6593] bi_size=0 [ 152.986204][ T6593] bi_sectors=0 [ 152.986213][ T6593] bi_version=0 [ 152.986223][ T6593] bi_atime=2770562249 [ 152.986234][ T6593] bi_ctime=2780562352 [ 152.986244][ T6593] bi_mtime=2780562352 [ 152.986254][ T6593] bi_otime=2770562249 [ 152.986263][ T6593] bi_uid=0 [ 152.986272][ T6593] bi_gid=0 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./46/file1") = 0 [pid 5839] umount2("./46/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 152.986281][ T6593] bi_nlink=0 [ 152.986291][ T6593] bi_generation=0 [ 152.986300][ T6593] bi_dev=0 [ 152.986309][ T6593] bi_data_checksum=0 [ 152.986319][ T6593] bi_compression=0 [ 152.986328][ T6593] bi_project=0 [ 152.986337][ T6593] bi_background_compression=0 [ 152.986347][ T6593] bi_data_replicas=0 [ 152.986357][ T6593] bi_promote_target=0 [ 152.986366][ T6593] bi_foreground_target=64 [ 152.986376][ T6593] bi_background_target=1 [ 152.986386][ T6593] bi_erasure_code=0 [pid 5839] newfstatat(AT_FDCWD, "./46/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./46/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./46") = 0 [pid 5839] mkdir("./47", 0777) = 0 [ 152.986396][ T6593] bi_fields_set=0 [ 152.986405][ T6593] bi_dir=0 [ 152.986414][ T6593] bi_dir_offset=32 [ 152.986423][ T6593] bi_subvol=0 [ 152.986432][ T6593] bi_parent_subvol=0 [ 152.986442][ T6593] bi_nocow=0 [ 152.986451][ T6593] bi_depth=0 [ 152.986460][ T6593] bi_inodes_32bit=0 [ 152.986469][ T6593] bi_casefold=0, fixing [ 152.988570][ T6593] done [ 152.992704][ T6593] bcachefs (loop2): check_extents... done [ 152.994576][ T6593] bcachefs (loop2): check_indirect_extents... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6786 ./strace-static-x86_64: Process 6786 attached [pid 6786] set_robust_list(0x5555901c6760, 24) = 0 [ 152.995400][ T6593] bcachefs (loop2): check_dirents... [ 152.997102][ T6593] bcachefs (loop2): directory with missing backpointer [ 152.997117][ T6593] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 152.997132][ T6593] inum: 4098:4294967295 [ 152.997142][ T6593] mode=40755 [ 152.997152][ T6593] flags=(11300000) [ 152.997161][ T6593] journal_seq=22 [ 152.997170][ T6593] hash_seed=ece93825deac2443 [ 152.997180][ T6593] hash_type=siphash [pid 6786] chdir("./47") = 0 [pid 6786] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6786] setpgid(0, 0) = 0 [pid 6786] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6786] write(3, "1000", 4) = 4 [pid 6786] close(3) = 0 [pid 6786] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6786] write(1, "executing program\n", 18executing program ) = 18 [ 152.997192][ T6593] bi_size=0 [ 152.997201][ T6593] bi_sectors=0 [ 152.997210][ T6593] bi_version=0 [ 152.997219][ T6593] bi_atime=2770562249 [ 152.997229][ T6593] bi_ctime=2780562352 [ 152.997239][ T6593] bi_mtime=2780562352 [ 152.997249][ T6593] bi_otime=2770562249 [ 152.997259][ T6593] bi_uid=0 [ 152.997268][ T6593] bi_gid=0 [ 152.997278][ T6593] bi_nlink=0 [ 152.997287][ T6593] bi_generation=0 [ 152.997296][ T6593] bi_dev=0 [ 152.997306][ T6593] bi_data_checksum=0 [pid 6786] memfd_create("syzkaller", 0) = 3 [pid 6786] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 152.997315][ T6593] bi_compression=0 [ 152.997325][ T6593] bi_project=0 [ 152.997334][ T6593] bi_background_compression=0 [ 152.997346][ T6593] bi_data_replicas=0 [ 152.997355][ T6593] bi_promote_target=0 [ 152.997365][ T6593] bi_foreground_target=64 [ 152.997374][ T6593] bi_background_target=1 [ 152.997384][ T6593] bi_erasure_code=0 [ 152.997394][ T6593] bi_fields_set=0 [ 152.997403][ T6593] bi_dir=0 [ 152.997412][ T6593] bi_dir_offset=0 [ 152.997422][ T6593] bi_subvol=0 [ 152.997431][ T6593] bi_parent_subvol=0 [ 152.997440][ T6593] bi_nocow=0 [ 152.997449][ T6593] bi_depth=0 [ 152.997458][ T6593] bi_inodes_32bit=0 [ 152.997468][ T6593] bi_casefold=0, fixing [ 153.001424][ T6593] done [ 153.002414][ T6593] bcachefs (loop2): check_xattrs... done [ 153.004642][ T6593] bcachefs (loop2): check_root... done [ 153.007056][ T6593] bcachefs (loop2): check_unreachable_inodes... done [ 153.008656][ T6593] bcachefs (loop2): check_subvolume_structure... done [ 153.009874][ T6593] bcachefs (loop2): check_directory_structure... done [ 153.010723][ T6593] bcachefs (loop2): check_nlinks... [ 153.011434][ T6593] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 153.012539][ T6593] done [ 153.013261][ T6593] bcachefs (loop2): check_rebalance_work... done [ 153.014444][ T6593] bcachefs (loop2): resume_logged_ops... done [ 153.015271][ T6593] bcachefs (loop2): delete_dead_inodes... done [ 153.024654][ T6593] bcachefs (loop2): set_fs_needs_rebalance... [ 153.033881][ T6602] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 153.033905][ T6602] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 153.037083][ T6593] done [ 153.038153][ T6593] bcachefs (loop2): check_extents_to_backpointers... [ 153.039066][ T6593] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 153.045359][ T6593] done [ 153.054837][ T6593] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 153.054858][ T6593] bcachefs (loop2): check_alloc_info... done [ 153.059562][ T6593] bcachefs (loop2): check_lrus... done [ 153.060721][ T6593] bcachefs (loop2): check_btree_backpointers... done [ 153.062509][ T6593] bcachefs (loop2): check_backpointers_to_extents... done [ 153.063903][ T6593] bcachefs (loop2): check_extents_to_backpointers... done [ 153.065594][ T6593] bcachefs (loop2): check_alloc_to_lru_refs... done [ 153.067832][ T6593] bcachefs (loop2): bucket_gens_init... done [ 153.070713][ T6593] bcachefs (loop2): check_snapshot_trees... done [ 153.071863][ T6593] bcachefs (loop2): check_snapshots... done [ 153.073271][ T6593] bcachefs (loop2): check_subvols... done [ 153.074107][ T6593] bcachefs (loop2): check_subvol_children... done [ 153.074875][ T6593] bcachefs (loop2): delete_dead_snapshots... done [ 153.075617][ T6593] bcachefs (loop2): check_inodes... done [ 153.076758][ T6593] bcachefs (loop2): check_extents... done [ 153.078159][ T6593] bcachefs (loop2): check_indirect_extents... done [ 153.078972][ T6593] bcachefs (loop2): check_dirents... done [ 153.081498][ T6593] bcachefs (loop2): check_xattrs... done [pid 6786] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6786] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6786] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6786] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6786] close(3) = 0 [pid 6786] close(4) = 0 [pid 6786] mkdir("./file1", 0777) = 0 [ 153.082423][ T6593] bcachefs (loop2): check_root... done [ 153.083528][ T6593] bcachefs (loop2): check_unreachable_inodes... done [ 153.084619][ T6593] bcachefs (loop2): check_subvolume_structure... done [ 153.085475][ T6593] bcachefs (loop2): check_directory_structure... done [ 153.086266][ T6593] bcachefs (loop2): check_nlinks... done [ 153.087441][ T6593] bcachefs (loop2): check_rebalance_work... done [ 153.088279][ T6593] bcachefs (loop2): resume_logged_ops... done [ 153.089055][ T6593] bcachefs (loop2): delete_dead_inodes... done [ 153.091234][ T6593] bcachefs (loop2): set_fs_needs_rebalance... done [ 153.095398][ T6593] bcachefs (loop2): done starting filesystem [ 153.223704][ T5839] bcachefs (loop2): shutting down [ 153.223723][ T5839] bcachefs (loop2): going read-only [ 153.223753][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 153.240588][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 153.241527][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 153.242351][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 153.244158][ T5839] bcachefs (loop2): marking filesystem clean [ 153.289057][ T5839] bcachefs (loop2): shutdown complete [ 154.062896][ T6604] loop2: detected capacity change from 0 to 32768 [ 154.205878][ T6604] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 154.205905][ T6604] allowing incompatible features above 0.0: (unknown version) [ 154.205918][ T6604] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 154.205947][ T6604] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 154.206082][ T6604] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 154.206326][ T6604] bcachefs (loop2): Version upgrade required: [ 154.206326][ T6604] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 154.206326][ T6604] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 154.206326][ T6604] 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,check_rebalance_work,set_fs_needs_rebalance [ 154.224981][ T6604] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 154.225008][ T6604] size != 0, deleting [ 154.226217][ T6604] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 154.230243][ T6604] bcachefs (loop2): check_topology... done [ 154.231684][ T6604] bcachefs (loop2): accounting_read... done [ 154.266219][ T6604] bcachefs (loop2): alloc_read... done [ 154.267129][ T6604] bcachefs (loop2): snapshots_read... done [ 154.267965][ T6604] bcachefs (loop2): check_allocations... [ 154.270615][ T6604] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 154.270637][ T6604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 154.272674][ T6604] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 154.272692][ T6604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 154.274092][ T6604] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 154.274110][ T6604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 154.276245][ T6604] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 154.276264][ T6604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 154.278742][ T6604] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 154.278761][ T6604] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 154.280520][ T6604] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.280649][ T6604] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.281214][ T6604] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.281328][ T6604] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.281740][ T6604] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.281847][ T6604] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.282058][ T6604] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6786] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6786] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6786] chdir("./file1") = 0 [pid 6786] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6786] ioctl(4, LOOP_CLR_FD) = 0 [pid 6786] close(4) = 0 [ 154.282165][ T6604] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.282374][ T6604] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.282480][ T6604] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.282693][ T6604] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6786] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6786] exit_group(0) = ? [pid 6786] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6786, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] umount2("./47", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./47", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 154.282797][ T6604] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.283005][ T6604] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.283110][ T6604] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 154.283313][ T6604] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 154.283417][ T6604] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 154.283630][ T6604] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.283736][ T6604] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.283937][ T6604] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.284056][ T6604] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.284294][ T6604] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 154.284311][ T6604] Ratelimiting new instances of previous error [ 154.284441][ T6604] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 154.284457][ T6604] Ratelimiting new instances of previous error [ 154.298295][ T6604] done [ 154.301299][ T6604] bcachefs (loop2): going read-write [ 154.306608][ T6604] bcachefs (loop2): journal_replay... done [ 154.334158][ T6604] bcachefs (loop2): check_alloc_info... [ 154.335967][ T6604] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 154.335986][ T6604] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 154.335999][ T6604] gen 0 oldest_gen 0 data_type need_discard [ 154.336011][ T6604] journal_seq_nonempty 6 [ 154.336021][ T6604] journal_seq_empty 0 [ 154.336031][ T6604] need_discard 1 [ 154.336041][ T6604] need_inc_gen 1 [ 154.336052][ T6604] dirty_sectors 0 [ 154.336063][ T6604] stripe_sectors 0 [ 154.336072][ T6604] cached_sectors 0 [ 154.336083][ T6604] stripe 0 [ 154.336092][ T6604] stripe_redundancy 0 [ 154.336103][ T6604] io_time[READ] 1 [ 154.336112][ T6604] io_time[WRITE] 768 [ 154.336122][ T6604] fragmentation 0 [ 154.336132][ T6604] bp_start 8 [ 154.336141][ T6604] , fixing [ 154.352157][ T6604] done [ 154.357775][ T6604] bcachefs (loop2): check_lrus... done [ 154.359072][ T6604] bcachefs (loop2): check_btree_backpointers... done [ 154.360792][ T6604] bcachefs (loop2): check_backpointers_to_extents... done [ 154.365092][ T6604] bcachefs (loop2): check_extents_to_backpointers... [ 154.366455][ T6604] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 154.367838][ T6604] done [ 154.368567][ T6604] bcachefs (loop2): check_alloc_to_lru_refs... [ 154.371607][ T6604] bcachefs (loop2): missing fragmentation lru entry [ 154.371625][ T6604] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 154.371636][ T6604] gen 0 oldest_gen 0 data_type user [ 154.371648][ T6604] journal_seq_nonempty 5 [ 154.371658][ T6604] journal_seq_empty 134217728 [ 154.371670][ T6604] need_discard 1 [ 154.371680][ T6604] need_inc_gen 1 [ 154.371691][ T6604] dirty_sectors 16 [ 154.371699][ T6604] stripe_sectors 1802251 [ 154.371709][ T6604] cached_sectors 0 [ 154.371719][ T6604] stripe 0 [ 154.371731][ T6604] stripe_redundancy 0 [ 154.371753][ T6604] io_time[READ] 1 [ 154.371763][ T6604] io_time[WRITE] 512 [ 154.371773][ T6604] fragmentation 0 [ 154.371782][ T6604] bp_start 7 [pid 5839] umount2("./47/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./47/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 154.371792][ T6604] , fixing [ 154.373351][ T6604] done [ 154.374774][ T6604] bcachefs (loop2): bucket_gens_init... done [ 154.376887][ T6604] bcachefs (loop2): check_snapshot_trees... done [ 154.377707][ T6604] bcachefs (loop2): check_snapshots... [ 154.378294][ T6604] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 154.378310][ T6604] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 154.391472][ T6604] done [pid 5839] newfstatat(AT_FDCWD, "./47/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./47/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./47/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./47/file1") = 0 [ 154.392167][ T6604] bcachefs (loop2): check_subvols... done [ 154.393794][ T6604] bcachefs (loop2): check_subvol_children... done [ 154.394684][ T6604] bcachefs (loop2): delete_dead_snapshots... done [ 154.395499][ T6604] bcachefs (loop2): check_inodes... [ 154.396629][ T6604] bcachefs (loop2): inode points to missing dirent [ 154.396647][ T6604] inum: 4098:4294967295 [ 154.396657][ T6604] mode=40755 [ 154.396667][ T6604] flags=(15300000) [ 154.396676][ T6604] journal_seq=4 [ 154.396686][ T6604] hash_seed=ece93825deac2443 [pid 5839] umount2("./47/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./47/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./47/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./47") = 0 [pid 5839] mkdir("./48", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 154.396696][ T6604] hash_type=siphash [ 154.396706][ T6604] bi_size=0 [ 154.396715][ T6604] bi_sectors=0 [ 154.396725][ T6604] bi_version=0 [ 154.396734][ T6604] bi_atime=2770562249 [ 154.396744][ T6604] bi_ctime=2780562352 [ 154.396754][ T6604] bi_mtime=2780562352 [ 154.396763][ T6604] bi_otime=2770562249 [ 154.396773][ T6604] bi_uid=0 [ 154.396782][ T6604] bi_gid=0 [ 154.396792][ T6604] bi_nlink=0 [ 154.396801][ T6604] bi_generation=0 [ 154.396810][ T6604] bi_dev=0 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6797 ./strace-static-x86_64: Process 6797 attached [pid 6797] set_robust_list(0x5555901c6760, 24) = 0 [pid 6797] chdir("./48") = 0 [pid 6797] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6797] setpgid(0, 0) = 0 [pid 6797] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6797] write(3, "1000", 4) = 4 [ 154.396819][ T6604] bi_data_checksum=0 [ 154.396829][ T6604] bi_compression=0 [ 154.396839][ T6604] bi_project=0 [ 154.396848][ T6604] bi_background_compression=0 [ 154.396858][ T6604] bi_data_replicas=0 [ 154.396868][ T6604] bi_promote_target=0 [ 154.396877][ T6604] bi_foreground_target=64 [ 154.396887][ T6604] bi_background_target=1 [ 154.396897][ T6604] bi_erasure_code=0 [ 154.396907][ T6604] bi_fields_set=0 [ 154.396916][ T6604] bi_dir=0 [ 154.396925][ T6604] bi_dir_offset=32 [pid 6797] close(3) = 0 [pid 6797] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6797] write(1, "executing program\n", 18executing program ) = 18 [pid 6797] memfd_create("syzkaller", 0) = 3 [pid 6797] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 154.396934][ T6604] bi_subvol=0 [ 154.396951][ T6604] bi_parent_subvol=0 [ 154.396961][ T6604] bi_nocow=0 [ 154.396970][ T6604] bi_depth=0 [ 154.396979][ T6604] bi_inodes_32bit=0 [ 154.396989][ T6604] bi_casefold=0, fixing [ 154.403650][ T6604] done [ 154.404352][ T6604] bcachefs (loop2): check_extents... done [ 154.405843][ T6604] bcachefs (loop2): check_indirect_extents... done [ 154.406667][ T6604] bcachefs (loop2): check_dirents... [ 154.408387][ T6604] bcachefs (loop2): directory with missing backpointer [ 154.408404][ T6604] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 154.408419][ T6604] inum: 4098:4294967295 [ 154.408429][ T6604] mode=40755 [ 154.408438][ T6604] flags=(11300000) [ 154.408448][ T6604] journal_seq=22 [ 154.408457][ T6604] hash_seed=ece93825deac2443 [ 154.408468][ T6604] hash_type=siphash [ 154.408477][ T6604] bi_size=0 [ 154.408486][ T6604] bi_sectors=0 [ 154.408495][ T6604] bi_version=0 [ 154.408506][ T6604] bi_atime=2770562249 [ 154.408515][ T6604] bi_ctime=2780562352 [ 154.408525][ T6604] bi_mtime=2780562352 [ 154.408535][ T6604] bi_otime=2770562249 [ 154.408546][ T6604] bi_uid=0 [ 154.408555][ T6604] bi_gid=0 [ 154.408564][ T6604] bi_nlink=0 [ 154.408573][ T6604] bi_generation=0 [ 154.408583][ T6604] bi_dev=0 [ 154.408592][ T6604] bi_data_checksum=0 [ 154.408602][ T6604] bi_compression=0 [ 154.408611][ T6604] bi_project=0 [ 154.408621][ T6604] bi_background_compression=0 [ 154.408631][ T6604] bi_data_replicas=0 [ 154.408641][ T6604] bi_promote_target=0 [ 154.408651][ T6604] bi_foreground_target=64 [ 154.408663][ T6604] bi_background_target=1 [ 154.408672][ T6604] bi_erasure_code=0 [ 154.408682][ T6604] bi_fields_set=0 [ 154.408691][ T6604] bi_dir=0 [ 154.408699][ T6604] bi_dir_offset=0 [ 154.408708][ T6604] bi_subvol=0 [ 154.408717][ T6604] bi_parent_subvol=0 [ 154.408727][ T6604] bi_nocow=0 [ 154.408736][ T6604] bi_depth=0 [ 154.408745][ T6604] bi_inodes_32bit=0 [ 154.408755][ T6604] bi_casefold=0, fixing [ 154.415924][ T6604] done [ 154.416628][ T6604] bcachefs (loop2): check_xattrs... done [ 154.417899][ T6604] bcachefs (loop2): check_root... done [ 154.418995][ T6604] bcachefs (loop2): check_unreachable_inodes... done [ 154.420513][ T6604] bcachefs (loop2): check_subvolume_structure... done [ 154.421282][ T6604] bcachefs (loop2): check_directory_structure... done [ 154.422094][ T6604] bcachefs (loop2): check_nlinks... [ 154.422792][ T6604] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 154.424379][ T6604] done [ 154.425056][ T6604] bcachefs (loop2): check_rebalance_work... done [ 154.426228][ T6604] bcachefs (loop2): resume_logged_ops... done [ 154.427008][ T6604] bcachefs (loop2): delete_dead_inodes... done [ 154.437274][ T6604] bcachefs (loop2): set_fs_needs_rebalance... [ 154.445451][ T6613] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 6797] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6797] munmap(0x7fbbeb93a000, 138412032) = 0 [ 154.445472][ T6613] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 154.448314][ T6604] done [ 154.449563][ T6604] bcachefs (loop2): check_extents_to_backpointers... [ 154.450489][ T6604] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 154.453514][ T6613] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 154.456971][ T6604] done [ 154.466414][ T6604] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 154.466437][ T6604] bcachefs (loop2): check_alloc_info... done [pid 6797] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6797] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6797] close(3) = 0 [pid 6797] close(4) = 0 [pid 6797] mkdir("./file1", 0777) = 0 [ 154.471340][ T6604] bcachefs (loop2): check_lrus... done [ 154.472504][ T6604] bcachefs (loop2): check_btree_backpointers... done [ 154.473785][ T6604] bcachefs (loop2): check_backpointers_to_extents... done [ 154.475273][ T6604] bcachefs (loop2): check_extents_to_backpointers... [ 154.476607][ T6604] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 154.477916][ T6604] done [ 154.477930][ T6604] bcachefs (loop2): check_alloc_to_lru_refs... done [ 154.481180][ T6604] bcachefs (loop2): bucket_gens_init... done [ 154.483261][ T6604] bcachefs (loop2): check_snapshot_trees... done [ 154.484466][ T6604] bcachefs (loop2): check_snapshots... done [ 154.485331][ T6604] bcachefs (loop2): check_subvols... done [ 154.486179][ T6604] bcachefs (loop2): check_subvol_children... done [ 154.487505][ T6604] bcachefs (loop2): delete_dead_snapshots... done [ 154.488262][ T6604] bcachefs (loop2): check_inodes... done [ 154.490108][ T6604] bcachefs (loop2): check_extents... done [ 154.492046][ T6604] bcachefs (loop2): check_indirect_extents... done [ 154.492859][ T6604] bcachefs (loop2): check_dirents... done [ 154.494436][ T6604] bcachefs (loop2): check_xattrs... done [ 154.495279][ T6604] bcachefs (loop2): check_root... done [ 154.496148][ T6604] bcachefs (loop2): check_unreachable_inodes... done [ 154.497656][ T6604] bcachefs (loop2): check_subvolume_structure... done [ 154.498520][ T6604] bcachefs (loop2): check_directory_structure... done [ 154.499766][ T6604] bcachefs (loop2): check_nlinks... done [ 154.501567][ T6604] bcachefs (loop2): check_rebalance_work... done [ 154.502463][ T6604] bcachefs (loop2): resume_logged_ops... done [ 154.503231][ T6604] bcachefs (loop2): delete_dead_inodes... done [ 154.504089][ T6604] bcachefs (loop2): set_fs_needs_rebalance... done [ 154.507596][ T6604] bcachefs (loop2): done starting filesystem [ 154.606545][ T5839] bcachefs (loop2): shutting down [ 154.606565][ T5839] bcachefs (loop2): going read-only [ 154.606595][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 154.648801][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 154.651707][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 154.652601][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 154.654381][ T5839] bcachefs (loop2): marking filesystem clean [ 154.705069][ T5839] bcachefs (loop2): shutdown complete [ 155.521464][ T6615] loop2: detected capacity change from 0 to 32768 [ 155.673733][ T6615] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 155.673760][ T6615] allowing incompatible features above 0.0: (unknown version) [ 155.673773][ T6615] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 155.673801][ T6615] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 155.673929][ T6615] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 155.674171][ T6615] bcachefs (loop2): Version upgrade required: [ 155.674171][ T6615] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 155.674171][ T6615] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 155.674171][ T6615] 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,check_rebalance_work,set_fs_needs_rebalance [ 155.704486][ T6615] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 155.704512][ T6615] size != 0, deleting [ 155.710014][ T6615] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 155.715121][ T6615] bcachefs (loop2): check_topology... done [ 155.716575][ T6615] bcachefs (loop2): accounting_read... done [ 155.744638][ T6615] bcachefs (loop2): alloc_read... done [ 155.745911][ T6615] bcachefs (loop2): snapshots_read... done [ 155.746708][ T6615] bcachefs (loop2): check_allocations... [ 155.751014][ T6615] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 155.751036][ T6615] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 155.755502][ T6615] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 6797] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6797] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6797] chdir("./file1") = 0 [pid 6797] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6797] ioctl(4, LOOP_CLR_FD) = 0 [pid 6797] close(4) = 0 [pid 6797] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6797] exit_group(0) = ? [pid 6797] +++ exited with 0 +++ [ 155.755521][ T6615] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 155.757282][ T6615] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 155.757301][ T6615] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 155.758825][ T6615] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6797, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] umount2("./48", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./48", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 155.758843][ T6615] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 155.763410][ T6615] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 155.763430][ T6615] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 155.764395][ T6615] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.764524][ T6615] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.765081][ T6615] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.765192][ T6615] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.765702][ T6615] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.765811][ T6615] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.766019][ T6615] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.766599][ T6615] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.766809][ T6615] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.766914][ T6615] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.767113][ T6615] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.767219][ T6615] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.767418][ T6615] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.767524][ T6615] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 155.767744][ T6615] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 155.767856][ T6615] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 155.768061][ T6615] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 155.768167][ T6615] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 155.768367][ T6615] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 155.768473][ T6615] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 155.768721][ T6615] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 155.768738][ T6615] Ratelimiting new instances of previous error [ 155.768866][ T6615] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 155.768883][ T6615] Ratelimiting new instances of previous error [ 155.785115][ T6615] done [ 155.787121][ T6615] bcachefs (loop2): going read-write [ 155.793529][ T6615] bcachefs (loop2): journal_replay... done [ 155.820471][ T6615] bcachefs (loop2): check_alloc_info... [ 155.822272][ T6615] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 155.822290][ T6615] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 155.822304][ T6615] gen 0 oldest_gen 0 data_type need_discard [ 155.822315][ T6615] journal_seq_nonempty 6 [ 155.822325][ T6615] journal_seq_empty 0 [ 155.822335][ T6615] need_discard 1 [ 155.822345][ T6615] need_inc_gen 1 [ 155.822355][ T6615] dirty_sectors 0 [ 155.822367][ T6615] stripe_sectors 0 [ 155.822377][ T6615] cached_sectors 0 [ 155.822387][ T6615] stripe 0 [ 155.822397][ T6615] stripe_redundancy 0 [ 155.822407][ T6615] io_time[READ] 1 [ 155.822417][ T6615] io_time[WRITE] 768 [ 155.822427][ T6615] fragmentation 0 [ 155.822437][ T6615] bp_start 8 [ 155.822447][ T6615] , fixing [ 155.840054][ T6615] done [ 155.846228][ T6615] bcachefs (loop2): check_lrus... done [ 155.847015][ T6615] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./48/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./48/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./48/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./48/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./48/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 155.848290][ T6615] bcachefs (loop2): check_backpointers_to_extents... done [ 155.853117][ T6615] bcachefs (loop2): check_extents_to_backpointers... [ 155.854489][ T6615] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 155.855888][ T6615] done [ 155.856961][ T6615] bcachefs (loop2): check_alloc_to_lru_refs... [ 155.858854][ T6615] bcachefs (loop2): missing fragmentation lru entry [ 155.858872][ T6615] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 155.858883][ T6615] gen 0 oldest_gen 0 data_type user [pid 5839] rmdir("./48/file1") = 0 [pid 5839] umount2("./48/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./48/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./48/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./48") = 0 [ 155.858894][ T6615] journal_seq_nonempty 5 [ 155.858904][ T6615] journal_seq_empty 134217728 [ 155.858914][ T6615] need_discard 1 [ 155.858925][ T6615] need_inc_gen 1 [ 155.858935][ T6615] dirty_sectors 16 [ 155.858945][ T6615] stripe_sectors 1802251 [ 155.858955][ T6615] cached_sectors 0 [ 155.858965][ T6615] stripe 0 [ 155.858974][ T6615] stripe_redundancy 0 [ 155.858984][ T6615] io_time[READ] 1 [ 155.858994][ T6615] io_time[WRITE] 512 [pid 5839] mkdir("./49", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6808 ./strace-static-x86_64: Process 6808 attached [ 155.859004][ T6615] fragmentation 0 [ 155.859013][ T6615] bp_start 7 [ 155.859022][ T6615] , fixing [ 155.862526][ T6615] done [ 155.864002][ T6615] bcachefs (loop2): bucket_gens_init... done [ 155.866112][ T6615] bcachefs (loop2): check_snapshot_trees... done [ 155.867361][ T6615] bcachefs (loop2): check_snapshots... [ 155.867949][ T6615] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 6808] set_robust_list(0x5555901c6760, 24) = 0 [pid 6808] chdir("./49") = 0 [pid 6808] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6808] setpgid(0, 0) = 0 [pid 6808] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6808] write(3, "1000", 4) = 4 [ 155.867966][ T6615] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 155.879337][ T6615] done [ 155.880024][ T6615] bcachefs (loop2): check_subvols... done [ 155.881636][ T6615] bcachefs (loop2): check_subvol_children... done [ 155.882421][ T6615] bcachefs (loop2): delete_dead_snapshots... done [ 155.883194][ T6615] bcachefs (loop2): check_inodes... [ 155.884246][ T6615] bcachefs (loop2): inode points to missing dirent [ 155.884262][ T6615] inum: 4098:4294967295 [ 155.884273][ T6615] mode=40755 [ 155.884282][ T6615] flags=(15300000) [pid 6808] close(3) = 0 [pid 6808] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6808] write(1, "executing program\n", 18executing program ) = 18 [pid 6808] memfd_create("syzkaller", 0) = 3 [pid 6808] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 155.884291][ T6615] journal_seq=4 [ 155.884301][ T6615] hash_seed=ece93825deac2443 [ 155.884311][ T6615] hash_type=siphash [ 155.884321][ T6615] bi_size=0 [ 155.884330][ T6615] bi_sectors=0 [ 155.884340][ T6615] bi_version=0 [ 155.884349][ T6615] bi_atime=2770562249 [ 155.884359][ T6615] bi_ctime=2780562352 [ 155.884368][ T6615] bi_mtime=2780562352 [ 155.884377][ T6615] bi_otime=2770562249 [ 155.884387][ T6615] bi_uid=0 [ 155.884396][ T6615] bi_gid=0 [ 155.884405][ T6615] bi_nlink=0 [ 155.884414][ T6615] bi_generation=0 [ 155.884424][ T6615] bi_dev=0 [ 155.884433][ T6615] bi_data_checksum=0 [ 155.884442][ T6615] bi_compression=0 [ 155.884451][ T6615] bi_project=0 [ 155.884461][ T6615] bi_background_compression=0 [ 155.884471][ T6615] bi_data_replicas=0 [ 155.884481][ T6615] bi_promote_target=0 [ 155.884492][ T6615] bi_foreground_target=64 [ 155.884501][ T6615] bi_background_target=1 [ 155.884511][ T6615] bi_erasure_code=0 [ 155.884521][ T6615] bi_fields_set=0 [ 155.884530][ T6615] bi_dir=0 [ 155.884539][ T6615] bi_dir_offset=32 [ 155.884549][ T6615] bi_subvol=0 [ 155.884558][ T6615] bi_parent_subvol=0 [ 155.884576][ T6615] bi_nocow=0 [ 155.884585][ T6615] bi_depth=0 [ 155.884594][ T6615] bi_inodes_32bit=0 [ 155.884604][ T6615] bi_casefold=0, fixing [ 155.886249][ T6615] done [ 155.886922][ T6615] bcachefs (loop2): check_extents... done [ 155.888857][ T6615] bcachefs (loop2): check_indirect_extents... done [ 155.891124][ T6615] bcachefs (loop2): check_dirents... [ 155.892832][ T6615] bcachefs (loop2): directory with missing backpointer [ 155.892849][ T6615] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 155.892863][ T6615] inum: 4098:4294967295 [ 155.892873][ T6615] mode=40755 [ 155.892883][ T6615] flags=(11300000) [ 155.892892][ T6615] journal_seq=22 [ 155.892901][ T6615] hash_seed=ece93825deac2443 [ 155.892913][ T6615] hash_type=siphash [ 155.892922][ T6615] bi_size=0 [ 155.892931][ T6615] bi_sectors=0 [ 155.892941][ T6615] bi_version=0 [ 155.892950][ T6615] bi_atime=2770562249 [ 155.892960][ T6615] bi_ctime=2780562352 [ 155.892970][ T6615] bi_mtime=2780562352 [ 155.892979][ T6615] bi_otime=2770562249 [ 155.892989][ T6615] bi_uid=0 [ 155.892998][ T6615] bi_gid=0 [ 155.893007][ T6615] bi_nlink=0 [ 155.893016][ T6615] bi_generation=0 [ 155.893025][ T6615] bi_dev=0 [ 155.893035][ T6615] bi_data_checksum=0 [ 155.893044][ T6615] bi_compression=0 [ 155.893053][ T6615] bi_project=0 [ 155.893062][ T6615] bi_background_compression=0 [ 155.893073][ T6615] bi_data_replicas=0 [ 155.893082][ T6615] bi_promote_target=0 [ 155.893092][ T6615] bi_foreground_target=64 [ 155.893102][ T6615] bi_background_target=1 [ 155.893112][ T6615] bi_erasure_code=0 [ 155.893123][ T6615] bi_fields_set=0 [ 155.893132][ T6615] bi_dir=0 [ 155.893141][ T6615] bi_dir_offset=0 [ 155.893151][ T6615] bi_subvol=0 [ 155.893160][ T6615] bi_parent_subvol=0 [ 155.893170][ T6615] bi_nocow=0 [pid 6808] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6808] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6808] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6808] ioctl(4, LOOP_SET_FD, 3) = 0 [ 155.893179][ T6615] bi_depth=0 [ 155.893190][ T6615] bi_inodes_32bit=0 [ 155.893199][ T6615] bi_casefold=0, fixing [ 155.902373][ T6615] done [ 155.903050][ T6615] bcachefs (loop2): check_xattrs... done [ 155.904235][ T6615] bcachefs (loop2): check_root... done [ 155.905343][ T6615] bcachefs (loop2): check_unreachable_inodes... done [ 155.906441][ T6615] bcachefs (loop2): check_subvolume_structure... done [ 155.907264][ T6615] bcachefs (loop2): check_directory_structure... done [pid 6808] close(3) = 0 [pid 6808] close(4) = 0 [pid 6808] mkdir("./file1", 0777) = 0 [ 155.908048][ T6615] bcachefs (loop2): check_nlinks... [ 155.908783][ T6615] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 155.911233][ T6615] done [ 155.911931][ T6615] bcachefs (loop2): check_rebalance_work... done [ 155.913123][ T6615] bcachefs (loop2): resume_logged_ops... done [ 155.913949][ T6615] bcachefs (loop2): delete_dead_inodes... done [ 155.923053][ T6615] bcachefs (loop2): set_fs_needs_rebalance... [ 155.931251][ T6624] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 155.931275][ T6624] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 155.934202][ T6615] done [ 155.935248][ T6615] bcachefs (loop2): check_extents_to_backpointers... [ 155.936193][ T6615] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 155.941819][ T6615] done [ 155.962777][ T6615] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 155.962805][ T6615] bcachefs (loop2): check_alloc_info... done [ 155.972763][ T6615] bcachefs (loop2): check_lrus... done [ 155.973877][ T6615] bcachefs (loop2): check_btree_backpointers... done [ 155.975155][ T6615] bcachefs (loop2): check_backpointers_to_extents... done [ 155.980191][ T6615] bcachefs (loop2): check_extents_to_backpointers... done [ 155.981702][ T6615] bcachefs (loop2): check_alloc_to_lru_refs... done [ 155.986258][ T6615] bcachefs (loop2): bucket_gens_init... done [ 155.988763][ T6615] bcachefs (loop2): check_snapshot_trees... done [ 155.998963][ T6615] bcachefs (loop2): check_snapshots... done [ 155.999944][ T6615] bcachefs (loop2): check_subvols... done [ 156.000966][ T6615] bcachefs (loop2): check_subvol_children... done [ 156.001676][ T6615] bcachefs (loop2): delete_dead_snapshots... done [ 156.002387][ T6615] bcachefs (loop2): check_inodes... done [ 156.003455][ T6615] bcachefs (loop2): check_extents... done [ 156.005089][ T6615] bcachefs (loop2): check_indirect_extents... done [ 156.005732][ T6615] bcachefs (loop2): check_dirents... done [ 156.007535][ T6615] bcachefs (loop2): check_xattrs... done [ 156.010768][ T6615] bcachefs (loop2): check_root... done [ 156.020472][ T6615] bcachefs (loop2): check_unreachable_inodes... done [ 156.021403][ T6615] bcachefs (loop2): check_subvolume_structure... done [ 156.022137][ T6615] bcachefs (loop2): check_directory_structure... done [ 156.022854][ T6615] bcachefs (loop2): check_nlinks... done [ 156.024010][ T6615] bcachefs (loop2): check_rebalance_work... done [ 156.024790][ T6615] bcachefs (loop2): resume_logged_ops... done [ 156.025490][ T6615] bcachefs (loop2): delete_dead_inodes... done [ 156.026231][ T6615] bcachefs (loop2): set_fs_needs_rebalance... done [ 156.030180][ T6615] bcachefs (loop2): done starting filesystem [ 156.110273][ T5839] bcachefs (loop2): shutting down [ 156.110293][ T5839] bcachefs (loop2): going read-only [ 156.110324][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 156.152450][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 156.153222][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 156.153926][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 156.155715][ T5839] bcachefs (loop2): marking filesystem clean [ 156.209091][ T5839] bcachefs (loop2): shutdown complete [ 157.028227][ T6626] loop2: detected capacity change from 0 to 32768 [ 157.155038][ T6626] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 157.155066][ T6626] allowing incompatible features above 0.0: (unknown version) [ 157.155079][ T6626] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 157.155106][ T6626] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 157.155241][ T6626] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 157.155477][ T6626] bcachefs (loop2): Version upgrade required: [ 157.155477][ T6626] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 157.155477][ T6626] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6808] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6808] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6808] chdir("./file1") = 0 [pid 6808] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6808] ioctl(4, LOOP_CLR_FD) = 0 [pid 6808] close(4) = 0 [ 157.155477][ T6626] 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,check_rebalance_work,set_fs_needs_rebalance [pid 6808] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6808] exit_group(0) = ? [pid 6808] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6808, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=45 /* 0.45 s */} --- [pid 5839] umount2("./49", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./49", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 157.175008][ T6626] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 157.175035][ T6626] size != 0, deleting [ 157.176205][ T6626] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 157.180351][ T6626] bcachefs (loop2): check_topology... done [ 157.182268][ T6626] bcachefs (loop2): accounting_read... done [ 157.213444][ T6626] bcachefs (loop2): alloc_read... done [ 157.214397][ T6626] bcachefs (loop2): snapshots_read... done [ 157.215247][ T6626] bcachefs (loop2): check_allocations... [ 157.217174][ T6626] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 157.217193][ T6626] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 157.219164][ T6626] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 157.219183][ T6626] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 157.222367][ T6626] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 157.222387][ T6626] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 157.224305][ T6626] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 157.224323][ T6626] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 157.226724][ T6626] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 157.226743][ T6626] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 157.227681][ T6626] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.227821][ T6626] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.228380][ T6626] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.228489][ T6626] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.228903][ T6626] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.229012][ T6626] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.229544][ T6626] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.229657][ T6626] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.229884][ T6626] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.229991][ T6626] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.230205][ T6626] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.230337][ T6626] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.230539][ T6626] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.230644][ T6626] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 157.230859][ T6626] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 157.230965][ T6626] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 5839] umount2("./49/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./49/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./49/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./49/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./49/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 157.231168][ T6626] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 157.231274][ T6626] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 157.231485][ T6626] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 157.231589][ T6626] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 157.231841][ T6626] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./49/file1") = 0 [pid 5839] umount2("./49/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./49/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 157.231856][ T6626] Ratelimiting new instances of previous error [ 157.231989][ T6626] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 157.232005][ T6626] Ratelimiting new instances of previous error [ 157.245881][ T6626] done [ 157.248576][ T6626] bcachefs (loop2): going read-write [ 157.254695][ T6626] bcachefs (loop2): journal_replay... done [ 157.284174][ T6626] bcachefs (loop2): check_alloc_info... [ 157.286006][ T6626] bcachefs (loop2): bucket incorrectly unset in need_discard btree [pid 5839] unlink("./49/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./49") = 0 [pid 5839] mkdir("./50", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6819 attached , child_tidptr=0x5555901c6750) = 6819 [ 157.286025][ T6626] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 157.286037][ T6626] gen 0 oldest_gen 0 data_type need_discard [ 157.286048][ T6626] journal_seq_nonempty 6 [ 157.286058][ T6626] journal_seq_empty 0 [ 157.286068][ T6626] need_discard 1 [ 157.286080][ T6626] need_inc_gen 1 [ 157.286090][ T6626] dirty_sectors 0 [ 157.286100][ T6626] stripe_sectors 0 [ 157.286109][ T6626] cached_sectors 0 [ 157.286120][ T6626] stripe 0 [pid 6819] set_robust_list(0x5555901c6760, 24) = 0 [pid 6819] chdir("./50") = 0 [pid 6819] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6819] setpgid(0, 0) = 0 [ 157.286129][ T6626] stripe_redundancy 0 [ 157.286139][ T6626] io_time[READ] 1 [ 157.286150][ T6626] io_time[WRITE] 768 [ 157.286159][ T6626] fragmentation 0 [ 157.286171][ T6626] bp_start 8 [ 157.286181][ T6626] , fixing [ 157.303555][ T6626] done [ 157.309853][ T6626] bcachefs (loop2): check_lrus... done [ 157.311147][ T6626] bcachefs (loop2): check_btree_backpointers... done [ 157.312482][ T6626] bcachefs (loop2): check_backpointers_to_extents... done [pid 6819] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6819] write(3, "1000", 4) = 4 [pid 6819] close(3) = 0 [pid 6819] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6819] write(1, "executing program\n", 18executing program ) = 18 [pid 6819] memfd_create("syzkaller", 0) = 3 [ 157.317101][ T6626] bcachefs (loop2): check_extents_to_backpointers... [ 157.318488][ T6626] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 157.321394][ T6626] done [ 157.322065][ T6626] bcachefs (loop2): check_alloc_to_lru_refs... [ 157.323950][ T6626] bcachefs (loop2): missing fragmentation lru entry [ 157.323967][ T6626] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 157.323979][ T6626] gen 0 oldest_gen 0 data_type user [ 157.323990][ T6626] journal_seq_nonempty 5 [ 157.324000][ T6626] journal_seq_empty 134217728 [pid 6819] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 157.324011][ T6626] need_discard 1 [ 157.324021][ T6626] need_inc_gen 1 [ 157.324030][ T6626] dirty_sectors 16 [ 157.324040][ T6626] stripe_sectors 1802251 [ 157.324050][ T6626] cached_sectors 0 [ 157.324060][ T6626] stripe 0 [ 157.324069][ T6626] stripe_redundancy 0 [ 157.324080][ T6626] io_time[READ] 1 [ 157.324090][ T6626] io_time[WRITE] 512 [ 157.324100][ T6626] fragmentation 0 [ 157.324109][ T6626] bp_start 7 [ 157.324119][ T6626] , fixing [ 157.325711][ T6626] done [ 157.327218][ T6626] bcachefs (loop2): bucket_gens_init... done [ 157.329770][ T6626] bcachefs (loop2): check_snapshot_trees... done [ 157.332018][ T6626] bcachefs (loop2): check_snapshots... [ 157.332632][ T6626] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 157.332649][ T6626] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 157.344588][ T6626] done [ 157.345297][ T6626] bcachefs (loop2): check_subvols... done [ 157.346914][ T6626] bcachefs (loop2): check_subvol_children... done [ 157.347796][ T6626] bcachefs (loop2): delete_dead_snapshots... done [ 157.348594][ T6626] bcachefs (loop2): check_inodes... [ 157.350310][ T6626] bcachefs (loop2): inode points to missing dirent [ 157.350328][ T6626] inum: 4098:4294967295 [ 157.350339][ T6626] mode=40755 [ 157.350348][ T6626] flags=(15300000) [ 157.350358][ T6626] journal_seq=4 [ 157.350367][ T6626] hash_seed=ece93825deac2443 [ 157.350377][ T6626] hash_type=siphash [ 157.350387][ T6626] bi_size=0 [ 157.350396][ T6626] bi_sectors=0 [ 157.350406][ T6626] bi_version=0 [ 157.350415][ T6626] bi_atime=2770562249 [ 157.350425][ T6626] bi_ctime=2780562352 [ 157.350445][ T6626] bi_mtime=2780562352 [ 157.350454][ T6626] bi_otime=2770562249 [ 157.350466][ T6626] bi_uid=0 [ 157.350473][ T6626] bi_gid=0 [ 157.350482][ T6626] bi_nlink=0 [ 157.350492][ T6626] bi_generation=0 [ 157.350501][ T6626] bi_dev=0 [ 157.350510][ T6626] bi_data_checksum=0 [ 157.350520][ T6626] bi_compression=0 [ 157.350531][ T6626] bi_project=0 [ 157.350541][ T6626] bi_background_compression=0 [ 157.350551][ T6626] bi_data_replicas=0 [ 157.350560][ T6626] bi_promote_target=0 [ 157.350570][ T6626] bi_foreground_target=64 [ 157.350580][ T6626] bi_background_target=1 [ 157.350590][ T6626] bi_erasure_code=0 [ 157.350599][ T6626] bi_fields_set=0 [ 157.350609][ T6626] bi_dir=0 [ 157.350618][ T6626] bi_dir_offset=32 [ 157.350627][ T6626] bi_subvol=0 [pid 6819] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 157.350637][ T6626] bi_parent_subvol=0 [ 157.350646][ T6626] bi_nocow=0 [ 157.350655][ T6626] bi_depth=0 [ 157.350665][ T6626] bi_inodes_32bit=0 [ 157.350674][ T6626] bi_casefold=0, fixing [ 157.352753][ T6626] done [ 157.353318][ T6626] bcachefs (loop2): check_extents... done [ 157.354843][ T6626] bcachefs (loop2): check_indirect_extents... done [ 157.355593][ T6626] bcachefs (loop2): check_dirents... [ 157.357303][ T6626] bcachefs (loop2): directory with missing backpointer [pid 6819] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6819] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6819] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6819] close(3) = 0 [pid 6819] close(4) = 0 [ 157.357320][ T6626] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 157.357334][ T6626] inum: 4098:4294967295 [ 157.357345][ T6626] mode=40755 [ 157.357355][ T6626] flags=(11300000) [ 157.357364][ T6626] journal_seq=22 [ 157.357374][ T6626] hash_seed=ece93825deac2443 [ 157.357384][ T6626] hash_type=siphash [ 157.357393][ T6626] bi_size=0 [ 157.357403][ T6626] bi_sectors=0 [ 157.357412][ T6626] bi_version=0 [ 157.357421][ T6626] bi_atime=2770562249 [pid 6819] mkdir("./file1", 0777) = 0 [ 157.357439][ T6626] bi_ctime=2780562352 [ 157.357449][ T6626] bi_mtime=2780562352 [ 157.357458][ T6626] bi_otime=2770562249 [ 157.357468][ T6626] bi_uid=0 [ 157.357477][ T6626] bi_gid=0 [ 157.357486][ T6626] bi_nlink=0 [ 157.357495][ T6626] bi_generation=0 [ 157.357504][ T6626] bi_dev=0 [ 157.357514][ T6626] bi_data_checksum=0 [ 157.357523][ T6626] bi_compression=0 [ 157.357533][ T6626] bi_project=0 [ 157.357542][ T6626] bi_background_compression=0 [ 157.357552][ T6626] bi_data_replicas=0 [ 157.357562][ T6626] bi_promote_target=0 [ 157.357572][ T6626] bi_foreground_target=64 [ 157.357582][ T6626] bi_background_target=1 [ 157.357591][ T6626] bi_erasure_code=0 [ 157.357601][ T6626] bi_fields_set=0 [ 157.357610][ T6626] bi_dir=0 [ 157.357619][ T6626] bi_dir_offset=0 [ 157.357628][ T6626] bi_subvol=0 [ 157.357638][ T6626] bi_parent_subvol=0 [ 157.357647][ T6626] bi_nocow=0 [ 157.357656][ T6626] bi_depth=0 [ 157.357666][ T6626] bi_inodes_32bit=0 [ 157.357677][ T6626] bi_casefold=0, fixing [ 157.366740][ T6626] done [ 157.367750][ T6626] bcachefs (loop2): check_xattrs... done [ 157.371277][ T6626] bcachefs (loop2): check_root... done [ 157.372824][ T6626] bcachefs (loop2): check_unreachable_inodes... done [ 157.373890][ T6626] bcachefs (loop2): check_subvolume_structure... done [ 157.375195][ T6626] bcachefs (loop2): check_directory_structure... done [ 157.376040][ T6626] bcachefs (loop2): check_nlinks... [ 157.376754][ T6626] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 157.377837][ T6626] done [ 157.378524][ T6626] bcachefs (loop2): check_rebalance_work... done [ 157.381218][ T6626] bcachefs (loop2): resume_logged_ops... done [ 157.382053][ T6626] bcachefs (loop2): delete_dead_inodes... done [ 157.391146][ T6626] bcachefs (loop2): set_fs_needs_rebalance... [ 157.399752][ T6635] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 157.399775][ T6635] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 157.403382][ T6626] done [ 157.404051][ T6626] bcachefs (loop2): check_extents_to_backpointers... [ 157.405017][ T6626] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 157.411724][ T6626] done [ 157.421173][ T6626] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 157.421199][ T6626] bcachefs (loop2): check_alloc_info... done [ 157.426125][ T6626] bcachefs (loop2): check_lrus... done [ 157.427346][ T6626] bcachefs (loop2): check_btree_backpointers... done [ 157.429169][ T6626] bcachefs (loop2): check_backpointers_to_extents... done [ 157.431448][ T6626] bcachefs (loop2): check_extents_to_backpointers... done [ 157.433195][ T6626] bcachefs (loop2): check_alloc_to_lru_refs... done [ 157.435581][ T6626] bcachefs (loop2): bucket_gens_init... done [ 157.437705][ T6626] bcachefs (loop2): check_snapshot_trees... done [ 157.439962][ T6626] bcachefs (loop2): check_snapshots... done [ 157.440888][ T6626] bcachefs (loop2): check_subvols... done [ 157.441783][ T6626] bcachefs (loop2): check_subvol_children... done [ 157.442546][ T6626] bcachefs (loop2): delete_dead_snapshots... done [ 157.443345][ T6626] bcachefs (loop2): check_inodes... done [ 157.444573][ T6626] bcachefs (loop2): check_extents... done [ 157.446081][ T6626] bcachefs (loop2): check_indirect_extents... done [ 157.446938][ T6626] bcachefs (loop2): check_dirents... done [ 157.448516][ T6626] bcachefs (loop2): check_xattrs... done [ 157.450997][ T6626] bcachefs (loop2): check_root... done [ 157.451906][ T6626] bcachefs (loop2): check_unreachable_inodes... done [ 157.452818][ T6626] bcachefs (loop2): check_subvolume_structure... done [ 157.453613][ T6626] bcachefs (loop2): check_directory_structure... done [ 157.454413][ T6626] bcachefs (loop2): check_nlinks... done [ 157.455668][ T6626] bcachefs (loop2): check_rebalance_work... done [ 157.456553][ T6626] bcachefs (loop2): resume_logged_ops... done [ 157.457438][ T6626] bcachefs (loop2): delete_dead_inodes... done [ 157.458287][ T6626] bcachefs (loop2): set_fs_needs_rebalance... done [ 157.463666][ T6626] bcachefs (loop2): done starting filesystem [pid 6819] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6819] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 157.542109][ T5839] bcachefs (loop2): shutting down [ 157.542128][ T5839] bcachefs (loop2): going read-only [ 157.542160][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 157.591656][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 157.592464][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 157.593345][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 157.595135][ T5839] bcachefs (loop2): marking filesystem clean [ 157.643998][ T5839] bcachefs (loop2): shutdown complete [pid 6819] chdir("./file1") = 0 [pid 6819] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6819] ioctl(4, LOOP_CLR_FD) = 0 [pid 6819] close(4) = 0 [pid 6819] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6819] exit_group(0) = ? [pid 6819] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6819, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] umount2("./50", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./50", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 158.382361][ T6637] loop2: detected capacity change from 0 to 32768 [ 158.519927][ T6637] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 158.519955][ T6637] allowing incompatible features above 0.0: (unknown version) [ 158.519970][ T6637] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 158.519998][ T6637] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 158.520125][ T6637] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 158.520369][ T6637] bcachefs (loop2): Version upgrade required: [ 158.520369][ T6637] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 158.520369][ T6637] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 158.520369][ T6637] 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,check_rebalance_work,set_fs_needs_rebalance [ 158.540471][ T6637] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 158.540499][ T6637] size != 0, deleting [ 158.541661][ T6637] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 158.545417][ T6637] bcachefs (loop2): check_topology... done [ 158.546876][ T6637] bcachefs (loop2): accounting_read... done [ 158.580748][ T6637] bcachefs (loop2): alloc_read... done [ 158.581694][ T6637] bcachefs (loop2): snapshots_read... done [ 158.582571][ T6637] bcachefs (loop2): check_allocations... [ 158.584575][ T6637] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 158.584596][ T6637] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 158.587169][ T6637] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 158.587187][ T6637] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 158.588620][ T6637] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 158.588639][ T6637] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 158.591542][ T6637] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 158.591562][ T6637] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 158.594140][ T6637] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 158.594160][ T6637] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 158.595111][ T6637] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.595242][ T6637] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.595818][ T6637] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.595926][ T6637] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.596333][ T6637] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.596435][ T6637] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.597106][ T6637] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.597233][ T6637] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.597427][ T6637] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.597554][ T6637] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.597757][ T6637] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.597864][ T6637] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.598064][ T6637] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] umount2("./50/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./50/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./50/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./50/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./50/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 158.598186][ T6637] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 158.598380][ T6637] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 158.598485][ T6637] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 158.598695][ T6637] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 158.598802][ T6637] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./50/file1") = 0 [pid 5839] umount2("./50/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./50/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./50/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./50") = 0 [ 158.599021][ T6637] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 158.599127][ T6637] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 158.600475][ T6637] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 158.600496][ T6637] Ratelimiting new instances of previous error [ 158.600635][ T6637] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] mkdir("./51", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6830 attached , child_tidptr=0x5555901c6750) = 6830 [pid 6830] set_robust_list(0x5555901c6760, 24) = 0 [ 158.600652][ T6637] Ratelimiting new instances of previous error [ 158.613963][ T6637] done [ 158.616090][ T6637] bcachefs (loop2): going read-write [ 158.623101][ T6637] bcachefs (loop2): journal_replay... done [ 158.650279][ T6637] bcachefs (loop2): check_alloc_info... [ 158.652680][ T6637] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 158.652699][ T6637] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 158.652711][ T6637] gen 0 oldest_gen 0 data_type need_discard [pid 6830] chdir("./51") = 0 [pid 6830] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6830] setpgid(0, 0) = 0 [pid 6830] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6830] write(3, "1000", 4) = 4 [pid 6830] close(3) = 0 [pid 6830] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6830] write(1, "executing program\n", 18executing program ) = 18 [ 158.652722][ T6637] journal_seq_nonempty 6 [ 158.652732][ T6637] journal_seq_empty 0 [ 158.652742][ T6637] need_discard 1 [ 158.652754][ T6637] need_inc_gen 1 [ 158.652763][ T6637] dirty_sectors 0 [ 158.652774][ T6637] stripe_sectors 0 [ 158.652784][ T6637] cached_sectors 0 [ 158.652794][ T6637] stripe 0 [ 158.652803][ T6637] stripe_redundancy 0 [ 158.652814][ T6637] io_time[READ] 1 [ 158.652824][ T6637] io_time[WRITE] 768 [pid 6830] memfd_create("syzkaller", 0) = 3 [pid 6830] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 158.652833][ T6637] fragmentation 0 [ 158.652843][ T6637] bp_start 8 [ 158.652855][ T6637] , fixing [ 158.669888][ T6637] done [ 158.674542][ T6637] bcachefs (loop2): check_lrus... done [ 158.677054][ T6637] bcachefs (loop2): check_btree_backpointers... done [ 158.678421][ T6637] bcachefs (loop2): check_backpointers_to_extents... done [ 158.684121][ T6637] bcachefs (loop2): check_extents_to_backpointers... [ 158.685985][ T6637] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 158.687351][ T6637] done [ 158.688039][ T6637] bcachefs (loop2): check_alloc_to_lru_refs... [ 158.690257][ T6637] bcachefs (loop2): missing fragmentation lru entry [ 158.690271][ T6637] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 158.690279][ T6637] gen 0 oldest_gen 0 data_type user [ 158.690287][ T6637] journal_seq_nonempty 5 [ 158.690297][ T6637] journal_seq_empty 134217728 [ 158.690307][ T6637] need_discard 1 [ 158.690317][ T6637] need_inc_gen 1 [ 158.690327][ T6637] dirty_sectors 16 [ 158.690337][ T6637] stripe_sectors 1802251 [ 158.690347][ T6637] cached_sectors 0 [ 158.690356][ T6637] stripe 0 [ 158.690366][ T6637] stripe_redundancy 0 [ 158.690376][ T6637] io_time[READ] 1 [ 158.690387][ T6637] io_time[WRITE] 512 [ 158.690397][ T6637] fragmentation 0 [ 158.690407][ T6637] bp_start 7 [ 158.690416][ T6637] , fixing [ 158.694471][ T6637] done [ 158.696589][ T6637] bcachefs (loop2): bucket_gens_init... done [ 158.698722][ T6637] bcachefs (loop2): check_snapshot_trees... done [ 158.700102][ T6637] bcachefs (loop2): check_snapshots... [ 158.700693][ T6637] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 158.700711][ T6637] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 158.712325][ T6637] done [ 158.713191][ T6637] bcachefs (loop2): check_subvols... done [ 158.714811][ T6637] bcachefs (loop2): check_subvol_children... done [ 158.715709][ T6637] bcachefs (loop2): delete_dead_snapshots... done [ 158.716509][ T6637] bcachefs (loop2): check_inodes... [ 158.718079][ T6637] bcachefs (loop2): inode points to missing dirent [ 158.718096][ T6637] inum: 4098:4294967295 [ 158.718106][ T6637] mode=40755 [ 158.718115][ T6637] flags=(15300000) [ 158.718125][ T6637] journal_seq=4 [ 158.718134][ T6637] hash_seed=ece93825deac2443 [ 158.718144][ T6637] hash_type=siphash [ 158.718154][ T6637] bi_size=0 [ 158.718163][ T6637] bi_sectors=0 [ 158.718173][ T6637] bi_version=0 [pid 6830] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 158.718182][ T6637] bi_atime=2770562249 [ 158.718192][ T6637] bi_ctime=2780562352 [ 158.718201][ T6637] bi_mtime=2780562352 [ 158.718211][ T6637] bi_otime=2770562249 [ 158.718221][ T6637] bi_uid=0 [ 158.718230][ T6637] bi_gid=0 [ 158.718239][ T6637] bi_nlink=0 [ 158.718249][ T6637] bi_generation=0 [ 158.718258][ T6637] bi_dev=0 [ 158.718267][ T6637] bi_data_checksum=0 [ 158.718276][ T6637] bi_compression=0 [ 158.718286][ T6637] bi_project=0 [ 158.718295][ T6637] bi_background_compression=0 [pid 6830] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6830] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6830] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6830] close(3) = 0 [pid 6830] close(4) = 0 [pid 6830] mkdir("./file1", 0777) = 0 [ 158.718305][ T6637] bi_data_replicas=0 [ 158.718315][ T6637] bi_promote_target=0 [ 158.718325][ T6637] bi_foreground_target=64 [ 158.718334][ T6637] bi_background_target=1 [ 158.718344][ T6637] bi_erasure_code=0 [ 158.718353][ T6637] bi_fields_set=0 [ 158.718363][ T6637] bi_dir=0 [ 158.718372][ T6637] bi_dir_offset=32 [ 158.718381][ T6637] bi_subvol=0 [ 158.718391][ T6637] bi_parent_subvol=0 [ 158.718400][ T6637] bi_nocow=0 [ 158.718409][ T6637] bi_depth=0 [ 158.718418][ T6637] bi_inodes_32bit=0 [ 158.718429][ T6637] bi_casefold=0, fixing [ 158.721872][ T6637] done [ 158.722729][ T6637] bcachefs (loop2): check_extents... done [ 158.726356][ T6637] bcachefs (loop2): check_indirect_extents... done [ 158.728929][ T6637] bcachefs (loop2): check_dirents... [ 158.732144][ T6637] bcachefs (loop2): directory with missing backpointer [ 158.732164][ T6637] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 158.732178][ T6637] inum: 4098:4294967295 [ 158.732187][ T6637] mode=40755 [ 158.732199][ T6637] flags=(11300000) [ 158.732208][ T6637] journal_seq=22 [ 158.732217][ T6637] hash_seed=ece93825deac2443 [ 158.732228][ T6637] hash_type=siphash [ 158.732235][ T6637] bi_size=0 [ 158.732242][ T6637] bi_sectors=0 [ 158.732249][ T6637] bi_version=0 [ 158.732256][ T6637] bi_atime=2770562249 [ 158.732263][ T6637] bi_ctime=2780562352 [ 158.732271][ T6637] bi_mtime=2780562352 [ 158.732278][ T6637] bi_otime=2770562249 [ 158.732285][ T6637] bi_uid=0 [ 158.732291][ T6637] bi_gid=0 [ 158.732298][ T6637] bi_nlink=0 [ 158.732305][ T6637] bi_generation=0 [ 158.732312][ T6637] bi_dev=0 [ 158.732319][ T6637] bi_data_checksum=0 [ 158.732326][ T6637] bi_compression=0 [ 158.732333][ T6637] bi_project=0 [ 158.732340][ T6637] bi_background_compression=0 [ 158.732347][ T6637] bi_data_replicas=0 [ 158.732354][ T6637] bi_promote_target=0 [ 158.732364][ T6637] bi_foreground_target=64 [ 158.732371][ T6637] bi_background_target=1 [ 158.732378][ T6637] bi_erasure_code=0 [ 158.732385][ T6637] bi_fields_set=0 [ 158.732392][ T6637] bi_dir=0 [ 158.732399][ T6637] bi_dir_offset=0 [ 158.732405][ T6637] bi_subvol=0 [ 158.732412][ T6637] bi_parent_subvol=0 [ 158.732419][ T6637] bi_nocow=0 [ 158.732426][ T6637] bi_depth=0 [ 158.732433][ T6637] bi_inodes_32bit=0 [ 158.732440][ T6637] bi_casefold=0, fixing [ 158.734865][ T6637] done [ 158.735666][ T6637] bcachefs (loop2): check_xattrs... done [ 158.736947][ T6637] bcachefs (loop2): check_root... done [ 158.738610][ T6637] bcachefs (loop2): check_unreachable_inodes... done [ 158.741153][ T6637] bcachefs (loop2): check_subvolume_structure... done [ 158.741848][ T6637] bcachefs (loop2): check_directory_structure... done [ 158.743645][ T6637] bcachefs (loop2): check_nlinks... [ 158.744350][ T6637] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 158.747061][ T6637] done [ 158.747656][ T6637] bcachefs (loop2): check_rebalance_work... done [ 158.750243][ T6637] bcachefs (loop2): resume_logged_ops... done [ 158.751072][ T6637] bcachefs (loop2): delete_dead_inodes... done [ 158.759805][ T6637] bcachefs (loop2): set_fs_needs_rebalance... [ 158.766771][ T6646] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 158.766792][ T6646] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 158.771243][ T6637] done [ 158.771880][ T6637] bcachefs (loop2): check_extents_to_backpointers... [ 158.772856][ T6637] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 158.774633][ T6646] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 158.778943][ T6637] done [ 158.788761][ T6637] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 158.788787][ T6637] bcachefs (loop2): check_alloc_info... done [ 158.793901][ T6637] bcachefs (loop2): check_lrus... done [ 158.795077][ T6637] bcachefs (loop2): check_btree_backpointers... done [ 158.796821][ T6637] bcachefs (loop2): check_backpointers_to_extents... done [ 158.798195][ T6637] bcachefs (loop2): check_extents_to_backpointers... [ 158.799052][ T6637] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 158.801400][ T6637] done [ 158.801414][ T6637] bcachefs (loop2): check_alloc_to_lru_refs... done [ 158.803641][ T6637] bcachefs (loop2): bucket_gens_init... done [ 158.805643][ T6637] bcachefs (loop2): check_snapshot_trees... done [pid 6830] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6830] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6830] chdir("./file1") = 0 [pid 6830] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6830] ioctl(4, LOOP_CLR_FD) = 0 [pid 6830] close(4) = 0 [pid 6830] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6830] exit_group(0) = ? [pid 6830] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6830, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=41 /* 0.41 s */} --- [ 158.807224][ T6637] bcachefs (loop2): check_snapshots... done [ 158.808038][ T6637] bcachefs (loop2): check_subvols... done [ 158.808827][ T6637] bcachefs (loop2): check_subvol_children... done [ 158.810525][ T6637] bcachefs (loop2): delete_dead_snapshots... done [ 158.811634][ T6637] bcachefs (loop2): check_inodes... done [ 158.812800][ T6637] bcachefs (loop2): check_extents... done [ 158.814151][ T6637] bcachefs (loop2): check_indirect_extents... done [ 158.814996][ T6637] bcachefs (loop2): check_dirents... done [ 158.816518][ T6637] bcachefs (loop2): check_xattrs... done [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./51", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./51", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 158.817842][ T6637] bcachefs (loop2): check_root... done [ 158.818704][ T6637] bcachefs (loop2): check_unreachable_inodes... done [ 158.820732][ T6637] bcachefs (loop2): check_subvolume_structure... done [ 158.821485][ T6637] bcachefs (loop2): check_directory_structure... done [ 158.822227][ T6637] bcachefs (loop2): check_nlinks... done [ 158.823400][ T6637] bcachefs (loop2): check_rebalance_work... done [ 158.824156][ T6637] bcachefs (loop2): resume_logged_ops... done [ 158.824790][ T6637] bcachefs (loop2): delete_dead_inodes... done [ 158.825579][ T6637] bcachefs (loop2): set_fs_needs_rebalance... done [ 158.830565][ T6637] bcachefs (loop2): done starting filesystem [ 158.918414][ T5839] bcachefs (loop2): shutting down [ 158.918434][ T5839] bcachefs (loop2): going read-only [ 158.918464][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 159.029918][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 159.030979][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 159.031881][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 159.033682][ T5839] bcachefs (loop2): marking filesystem clean [ 159.076793][ T5839] bcachefs (loop2): shutdown complete [ 159.907038][ T6648] loop2: detected capacity change from 0 to 32768 [ 160.035481][ T6648] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 160.035508][ T6648] allowing incompatible features above 0.0: (unknown version) [ 160.035524][ T6648] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 160.035551][ T6648] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 160.035683][ T6648] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 160.035932][ T6648] bcachefs (loop2): Version upgrade required: [ 160.035932][ T6648] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 160.035932][ T6648] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 160.035932][ T6648] 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,check_rebalance_work,set_fs_needs_rebalance [ 160.054899][ T6648] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 160.054925][ T6648] size != 0, deleting [ 160.056091][ T6648] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 160.060376][ T6648] bcachefs (loop2): check_topology... done [ 160.062450][ T6648] bcachefs (loop2): accounting_read... done [ 160.100714][ T6648] bcachefs (loop2): alloc_read... done [ 160.101656][ T6648] bcachefs (loop2): snapshots_read... done [ 160.102467][ T6648] bcachefs (loop2): check_allocations... [ 160.104802][ T6648] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 160.104823][ T6648] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 160.106861][ T6648] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 160.106880][ T6648] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 160.108290][ T6648] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 160.108308][ T6648] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 160.111286][ T6648] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 160.111306][ T6648] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 160.114714][ T6648] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 160.114733][ T6648] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 160.115681][ T6648] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 160.115809][ T6648] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.116347][ T6648] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 160.116464][ T6648] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.116874][ T6648] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 160.116979][ T6648] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.117160][ T6648] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] umount2("./51/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./51/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 160.117261][ T6648] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.117471][ T6648] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 160.117571][ T6648] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.117787][ T6648] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] newfstatat(AT_FDCWD, "./51/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./51/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./51/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./51/file1") = 0 [ 160.117893][ T6648] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.118090][ T6648] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 160.118192][ T6648] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 160.118403][ T6648] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 160.118508][ T6648] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 5839] umount2("./51/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./51/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./51/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./51") = 0 [pid 5839] mkdir("./52", 0777) = 0 [ 160.118708][ T6648] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 160.118815][ T6648] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 160.119036][ T6648] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 160.119141][ T6648] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 160.120120][ T6648] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6841 ./strace-static-x86_64: Process 6841 attached [pid 6841] set_robust_list(0x5555901c6760, 24) = 0 [ 160.120139][ T6648] Ratelimiting new instances of previous error [ 160.120270][ T6648] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 160.120287][ T6648] Ratelimiting new instances of previous error [ 160.133295][ T6648] done [ 160.135468][ T6648] bcachefs (loop2): going read-write [ 160.141864][ T6648] bcachefs (loop2): journal_replay... done [ 160.169142][ T6648] bcachefs (loop2): check_alloc_info... [ 160.171493][ T6648] bcachefs (loop2): bucket incorrectly unset in need_discard btree [pid 6841] chdir("./52") = 0 [pid 6841] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6841] setpgid(0, 0) = 0 [pid 6841] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6841] write(3, "1000", 4) = 4 [pid 6841] close(3) = 0 [pid 6841] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6841] write(1, "executing program\n", 18) = 18 [ 160.171515][ T6648] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 160.171527][ T6648] gen 0 oldest_gen 0 data_type need_discard [ 160.171538][ T6648] journal_seq_nonempty 6 [ 160.171548][ T6648] journal_seq_empty 0 [ 160.171560][ T6648] need_discard 1 [ 160.171570][ T6648] need_inc_gen 1 [ 160.171580][ T6648] dirty_sectors 0 [ 160.171590][ T6648] stripe_sectors 0 [ 160.171600][ T6648] cached_sectors 0 [ 160.171610][ T6648] stripe 0 [pid 6841] memfd_create("syzkaller", 0) = 3 [pid 6841] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 160.171619][ T6648] stripe_redundancy 0 [ 160.171629][ T6648] io_time[READ] 1 [ 160.171640][ T6648] io_time[WRITE] 768 [ 160.171651][ T6648] fragmentation 0 [ 160.171661][ T6648] bp_start 8 [ 160.171671][ T6648] , fixing [ 160.189181][ T6648] done [ 160.195411][ T6648] bcachefs (loop2): check_lrus... done [ 160.196784][ T6648] bcachefs (loop2): check_btree_backpointers... done [ 160.200200][ T6648] bcachefs (loop2): check_backpointers_to_extents... done [ 160.204221][ T6648] bcachefs (loop2): check_extents_to_backpointers... [ 160.205597][ T6648] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 160.207475][ T6648] done [ 160.208225][ T6648] bcachefs (loop2): check_alloc_to_lru_refs... [ 160.210904][ T6648] bcachefs (loop2): missing fragmentation lru entry [ 160.210921][ T6648] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 160.210933][ T6648] gen 0 oldest_gen 0 data_type user [ 160.210944][ T6648] journal_seq_nonempty 5 [ 160.210954][ T6648] journal_seq_empty 134217728 [ 160.210964][ T6648] need_discard 1 [ 160.210974][ T6648] need_inc_gen 1 [ 160.210983][ T6648] dirty_sectors 16 [ 160.210995][ T6648] stripe_sectors 1802251 [ 160.211005][ T6648] cached_sectors 0 [ 160.211014][ T6648] stripe 0 [ 160.211024][ T6648] stripe_redundancy 0 [ 160.211034][ T6648] io_time[READ] 1 [ 160.211044][ T6648] io_time[WRITE] 512 [ 160.211053][ T6648] fragmentation 0 [ 160.211063][ T6648] bp_start 7 [ 160.211072][ T6648] , fixing [ 160.212632][ T6648] done [ 160.214048][ T6648] bcachefs (loop2): bucket_gens_init... done [ 160.216243][ T6648] bcachefs (loop2): check_snapshot_trees... done [ 160.217617][ T6648] bcachefs (loop2): check_snapshots... [ 160.218190][ T6648] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 160.218208][ T6648] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 160.231838][ T6648] done [ 160.232550][ T6648] bcachefs (loop2): check_subvols... done [ 160.234059][ T6648] bcachefs (loop2): check_subvol_children... done [ 160.234999][ T6648] bcachefs (loop2): delete_dead_snapshots... done [ 160.235672][ T6648] bcachefs (loop2): check_inodes... [ 160.236746][ T6648] bcachefs (loop2): inode points to missing dirent [ 160.236762][ T6648] inum: 4098:4294967295 [ 160.236772][ T6648] mode=40755 [ 160.236781][ T6648] flags=(15300000) [ 160.236791][ T6648] journal_seq=4 [ 160.236800][ T6648] hash_seed=ece93825deac2443 [pid 6841] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 160.236810][ T6648] hash_type=siphash [ 160.236819][ T6648] bi_size=0 [ 160.236828][ T6648] bi_sectors=0 [ 160.236837][ T6648] bi_version=0 [ 160.236846][ T6648] bi_atime=2770562249 [ 160.236855][ T6648] bi_ctime=2780562352 [ 160.236882][ T6648] bi_mtime=2780562352 [ 160.236893][ T6648] bi_otime=2770562249 [ 160.236902][ T6648] bi_uid=0 [ 160.236911][ T6648] bi_gid=0 [ 160.236920][ T6648] bi_nlink=0 [ 160.236930][ T6648] bi_generation=0 [ 160.236939][ T6648] bi_dev=0 [pid 6841] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6841] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6841] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6841] close(3) = 0 [pid 6841] close(4) = 0 [pid 6841] mkdir("./file1", 0777) = 0 [ 160.236948][ T6648] bi_data_checksum=0 [ 160.236958][ T6648] bi_compression=0 [ 160.236967][ T6648] bi_project=0 [ 160.236977][ T6648] bi_background_compression=0 [ 160.236988][ T6648] bi_data_replicas=0 [ 160.236998][ T6648] bi_promote_target=0 [ 160.237008][ T6648] bi_foreground_target=64 [ 160.237018][ T6648] bi_background_target=1 [ 160.237027][ T6648] bi_erasure_code=0 [ 160.237037][ T6648] bi_fields_set=0 [ 160.237047][ T6648] bi_dir=0 [ 160.237056][ T6648] bi_dir_offset=32 [ 160.237065][ T6648] bi_subvol=0 [ 160.237075][ T6648] bi_parent_subvol=0 [ 160.237084][ T6648] bi_nocow=0 [ 160.237093][ T6648] bi_depth=0 [ 160.237102][ T6648] bi_inodes_32bit=0 [ 160.237112][ T6648] bi_casefold=0, fixing [ 160.240496][ T6648] done [ 160.241386][ T6648] bcachefs (loop2): check_extents... done [ 160.245942][ T6648] bcachefs (loop2): check_indirect_extents... done [ 160.247214][ T6648] bcachefs (loop2): check_dirents... [ 160.249890][ T6648] bcachefs (loop2): directory with missing backpointer [ 160.249908][ T6648] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 160.249924][ T6648] inum: 4098:4294967295 [ 160.249934][ T6648] mode=40755 [ 160.249943][ T6648] flags=(11300000) [ 160.249980][ T6648] journal_seq=23 [ 160.249989][ T6648] hash_seed=ece93825deac2443 [ 160.250000][ T6648] hash_type=siphash [ 160.250009][ T6648] bi_size=0 [ 160.250018][ T6648] bi_sectors=0 [ 160.250028][ T6648] bi_version=0 [ 160.250037][ T6648] bi_atime=2770562249 [ 160.250047][ T6648] bi_ctime=2780562352 [ 160.250057][ T6648] bi_mtime=2780562352 [ 160.250066][ T6648] bi_otime=2770562249 [ 160.250076][ T6648] bi_uid=0 [ 160.250086][ T6648] bi_gid=0 [ 160.250113][ T6648] bi_nlink=0 [ 160.250123][ T6648] bi_generation=0 [ 160.250132][ T6648] bi_dev=0 [ 160.250141][ T6648] bi_data_checksum=0 [ 160.250151][ T6648] bi_compression=0 [ 160.250161][ T6648] bi_project=0 [ 160.250170][ T6648] bi_background_compression=0 [ 160.250181][ T6648] bi_data_replicas=0 [ 160.250190][ T6648] bi_promote_target=0 [ 160.250200][ T6648] bi_foreground_target=64 [ 160.250210][ T6648] bi_background_target=1 [ 160.250219][ T6648] bi_erasure_code=0 [ 160.250229][ T6648] bi_fields_set=0 [ 160.250239][ T6648] bi_dir=0 [ 160.250248][ T6648] bi_dir_offset=0 [ 160.250258][ T6648] bi_subvol=0 [ 160.250267][ T6648] bi_parent_subvol=0 [ 160.250276][ T6648] bi_nocow=0 [ 160.250285][ T6648] bi_depth=0 [ 160.250295][ T6648] bi_inodes_32bit=0 [ 160.250304][ T6648] bi_casefold=0, fixing [ 160.252527][ T6648] done [ 160.253225][ T6648] bcachefs (loop2): check_xattrs... done [ 160.254598][ T6648] bcachefs (loop2): check_root... done [ 160.255728][ T6648] bcachefs (loop2): check_unreachable_inodes... done [ 160.256815][ T6648] bcachefs (loop2): check_subvolume_structure... done [ 160.257636][ T6648] bcachefs (loop2): check_directory_structure... done [ 160.258477][ T6648] bcachefs (loop2): check_nlinks... [ 160.262054][ T6648] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 160.265022][ T6648] done [ 160.265738][ T6648] bcachefs (loop2): check_rebalance_work... done [ 160.267229][ T6648] bcachefs (loop2): resume_logged_ops... done [ 160.268057][ T6648] bcachefs (loop2): delete_dead_inodes... done [ 160.277351][ T6648] bcachefs (loop2): set_fs_needs_rebalance... [ 160.285912][ T6657] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 160.285936][ T6657] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 160.289981][ T6648] done [ 160.290551][ T6648] bcachefs (loop2): check_extents_to_backpointers... [ 160.291512][ T6648] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 160.296735][ T6648] done [ 160.306574][ T6648] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 160.306598][ T6648] bcachefs (loop2): check_alloc_info... done [ 160.311687][ T6648] bcachefs (loop2): check_lrus... done [pid 6841] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 160.312823][ T6648] bcachefs (loop2): check_btree_backpointers... done [ 160.314106][ T6648] bcachefs (loop2): check_backpointers_to_extents... done [ 160.316126][ T6648] bcachefs (loop2): check_extents_to_backpointers... done [ 160.317826][ T6648] bcachefs (loop2): check_alloc_to_lru_refs... done [ 160.320918][ T6648] bcachefs (loop2): bucket_gens_init... done [ 160.322897][ T6648] bcachefs (loop2): check_snapshot_trees... done [ 160.324130][ T6648] bcachefs (loop2): check_snapshots... done [ 160.324968][ T6648] bcachefs (loop2): check_subvols... done [pid 6841] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6841] chdir("./file1") = 0 [pid 6841] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6841] ioctl(4, LOOP_CLR_FD) = 0 [pid 6841] close(4) = 0 [pid 6841] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6841] exit_group(0) = ? [pid 6841] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6841, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./52", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./52", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 160.326339][ T6648] bcachefs (loop2): check_subvol_children... done [ 160.327156][ T6648] bcachefs (loop2): delete_dead_snapshots... done [ 160.327920][ T6648] bcachefs (loop2): check_inodes... done [ 160.329143][ T6648] bcachefs (loop2): check_extents... done [ 160.332471][ T6648] bcachefs (loop2): check_indirect_extents... done [ 160.333283][ T6648] bcachefs (loop2): check_dirents... done [ 160.334812][ T6648] bcachefs (loop2): check_xattrs... done [ 160.335707][ T6648] bcachefs (loop2): check_root... done [ 160.336790][ T6648] bcachefs (loop2): check_unreachable_inodes... done [ 160.337984][ T6648] bcachefs (loop2): check_subvolume_structure... done [ 160.338778][ T6648] bcachefs (loop2): check_directory_structure... done [ 160.340756][ T6648] bcachefs (loop2): check_nlinks... done [ 160.341988][ T6648] bcachefs (loop2): check_rebalance_work... done [ 160.342864][ T6648] bcachefs (loop2): resume_logged_ops... done [ 160.344271][ T6648] bcachefs (loop2): delete_dead_inodes... done [ 160.345080][ T6648] bcachefs (loop2): set_fs_needs_rebalance... done [ 160.349586][ T6648] bcachefs (loop2): done starting filesystem [ 160.462147][ T5839] bcachefs (loop2): shutting down [ 160.462168][ T5839] bcachefs (loop2): going read-only [ 160.462193][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 160.501189][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 160.502011][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 160.502920][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 160.504759][ T5839] bcachefs (loop2): marking filesystem clean [ 160.594272][ T5839] bcachefs (loop2): shutdown complete [ 161.421655][ T6659] loop2: detected capacity change from 0 to 32768 [ 161.550797][ T6659] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 161.550825][ T6659] allowing incompatible features above 0.0: (unknown version) [ 161.550838][ T6659] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 161.550866][ T6659] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 161.550997][ T6659] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 161.551338][ T6659] bcachefs (loop2): Version upgrade required: [ 161.551338][ T6659] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 161.551338][ T6659] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 161.551338][ T6659] 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,check_rebalance_work,set_fs_needs_rebalance [ 161.570955][ T6659] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 161.570983][ T6659] size != 0, deleting [ 161.572155][ T6659] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 161.575947][ T6659] bcachefs (loop2): check_topology... done [ 161.577431][ T6659] bcachefs (loop2): accounting_read... done [ 161.604008][ T6659] bcachefs (loop2): alloc_read... done [ 161.605040][ T6659] bcachefs (loop2): snapshots_read... done [ 161.605908][ T6659] bcachefs (loop2): check_allocations... [ 161.607868][ T6659] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 161.607887][ T6659] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 161.611037][ T6659] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 161.611057][ T6659] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 161.612471][ T6659] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 161.612490][ T6659] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 161.614063][ T6659] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 161.614081][ T6659] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 161.616993][ T6659] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 5839] umount2("./52/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 161.617012][ T6659] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 161.617959][ T6659] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 161.618088][ T6659] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 161.618679][ T6659] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] umount2("./52/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./52/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./52/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./52/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 161.618783][ T6659] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 161.619198][ T6659] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 161.621620][ T6659] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 161.621856][ T6659] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 161.621964][ T6659] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] rmdir("./52/file1") = 0 [pid 5839] umount2("./52/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./52/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./52/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./52") = 0 [ 161.622177][ T6659] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 161.622289][ T6659] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 161.622497][ T6659] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 161.622603][ T6659] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 161.622805][ T6659] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] mkdir("./53", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6852 ./strace-static-x86_64: Process 6852 attached [ 161.622911][ T6659] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 161.623112][ T6659] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 161.623217][ T6659] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 161.623433][ T6659] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6852] set_robust_list(0x5555901c6760, 24) = 0 [pid 6852] chdir("./53") = 0 [pid 6852] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6852] setpgid(0, 0) = 0 [ 161.623538][ T6659] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 161.623755][ T6659] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 161.623867][ T6659] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 161.624096][ T6659] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 161.624112][ T6659] Ratelimiting new instances of previous error [pid 6852] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6852] write(3, "1000", 4) = 4 [pid 6852] close(3) = 0 [pid 6852] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6852] write(1, "executing program\n", 18executing program ) = 18 [pid 6852] memfd_create("syzkaller", 0) = 3 [pid 6852] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 161.624247][ T6659] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 161.624264][ T6659] Ratelimiting new instances of previous error [ 161.637716][ T6659] done [ 161.640870][ T6659] bcachefs (loop2): going read-write [ 161.646213][ T6659] bcachefs (loop2): journal_replay... done [ 161.673649][ T6659] bcachefs (loop2): check_alloc_info... [ 161.675459][ T6659] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 161.675477][ T6659] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 161.675490][ T6659] gen 0 oldest_gen 0 data_type need_discard [ 161.675502][ T6659] journal_seq_nonempty 6 [ 161.675512][ T6659] journal_seq_empty 0 [ 161.675522][ T6659] need_discard 1 [ 161.675532][ T6659] need_inc_gen 1 [ 161.675542][ T6659] dirty_sectors 0 [ 161.675552][ T6659] stripe_sectors 0 [ 161.675561][ T6659] cached_sectors 0 [ 161.675573][ T6659] stripe 0 [ 161.675581][ T6659] stripe_redundancy 0 [ 161.675593][ T6659] io_time[READ] 1 [ 161.675603][ T6659] io_time[WRITE] 768 [ 161.675614][ T6659] fragmentation 0 [ 161.675623][ T6659] bp_start 8 [ 161.675633][ T6659] , fixing [ 161.692479][ T6659] done [ 161.693057][ T6659] bcachefs (loop2): check_lrus... done [ 161.698946][ T6659] bcachefs (loop2): check_btree_backpointers... done [ 161.700974][ T6659] bcachefs (loop2): check_backpointers_to_extents... done [ 161.704298][ T6659] bcachefs (loop2): check_extents_to_backpointers... [ 161.705637][ T6659] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 161.708508][ T6659] done [ 161.709948][ T6659] bcachefs (loop2): check_alloc_to_lru_refs... [ 161.711813][ T6659] bcachefs (loop2): missing fragmentation lru entry [ 161.711830][ T6659] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 161.711842][ T6659] gen 0 oldest_gen 0 data_type user [ 161.711852][ T6659] journal_seq_nonempty 5 [ 161.711862][ T6659] journal_seq_empty 134217728 [ 161.711872][ T6659] need_discard 1 [ 161.711882][ T6659] need_inc_gen 1 [ 161.711892][ T6659] dirty_sectors 16 [ 161.711903][ T6659] stripe_sectors 1802251 [ 161.711913][ T6659] cached_sectors 0 [ 161.711923][ T6659] stripe 0 [ 161.711932][ T6659] stripe_redundancy 0 [ 161.711942][ T6659] io_time[READ] 1 [ 161.711951][ T6659] io_time[WRITE] 512 [ 161.711960][ T6659] fragmentation 0 [ 161.711971][ T6659] bp_start 7 [ 161.711979][ T6659] , fixing [ 161.714012][ T6659] done [ 161.715541][ T6659] bcachefs (loop2): bucket_gens_init... done [ 161.717568][ T6659] bcachefs (loop2): check_snapshot_trees... done [ 161.718393][ T6659] bcachefs (loop2): check_snapshots... [ 161.718971][ T6659] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 161.718987][ T6659] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 161.732494][ T6659] done [ 161.733134][ T6659] bcachefs (loop2): check_subvols... done [ 161.734651][ T6659] bcachefs (loop2): check_subvol_children... done [pid 6852] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 161.736045][ T6659] bcachefs (loop2): delete_dead_snapshots... done [ 161.736879][ T6659] bcachefs (loop2): check_inodes... [ 161.737975][ T6659] bcachefs (loop2): inode points to missing dirent [ 161.737990][ T6659] inum: 4098:4294967295 [ 161.738002][ T6659] mode=40755 [ 161.738012][ T6659] flags=(15300000) [ 161.738022][ T6659] journal_seq=4 [ 161.738031][ T6659] hash_seed=ece93825deac2443 [ 161.738042][ T6659] hash_type=siphash [ 161.738051][ T6659] bi_size=0 [ 161.738060][ T6659] bi_sectors=0 [ 161.738070][ T6659] bi_version=0 [pid 6852] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6852] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6852] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6852] close(3) = 0 [pid 6852] close(4) = 0 [pid 6852] mkdir("./file1", 0777) = 0 [ 161.738079][ T6659] bi_atime=2770562249 [ 161.738088][ T6659] bi_ctime=2780562352 [ 161.738098][ T6659] bi_mtime=2780562352 [ 161.738108][ T6659] bi_otime=2770562249 [ 161.738117][ T6659] bi_uid=0 [ 161.738126][ T6659] bi_gid=0 [ 161.738135][ T6659] bi_nlink=0 [ 161.738145][ T6659] bi_generation=0 [ 161.738154][ T6659] bi_dev=0 [ 161.738163][ T6659] bi_data_checksum=0 [ 161.738172][ T6659] bi_compression=0 [ 161.738182][ T6659] bi_project=0 [ 161.738192][ T6659] bi_background_compression=0 [ 161.738203][ T6659] bi_data_replicas=0 [ 161.738213][ T6659] bi_promote_target=0 [ 161.738230][ T6659] bi_foreground_target=64 [ 161.738242][ T6659] bi_background_target=1 [ 161.738252][ T6659] bi_erasure_code=0 [ 161.738262][ T6659] bi_fields_set=0 [ 161.738271][ T6659] bi_dir=0 [ 161.738282][ T6659] bi_dir_offset=32 [ 161.738291][ T6659] bi_subvol=0 [ 161.738300][ T6659] bi_parent_subvol=0 [ 161.738310][ T6659] bi_nocow=0 [ 161.738319][ T6659] bi_depth=0 [ 161.738328][ T6659] bi_inodes_32bit=0 [ 161.738338][ T6659] bi_casefold=0, fixing [ 161.744363][ T6659] done [ 161.745182][ T6659] bcachefs (loop2): check_extents... done [ 161.747394][ T6659] bcachefs (loop2): check_indirect_extents... done [ 161.748112][ T6659] bcachefs (loop2): check_dirents... [ 161.750942][ T6659] bcachefs (loop2): directory with missing backpointer [ 161.750960][ T6659] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 161.750974][ T6659] inum: 4098:4294967295 [ 161.750983][ T6659] mode=40755 [ 161.750993][ T6659] flags=(11300000) [ 161.751003][ T6659] journal_seq=22 [ 161.751013][ T6659] hash_seed=ece93825deac2443 [ 161.751023][ T6659] hash_type=siphash [ 161.751033][ T6659] bi_size=0 [ 161.751042][ T6659] bi_sectors=0 [ 161.751051][ T6659] bi_version=0 [ 161.751060][ T6659] bi_atime=2770562249 [ 161.751070][ T6659] bi_ctime=2780562352 [ 161.751080][ T6659] bi_mtime=2780562352 [ 161.751089][ T6659] bi_otime=2770562249 [ 161.751099][ T6659] bi_uid=0 [ 161.751108][ T6659] bi_gid=0 [ 161.751117][ T6659] bi_nlink=0 [ 161.751126][ T6659] bi_generation=0 [ 161.751136][ T6659] bi_dev=0 [ 161.751145][ T6659] bi_data_checksum=0 [ 161.751155][ T6659] bi_compression=0 [ 161.751164][ T6659] bi_project=0 [ 161.751174][ T6659] bi_background_compression=0 [ 161.751184][ T6659] bi_data_replicas=0 [ 161.751193][ T6659] bi_promote_target=0 [ 161.751203][ T6659] bi_foreground_target=64 [ 161.751213][ T6659] bi_background_target=1 [ 161.751232][ T6659] bi_erasure_code=0 [ 161.751242][ T6659] bi_fields_set=0 [ 161.751252][ T6659] bi_dir=0 [ 161.751260][ T6659] bi_dir_offset=0 [ 161.751270][ T6659] bi_subvol=0 [ 161.751279][ T6659] bi_parent_subvol=0 [ 161.751288][ T6659] bi_nocow=0 [ 161.751297][ T6659] bi_depth=0 [ 161.751307][ T6659] bi_inodes_32bit=0 [ 161.751316][ T6659] bi_casefold=0, fixing [ 161.753437][ T6659] done [ 161.754119][ T6659] bcachefs (loop2): check_xattrs... done [ 161.755409][ T6659] bcachefs (loop2): check_root... done [ 161.756980][ T6659] bcachefs (loop2): check_unreachable_inodes... done [ 161.758016][ T6659] bcachefs (loop2): check_subvolume_structure... done [ 161.758841][ T6659] bcachefs (loop2): check_directory_structure... done [ 161.761817][ T6659] bcachefs (loop2): check_nlinks... [ 161.762529][ T6659] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 161.765528][ T6659] done [ 161.766152][ T6659] bcachefs (loop2): check_rebalance_work... done [ 161.767803][ T6659] bcachefs (loop2): resume_logged_ops... done [ 161.769824][ T6659] bcachefs (loop2): delete_dead_inodes... done [ 161.778474][ T6659] bcachefs (loop2): set_fs_needs_rebalance... done [ 161.787214][ T6668] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 161.787244][ T6668] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 161.788330][ T6659] bcachefs (loop2): check_extents_to_backpointers... [ 161.791756][ T6659] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 161.798803][ T6659] done [ 161.814516][ T6659] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 161.814543][ T6659] bcachefs (loop2): check_alloc_info... done [ 161.823833][ T6659] bcachefs (loop2): check_lrus... done [ 161.824930][ T6659] bcachefs (loop2): check_btree_backpointers... done [ 161.826120][ T6659] bcachefs (loop2): check_backpointers_to_extents... done [ 161.830183][ T6659] bcachefs (loop2): check_extents_to_backpointers... done [pid 6852] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6852] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6852] chdir("./file1") = 0 [pid 6852] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6852] ioctl(4, LOOP_CLR_FD) = 0 [pid 6852] close(4) = 0 [pid 6852] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6852] exit_group(0) = ? [pid 6852] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6852, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] umount2("./53", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./53", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 161.831990][ T6659] bcachefs (loop2): check_alloc_to_lru_refs... done [ 161.840872][ T6659] bcachefs (loop2): bucket_gens_init... done [ 161.842899][ T6659] bcachefs (loop2): check_snapshot_trees... done [ 161.844516][ T6659] bcachefs (loop2): check_snapshots... done [ 161.845410][ T6659] bcachefs (loop2): check_subvols... done [ 161.850410][ T6659] bcachefs (loop2): check_subvol_children... done [ 161.851136][ T6659] bcachefs (loop2): delete_dead_snapshots... done [ 161.851835][ T6659] bcachefs (loop2): check_inodes... done [ 161.852957][ T6659] bcachefs (loop2): check_extents... done [ 161.860870][ T6659] bcachefs (loop2): check_indirect_extents... done [ 161.861753][ T6659] bcachefs (loop2): check_dirents... done [ 161.863304][ T6659] bcachefs (loop2): check_xattrs... done [ 161.864421][ T6659] bcachefs (loop2): check_root... done [ 161.870265][ T6659] bcachefs (loop2): check_unreachable_inodes... done [ 161.871125][ T6659] bcachefs (loop2): check_subvolume_structure... done [ 161.871849][ T6659] bcachefs (loop2): check_directory_structure... done [ 161.872601][ T6659] bcachefs (loop2): check_nlinks... done [ 161.873689][ T6659] bcachefs (loop2): check_rebalance_work... done [ 161.874466][ T6659] bcachefs (loop2): resume_logged_ops... done [ 161.879978][ T6659] bcachefs (loop2): delete_dead_inodes... done [ 161.880732][ T6659] bcachefs (loop2): set_fs_needs_rebalance... done [ 161.883784][ T6659] bcachefs (loop2): done starting filesystem [ 161.961328][ T5839] bcachefs (loop2): shutting down [ 161.961348][ T5839] bcachefs (loop2): going read-only [ 161.961602][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 161.996095][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 162.001404][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 162.002322][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 162.004136][ T5839] bcachefs (loop2): marking filesystem clean [ 162.125703][ T5839] bcachefs (loop2): shutdown complete [ 162.922013][ T6670] loop2: detected capacity change from 0 to 32768 [ 163.060599][ T6670] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 163.060625][ T6670] allowing incompatible features above 0.0: (unknown version) [ 163.060640][ T6670] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 163.060666][ T6670] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 163.060795][ T6670] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 163.061021][ T6670] bcachefs (loop2): Version upgrade required: [ 163.061021][ T6670] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 163.061021][ T6670] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 163.061021][ T6670] 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,check_rebalance_work,set_fs_needs_rebalance [ 163.079950][ T6670] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 163.079976][ T6670] size != 0, deleting [ 163.081156][ T6670] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 163.084911][ T6670] bcachefs (loop2): check_topology... done [ 163.086375][ T6670] bcachefs (loop2): accounting_read... done [ 163.124882][ T6670] bcachefs (loop2): alloc_read... done [ 163.126186][ T6670] bcachefs (loop2): snapshots_read... done [ 163.127031][ T6670] bcachefs (loop2): check_allocations... [ 163.128972][ T6670] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 163.128991][ T6670] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [pid 5839] umount2("./53/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./53/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./53/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./53/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./53/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./53/file1") = 0 [ 163.132293][ T6670] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 163.132312][ T6670] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 163.133727][ T6670] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 163.133747][ T6670] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 5839] umount2("./53/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./53/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./53/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [ 163.135290][ T6670] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 163.135309][ T6670] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 163.138282][ T6670] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 163.138301][ T6670] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [pid 5839] rmdir("./53") = 0 [pid 5839] mkdir("./54", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6863 ./strace-static-x86_64: Process 6863 attached [pid 6863] set_robust_list(0x5555901c6760, 24) = 0 [pid 6863] chdir("./54") = 0 [pid 6863] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6863] setpgid(0, 0) = 0 [pid 6863] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6863] write(3, "1000", 4) = 4 [pid 6863] close(3) = 0 [pid 6863] symlink("/dev/binderfs", "./binderfs") = 0 [ 163.140522][ T6670] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.140647][ T6670] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.141197][ T6670] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.141299][ T6670] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.141686][ T6670] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing executing program [pid 6863] write(1, "executing program\n", 18) = 18 [pid 6863] memfd_create("syzkaller", 0) = 3 [pid 6863] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 163.141788][ T6670] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.141984][ T6670] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.142082][ T6670] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.142288][ T6670] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.142390][ T6670] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.142581][ T6670] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.142685][ T6670] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.142877][ T6670] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.142977][ T6670] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 163.143176][ T6670] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 163.143287][ T6670] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 163.143481][ T6670] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 163.143591][ T6670] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 163.143782][ T6670] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 163.143883][ T6670] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 163.144109][ T6670] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 163.144125][ T6670] Ratelimiting new instances of previous error [ 163.144274][ T6670] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 163.144290][ T6670] Ratelimiting new instances of previous error [ 163.158116][ T6670] done [ 163.161025][ T6670] bcachefs (loop2): going read-write [ 163.166243][ T6670] bcachefs (loop2): journal_replay... done [ 163.194506][ T6670] bcachefs (loop2): check_alloc_info... [ 163.196278][ T6670] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 163.196295][ T6670] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 163.196308][ T6670] gen 0 oldest_gen 0 data_type need_discard [ 163.196319][ T6670] journal_seq_nonempty 6 [ 163.196329][ T6670] journal_seq_empty 0 [ 163.196339][ T6670] need_discard 1 [ 163.196349][ T6670] need_inc_gen 1 [ 163.196359][ T6670] dirty_sectors 0 [ 163.196369][ T6670] stripe_sectors 0 [ 163.196379][ T6670] cached_sectors 0 [ 163.196389][ T6670] stripe 0 [ 163.196398][ T6670] stripe_redundancy 0 [ 163.196408][ T6670] io_time[READ] 1 [ 163.196418][ T6670] io_time[WRITE] 768 [ 163.196427][ T6670] fragmentation 0 [ 163.196437][ T6670] bp_start 8 [ 163.196447][ T6670] , fixing [ 163.213464][ T6670] done [pid 6863] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6863] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6863] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6863] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6863] close(3) = 0 [pid 6863] close(4) = 0 [pid 6863] mkdir("./file1", 0777) = 0 [ 163.219162][ T6670] bcachefs (loop2): check_lrus... done [ 163.220958][ T6670] bcachefs (loop2): check_btree_backpointers... done [ 163.222298][ T6670] bcachefs (loop2): check_backpointers_to_extents... done [ 163.226529][ T6670] bcachefs (loop2): check_extents_to_backpointers... [ 163.227880][ T6670] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 163.230412][ T6670] done [ 163.231675][ T6670] bcachefs (loop2): check_alloc_to_lru_refs... [ 163.233520][ T6670] bcachefs (loop2): missing fragmentation lru entry [ 163.233537][ T6670] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 163.233550][ T6670] gen 0 oldest_gen 0 data_type user [ 163.233561][ T6670] journal_seq_nonempty 5 [ 163.233571][ T6670] journal_seq_empty 134217728 [ 163.233582][ T6670] need_discard 1 [ 163.233591][ T6670] need_inc_gen 1 [ 163.233601][ T6670] dirty_sectors 16 [ 163.233611][ T6670] stripe_sectors 1802251 [ 163.233621][ T6670] cached_sectors 0 [ 163.233633][ T6670] stripe 0 [ 163.233642][ T6670] stripe_redundancy 0 [ 163.233652][ T6670] io_time[READ] 1 [ 163.233662][ T6670] io_time[WRITE] 512 [ 163.233672][ T6670] fragmentation 0 [ 163.233681][ T6670] bp_start 7 [ 163.233690][ T6670] , fixing [ 163.235217][ T6670] done [ 163.236717][ T6670] bcachefs (loop2): bucket_gens_init... done [ 163.238795][ T6670] bcachefs (loop2): check_snapshot_trees... done [ 163.243290][ T6670] bcachefs (loop2): check_snapshots... [ 163.243881][ T6670] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 163.243899][ T6670] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 163.255249][ T6670] done [ 163.255990][ T6670] bcachefs (loop2): check_subvols... done [ 163.257582][ T6670] bcachefs (loop2): check_subvol_children... done [ 163.258466][ T6670] bcachefs (loop2): delete_dead_snapshots... done [ 163.259856][ T6670] bcachefs (loop2): check_inodes... [ 163.260958][ T6670] bcachefs (loop2): inode points to missing dirent [ 163.260987][ T6670] inum: 4098:4294967295 [ 163.260997][ T6670] mode=40755 [ 163.261006][ T6670] flags=(15300000) [ 163.261015][ T6670] journal_seq=4 [ 163.261025][ T6670] hash_seed=ece93825deac2443 [ 163.261034][ T6670] hash_type=siphash [ 163.261044][ T6670] bi_size=0 [ 163.261053][ T6670] bi_sectors=0 [ 163.261062][ T6670] bi_version=0 [ 163.261071][ T6670] bi_atime=2770562249 [ 163.261080][ T6670] bi_ctime=2780562352 [ 163.261089][ T6670] bi_mtime=2780562352 [ 163.261099][ T6670] bi_otime=2770562249 [ 163.261108][ T6670] bi_uid=0 [ 163.261117][ T6670] bi_gid=0 [ 163.261126][ T6670] bi_nlink=0 [ 163.261135][ T6670] bi_generation=0 [ 163.261144][ T6670] bi_dev=0 [ 163.261152][ T6670] bi_data_checksum=0 [ 163.261162][ T6670] bi_compression=0 [ 163.261171][ T6670] bi_project=0 [ 163.261180][ T6670] bi_background_compression=0 [ 163.261190][ T6670] bi_data_replicas=0 [ 163.261199][ T6670] bi_promote_target=0 [ 163.261209][ T6670] bi_foreground_target=64 [ 163.261218][ T6670] bi_background_target=1 [ 163.261228][ T6670] bi_erasure_code=0 [ 163.261237][ T6670] bi_fields_set=0 [ 163.261248][ T6670] bi_dir=0 [ 163.261256][ T6670] bi_dir_offset=32 [ 163.261266][ T6670] bi_subvol=0 [ 163.261274][ T6670] bi_parent_subvol=0 [ 163.261284][ T6670] bi_nocow=0 [ 163.261293][ T6670] bi_depth=0 [ 163.261302][ T6670] bi_inodes_32bit=0 [ 163.261311][ T6670] bi_casefold=0, fixing [ 163.263286][ T6670] done [ 163.263919][ T6670] bcachefs (loop2): check_extents... done [ 163.265406][ T6670] bcachefs (loop2): check_indirect_extents... done [ 163.266223][ T6670] bcachefs (loop2): check_dirents... [ 163.268470][ T6670] bcachefs (loop2): directory with missing backpointer [ 163.268486][ T6670] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 163.268501][ T6670] inum: 4098:4294967295 [ 163.268511][ T6670] mode=40755 [ 163.268521][ T6670] flags=(11300000) [ 163.268530][ T6670] journal_seq=22 [ 163.268540][ T6670] hash_seed=ece93825deac2443 [ 163.268552][ T6670] hash_type=siphash [ 163.268561][ T6670] bi_size=0 [ 163.268570][ T6670] bi_sectors=0 [ 163.268580][ T6670] bi_version=0 [ 163.268589][ T6670] bi_atime=2770562249 [ 163.268599][ T6670] bi_ctime=2780562352 [ 163.268609][ T6670] bi_mtime=2780562352 [ 163.268618][ T6670] bi_otime=2770562249 [ 163.268628][ T6670] bi_uid=0 [ 163.268637][ T6670] bi_gid=0 [ 163.268646][ T6670] bi_nlink=0 [ 163.268655][ T6670] bi_generation=0 [ 163.268665][ T6670] bi_dev=0 [ 163.268674][ T6670] bi_data_checksum=0 [ 163.268684][ T6670] bi_compression=0 [ 163.268693][ T6670] bi_project=0 [ 163.268703][ T6670] bi_background_compression=0 [ 163.268713][ T6670] bi_data_replicas=0 [ 163.268723][ T6670] bi_promote_target=0 [ 163.268733][ T6670] bi_foreground_target=64 [ 163.268744][ T6670] bi_background_target=1 [ 163.268754][ T6670] bi_erasure_code=0 [ 163.268764][ T6670] bi_fields_set=0 [ 163.268774][ T6670] bi_dir=0 [pid 6863] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6863] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6863] chdir("./file1") = 0 [pid 6863] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6863] ioctl(4, LOOP_CLR_FD) = 0 [pid 6863] close(4) = 0 [pid 6863] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6863] exit_group(0) = ? [ 163.268783][ T6670] bi_dir_offset=0 [ 163.268792][ T6670] bi_subvol=0 [ 163.268802][ T6670] bi_parent_subvol=0 [ 163.268819][ T6670] bi_nocow=0 [ 163.268829][ T6670] bi_depth=0 [ 163.268838][ T6670] bi_inodes_32bit=0 [ 163.268848][ T6670] bi_casefold=0, fixing [ 163.278887][ T6670] done [ 163.279958][ T6670] bcachefs (loop2): check_xattrs... done [ 163.281469][ T6670] bcachefs (loop2): check_root... done [ 163.282483][ T6670] bcachefs (loop2): check_unreachable_inodes... done [pid 6863] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6863, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] umount2("./54", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./54", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 163.283492][ T6670] bcachefs (loop2): check_subvolume_structure... done [ 163.284795][ T6670] bcachefs (loop2): check_directory_structure... done [ 163.285518][ T6670] bcachefs (loop2): check_nlinks... [ 163.286224][ T6670] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 163.287230][ T6670] done [ 163.287922][ T6670] bcachefs (loop2): check_rebalance_work... done [ 163.289139][ T6670] bcachefs (loop2): resume_logged_ops... done [ 163.291436][ T6670] bcachefs (loop2): delete_dead_inodes... done [ 163.300552][ T6670] bcachefs (loop2): set_fs_needs_rebalance... [ 163.308183][ T6679] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 163.308207][ T6679] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 163.310542][ T6670] done [ 163.311648][ T6670] bcachefs (loop2): check_extents_to_backpointers... [ 163.312609][ T6670] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 163.319617][ T6670] done [ 163.338356][ T6670] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 163.338384][ T6670] bcachefs (loop2): check_alloc_info... done [ 163.349806][ T6670] bcachefs (loop2): check_lrus... done [ 163.350991][ T6670] bcachefs (loop2): check_btree_backpointers... done [ 163.352163][ T6670] bcachefs (loop2): check_backpointers_to_extents... done [ 163.354041][ T6670] bcachefs (loop2): check_extents_to_backpointers... done [ 163.355671][ T6670] bcachefs (loop2): check_alloc_to_lru_refs... done [ 163.357894][ T6670] bcachefs (loop2): bucket_gens_init... done [ 163.360791][ T6670] bcachefs (loop2): check_snapshot_trees... done [ 163.364638][ T6670] bcachefs (loop2): check_snapshots... done [ 163.365492][ T6670] bcachefs (loop2): check_subvols... done [ 163.366285][ T6670] bcachefs (loop2): check_subvol_children... done [ 163.370367][ T6670] bcachefs (loop2): delete_dead_snapshots... done [ 163.371093][ T6670] bcachefs (loop2): check_inodes... done [ 163.372253][ T6670] bcachefs (loop2): check_extents... done [ 163.380255][ T6670] bcachefs (loop2): check_indirect_extents... done [ 163.381008][ T6670] bcachefs (loop2): check_dirents... done [ 163.382490][ T6670] bcachefs (loop2): check_xattrs... done [ 163.383530][ T6670] bcachefs (loop2): check_root... done [ 163.384188][ T6670] bcachefs (loop2): check_unreachable_inodes... done [ 163.385429][ T6670] bcachefs (loop2): check_subvolume_structure... done [ 163.390352][ T6670] bcachefs (loop2): check_directory_structure... done [ 163.391124][ T6670] bcachefs (loop2): check_nlinks... done [ 163.396078][ T6670] bcachefs (loop2): check_rebalance_work... done [ 163.397115][ T6670] bcachefs (loop2): resume_logged_ops... done [ 163.397826][ T6670] bcachefs (loop2): delete_dead_inodes... done [ 163.398567][ T6670] bcachefs (loop2): set_fs_needs_rebalance... done [ 163.403511][ T6670] bcachefs (loop2): done starting filesystem [ 163.487158][ T5839] bcachefs (loop2): shutting down [ 163.487178][ T5839] bcachefs (loop2): going read-only [ 163.487208][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 163.522777][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 163.523541][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 163.524365][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 163.526179][ T5839] bcachefs (loop2): marking filesystem clean [ 163.587109][ T5839] bcachefs (loop2): shutdown complete [ 164.332015][ T6681] loop2: detected capacity change from 0 to 32768 [ 164.479004][ T6681] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 5839] umount2("./54/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 164.479031][ T6681] allowing incompatible features above 0.0: (unknown version) [ 164.479044][ T6681] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 164.479070][ T6681] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 164.479196][ T6681] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 164.485604][ T6681] bcachefs (loop2): Version upgrade required: [pid 5839] umount2("./54/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./54/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./54/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./54/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 164.485604][ T6681] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 164.485604][ T6681] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] close(4) = 0 [pid 5839] rmdir("./54/file1") = 0 [pid 5839] umount2("./54/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./54/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./54/binderfs") = 0 [ 164.485604][ T6681] 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,check_rebalance_work,set_fs_needs_rebalance [ 164.522063][ T6681] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 164.522089][ T6681] size != 0, deleting [ 164.523137][ T6681] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 164.529605][ T6681] bcachefs (loop2): check_topology... done [ 164.531685][ T6681] bcachefs (loop2): accounting_read... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./54") = 0 [pid 5839] mkdir("./55", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 164.591688][ T6681] bcachefs (loop2): alloc_read... done [ 164.592845][ T6681] bcachefs (loop2): snapshots_read... done [ 164.593731][ T6681] bcachefs (loop2): check_allocations... [ 164.595744][ T6681] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 164.595764][ T6681] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 164.597826][ T6681] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6874 ./strace-static-x86_64: Process 6874 attached [pid 6874] set_robust_list(0x5555901c6760, 24) = 0 [pid 6874] chdir("./55") = 0 [pid 6874] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6874] setpgid(0, 0) = 0 [ 164.597846][ T6681] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 164.600631][ T6681] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 164.600652][ T6681] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 164.602202][ T6681] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 6874] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6874] write(3, "1000", 4) = 4 [pid 6874] close(3) = 0 [pid 6874] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6874] write(1, "executing program\n", 18executing program ) = 18 [pid 6874] memfd_create("syzkaller", 0) = 3 [pid 6874] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 164.602221][ T6681] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 164.605255][ T6681] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 164.605273][ T6681] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 164.606234][ T6681] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.606360][ T6681] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.606931][ T6681] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.607037][ T6681] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.607441][ T6681] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.607549][ T6681] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.607757][ T6681] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.607861][ T6681] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.608065][ T6681] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.608175][ T6681] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.608376][ T6681] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.608491][ T6681] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.608690][ T6681] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.608804][ T6681] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 164.609012][ T6681] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 164.609117][ T6681] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 164.611452][ T6681] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 164.611564][ T6681] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 164.611799][ T6681] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 164.611917][ T6681] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 164.612145][ T6681] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 164.612161][ T6681] Ratelimiting new instances of previous error [ 164.612292][ T6681] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 164.612308][ T6681] Ratelimiting new instances of previous error [ 164.625754][ T6681] done [ 164.627940][ T6681] bcachefs (loop2): going read-write [ 164.634706][ T6681] bcachefs (loop2): journal_replay... done [pid 6874] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6874] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6874] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 164.663661][ T6681] bcachefs (loop2): check_alloc_info... [ 164.665488][ T6681] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 164.665506][ T6681] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 164.665518][ T6681] gen 0 oldest_gen 0 data_type need_discard [ 164.665531][ T6681] journal_seq_nonempty 6 [ 164.665542][ T6681] journal_seq_empty 0 [ 164.665551][ T6681] need_discard 1 [ 164.665561][ T6681] need_inc_gen 1 [ 164.665571][ T6681] dirty_sectors 0 [ 164.665581][ T6681] stripe_sectors 0 [pid 6874] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6874] close(3) = 0 [pid 6874] close(4) = 0 [pid 6874] mkdir("./file1", 0777) = 0 [ 164.665591][ T6681] cached_sectors 0 [ 164.665601][ T6681] stripe 0 [ 164.665610][ T6681] stripe_redundancy 0 [ 164.665620][ T6681] io_time[READ] 1 [ 164.665630][ T6681] io_time[WRITE] 768 [ 164.665640][ T6681] fragmentation 0 [ 164.665659][ T6681] bp_start 8 [ 164.665669][ T6681] , fixing [ 164.683298][ T6681] done [ 164.688014][ T6681] bcachefs (loop2): check_lrus... done [ 164.689965][ T6681] bcachefs (loop2): check_btree_backpointers... done [ 164.692895][ T6681] bcachefs (loop2): check_backpointers_to_extents... done [ 164.697242][ T6681] bcachefs (loop2): check_extents_to_backpointers... [ 164.698618][ T6681] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 164.701296][ T6681] done [ 164.701939][ T6681] bcachefs (loop2): check_alloc_to_lru_refs... [ 164.703834][ T6681] bcachefs (loop2): missing fragmentation lru entry [ 164.703852][ T6681] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 164.703863][ T6681] gen 0 oldest_gen 0 data_type user [ 164.703875][ T6681] journal_seq_nonempty 5 [ 164.703885][ T6681] journal_seq_empty 134217728 [ 164.703895][ T6681] need_discard 1 [ 164.703905][ T6681] need_inc_gen 1 [ 164.703915][ T6681] dirty_sectors 16 [ 164.703925][ T6681] stripe_sectors 1802251 [ 164.703935][ T6681] cached_sectors 0 [ 164.703944][ T6681] stripe 0 [ 164.703954][ T6681] stripe_redundancy 0 [ 164.703965][ T6681] io_time[READ] 1 [ 164.703975][ T6681] io_time[WRITE] 512 [ 164.703985][ T6681] fragmentation 0 [ 164.703993][ T6681] bp_start 7 [ 164.704003][ T6681] , fixing [ 164.705528][ T6681] done [ 164.706968][ T6681] bcachefs (loop2): bucket_gens_init... done [ 164.709044][ T6681] bcachefs (loop2): check_snapshot_trees... done [ 164.711536][ T6681] bcachefs (loop2): check_snapshots... [ 164.712132][ T6681] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 164.712150][ T6681] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 164.724831][ T6681] done [ 164.725590][ T6681] bcachefs (loop2): check_subvols... done [ 164.728394][ T6681] bcachefs (loop2): check_subvol_children... done [ 164.729727][ T6681] bcachefs (loop2): delete_dead_snapshots... done [ 164.730452][ T6681] bcachefs (loop2): check_inodes... [ 164.731524][ T6681] bcachefs (loop2): inode points to missing dirent [ 164.731540][ T6681] inum: 4098:4294967295 [ 164.731550][ T6681] mode=40755 [ 164.732054][ T6681] flags=(15300000) [ 164.732066][ T6681] journal_seq=4 [ 164.732075][ T6681] hash_seed=ece93825deac2443 [ 164.732085][ T6681] hash_type=siphash [ 164.732095][ T6681] bi_size=0 [ 164.732105][ T6681] bi_sectors=0 [ 164.732115][ T6681] bi_version=0 [ 164.732124][ T6681] bi_atime=2770562249 [ 164.732133][ T6681] bi_ctime=2780562352 [ 164.732144][ T6681] bi_mtime=2780562352 [ 164.732154][ T6681] bi_otime=2770562249 [ 164.732164][ T6681] bi_uid=0 [ 164.732173][ T6681] bi_gid=0 [ 164.732181][ T6681] bi_nlink=0 [ 164.732191][ T6681] bi_generation=0 [ 164.732201][ T6681] bi_dev=0 [ 164.732210][ T6681] bi_data_checksum=0 [ 164.732219][ T6681] bi_compression=0 [ 164.732229][ T6681] bi_project=0 [ 164.732239][ T6681] bi_background_compression=0 [ 164.732249][ T6681] bi_data_replicas=0 [ 164.732260][ T6681] bi_promote_target=0 [ 164.732270][ T6681] bi_foreground_target=64 [ 164.732279][ T6681] bi_background_target=1 [ 164.732289][ T6681] bi_erasure_code=0 [ 164.732300][ T6681] bi_fields_set=0 [ 164.732310][ T6681] bi_dir=0 [ 164.732319][ T6681] bi_dir_offset=32 [ 164.732328][ T6681] bi_subvol=0 [ 164.732339][ T6681] bi_parent_subvol=0 [ 164.732349][ T6681] bi_nocow=0 [ 164.732358][ T6681] bi_depth=0 [ 164.732367][ T6681] bi_inodes_32bit=0 [ 164.732377][ T6681] bi_casefold=0, fixing [ 164.734055][ T6681] done [ 164.734803][ T6681] bcachefs (loop2): check_extents... done [ 164.736337][ T6681] bcachefs (loop2): check_indirect_extents... done [ 164.737174][ T6681] bcachefs (loop2): check_dirents... [ 164.738871][ T6681] bcachefs (loop2): directory with missing backpointer [ 164.738886][ T6681] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 164.738900][ T6681] inum: 4098:4294967295 [ 164.738910][ T6681] mode=40755 [ 164.738919][ T6681] flags=(11300000) [ 164.738929][ T6681] journal_seq=22 [ 164.738937][ T6681] hash_seed=ece93825deac2443 [ 164.738948][ T6681] hash_type=siphash [ 164.738965][ T6681] bi_size=0 [ 164.738974][ T6681] bi_sectors=0 [ 164.738983][ T6681] bi_version=0 [ 164.738992][ T6681] bi_atime=2770562249 [ 164.739001][ T6681] bi_ctime=2780562352 [ 164.739011][ T6681] bi_mtime=2780562352 [ 164.739020][ T6681] bi_otime=2770562249 [ 164.739029][ T6681] bi_uid=0 [ 164.739038][ T6681] bi_gid=0 [ 164.739047][ T6681] bi_nlink=0 [ 164.739055][ T6681] bi_generation=0 [ 164.739064][ T6681] bi_dev=0 [ 164.739073][ T6681] bi_data_checksum=0 [ 164.739082][ T6681] bi_compression=0 [pid 6874] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6874] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6874] chdir("./file1") = 0 [pid 6874] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6874] ioctl(4, LOOP_CLR_FD) = 0 [pid 6874] close(4) = 0 [pid 6874] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6874] exit_group(0) = ? [pid 6874] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6874, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./55", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./55", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 164.739091][ T6681] bi_project=0 [ 164.739100][ T6681] bi_background_compression=0 [ 164.739110][ T6681] bi_data_replicas=0 [ 164.739119][ T6681] bi_promote_target=0 [ 164.739129][ T6681] bi_foreground_target=64 [ 164.739138][ T6681] bi_background_target=1 [ 164.739147][ T6681] bi_erasure_code=0 [ 164.739157][ T6681] bi_fields_set=0 [ 164.739166][ T6681] bi_dir=0 [ 164.739174][ T6681] bi_dir_offset=0 [ 164.739183][ T6681] bi_subvol=0 [ 164.739192][ T6681] bi_parent_subvol=0 [ 164.745927][ T6681] bi_nocow=0 [ 164.745941][ T6681] bi_depth=0 [ 164.745958][ T6681] bi_inodes_32bit=0 [ 164.745968][ T6681] bi_casefold=0, fixing [ 164.750130][ T6681] done [ 164.750840][ T6681] bcachefs (loop2): check_xattrs... done [ 164.752155][ T6681] bcachefs (loop2): check_root... done [ 164.753796][ T6681] bcachefs (loop2): check_unreachable_inodes... done [ 164.754831][ T6681] bcachefs (loop2): check_subvolume_structure... done [ 164.755637][ T6681] bcachefs (loop2): check_directory_structure... done [ 164.756414][ T6681] bcachefs (loop2): check_nlinks... [ 164.757118][ T6681] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 164.758191][ T6681] done [ 164.758847][ T6681] bcachefs (loop2): check_rebalance_work... done [ 164.761114][ T6681] bcachefs (loop2): resume_logged_ops... done [ 164.761921][ T6681] bcachefs (loop2): delete_dead_inodes... done [ 164.771107][ T6681] bcachefs (loop2): set_fs_needs_rebalance... [ 164.780411][ T6690] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 164.780435][ T6690] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 164.783311][ T6681] done [ 164.785160][ T6681] bcachefs (loop2): check_extents_to_backpointers... [ 164.786108][ T6681] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 164.791499][ T6681] done [ 164.801348][ T6681] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 164.801371][ T6681] bcachefs (loop2): check_alloc_info... done [ 164.806388][ T6681] bcachefs (loop2): check_lrus... done [ 164.807531][ T6681] bcachefs (loop2): check_btree_backpointers... done [ 164.808801][ T6681] bcachefs (loop2): check_backpointers_to_extents... done [ 164.810986][ T6681] bcachefs (loop2): check_extents_to_backpointers... done [ 164.812666][ T6681] bcachefs (loop2): check_alloc_to_lru_refs... done [ 164.814828][ T6681] bcachefs (loop2): bucket_gens_init... done [ 164.817418][ T6681] bcachefs (loop2): check_snapshot_trees... done [ 164.818560][ T6681] bcachefs (loop2): check_snapshots... done [ 164.820046][ T6681] bcachefs (loop2): check_subvols... done [ 164.820903][ T6681] bcachefs (loop2): check_subvol_children... done [ 164.821768][ T6681] bcachefs (loop2): delete_dead_snapshots... done [ 164.822543][ T6681] bcachefs (loop2): check_inodes... done [ 164.823775][ T6681] bcachefs (loop2): check_extents... done [ 164.825228][ T6681] bcachefs (loop2): check_indirect_extents... done [ 164.826030][ T6681] bcachefs (loop2): check_dirents... done [ 164.828072][ T6681] bcachefs (loop2): check_xattrs... done [ 164.828894][ T6681] bcachefs (loop2): check_root... done [ 164.831011][ T6681] bcachefs (loop2): check_unreachable_inodes... done [ 164.831995][ T6681] bcachefs (loop2): check_subvolume_structure... done [ 164.832721][ T6681] bcachefs (loop2): check_directory_structure... done [ 164.833539][ T6681] bcachefs (loop2): check_nlinks... done [ 164.834737][ T6681] bcachefs (loop2): check_rebalance_work... done [ 164.835615][ T6681] bcachefs (loop2): resume_logged_ops... done [ 164.836420][ T6681] bcachefs (loop2): delete_dead_inodes... done [ 164.837739][ T6681] bcachefs (loop2): set_fs_needs_rebalance... done [ 164.842503][ T6681] bcachefs (loop2): done starting filesystem [ 164.921287][ T5839] bcachefs (loop2): shutting down [ 164.921306][ T5839] bcachefs (loop2): going read-only [ 164.921336][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 164.963952][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 164.964957][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 164.965819][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 164.967603][ T5839] bcachefs (loop2): marking filesystem clean [ 165.029163][ T5839] bcachefs (loop2): shutdown complete [ 165.832998][ T6692] loop2: detected capacity change from 0 to 32768 [ 165.959976][ T6692] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 165.960003][ T6692] allowing incompatible features above 0.0: (unknown version) [pid 5839] umount2("./55/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./55/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./55/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./55/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./55/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./55/file1") = 0 [ 165.960016][ T6692] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 165.960045][ T6692] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 165.960180][ T6692] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 165.960422][ T6692] bcachefs (loop2): Version upgrade required: [ 165.960422][ T6692] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 165.960422][ T6692] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] umount2("./55/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./55/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./55/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./55") = 0 [ 165.960422][ T6692] 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,check_rebalance_work,set_fs_needs_rebalance [pid 5839] mkdir("./56", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6885 ./strace-static-x86_64: Process 6885 attached [ 165.980358][ T6692] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 165.980384][ T6692] size != 0, deleting [ 165.981425][ T6692] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 165.984684][ T6692] bcachefs (loop2): check_topology... done [ 165.986556][ T6692] bcachefs (loop2): accounting_read... done [ 166.022576][ T6692] bcachefs (loop2): alloc_read... done [ 166.023529][ T6692] bcachefs (loop2): snapshots_read... done [pid 6885] set_robust_list(0x5555901c6760, 24) = 0 [pid 6885] chdir("./56") = 0 [pid 6885] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6885] setpgid(0, 0) = 0 [pid 6885] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 166.024327][ T6692] bcachefs (loop2): check_allocations... [ 166.026248][ T6692] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 166.026267][ T6692] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 166.028766][ T6692] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 6885] write(3, "1000", 4) = 4 [pid 6885] close(3) = 0 [pid 6885] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6885] write(1, "executing program\n", 18executing program ) = 18 [pid 6885] memfd_create("syzkaller", 0) = 3 [pid 6885] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 166.028794][ T6692] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 166.031244][ T6692] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 166.031265][ T6692] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 166.032858][ T6692] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 166.032876][ T6692] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 166.035424][ T6692] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 166.035443][ T6692] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 166.036388][ T6692] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.036515][ T6692] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.037076][ T6692] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.037183][ T6692] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.037620][ T6692] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.037725][ T6692] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.038468][ T6692] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.038578][ T6692] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.038814][ T6692] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.038925][ T6692] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.039137][ T6692] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.040183][ T6692] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.040422][ T6692] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.040530][ T6692] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 166.040734][ T6692] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 166.040847][ T6692] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 166.041050][ T6692] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 166.041158][ T6692] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 166.041361][ T6692] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 166.041466][ T6692] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 166.041709][ T6692] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [pid 6885] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6885] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6885] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 166.041726][ T6692] Ratelimiting new instances of previous error [ 166.041871][ T6692] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 166.041887][ T6692] Ratelimiting new instances of previous error [ 166.055408][ T6692] done [ 166.057526][ T6692] bcachefs (loop2): going read-write [ 166.064562][ T6692] bcachefs (loop2): journal_replay... done [ 166.091071][ T6692] bcachefs (loop2): check_alloc_info... [ 166.093427][ T6692] bcachefs (loop2): bucket incorrectly unset in need_discard btree [pid 6885] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6885] close(3) = 0 [pid 6885] close(4) = 0 [pid 6885] mkdir("./file1", 0777) = 0 [ 166.093447][ T6692] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 166.093459][ T6692] gen 0 oldest_gen 0 data_type need_discard [ 166.093471][ T6692] journal_seq_nonempty 6 [ 166.093481][ T6692] journal_seq_empty 0 [ 166.093492][ T6692] need_discard 1 [ 166.093502][ T6692] need_inc_gen 1 [ 166.093512][ T6692] dirty_sectors 0 [ 166.093522][ T6692] stripe_sectors 0 [ 166.093532][ T6692] cached_sectors 0 [ 166.093543][ T6692] stripe 0 [ 166.093552][ T6692] stripe_redundancy 0 [ 166.093563][ T6692] io_time[READ] 1 [ 166.093572][ T6692] io_time[WRITE] 768 [ 166.093582][ T6692] fragmentation 0 [ 166.093592][ T6692] bp_start 8 [ 166.093602][ T6692] , fixing [ 166.110407][ T6692] done [ 166.113885][ T6692] bcachefs (loop2): check_lrus... done [ 166.115180][ T6692] bcachefs (loop2): check_btree_backpointers... done [ 166.118914][ T6692] bcachefs (loop2): check_backpointers_to_extents... done [ 166.123997][ T6692] bcachefs (loop2): check_extents_to_backpointers... [ 166.125855][ T6692] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 166.127299][ T6692] done [ 166.127963][ T6692] bcachefs (loop2): check_alloc_to_lru_refs... [ 166.130617][ T6692] bcachefs (loop2): missing fragmentation lru entry [ 166.130636][ T6692] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 166.130649][ T6692] gen 0 oldest_gen 0 data_type user [ 166.130660][ T6692] journal_seq_nonempty 5 [ 166.130670][ T6692] journal_seq_empty 134217728 [ 166.130680][ T6692] need_discard 1 [ 166.130690][ T6692] need_inc_gen 1 [ 166.130700][ T6692] dirty_sectors 16 [ 166.130710][ T6692] stripe_sectors 1802251 [ 166.130721][ T6692] cached_sectors 0 [ 166.130731][ T6692] stripe 0 [ 166.130741][ T6692] stripe_redundancy 0 [ 166.130751][ T6692] io_time[READ] 1 [ 166.130760][ T6692] io_time[WRITE] 512 [ 166.130782][ T6692] fragmentation 0 [ 166.130792][ T6692] bp_start 7 [ 166.130803][ T6692] , fixing [ 166.132235][ T6692] done [ 166.133790][ T6692] bcachefs (loop2): bucket_gens_init... done [ 166.136348][ T6692] bcachefs (loop2): check_snapshot_trees... done [ 166.137236][ T6692] bcachefs (loop2): check_snapshots... [ 166.137841][ T6692] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 166.137857][ T6692] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 166.151196][ T6692] done [ 166.151953][ T6692] bcachefs (loop2): check_subvols... done [ 166.153565][ T6692] bcachefs (loop2): check_subvol_children... done [ 166.154460][ T6692] bcachefs (loop2): delete_dead_snapshots... done [ 166.155228][ T6692] bcachefs (loop2): check_inodes... [ 166.156308][ T6692] bcachefs (loop2): inode points to missing dirent [ 166.156325][ T6692] inum: 4098:4294967295 [ 166.156335][ T6692] mode=40755 [ 166.156344][ T6692] flags=(15300000) [ 166.156355][ T6692] journal_seq=4 [ 166.156364][ T6692] hash_seed=ece93825deac2443 [ 166.156374][ T6692] hash_type=siphash [ 166.156383][ T6692] bi_size=0 [ 166.156392][ T6692] bi_sectors=0 [ 166.156402][ T6692] bi_version=0 [ 166.156411][ T6692] bi_atime=2770562249 [ 166.156422][ T6692] bi_ctime=2780562352 [ 166.156432][ T6692] bi_mtime=2780562352 [ 166.156442][ T6692] bi_otime=2770562249 [ 166.156451][ T6692] bi_uid=0 [ 166.156460][ T6692] bi_gid=0 [ 166.156469][ T6692] bi_nlink=0 [ 166.156479][ T6692] bi_generation=0 [ 166.156488][ T6692] bi_dev=0 [ 166.156497][ T6692] bi_data_checksum=0 [ 166.156507][ T6692] bi_compression=0 [ 166.156515][ T6692] bi_project=0 [ 166.156524][ T6692] bi_background_compression=0 [ 166.156534][ T6692] bi_data_replicas=0 [ 166.156545][ T6692] bi_promote_target=0 [ 166.156555][ T6692] bi_foreground_target=64 [ 166.156564][ T6692] bi_background_target=1 [ 166.156574][ T6692] bi_erasure_code=0 [ 166.156584][ T6692] bi_fields_set=0 [ 166.156593][ T6692] bi_dir=0 [ 166.156602][ T6692] bi_dir_offset=32 [ 166.156611][ T6692] bi_subvol=0 [ 166.156621][ T6692] bi_parent_subvol=0 [ 166.156630][ T6692] bi_nocow=0 [ 166.156640][ T6692] bi_depth=0 [ 166.156649][ T6692] bi_inodes_32bit=0 [ 166.156658][ T6692] bi_casefold=0, fixing [ 166.158730][ T6692] done [ 166.160813][ T6692] bcachefs (loop2): check_extents... done [ 166.164458][ T6692] bcachefs (loop2): check_indirect_extents... done [ 166.166234][ T6692] bcachefs (loop2): check_dirents... [ 166.168738][ T6692] bcachefs (loop2): directory with missing backpointer [pid 6885] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6885] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6885] chdir("./file1") = 0 [pid 6885] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6885] ioctl(4, LOOP_CLR_FD) = 0 [pid 6885] close(4) = 0 [pid 6885] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6885] exit_group(0) = ? [ 166.168756][ T6692] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 166.168780][ T6692] inum: 4098:4294967295 [ 166.168791][ T6692] mode=40755 [ 166.168800][ T6692] flags=(11300000) [ 166.168809][ T6692] journal_seq=22 [ 166.168818][ T6692] hash_seed=ece93825deac2443 [ 166.168829][ T6692] hash_type=siphash [ 166.168838][ T6692] bi_size=0 [ 166.168848][ T6692] bi_sectors=0 [ 166.168857][ T6692] bi_version=0 [ 166.168866][ T6692] bi_atime=2770562249 [pid 6885] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6885, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./56", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./56", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 166.168876][ T6692] bi_ctime=2780562352 [ 166.168885][ T6692] bi_mtime=2780562352 [ 166.168895][ T6692] bi_otime=2770562249 [ 166.168905][ T6692] bi_uid=0 [ 166.168914][ T6692] bi_gid=0 [ 166.168923][ T6692] bi_nlink=0 [ 166.168931][ T6692] bi_generation=0 [ 166.168941][ T6692] bi_dev=0 [ 166.168950][ T6692] bi_data_checksum=0 [ 166.168960][ T6692] bi_compression=0 [ 166.168969][ T6692] bi_project=0 [ 166.168979][ T6692] bi_background_compression=0 [ 166.168990][ T6692] bi_data_replicas=0 [ 166.168998][ T6692] bi_promote_target=0 [ 166.169009][ T6692] bi_foreground_target=64 [ 166.169019][ T6692] bi_background_target=1 [ 166.169029][ T6692] bi_erasure_code=0 [ 166.169038][ T6692] bi_fields_set=0 [ 166.169048][ T6692] bi_dir=0 [ 166.169056][ T6692] bi_dir_offset=0 [ 166.169066][ T6692] bi_subvol=0 [ 166.169075][ T6692] bi_parent_subvol=0 [ 166.169083][ T6692] bi_nocow=0 [ 166.169092][ T6692] bi_depth=0 [ 166.169101][ T6692] bi_inodes_32bit=0 [ 166.169111][ T6692] bi_casefold=0, fixing [ 166.174869][ T6692] done [ 166.175570][ T6692] bcachefs (loop2): check_xattrs... done [ 166.176773][ T6692] bcachefs (loop2): check_root... done [ 166.177890][ T6692] bcachefs (loop2): check_unreachable_inodes... done [ 166.180517][ T6692] bcachefs (loop2): check_subvolume_structure... done [ 166.181356][ T6692] bcachefs (loop2): check_directory_structure... done [ 166.182105][ T6692] bcachefs (loop2): check_nlinks... [ 166.182819][ T6692] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 166.183841][ T6692] done [ 166.184522][ T6692] bcachefs (loop2): check_rebalance_work... done [ 166.185731][ T6692] bcachefs (loop2): resume_logged_ops... done [ 166.186542][ T6692] bcachefs (loop2): delete_dead_inodes... done [ 166.196083][ T6692] bcachefs (loop2): set_fs_needs_rebalance... [ 166.204225][ T6701] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 166.204249][ T6701] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 166.207200][ T6692] done [ 166.207836][ T6692] bcachefs (loop2): check_extents_to_backpointers... [ 166.208786][ T6692] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 166.215424][ T6692] done [ 166.225011][ T6692] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 166.225037][ T6692] bcachefs (loop2): check_alloc_info... done [ 166.230066][ T6692] bcachefs (loop2): check_lrus... done [ 166.231254][ T6692] bcachefs (loop2): check_btree_backpointers... done [ 166.233036][ T6692] bcachefs (loop2): check_backpointers_to_extents... done [ 166.234505][ T6692] bcachefs (loop2): check_extents_to_backpointers... done [ 166.237262][ T6692] bcachefs (loop2): check_alloc_to_lru_refs... done [ 166.240074][ T6692] bcachefs (loop2): bucket_gens_init... done [ 166.242674][ T6692] bcachefs (loop2): check_snapshot_trees... done [ 166.244454][ T6692] bcachefs (loop2): check_snapshots... done [ 166.245339][ T6692] bcachefs (loop2): check_subvols... done [ 166.246242][ T6692] bcachefs (loop2): check_subvol_children... done [ 166.247077][ T6692] bcachefs (loop2): delete_dead_snapshots... done [ 166.247861][ T6692] bcachefs (loop2): check_inodes... done [ 166.249003][ T6692] bcachefs (loop2): check_extents... done [ 166.251811][ T6692] bcachefs (loop2): check_indirect_extents... done [ 166.252665][ T6692] bcachefs (loop2): check_dirents... done [ 166.254711][ T6692] bcachefs (loop2): check_xattrs... done [ 166.255566][ T6692] bcachefs (loop2): check_root... done [ 166.256388][ T6692] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] umount2("./56/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./56/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./56/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 166.257338][ T6692] bcachefs (loop2): check_subvolume_structure... done [ 166.258206][ T6692] bcachefs (loop2): check_directory_structure... done [ 166.258914][ T6692] bcachefs (loop2): check_nlinks... done [ 166.261417][ T6692] bcachefs (loop2): check_rebalance_work... done [ 166.262360][ T6692] bcachefs (loop2): resume_logged_ops... done [ 166.263208][ T6692] bcachefs (loop2): delete_dead_inodes... done [ 166.264067][ T6692] bcachefs (loop2): set_fs_needs_rebalance... done [ 166.268203][ T6692] bcachefs (loop2): done starting filesystem [pid 5839] umount2("./56/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./56/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 166.343695][ T5839] bcachefs (loop2): shutting down [ 166.343715][ T5839] bcachefs (loop2): going read-only [ 166.343746][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 166.381619][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 166.382322][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 166.383185][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 166.384977][ T5839] bcachefs (loop2): marking filesystem clean [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./56/file1") = 0 [pid 5839] umount2("./56/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./56/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./56/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./56") = 0 [pid 5839] mkdir("./57", 0777) = 0 [ 166.445998][ T5839] bcachefs (loop2): shutdown complete [ 167.246656][ T6703] loop2: detected capacity change from 0 to 32768 [ 167.380002][ T6703] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 167.380028][ T6703] allowing incompatible features above 0.0: (unknown version) [ 167.380041][ T6703] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6896 ./strace-static-x86_64: Process 6896 attached [ 167.380069][ T6703] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 167.380220][ T6703] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 167.380448][ T6703] bcachefs (loop2): Version upgrade required: [ 167.380448][ T6703] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 167.380448][ T6703] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6896] set_robust_list(0x5555901c6760, 24) = 0 [pid 6896] chdir("./57") = 0 [pid 6896] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6896] setpgid(0, 0) = 0 [pid 6896] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6896] write(3, "1000", 4) = 4 [pid 6896] close(3) = 0 [pid 6896] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6896] write(1, "executing program\n", 18executing program ) = 18 [ 167.380448][ T6703] 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,check_rebalance_work,set_fs_needs_rebalance [ 167.399664][ T6703] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [pid 6896] memfd_create("syzkaller", 0) = 3 [pid 6896] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 167.399702][ T6703] size != 0, deleting [ 167.401295][ T6703] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 167.405495][ T6703] bcachefs (loop2): check_topology... done [ 167.407013][ T6703] bcachefs (loop2): accounting_read... done [ 167.440913][ T6703] bcachefs (loop2): alloc_read... done [ 167.442157][ T6703] bcachefs (loop2): snapshots_read... done [ 167.442994][ T6703] bcachefs (loop2): check_allocations... [ 167.444917][ T6703] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 167.444938][ T6703] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 167.446918][ T6703] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 167.446937][ T6703] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 167.448335][ T6703] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 167.448354][ T6703] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 167.451172][ T6703] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 167.451194][ T6703] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 167.454251][ T6703] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 167.454270][ T6703] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 167.455209][ T6703] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.455335][ T6703] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.455899][ T6703] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.456006][ T6703] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.456408][ T6703] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.456523][ T6703] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.456732][ T6703] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.456840][ T6703] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.457049][ T6703] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.457152][ T6703] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.457352][ T6703] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.457455][ T6703] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.457656][ T6703] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6896] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6896] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6896] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6896] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6896] close(3) = 0 [pid 6896] close(4) = 0 [pid 6896] mkdir("./file1", 0777) = 0 [ 167.457772][ T6703] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 167.457981][ T6703] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 167.458086][ T6703] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 167.458290][ T6703] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 167.458397][ T6703] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 167.458604][ T6703] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 167.458719][ T6703] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 167.458956][ T6703] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 167.458972][ T6703] Ratelimiting new instances of previous error [ 167.459099][ T6703] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 167.459116][ T6703] Ratelimiting new instances of previous error [ 167.472977][ T6703] done [ 167.475139][ T6703] bcachefs (loop2): going read-write [ 167.480924][ T6703] bcachefs (loop2): journal_replay... done [ 167.507898][ T6703] bcachefs (loop2): check_alloc_info... [ 167.510059][ T6703] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 167.510079][ T6703] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 167.510090][ T6703] gen 0 oldest_gen 0 data_type need_discard [ 167.510102][ T6703] journal_seq_nonempty 6 [ 167.510113][ T6703] journal_seq_empty 0 [ 167.510124][ T6703] need_discard 1 [ 167.510134][ T6703] need_inc_gen 1 [ 167.510144][ T6703] dirty_sectors 0 [ 167.510154][ T6703] stripe_sectors 0 [ 167.510164][ T6703] cached_sectors 0 [ 167.510174][ T6703] stripe 0 [ 167.510184][ T6703] stripe_redundancy 0 [ 167.510194][ T6703] io_time[READ] 1 [ 167.510204][ T6703] io_time[WRITE] 768 [ 167.510216][ T6703] fragmentation 0 [ 167.510226][ T6703] bp_start 8 [ 167.510235][ T6703] , fixing [ 167.527081][ T6703] done [ 167.532818][ T6703] bcachefs (loop2): check_lrus... done [ 167.533650][ T6703] bcachefs (loop2): check_btree_backpointers... done [ 167.534971][ T6703] bcachefs (loop2): check_backpointers_to_extents... done [ 167.541013][ T6703] bcachefs (loop2): check_extents_to_backpointers... [ 167.542375][ T6703] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 167.544267][ T6703] done [ 167.544910][ T6703] bcachefs (loop2): check_alloc_to_lru_refs... [ 167.546785][ T6703] bcachefs (loop2): missing fragmentation lru entry [ 167.546803][ T6703] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 167.546816][ T6703] gen 0 oldest_gen 0 data_type user [ 167.546827][ T6703] journal_seq_nonempty 5 [ 167.546837][ T6703] journal_seq_empty 134217728 [ 167.546848][ T6703] need_discard 1 [ 167.546858][ T6703] need_inc_gen 1 [ 167.546868][ T6703] dirty_sectors 16 [ 167.546879][ T6703] stripe_sectors 1802251 [ 167.546889][ T6703] cached_sectors 0 [ 167.546899][ T6703] stripe 0 [ 167.546909][ T6703] stripe_redundancy 0 [ 167.546919][ T6703] io_time[READ] 1 [ 167.546928][ T6703] io_time[WRITE] 512 [ 167.546938][ T6703] fragmentation 0 [ 167.546947][ T6703] bp_start 7 [ 167.546957][ T6703] , fixing [ 167.548449][ T6703] done [ 167.552578][ T6703] bcachefs (loop2): bucket_gens_init... done [ 167.555081][ T6703] bcachefs (loop2): check_snapshot_trees... done [ 167.555897][ T6703] bcachefs (loop2): check_snapshots... [ 167.556482][ T6703] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 167.556499][ T6703] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 167.568063][ T6703] done [ 167.568737][ T6703] bcachefs (loop2): check_subvols... done [ 167.570659][ T6703] bcachefs (loop2): check_subvol_children... done [ 167.571402][ T6703] bcachefs (loop2): delete_dead_snapshots... done [ 167.572182][ T6703] bcachefs (loop2): check_inodes... [ 167.573248][ T6703] bcachefs (loop2): inode points to missing dirent [ 167.573265][ T6703] inum: 4098:4294967295 [ 167.573275][ T6703] mode=40755 [ 167.573285][ T6703] flags=(15300000) [ 167.573295][ T6703] journal_seq=4 [ 167.573304][ T6703] hash_seed=ece93825deac2443 [ 167.573314][ T6703] hash_type=siphash [ 167.573324][ T6703] bi_size=0 [ 167.573332][ T6703] bi_sectors=0 [ 167.573342][ T6703] bi_version=0 [ 167.573351][ T6703] bi_atime=2770562249 [ 167.573361][ T6703] bi_ctime=2780562352 [ 167.573372][ T6703] bi_mtime=2780562352 [ 167.573382][ T6703] bi_otime=2770562249 [ 167.573392][ T6703] bi_uid=0 [ 167.573401][ T6703] bi_gid=0 [ 167.573409][ T6703] bi_nlink=0 [ 167.573419][ T6703] bi_generation=0 [ 167.573428][ T6703] bi_dev=0 [ 167.573437][ T6703] bi_data_checksum=0 [ 167.573449][ T6703] bi_compression=0 [ 167.573458][ T6703] bi_project=0 [pid 6896] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6896] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6896] chdir("./file1") = 0 [pid 6896] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6896] ioctl(4, LOOP_CLR_FD) = 0 [pid 6896] close(4) = 0 [pid 6896] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6896] exit_group(0) = ? [pid 6896] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6896, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=44 /* 0.44 s */} --- [pid 5839] umount2("./57", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./57", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 167.573467][ T6703] bi_background_compression=0 [ 167.573477][ T6703] bi_data_replicas=0 [ 167.573487][ T6703] bi_promote_target=0 [ 167.573497][ T6703] bi_foreground_target=64 [ 167.573507][ T6703] bi_background_target=1 [ 167.573518][ T6703] bi_erasure_code=0 [ 167.573528][ T6703] bi_fields_set=0 [ 167.573537][ T6703] bi_dir=0 [ 167.573546][ T6703] bi_dir_offset=32 [ 167.573555][ T6703] bi_subvol=0 [ 167.573565][ T6703] bi_parent_subvol=0 [ 167.573574][ T6703] bi_nocow=0 [ 167.573583][ T6703] bi_depth=0 [ 167.573593][ T6703] bi_inodes_32bit=0 [ 167.573602][ T6703] bi_casefold=0, fixing [ 167.575697][ T6703] done [ 167.576341][ T6703] bcachefs (loop2): check_extents... done [ 167.577858][ T6703] bcachefs (loop2): check_indirect_extents... done [ 167.578635][ T6703] bcachefs (loop2): check_dirents... [ 167.582042][ T6703] bcachefs (loop2): directory with missing backpointer [ 167.582061][ T6703] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 167.582076][ T6703] inum: 4098:4294967295 [ 167.582086][ T6703] mode=40755 [ 167.582096][ T6703] flags=(11300000) [ 167.582106][ T6703] journal_seq=22 [ 167.582115][ T6703] hash_seed=ece93825deac2443 [ 167.582126][ T6703] hash_type=siphash [ 167.582135][ T6703] bi_size=0 [ 167.582144][ T6703] bi_sectors=0 [ 167.582154][ T6703] bi_version=0 [ 167.582163][ T6703] bi_atime=2770562249 [ 167.582173][ T6703] bi_ctime=2780562352 [ 167.582183][ T6703] bi_mtime=2780562352 [ 167.582192][ T6703] bi_otime=2770562249 [ 167.582201][ T6703] bi_uid=0 [ 167.582211][ T6703] bi_gid=0 [ 167.582220][ T6703] bi_nlink=0 [ 167.582229][ T6703] bi_generation=0 [ 167.582238][ T6703] bi_dev=0 [ 167.582247][ T6703] bi_data_checksum=0 [ 167.582257][ T6703] bi_compression=0 [ 167.582268][ T6703] bi_project=0 [ 167.582278][ T6703] bi_background_compression=0 [ 167.582288][ T6703] bi_data_replicas=0 [ 167.582298][ T6703] bi_promote_target=0 [ 167.582309][ T6703] bi_foreground_target=64 [ 167.582319][ T6703] bi_background_target=1 [ 167.582329][ T6703] bi_erasure_code=0 [ 167.582338][ T6703] bi_fields_set=0 [ 167.582349][ T6703] bi_dir=0 [ 167.582358][ T6703] bi_dir_offset=0 [ 167.582368][ T6703] bi_subvol=0 [ 167.582377][ T6703] bi_parent_subvol=0 [ 167.582388][ T6703] bi_nocow=0 [ 167.582397][ T6703] bi_depth=0 [ 167.582407][ T6703] bi_inodes_32bit=0 [ 167.582416][ T6703] bi_casefold=0, fixing [ 167.590123][ T6703] done [ 167.590821][ T6703] bcachefs (loop2): check_xattrs... done [ 167.592083][ T6703] bcachefs (loop2): check_root... done [ 167.595081][ T6703] bcachefs (loop2): check_unreachable_inodes... done [ 167.597360][ T6703] bcachefs (loop2): check_subvolume_structure... done [ 167.598199][ T6703] bcachefs (loop2): check_directory_structure... done [ 167.599559][ T6703] bcachefs (loop2): check_nlinks... [ 167.600302][ T6703] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 167.601530][ T6703] done [ 167.602279][ T6703] bcachefs (loop2): check_rebalance_work... done [ 167.603529][ T6703] bcachefs (loop2): resume_logged_ops... done [ 167.604365][ T6703] bcachefs (loop2): delete_dead_inodes... done [ 167.613767][ T6703] bcachefs (loop2): set_fs_needs_rebalance... done [ 167.623422][ T6712] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 167.623437][ T6712] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 167.626588][ T6703] bcachefs (loop2): check_extents_to_backpointers... [ 167.627557][ T6703] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 167.633354][ T6703] done [ 167.643068][ T6703] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 167.643095][ T6703] bcachefs (loop2): check_alloc_info... done [ 167.647690][ T6703] bcachefs (loop2): check_lrus... done [ 167.648850][ T6703] bcachefs (loop2): check_btree_backpointers... done [ 167.651144][ T6703] bcachefs (loop2): check_backpointers_to_extents... done [ 167.652647][ T6703] bcachefs (loop2): check_extents_to_backpointers... done [pid 5839] umount2("./57/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./57/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 167.654356][ T6703] bcachefs (loop2): check_alloc_to_lru_refs... done [ 167.656657][ T6703] bcachefs (loop2): bucket_gens_init... done [ 167.658668][ T6703] bcachefs (loop2): check_snapshot_trees... done [ 167.661029][ T6703] bcachefs (loop2): check_snapshots... done [ 167.661912][ T6703] bcachefs (loop2): check_subvols... done [ 167.662755][ T6703] bcachefs (loop2): check_subvol_children... done [ 167.663453][ T6703] bcachefs (loop2): delete_dead_snapshots... done [ 167.664194][ T6703] bcachefs (loop2): check_inodes... done [pid 5839] newfstatat(AT_FDCWD, "./57/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./57/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./57/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./57/file1") = 0 [ 167.665412][ T6703] bcachefs (loop2): check_extents... done [ 167.666868][ T6703] bcachefs (loop2): check_indirect_extents... done [ 167.667683][ T6703] bcachefs (loop2): check_dirents... done [ 167.669948][ T6703] bcachefs (loop2): check_xattrs... done [ 167.671634][ T6703] bcachefs (loop2): check_root... done [ 167.672436][ T6703] bcachefs (loop2): check_unreachable_inodes... done [ 167.673354][ T6703] bcachefs (loop2): check_subvolume_structure... done [ 167.674066][ T6703] bcachefs (loop2): check_directory_structure... done [pid 5839] umount2("./57/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./57/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./57/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./57") = 0 [pid 5839] mkdir("./58", 0777) = 0 [ 167.674848][ T6703] bcachefs (loop2): check_nlinks... done [ 167.676076][ T6703] bcachefs (loop2): check_rebalance_work... done [ 167.676938][ T6703] bcachefs (loop2): resume_logged_ops... done [ 167.677747][ T6703] bcachefs (loop2): delete_dead_inodes... done [ 167.678597][ T6703] bcachefs (loop2): set_fs_needs_rebalance... done [ 167.684779][ T6703] bcachefs (loop2): done starting filesystem [ 167.783688][ T5839] bcachefs (loop2): shutting down [ 167.783708][ T5839] bcachefs (loop2): going read-only [ 167.783738][ T5839] bcachefs (loop2): finished waiting for writes to stop [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6907 ./strace-static-x86_64: Process 6907 attached [pid 6907] set_robust_list(0x5555901c6760, 24) = 0 [ 167.823103][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 167.823883][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 167.824864][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 167.826681][ T5839] bcachefs (loop2): marking filesystem clean [ 167.827201][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 167.827201][ T5900] rw journal devs: [ 167.882692][ T5839] bcachefs (loop2): shutdown complete [pid 6907] chdir("./58") = 0 [pid 6907] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6907] setpgid(0, 0) = 0 [pid 6907] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 168.688487][ T6714] loop2: detected capacity change from 0 to 32768 [ 168.816501][ T6714] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 168.816529][ T6714] allowing incompatible features above 0.0: (unknown version) [ 168.816542][ T6714] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 6907] write(3, "1000", 4) = 4 [pid 6907] close(3) = 0 [pid 6907] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6907] write(1, "executing program\n", 18executing program ) = 18 [pid 6907] memfd_create("syzkaller", 0) = 3 [pid 6907] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 168.816571][ T6714] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 168.816703][ T6714] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 168.816942][ T6714] bcachefs (loop2): Version upgrade required: [ 168.816942][ T6714] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 168.816942][ T6714] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 168.816942][ T6714] 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,check_rebalance_work,set_fs_needs_rebalance [ 168.837268][ T6714] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 168.837304][ T6714] size != 0, deleting [ 168.838418][ T6714] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 168.842238][ T6714] bcachefs (loop2): check_topology... done [ 168.844109][ T6714] bcachefs (loop2): accounting_read... done [ 168.880192][ T6714] bcachefs (loop2): alloc_read... done [ 168.880920][ T6714] bcachefs (loop2): snapshots_read... done [ 168.881626][ T6714] bcachefs (loop2): check_allocations... [ 168.883417][ T6714] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 168.883436][ T6714] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 168.886029][ T6714] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 168.886046][ T6714] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 168.887408][ T6714] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 168.887427][ T6714] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 168.888990][ T6714] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 168.889008][ T6714] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 168.892994][ T6714] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 168.893012][ T6714] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 168.893967][ T6714] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.894091][ T6714] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 168.894655][ T6714] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6907] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6907] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6907] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 168.894759][ T6714] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 168.895176][ T6714] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.895293][ T6714] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 168.895894][ T6714] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.896019][ T6714] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6907] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6907] close(3) = 0 [pid 6907] close(4) = 0 [pid 6907] mkdir("./file1", 0777) = 0 [ 168.896238][ T6714] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.896355][ T6714] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 168.896562][ T6714] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.896668][ T6714] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 168.896881][ T6714] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.896988][ T6714] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 168.897200][ T6714] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 168.897315][ T6714] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 168.897528][ T6714] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 168.897639][ T6714] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 168.897846][ T6714] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 168.897958][ T6714] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 168.898228][ T6714] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 168.898245][ T6714] Ratelimiting new instances of previous error [ 168.898384][ T6714] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 168.898401][ T6714] Ratelimiting new instances of previous error [ 168.913604][ T6714] done [ 168.915723][ T6714] bcachefs (loop2): going read-write [ 168.920716][ T6714] bcachefs (loop2): journal_replay... done [ 168.948318][ T6714] bcachefs (loop2): check_alloc_info... [ 168.951147][ T6714] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 168.951168][ T6714] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 168.951182][ T6714] gen 0 oldest_gen 0 data_type need_discard [ 168.951193][ T6714] journal_seq_nonempty 6 [ 168.951203][ T6714] journal_seq_empty 0 [ 168.951213][ T6714] need_discard 1 [ 168.951225][ T6714] need_inc_gen 1 [ 168.951235][ T6714] dirty_sectors 0 [ 168.951245][ T6714] stripe_sectors 0 [ 168.951255][ T6714] cached_sectors 0 [ 168.951265][ T6714] stripe 0 [ 168.951282][ T6714] stripe_redundancy 0 [ 168.951293][ T6714] io_time[READ] 1 [ 168.951302][ T6714] io_time[WRITE] 768 [ 168.951313][ T6714] fragmentation 0 [ 168.951322][ T6714] bp_start 8 [ 168.951332][ T6714] , fixing [ 168.968293][ T6714] done [ 168.972753][ T6714] bcachefs (loop2): check_lrus... done [ 168.974046][ T6714] bcachefs (loop2): check_btree_backpointers... done [ 168.975398][ T6714] bcachefs (loop2): check_backpointers_to_extents... done [ 168.982874][ T6714] bcachefs (loop2): check_extents_to_backpointers... [ 168.985804][ T6714] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 168.987225][ T6714] done [ 168.987934][ T6714] bcachefs (loop2): check_alloc_to_lru_refs... [ 168.990383][ T6714] bcachefs (loop2): missing fragmentation lru entry [ 168.990401][ T6714] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 168.990413][ T6714] gen 0 oldest_gen 0 data_type user [ 168.990424][ T6714] journal_seq_nonempty 5 [ 168.990434][ T6714] journal_seq_empty 134217728 [ 168.990446][ T6714] need_discard 1 [ 168.990456][ T6714] need_inc_gen 1 [ 168.990465][ T6714] dirty_sectors 16 [ 168.990476][ T6714] stripe_sectors 1802251 [ 168.990486][ T6714] cached_sectors 0 [ 168.990497][ T6714] stripe 0 [ 168.990506][ T6714] stripe_redundancy 0 [ 168.990516][ T6714] io_time[READ] 1 [ 168.990525][ T6714] io_time[WRITE] 512 [ 168.990536][ T6714] fragmentation 0 [ 168.990545][ T6714] bp_start 7 [ 168.990555][ T6714] , fixing [ 168.995310][ T6714] done [ 168.996734][ T6714] bcachefs (loop2): bucket_gens_init... done [ 168.998831][ T6714] bcachefs (loop2): check_snapshot_trees... done [ 169.000209][ T6714] bcachefs (loop2): check_snapshots... [ 169.000825][ T6714] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 1 printk messages dropped ** [ 169.012014][ T6714] done [ 169.012753][ T6714] bcachefs (loop2): check_subvols... done ** 3 printk messages dropped ** [ 169.017587][ T6714] bcachefs (loop2): inode points to missing dirent ** 5 printk messages dropped ** [ 169.017654][ T6714] hash_type=siphash [ 169.017664][ T6714] bi_size=0 [pid 6907] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6907] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6907] chdir("./file1") = 0 [pid 6907] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6907] ioctl(4, LOOP_CLR_FD) = 0 [ 169.017673][ T6714] bi_sectors=0 [ 169.017683][ T6714] bi_version=0 [ 169.017692][ T6714] bi_atime=2770562249 [ 169.017702][ T6714] bi_ctime=2780562352 [ 169.017712][ T6714] bi_mtime=2780562352 [ 169.017721][ T6714] bi_otime=2770562249 [ 169.017731][ T6714] bi_uid=0 [ 169.017741][ T6714] bi_gid=0 [ 169.017750][ T6714] bi_nlink=0 [ 169.017761][ T6714] bi_generation=0 [ 169.017770][ T6714] bi_dev=0 [ 169.017779][ T6714] bi_data_checksum=0 [ 169.017789][ T6714] bi_compression=0 [pid 6907] close(4) = 0 [pid 6907] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6907] exit_group(0) = ? [pid 6907] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6907, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=33 /* 0.33 s */} --- [pid 5839] umount2("./58", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./58", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 169.017798][ T6714] bi_project=0 [ 169.017808][ T6714] bi_background_compression=0 [ 169.017817][ T6714] bi_data_replicas=0 [ 169.017827][ T6714] bi_promote_target=0 [ 169.017836][ T6714] bi_foreground_target=64 [ 169.017847][ T6714] bi_background_target=1 [ 169.017856][ T6714] bi_erasure_code=0 [ 169.017866][ T6714] bi_fields_set=0 [ 169.017876][ T6714] bi_dir=0 [ 169.017885][ T6714] bi_dir_offset=32 [ 169.017894][ T6714] bi_subvol=0 [ 169.017903][ T6714] bi_parent_subvol=0 [ 169.017912][ T6714] bi_nocow=0 [ 169.017922][ T6714] bi_depth=0 [ 169.017931][ T6714] bi_inodes_32bit=0 [ 169.017941][ T6714] bi_casefold=0, fixing [ 169.022049][ T6714] done [ 169.022744][ T6714] bcachefs (loop2): check_extents... done [ 169.026630][ T6714] bcachefs (loop2): check_indirect_extents... done [ 169.027402][ T6714] bcachefs (loop2): check_dirents... [ 169.029160][ T6714] bcachefs (loop2): directory with missing backpointer [ 169.029177][ T6714] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 169.029191][ T6714] inum: 4098:4294967295 [ 169.029932][ T6714] mode=40755 [ 169.029944][ T6714] flags=(11300000) [ 169.029953][ T6714] journal_seq=22 [ 169.029964][ T6714] hash_seed=ece93825deac2443 [ 169.029975][ T6714] hash_type=siphash [ 169.029985][ T6714] bi_size=0 [ 169.029994][ T6714] bi_sectors=0 [ 169.030003][ T6714] bi_version=0 [ 169.030013][ T6714] bi_atime=2770562249 [ 169.030022][ T6714] bi_ctime=2780562352 [ 169.030032][ T6714] bi_mtime=2780562352 [ 169.030042][ T6714] bi_otime=2770562249 [ 169.030051][ T6714] bi_uid=0 [ 169.030060][ T6714] bi_gid=0 [ 169.030070][ T6714] bi_nlink=0 [ 169.030079][ T6714] bi_generation=0 [ 169.030088][ T6714] bi_dev=0 [ 169.030097][ T6714] bi_data_checksum=0 [ 169.030107][ T6714] bi_compression=0 [ 169.030117][ T6714] bi_project=0 [ 169.030126][ T6714] bi_background_compression=0 [ 169.030136][ T6714] bi_data_replicas=0 [ 169.030146][ T6714] bi_promote_target=0 [ 169.030157][ T6714] bi_foreground_target=64 [ 169.030167][ T6714] bi_background_target=1 [ 169.030177][ T6714] bi_erasure_code=0 [ 169.030186][ T6714] bi_fields_set=0 [ 169.030196][ T6714] bi_dir=0 [ 169.030205][ T6714] bi_dir_offset=0 [ 169.030214][ T6714] bi_subvol=0 [ 169.030223][ T6714] bi_parent_subvol=0 [ 169.030233][ T6714] bi_nocow=0 [ 169.030242][ T6714] bi_depth=0 [ 169.030251][ T6714] bi_inodes_32bit=0 [ 169.030261][ T6714] bi_casefold=0, fixing [ 169.032438][ T6714] done [ 169.033132][ T6714] bcachefs (loop2): check_xattrs... done [ 169.034407][ T6714] bcachefs (loop2): check_root... done [ 169.035561][ T6714] bcachefs (loop2): check_unreachable_inodes... done [ 169.037111][ T6714] bcachefs (loop2): check_subvolume_structure... done [ 169.037911][ T6714] bcachefs (loop2): check_directory_structure... done [ 169.038728][ T6714] bcachefs (loop2): check_nlinks... [ 169.040668][ T6714] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 169.043489][ T6714] done [ 169.044047][ T6714] bcachefs (loop2): check_rebalance_work... done [ 169.046164][ T6714] bcachefs (loop2): resume_logged_ops... done [ 169.047504][ T6714] bcachefs (loop2): delete_dead_inodes... done [ 169.056092][ T6714] bcachefs (loop2): set_fs_needs_rebalance... [ 169.065019][ T6723] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 169.065045][ T6723] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 169.067893][ T6714] done [ 169.068901][ T6714] bcachefs (loop2): check_extents_to_backpointers... [ 169.070042][ T6714] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 169.079704][ T6714] done [ 169.095092][ T6714] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 169.095115][ T6714] bcachefs (loop2): check_alloc_info... done [ 169.109830][ T6714] bcachefs (loop2): check_lrus... done [ 169.111454][ T6714] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./58/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./58/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./58/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 169.112655][ T6714] bcachefs (loop2): check_backpointers_to_extents... done [ 169.114123][ T6714] bcachefs (loop2): check_extents_to_backpointers... done [ 169.115753][ T6714] bcachefs (loop2): check_alloc_to_lru_refs... done [ 169.117906][ T6714] bcachefs (loop2): bucket_gens_init... done [ 169.120836][ T6714] bcachefs (loop2): check_snapshot_trees... done [ 169.122446][ T6714] bcachefs (loop2): check_snapshots... done [ 169.123278][ T6714] bcachefs (loop2): check_subvols... done [ 169.130015][ T6714] bcachefs (loop2): check_subvol_children... done [pid 5839] umount2("./58/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./58/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 169.130807][ T6714] bcachefs (loop2): delete_dead_snapshots... done [ 169.131486][ T6714] bcachefs (loop2): check_inodes... done [ 169.133076][ T6714] bcachefs (loop2): check_extents... done [ 169.134694][ T6714] bcachefs (loop2): check_indirect_extents... done [ 169.135387][ T6714] bcachefs (loop2): check_dirents... done [ 169.140310][ T6714] bcachefs (loop2): check_xattrs... done [ 169.141434][ T6714] bcachefs (loop2): check_root... done [ 169.142170][ T6714] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./58/file1") = 0 [pid 5839] umount2("./58/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./58/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./58/binderfs") = 0 [ 169.143477][ T6714] bcachefs (loop2): check_subvolume_structure... done [ 169.144234][ T6714] bcachefs (loop2): check_directory_structure... done [ 169.150264][ T6714] bcachefs (loop2): check_nlinks... done [ 169.151498][ T6714] bcachefs (loop2): check_rebalance_work... done [ 169.152227][ T6714] bcachefs (loop2): resume_logged_ops... done [ 169.153470][ T6714] bcachefs (loop2): delete_dead_inodes... done [ 169.154323][ T6714] bcachefs (loop2): set_fs_needs_rebalance... done [ 169.157318][ T6714] bcachefs (loop2): done starting filesystem [ 169.263682][ T5839] bcachefs (loop2): shutting down [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./58") = 0 [pid 5839] mkdir("./59", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 169.263702][ T5839] bcachefs (loop2): going read-only [ 169.263730][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 169.301464][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 169.301827][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 169.302793][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 169.304611][ T5839] bcachefs (loop2): marking filesystem clean [ 169.356738][ T5839] bcachefs (loop2): shutdown complete [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6918 ./strace-static-x86_64: Process 6918 attached [pid 6918] set_robust_list(0x5555901c6760, 24) = 0 [ 170.198389][ T6725] loop2: detected capacity change from 0 to 32768 [ 170.323586][ T6725] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 170.323613][ T6725] allowing incompatible features above 0.0: (unknown version) [ 170.323626][ T6725] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 170.323653][ T6725] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [pid 6918] chdir("./59") = 0 [pid 6918] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6918] setpgid(0, 0) = 0 [pid 6918] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6918] write(3, "1000", 4) = 4 [pid 6918] close(3) = 0 [ 170.323773][ T6725] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 170.324015][ T6725] bcachefs (loop2): Version upgrade required: [ 170.324015][ T6725] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 170.324015][ T6725] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 6918] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6918] write(1, "executing program\n", 18executing program ) = 18 [pid 6918] memfd_create("syzkaller", 0) = 3 [pid 6918] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 170.324015][ T6725] 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,check_rebalance_work,set_fs_needs_rebalance [ 170.344792][ T6725] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 170.344819][ T6725] size != 0, deleting [ 170.345977][ T6725] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 170.350223][ T6725] bcachefs (loop2): check_topology... done [ 170.351727][ T6725] bcachefs (loop2): accounting_read... done [ 170.384686][ T6725] bcachefs (loop2): alloc_read... done [ 170.385666][ T6725] bcachefs (loop2): snapshots_read... done [ 170.386529][ T6725] bcachefs (loop2): check_allocations... [ 170.388545][ T6725] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 170.388566][ T6725] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 170.391640][ T6725] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 170.391660][ T6725] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 170.393090][ T6725] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 170.393109][ T6725] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 170.395068][ T6725] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 170.395088][ T6725] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 170.397576][ T6725] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 170.397594][ T6725] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 170.398554][ T6725] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.398678][ T6725] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 170.399663][ T6725] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.399781][ T6725] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 170.400221][ T6725] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.400332][ T6725] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 170.400549][ T6725] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.400656][ T6725] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6918] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6918] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6918] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6918] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6918] close(3) = 0 [pid 6918] close(4) = 0 [pid 6918] mkdir("./file1", 0777) = 0 [ 170.400870][ T6725] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.400985][ T6725] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 170.401179][ T6725] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.401279][ T6725] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 170.401484][ T6725] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.401587][ T6725] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 170.401783][ T6725] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 170.401883][ T6725] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 170.402092][ T6725] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 170.402191][ T6725] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 170.402398][ T6725] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 170.402516][ T6725] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 170.402736][ T6725] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 170.402752][ T6725] Ratelimiting new instances of previous error [ 170.402878][ T6725] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 170.402895][ T6725] Ratelimiting new instances of previous error [ 170.417979][ T6725] done [ 170.421076][ T6725] bcachefs (loop2): going read-write [ 170.426428][ T6725] bcachefs (loop2): journal_replay... done [ 170.454283][ T6725] bcachefs (loop2): check_alloc_info... [ 170.456098][ T6725] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 170.456116][ T6725] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 170.456128][ T6725] gen 0 oldest_gen 0 data_type need_discard [ 170.456141][ T6725] journal_seq_nonempty 6 [ 170.456151][ T6725] journal_seq_empty 0 [ 170.456161][ T6725] need_discard 1 [ 170.456171][ T6725] need_inc_gen 1 [ 170.456181][ T6725] dirty_sectors 0 [ 170.456191][ T6725] stripe_sectors 0 [ 170.456201][ T6725] cached_sectors 0 [ 170.456211][ T6725] stripe 0 [ 170.456221][ T6725] stripe_redundancy 0 [ 170.456231][ T6725] io_time[READ] 1 [ 170.456241][ T6725] io_time[WRITE] 768 [ 170.456251][ T6725] fragmentation 0 [ 170.456262][ T6725] bp_start 8 [ 170.456272][ T6725] , fixing [ 170.473056][ T6725] done [ 170.479700][ T6725] bcachefs (loop2): check_lrus... done [ 170.480813][ T6725] bcachefs (loop2): check_btree_backpointers... done [ 170.482158][ T6725] bcachefs (loop2): check_backpointers_to_extents... done [ 170.486516][ T6725] bcachefs (loop2): check_extents_to_backpointers... [ 170.487886][ T6725] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 170.490854][ T6725] done [ 170.491542][ T6725] bcachefs (loop2): check_alloc_to_lru_refs... [ 170.493382][ T6725] bcachefs (loop2): missing fragmentation lru entry [ 170.493400][ T6725] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 170.493412][ T6725] gen 0 oldest_gen 0 data_type user [ 170.493422][ T6725] journal_seq_nonempty 5 [ 170.493441][ T6725] journal_seq_empty 134217728 [ 170.493451][ T6725] need_discard 1 [ 170.493461][ T6725] need_inc_gen 1 [ 170.493472][ T6725] dirty_sectors 16 [ 170.493482][ T6725] stripe_sectors 1802251 [ 170.493492][ T6725] cached_sectors 0 [ 170.493503][ T6725] stripe 0 [ 170.493512][ T6725] stripe_redundancy 0 [ 170.493522][ T6725] io_time[READ] 1 [ 170.493532][ T6725] io_time[WRITE] 512 [ 170.493542][ T6725] fragmentation 0 [ 170.493552][ T6725] bp_start 7 [ 170.493561][ T6725] , fixing [ 170.495109][ T6725] done [ 170.496664][ T6725] bcachefs (loop2): bucket_gens_init... done [ 170.498686][ T6725] bcachefs (loop2): check_snapshot_trees... done [ 170.501147][ T6725] bcachefs (loop2): check_snapshots... [ 170.501743][ T6725] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 170.501760][ T6725] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 170.513722][ T6725] done [ 170.514443][ T6725] bcachefs (loop2): check_subvols... done [ 170.515862][ T6725] bcachefs (loop2): check_subvol_children... done [ 170.516625][ T6725] bcachefs (loop2): delete_dead_snapshots... done [ 170.517414][ T6725] bcachefs (loop2): check_inodes... [ 170.518550][ T6725] bcachefs (loop2): inode points to missing dirent [ 170.518566][ T6725] inum: 4098:4294967295 [ 170.518577][ T6725] mode=40755 [ 170.518587][ T6725] flags=(15300000) [ 170.518596][ T6725] journal_seq=4 [ 170.518605][ T6725] hash_seed=ece93825deac2443 ** 2 printk messages dropped ** [ 170.518635][ T6725] bi_sectors=0 ** 4 printk messages dropped ** [ 170.518684][ T6725] bi_otime=2770562249 [ 170.518694][ T6725] bi_uid=0 [pid 6918] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6918] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6918] chdir("./file1") = 0 [pid 6918] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6918] ioctl(4, LOOP_CLR_FD) = 0 [pid 6918] close(4) = 0 [pid 6918] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6918] exit_group(0) = ? [pid 6918] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6918, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=44 /* 0.44 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./59", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 170.518703][ T6725] bi_gid=0 [ 170.518712][ T6725] bi_nlink=0 [ 170.518722][ T6725] bi_generation=0 [ 170.518731][ T6725] bi_dev=0 [ 170.518740][ T6725] bi_data_checksum=0 [ 170.518750][ T6725] bi_compression=0 [ 170.518759][ T6725] bi_project=0 [ 170.518769][ T6725] bi_background_compression=0 [ 170.518779][ T6725] bi_data_replicas=0 [ 170.518790][ T6725] bi_promote_target=0 [ 170.518799][ T6725] bi_foreground_target=64 [ 170.518809][ T6725] bi_background_target=1 [pid 5839] openat(AT_FDCWD, "./59", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 170.518820][ T6725] bi_erasure_code=0 [ 170.518830][ T6725] bi_fields_set=0 [ 170.518840][ T6725] bi_dir=0 [ 170.518849][ T6725] bi_dir_offset=32 [ 170.518858][ T6725] bi_subvol=0 [ 170.518867][ T6725] bi_parent_subvol=0 [ 170.518878][ T6725] bi_nocow=0 [ 170.518887][ T6725] bi_depth=0 [ 170.518896][ T6725] bi_inodes_32bit=0 [ 170.518906][ T6725] bi_casefold=0, fixing [ 170.525449][ T6725] done [ 170.526136][ T6725] bcachefs (loop2): check_extents... done [ 170.527657][ T6725] bcachefs (loop2): check_indirect_extents... done [ 170.528472][ T6725] bcachefs (loop2): check_dirents... [ 170.530996][ T6725] bcachefs (loop2): directory with missing backpointer [ 170.531015][ T6725] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 170.531029][ T6725] inum: 4098:4294967295 [ 170.531040][ T6725] mode=40755 [ 170.531049][ T6725] flags=(11300000) [ 170.531058][ T6725] journal_seq=22 [ 170.531068][ T6725] hash_seed=ece93825deac2443 [ 170.531078][ T6725] hash_type=siphash [ 170.531087][ T6725] bi_size=0 [ 170.531097][ T6725] bi_sectors=0 [ 170.531106][ T6725] bi_version=0 [ 170.531115][ T6725] bi_atime=2770562249 [ 170.531125][ T6725] bi_ctime=2780562352 [ 170.531135][ T6725] bi_mtime=2780562352 [ 170.531144][ T6725] bi_otime=2770562249 [ 170.531154][ T6725] bi_uid=0 [ 170.531163][ T6725] bi_gid=0 [ 170.531172][ T6725] bi_nlink=0 [ 170.531181][ T6725] bi_generation=0 [ 170.531191][ T6725] bi_dev=0 [ 170.531200][ T6725] bi_data_checksum=0 [ 170.531210][ T6725] bi_compression=0 [ 170.531219][ T6725] bi_project=0 [ 170.531228][ T6725] bi_background_compression=0 [ 170.531239][ T6725] bi_data_replicas=0 [ 170.531248][ T6725] bi_promote_target=0 [ 170.531258][ T6725] bi_foreground_target=64 [ 170.531268][ T6725] bi_background_target=1 [ 170.531278][ T6725] bi_erasure_code=0 [ 170.531287][ T6725] bi_fields_set=0 [ 170.531297][ T6725] bi_dir=0 [ 170.531305][ T6725] bi_dir_offset=0 [ 170.531315][ T6725] bi_subvol=0 [ 170.531325][ T6725] bi_parent_subvol=0 [ 170.531335][ T6725] bi_nocow=0 [ 170.531344][ T6725] bi_depth=0 [ 170.531354][ T6725] bi_inodes_32bit=0 [ 170.531363][ T6725] bi_casefold=0, fixing [ 170.534048][ T6725] done [ 170.534772][ T6725] bcachefs (loop2): check_xattrs... done [ 170.536017][ T6725] bcachefs (loop2): check_root... done [ 170.537183][ T6725] bcachefs (loop2): check_unreachable_inodes... done [ 170.538323][ T6725] bcachefs (loop2): check_subvolume_structure... done [ 170.539147][ T6725] bcachefs (loop2): check_directory_structure... done [ 170.542519][ T6725] bcachefs (loop2): check_nlinks... [ 170.543719][ T6725] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 170.544715][ T6725] done [ 170.545400][ T6725] bcachefs (loop2): check_rebalance_work... done [ 170.547271][ T6725] bcachefs (loop2): resume_logged_ops... done [ 170.549497][ T6725] bcachefs (loop2): delete_dead_inodes... done [ 170.559096][ T6725] bcachefs (loop2): set_fs_needs_rebalance... [ 170.568433][ T6734] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 170.568458][ T6734] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 170.570362][ T6725] done [ 170.571377][ T6725] bcachefs (loop2): check_extents_to_backpointers... [ 170.572426][ T6725] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 170.577176][ T6725] done [ 170.599967][ T6725] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [pid 5839] umount2("./59/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 170.599993][ T6725] bcachefs (loop2): check_alloc_info... done [ 170.609047][ T6725] bcachefs (loop2): check_lrus... done [ 170.610661][ T6725] bcachefs (loop2): check_btree_backpointers... done [ 170.612006][ T6725] bcachefs (loop2): check_backpointers_to_extents... done [ 170.620066][ T6725] bcachefs (loop2): check_extents_to_backpointers... done [ 170.621869][ T6725] bcachefs (loop2): check_alloc_to_lru_refs... done [ 170.624105][ T6725] bcachefs (loop2): bucket_gens_init... done [ 170.626143][ T6725] bcachefs (loop2): check_snapshot_trees... done [pid 5839] umount2("./59/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./59/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./59/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./59/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./59/file1") = 0 [pid 5839] umount2("./59/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 170.630647][ T6725] bcachefs (loop2): check_snapshots... done [ 170.631399][ T6725] bcachefs (loop2): check_subvols... done [ 170.632165][ T6725] bcachefs (loop2): check_subvol_children... done [ 170.632951][ T6725] bcachefs (loop2): delete_dead_snapshots... done [ 170.634043][ T6725] bcachefs (loop2): check_inodes... done [ 170.641542][ T6725] bcachefs (loop2): check_extents... done [ 170.643200][ T6725] bcachefs (loop2): check_indirect_extents... done [ 170.643917][ T6725] bcachefs (loop2): check_dirents... done [pid 5839] newfstatat(AT_FDCWD, "./59/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./59/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./59") = 0 [pid 5839] mkdir("./60", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 170.645471][ T6725] bcachefs (loop2): check_xattrs... done [ 170.650623][ T6725] bcachefs (loop2): check_root... done [ 170.651406][ T6725] bcachefs (loop2): check_unreachable_inodes... done [ 170.652259][ T6725] bcachefs (loop2): check_subvolume_structure... done [ 170.652981][ T6725] bcachefs (loop2): check_directory_structure... done [ 170.653695][ T6725] bcachefs (loop2): check_nlinks... done [ 170.660361][ T6725] bcachefs (loop2): check_rebalance_work... done [ 170.661660][ T6725] bcachefs (loop2): resume_logged_ops... done [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6929 ./strace-static-x86_64: Process 6929 attached [pid 6929] set_robust_list(0x5555901c6760, 24) = 0 [ 170.662349][ T6725] bcachefs (loop2): delete_dead_inodes... done [ 170.663120][ T6725] bcachefs (loop2): set_fs_needs_rebalance... done [ 170.666124][ T6725] bcachefs (loop2): done starting filesystem [ 170.734235][ T5839] bcachefs (loop2): shutting down [ 170.734256][ T5839] bcachefs (loop2): going read-only [ 170.734507][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 170.736311][ T1275] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [pid 6929] chdir("./60") = 0 [pid 6929] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6929] setpgid(0, 0) = 0 [pid 6929] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6929] write(3, "1000", 4) = 4 [pid 6929] close(3) = 0 [pid 6929] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6929] write(1, "executing program\n", 18executing program ) = 18 [ 170.736311][ T1275] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 170.736492][ T1275] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 170.736509][ T1275] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 170.736529][ T1275] loop2 checksum error [ 170.771129][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [pid 6929] memfd_create("syzkaller", 0) = 3 [pid 6929] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 170.774976][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 170.775825][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 170.777614][ T5839] bcachefs (loop2): marking filesystem clean [ 170.843389][ T5839] bcachefs (loop2): shutdown complete [ 171.632304][ T6736] loop2: detected capacity change from 0 to 32768 [ 171.763754][ T6736] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 171.763781][ T6736] allowing incompatible features above 0.0: (unknown version) [ 171.763794][ T6736] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 171.763822][ T6736] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 171.763952][ T6736] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 171.764194][ T6736] bcachefs (loop2): Version upgrade required: [ 171.764194][ T6736] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 171.764194][ T6736] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 171.764194][ T6736] 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,check_rebalance_work,set_fs_needs_rebalance [ 171.784348][ T6736] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 171.784377][ T6736] size != 0, deleting [ 171.785543][ T6736] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 171.789348][ T6736] bcachefs (loop2): check_topology... done [ 171.791041][ T6736] bcachefs (loop2): accounting_read... done [ 171.828537][ T6736] bcachefs (loop2): alloc_read... done [ 171.829933][ T6736] bcachefs (loop2): snapshots_read... done [ 171.831297][ T6736] bcachefs (loop2): check_allocations... [ 171.833273][ T6736] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 171.833294][ T6736] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 171.835297][ T6736] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 6929] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 171.835316][ T6736] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 171.836760][ T6736] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 171.836779][ T6736] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 171.838313][ T6736] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 6929] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6929] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6929] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6929] close(3) = 0 [pid 6929] close(4) = 0 [pid 6929] mkdir("./file1", 0777) = 0 [ 171.838331][ T6736] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 171.843281][ T6736] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 171.843300][ T6736] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 171.844239][ T6736] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.844374][ T6736] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.844921][ T6736] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.845027][ T6736] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.845434][ T6736] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.845541][ T6736] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.845742][ T6736] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.845851][ T6736] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.846063][ T6736] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.846167][ T6736] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.846376][ T6736] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.846479][ T6736] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.846678][ T6736] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.846783][ T6736] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 171.846986][ T6736] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 171.847089][ T6736] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 171.847302][ T6736] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 171.847412][ T6736] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 171.847614][ T6736] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 171.847719][ T6736] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 171.847956][ T6736] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 171.847972][ T6736] Ratelimiting new instances of previous error [ 171.848102][ T6736] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 171.848119][ T6736] Ratelimiting new instances of previous error [ 171.861915][ T6736] done [ 171.863979][ T6736] bcachefs (loop2): going read-write [ 171.869951][ T6736] bcachefs (loop2): journal_replay... done [ 171.897700][ T6736] bcachefs (loop2): check_alloc_info... [ 171.900539][ T6736] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 171.900558][ T6736] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 171.900571][ T6736] gen 0 oldest_gen 0 data_type need_discard [ 171.900582][ T6736] journal_seq_nonempty 6 [ 171.900593][ T6736] journal_seq_empty 0 [ 171.900603][ T6736] need_discard 1 [ 171.900613][ T6736] need_inc_gen 1 [ 171.900623][ T6736] dirty_sectors 0 [ 171.900635][ T6736] stripe_sectors 0 [ 171.900644][ T6736] cached_sectors 0 [ 171.900654][ T6736] stripe 0 [ 171.900664][ T6736] stripe_redundancy 0 [ 171.900674][ T6736] io_time[READ] 1 [ 171.900684][ T6736] io_time[WRITE] 768 [ 171.900694][ T6736] fragmentation 0 [ 171.900704][ T6736] bp_start 8 [ 171.900714][ T6736] , fixing [ 171.916718][ T6736] done [ 171.922890][ T6736] bcachefs (loop2): check_lrus... done [ 171.924115][ T6736] bcachefs (loop2): check_btree_backpointers... done [ 171.925435][ T6736] bcachefs (loop2): check_backpointers_to_extents... done [ 171.930248][ T6736] bcachefs (loop2): check_extents_to_backpointers... [ 171.931588][ T6736] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 171.933146][ T6736] done [ 171.934479][ T6736] bcachefs (loop2): check_alloc_to_lru_refs... [ 171.936353][ T6736] bcachefs (loop2): missing fragmentation lru entry [ 171.936370][ T6736] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 171.936383][ T6736] gen 0 oldest_gen 0 data_type user [ 171.936394][ T6736] journal_seq_nonempty 5 [ 171.936404][ T6736] journal_seq_empty 134217728 [ 171.936415][ T6736] need_discard 1 [ 171.936424][ T6736] need_inc_gen 1 [ 171.936434][ T6736] dirty_sectors 16 [ 171.936444][ T6736] stripe_sectors 1802251 [ 171.936454][ T6736] cached_sectors 0 [ 171.936465][ T6736] stripe 0 [ 171.936475][ T6736] stripe_redundancy 0 [ 171.936484][ T6736] io_time[READ] 1 [ 171.936494][ T6736] io_time[WRITE] 512 [ 171.936504][ T6736] fragmentation 0 [ 171.936514][ T6736] bp_start 7 [ 171.936523][ T6736] , fixing [ 171.938090][ T6736] done [ 171.941693][ T6736] bcachefs (loop2): bucket_gens_init... done [ 171.943793][ T6736] bcachefs (loop2): check_snapshot_trees... done [ 171.945083][ T6736] bcachefs (loop2): check_snapshots... [ 171.945669][ T6736] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 171.945687][ T6736] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 171.956826][ T6736] done [ 171.957547][ T6736] bcachefs (loop2): check_subvols... done [ 171.959102][ T6736] bcachefs (loop2): check_subvol_children... done [ 171.960422][ T6736] bcachefs (loop2): delete_dead_snapshots... done [ 171.961166][ T6736] bcachefs (loop2): check_inodes... [ 171.962265][ T6736] bcachefs (loop2): inode points to missing dirent [ 171.962282][ T6736] inum: 4098:4294967295 [ 171.962293][ T6736] mode=40755 [ 171.962302][ T6736] flags=(15300000) [ 171.962311][ T6736] journal_seq=4 [ 171.962323][ T6736] hash_seed=ece93825deac2443 [ 171.962332][ T6736] hash_type=siphash [ 171.962342][ T6736] bi_size=0 [ 171.962351][ T6736] bi_sectors=0 [ 171.962361][ T6736] bi_version=0 [ 171.962370][ T6736] bi_atime=2770562249 [ 171.962380][ T6736] bi_ctime=2780562352 [ 171.962390][ T6736] bi_mtime=2780562352 [ 171.962399][ T6736] bi_otime=2770562249 [ 171.962409][ T6736] bi_uid=0 [ 171.962418][ T6736] bi_gid=0 [ 171.962427][ T6736] bi_nlink=0 [ 171.962437][ T6736] bi_generation=0 [ 171.962446][ T6736] bi_dev=0 [ 171.962455][ T6736] bi_data_checksum=0 [ 171.962465][ T6736] bi_compression=0 [ 171.962474][ T6736] bi_project=0 [ 171.962483][ T6736] bi_background_compression=0 [ 171.962495][ T6736] bi_data_replicas=0 [ 171.962505][ T6736] bi_promote_target=0 [ 171.962515][ T6736] bi_foreground_target=64 [ 171.962524][ T6736] bi_background_target=1 [ 171.962534][ T6736] bi_erasure_code=0 [ 171.962544][ T6736] bi_fields_set=0 [ 171.962553][ T6736] bi_dir=0 [ 171.962562][ T6736] bi_dir_offset=32 [ 171.962572][ T6736] bi_subvol=0 [ 171.962581][ T6736] bi_parent_subvol=0 [ 171.962591][ T6736] bi_nocow=0 [ 171.962600][ T6736] bi_depth=0 [ 171.962609][ T6736] bi_inodes_32bit=0 [ 171.962619][ T6736] bi_casefold=0, fixing [ 171.964239][ T6736] done [ 171.964923][ T6736] bcachefs (loop2): check_extents... done [ 171.966896][ T6736] bcachefs (loop2): check_indirect_extents... done [ 171.967720][ T6736] bcachefs (loop2): check_dirents... [ 171.972213][ T6736] bcachefs (loop2): directory with missing backpointer [ 171.972232][ T6736] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 171.972246][ T6736] inum: 4098:4294967295 [ 171.972265][ T6736] mode=40755 [ 171.972274][ T6736] flags=(11300000) [ 171.972283][ T6736] journal_seq=22 [ 171.972292][ T6736] hash_seed=ece93825deac2443 [ 171.972303][ T6736] hash_type=siphash [ 171.972313][ T6736] bi_size=0 [pid 6929] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 171.972323][ T6736] bi_sectors=0 [ 171.972332][ T6736] bi_version=0 [ 171.972342][ T6736] bi_atime=2770562249 [ 171.972351][ T6736] bi_ctime=2780562352 [ 171.972361][ T6736] bi_mtime=2780562352 [ 171.972371][ T6736] bi_otime=2770562249 [ 171.972380][ T6736] bi_uid=0 [ 171.972390][ T6736] bi_gid=0 [ 171.972399][ T6736] bi_nlink=0 [ 171.972408][ T6736] bi_generation=0 [ 171.972417][ T6736] bi_dev=0 [ 171.972426][ T6736] bi_data_checksum=0 [ 171.972436][ T6736] bi_compression=0 [pid 6929] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6929] chdir("./file1") = 0 [pid 6929] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6929] ioctl(4, LOOP_CLR_FD) = 0 [pid 6929] close(4) = 0 [pid 6929] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6929] exit_group(0) = ? [pid 6929] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6929, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=44 /* 0.44 s */} --- [pid 5839] umount2("./60", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./60", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 171.972445][ T6736] bi_project=0 [ 171.972455][ T6736] bi_background_compression=0 [ 171.972465][ T6736] bi_data_replicas=0 [ 171.972474][ T6736] bi_promote_target=0 [ 171.972486][ T6736] bi_foreground_target=64 [ 171.972495][ T6736] bi_background_target=1 [ 171.972505][ T6736] bi_erasure_code=0 [ 171.972515][ T6736] bi_fields_set=0 [ 171.972524][ T6736] bi_dir=0 [ 171.972533][ T6736] bi_dir_offset=0 [ 171.972543][ T6736] bi_subvol=0 [ 171.972552][ T6736] bi_parent_subvol=0 [ 171.972561][ T6736] bi_nocow=0 [ 171.972571][ T6736] bi_depth=0 [ 171.972580][ T6736] bi_inodes_32bit=0 [ 171.972589][ T6736] bi_casefold=0, fixing [ 171.978752][ T6736] done [ 171.979580][ T6736] bcachefs (loop2): check_xattrs... done [ 171.981711][ T6736] bcachefs (loop2): check_root... done [ 171.983352][ T6736] bcachefs (loop2): check_unreachable_inodes... done [ 171.984406][ T6736] bcachefs (loop2): check_subvolume_structure... done [ 171.985186][ T6736] bcachefs (loop2): check_directory_structure... done [ 171.985949][ T6736] bcachefs (loop2): check_nlinks... [ 171.987114][ T6736] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 171.988197][ T6736] done [ 171.988934][ T6736] bcachefs (loop2): check_rebalance_work... done [ 171.990874][ T6736] bcachefs (loop2): resume_logged_ops... done [ 171.991658][ T6736] bcachefs (loop2): delete_dead_inodes... done [ 172.000778][ T6736] bcachefs (loop2): set_fs_needs_rebalance... [ 172.007305][ T6745] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 172.007329][ T6745] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 172.012061][ T6736] done [ 172.012766][ T6736] bcachefs (loop2): check_extents_to_backpointers... [ 172.013743][ T6736] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 172.020394][ T6736] done [ 172.036401][ T6736] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 172.036427][ T6736] bcachefs (loop2): check_alloc_info... done [ 172.045119][ T6736] bcachefs (loop2): check_lrus... done [ 172.046496][ T6736] bcachefs (loop2): check_btree_backpointers... done [ 172.047688][ T6736] bcachefs (loop2): check_backpointers_to_extents... done [ 172.056997][ T6736] bcachefs (loop2): check_extents_to_backpointers... done [ 172.058840][ T6736] bcachefs (loop2): check_alloc_to_lru_refs... done [ 172.061437][ T6736] bcachefs (loop2): bucket_gens_init... done [ 172.063436][ T6736] bcachefs (loop2): check_snapshot_trees... done [ 172.064587][ T6736] bcachefs (loop2): check_snapshots... done [ 172.065311][ T6736] bcachefs (loop2): check_subvols... done [ 172.066077][ T6736] bcachefs (loop2): check_subvol_children... done [ 172.067566][ T6736] bcachefs (loop2): delete_dead_snapshots... done [ 172.070921][ T6736] bcachefs (loop2): check_inodes... done [ 172.078374][ T6736] bcachefs (loop2): check_extents... done [ 172.080327][ T6736] bcachefs (loop2): check_indirect_extents... done [ 172.081012][ T6736] bcachefs (loop2): check_dirents... done [ 172.082532][ T6736] bcachefs (loop2): check_xattrs... done [ 172.084432][ T6736] bcachefs (loop2): check_root... done [ 172.085183][ T6736] bcachefs (loop2): check_unreachable_inodes... done [ 172.086048][ T6736] bcachefs (loop2): check_subvolume_structure... done [ 172.088916][ T6736] bcachefs (loop2): check_directory_structure... done [ 172.099128][ T6736] bcachefs (loop2): check_nlinks... done [ 172.100728][ T6736] bcachefs (loop2): check_rebalance_work... done [ 172.101537][ T6736] bcachefs (loop2): resume_logged_ops... done [ 172.102233][ T6736] bcachefs (loop2): delete_dead_inodes... done [ 172.102981][ T6736] bcachefs (loop2): set_fs_needs_rebalance... done [ 172.105957][ T6736] bcachefs (loop2): done starting filesystem [ 172.189544][ T5839] bcachefs (loop2): shutting down [ 172.189567][ T5839] bcachefs (loop2): going read-only [ 172.200549][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 172.245233][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 172.246387][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [pid 5839] umount2("./60/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./60/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./60/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./60/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./60/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 172.247266][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 172.249067][ T5839] bcachefs (loop2): marking filesystem clean [ 172.304603][ T5839] bcachefs (loop2): shutdown complete [ 173.107483][ T6747] loop2: detected capacity change from 0 to 32768 [ 173.245133][ T6747] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 173.245162][ T6747] allowing incompatible features above 0.0: (unknown version) [pid 5839] rmdir("./60/file1") = 0 [pid 5839] umount2("./60/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./60/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./60/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [ 173.245175][ T6747] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 173.245204][ T6747] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 173.245328][ T6747] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 173.245573][ T6747] bcachefs (loop2): Version upgrade required: [ 173.245573][ T6747] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 173.245573][ T6747] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] rmdir("./60") = 0 [pid 5839] mkdir("./61", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6940 ./strace-static-x86_64: Process 6940 attached [ 173.245573][ T6747] 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,check_rebalance_work,set_fs_needs_rebalance [pid 6940] set_robust_list(0x5555901c6760, 24) = 0 [pid 6940] chdir("./61") = 0 [pid 6940] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6940] setpgid(0, 0) = 0 [pid 6940] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6940] write(3, "1000", 4) = 4 [pid 6940] close(3) = 0 [pid 6940] symlink("/dev/binderfs", "./binderfs") = 0 [ 173.272746][ T6747] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 173.272774][ T6747] size != 0, deleting [ 173.273631][ T6747] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 173.277392][ T6747] bcachefs (loop2): check_topology... done [ 173.278792][ T6747] bcachefs (loop2): accounting_read... done [ 173.321261][ T6747] bcachefs (loop2): alloc_read... done [ 173.322179][ T6747] bcachefs (loop2): snapshots_read... done [pid 6940] write(1, "executing program\n", 18executing program ) = 18 [pid 6940] memfd_create("syzkaller", 0) = 3 [pid 6940] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 173.322991][ T6747] bcachefs (loop2): check_allocations... [ 173.324958][ T6747] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 173.324977][ T6747] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 173.326924][ T6747] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 173.326942][ T6747] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 173.328646][ T6747] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 173.328664][ T6747] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 173.332082][ T6747] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 173.332101][ T6747] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 173.335150][ T6747] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 173.335168][ T6747] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 173.336119][ T6747] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.336245][ T6747] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.336805][ T6747] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.336924][ T6747] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.337333][ T6747] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.337438][ T6747] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.337639][ T6747] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.337743][ T6747] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.337961][ T6747] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.338206][ T6747] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.338421][ T6747] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.338529][ T6747] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.338740][ T6747] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.338831][ T6747] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 173.339045][ T6747] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 173.339149][ T6747] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 6940] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6940] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6940] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6940] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6940] close(3) = 0 [pid 6940] close(4) = 0 [pid 6940] mkdir("./file1", 0777) = 0 [ 173.340164][ T6747] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.340275][ T6747] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.340483][ T6747] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.340592][ T6747] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.340822][ T6747] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 173.340839][ T6747] Ratelimiting new instances of previous error [ 173.340973][ T6747] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 173.340991][ T6747] Ratelimiting new instances of previous error [ 173.354693][ T6747] done [ 173.356820][ T6747] bcachefs (loop2): going read-write [ 173.362633][ T6747] bcachefs (loop2): journal_replay... done [ 173.390237][ T6747] bcachefs (loop2): check_alloc_info... [ 173.392016][ T6747] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 173.392033][ T6747] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 173.392045][ T6747] gen 0 oldest_gen 0 data_type need_discard [ 173.392057][ T6747] journal_seq_nonempty 6 [ 173.392067][ T6747] journal_seq_empty 0 [ 173.392077][ T6747] need_discard 1 [ 173.392087][ T6747] need_inc_gen 1 [ 173.392096][ T6747] dirty_sectors 0 [ 173.392106][ T6747] stripe_sectors 0 [ 173.392115][ T6747] cached_sectors 0 [ 173.392125][ T6747] stripe 0 [ 173.392134][ T6747] stripe_redundancy 0 [ 173.392143][ T6747] io_time[READ] 1 [ 173.392153][ T6747] io_time[WRITE] 768 [ 173.392162][ T6747] fragmentation 0 [ 173.392172][ T6747] bp_start 8 [ 173.392181][ T6747] , fixing [ 173.409765][ T6747] done [ 173.414734][ T6747] bcachefs (loop2): check_lrus... done [ 173.415578][ T6747] bcachefs (loop2): check_btree_backpointers... done [ 173.418339][ T6747] bcachefs (loop2): check_backpointers_to_extents... done [ 173.423871][ T6747] bcachefs (loop2): check_extents_to_backpointers... [ 173.425776][ T6747] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 173.427243][ T6747] done [ 173.427909][ T6747] bcachefs (loop2): check_alloc_to_lru_refs... [ 173.430917][ T6747] bcachefs (loop2): missing fragmentation lru entry [ 173.430935][ T6747] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 173.430947][ T6747] gen 0 oldest_gen 0 data_type user [ 173.430958][ T6747] journal_seq_nonempty 5 [ 173.430970][ T6747] journal_seq_empty 134217728 [ 173.430980][ T6747] need_discard 1 [ 173.430990][ T6747] need_inc_gen 1 [ 173.431000][ T6747] dirty_sectors 16 [ 173.431010][ T6747] stripe_sectors 1802251 [ 173.431020][ T6747] cached_sectors 0 [ 173.431031][ T6747] stripe 0 [ 173.431040][ T6747] stripe_redundancy 0 [ 173.431050][ T6747] io_time[READ] 1 [ 173.431062][ T6747] io_time[WRITE] 512 [ 173.431070][ T6747] fragmentation 0 [ 173.431078][ T6747] bp_start 7 [ 173.431089][ T6747] , fixing [ 173.432667][ T6747] done [ 173.434150][ T6747] bcachefs (loop2): bucket_gens_init... done [ 173.436708][ T6747] bcachefs (loop2): check_snapshot_trees... done [ 173.437562][ T6747] bcachefs (loop2): check_snapshots... [ 173.438165][ T6747] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 173.438182][ T6747] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 173.451196][ T6747] done [ 173.452619][ T6747] bcachefs (loop2): check_subvols... done [ 173.454908][ T6747] bcachefs (loop2): check_subvol_children... done [ 173.455855][ T6747] bcachefs (loop2): delete_dead_snapshots... done [ 173.456615][ T6747] bcachefs (loop2): check_inodes... [ 173.458220][ T6747] bcachefs (loop2): inode points to missing dirent [ 173.458237][ T6747] inum: 4098:4294967295 [ 173.458249][ T6747] mode=40755 [ 173.458259][ T6747] flags=(15300000) [ 173.458268][ T6747] journal_seq=4 [ 173.458278][ T6747] hash_seed=ece93825deac2443 [ 173.458288][ T6747] hash_type=siphash [ 173.458298][ T6747] bi_size=0 [ 173.458307][ T6747] bi_sectors=0 [ 173.458316][ T6747] bi_version=0 [ 173.458326][ T6747] bi_atime=2770562249 [ 173.458336][ T6747] bi_ctime=2780562352 [ 173.458346][ T6747] bi_mtime=2780562352 [ 173.458356][ T6747] bi_otime=2770562249 [ 173.458366][ T6747] bi_uid=0 [ 173.458375][ T6747] bi_gid=0 [ 173.458384][ T6747] bi_nlink=0 [ 173.458393][ T6747] bi_generation=0 [ 173.458404][ T6747] bi_dev=0 [ 173.458413][ T6747] bi_data_checksum=0 [ 173.458423][ T6747] bi_compression=0 [ 173.458433][ T6747] bi_project=0 [ 173.458442][ T6747] bi_background_compression=0 [ 173.458452][ T6747] bi_data_replicas=0 [ 173.458462][ T6747] bi_promote_target=0 [ 173.458473][ T6747] bi_foreground_target=64 [ 173.458483][ T6747] bi_background_target=1 [ 173.458493][ T6747] bi_erasure_code=0 [ 173.458503][ T6747] bi_fields_set=0 [ 173.458512][ T6747] bi_dir=0 [ 173.458521][ T6747] bi_dir_offset=32 [pid 6940] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6940] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6940] chdir("./file1") = 0 [pid 6940] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6940] ioctl(4, LOOP_CLR_FD) = 0 [ 173.458530][ T6747] bi_subvol=0 [ 173.458539][ T6747] bi_parent_subvol=0 [ 173.458549][ T6747] bi_nocow=0 [ 173.458558][ T6747] bi_depth=0 [ 173.458567][ T6747] bi_inodes_32bit=0 [ 173.458577][ T6747] bi_casefold=0, fixing [ 173.464005][ T6747] done [ 173.464746][ T6747] bcachefs (loop2): check_extents... done [ 173.466280][ T6747] bcachefs (loop2): check_indirect_extents... done [ 173.467116][ T6747] bcachefs (loop2): check_dirents... [ 173.469381][ T6747] bcachefs (loop2): directory with missing backpointer [pid 6940] close(4) = 0 [pid 6940] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6940] exit_group(0) = ? [pid 6940] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6940, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=34 /* 0.34 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./61", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./61", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 173.469400][ T6747] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 173.469413][ T6747] inum: 4098:4294967295 [ 173.469424][ T6747] mode=40755 [ 173.469433][ T6747] flags=(11300000) [ 173.469444][ T6747] journal_seq=23 [ 173.469454][ T6747] hash_seed=ece93825deac2443 [ 173.469464][ T6747] hash_type=siphash [ 173.469474][ T6747] bi_size=0 [ 173.469483][ T6747] bi_sectors=0 [ 173.469492][ T6747] bi_version=0 [ 173.469502][ T6747] bi_atime=2770562249 [ 173.469511][ T6747] bi_ctime=2780562352 [ 173.469521][ T6747] bi_mtime=2780562352 [ 173.469531][ T6747] bi_otime=2770562249 [ 173.469540][ T6747] bi_uid=0 [ 173.469550][ T6747] bi_gid=0 [ 173.469559][ T6747] bi_nlink=0 [ 173.469568][ T6747] bi_generation=0 [ 173.469577][ T6747] bi_dev=0 [ 173.469587][ T6747] bi_data_checksum=0 [ 173.469598][ T6747] bi_compression=0 [ 173.469607][ T6747] bi_project=0 [ 173.469616][ T6747] bi_background_compression=0 [ 173.469628][ T6747] bi_data_replicas=0 [ 173.469638][ T6747] bi_promote_target=0 [ 173.469648][ T6747] bi_foreground_target=64 [ 173.469658][ T6747] bi_background_target=1 [ 173.469669][ T6747] bi_erasure_code=0 [ 173.469679][ T6747] bi_fields_set=0 [ 173.469688][ T6747] bi_dir=0 [ 173.469697][ T6747] bi_dir_offset=0 [ 173.469707][ T6747] bi_subvol=0 [ 173.469716][ T6747] bi_parent_subvol=0 [ 173.469727][ T6747] bi_nocow=0 [ 173.469736][ T6747] bi_depth=0 [ 173.469746][ T6747] bi_inodes_32bit=0 [ 173.469755][ T6747] bi_casefold=0, fixing [ 173.475791][ T6747] done [ 173.476638][ T6747] bcachefs (loop2): check_xattrs... done [ 173.478639][ T6747] bcachefs (loop2): check_root... done [ 173.480282][ T6747] bcachefs (loop2): check_unreachable_inodes... done [ 173.481312][ T6747] bcachefs (loop2): check_subvolume_structure... done [ 173.482141][ T6747] bcachefs (loop2): check_directory_structure... done [ 173.482907][ T6747] bcachefs (loop2): check_nlinks... [ 173.483601][ T6747] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 173.484629][ T6747] done [ 173.485373][ T6747] bcachefs (loop2): check_rebalance_work... done [ 173.486610][ T6747] bcachefs (loop2): resume_logged_ops... done [ 173.487379][ T6747] bcachefs (loop2): delete_dead_inodes... done [ 173.497795][ T6747] bcachefs (loop2): set_fs_needs_rebalance... [ 173.506252][ T6756] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 173.506278][ T6756] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 173.510355][ T6747] done [ 173.511539][ T6747] bcachefs (loop2): check_extents_to_backpointers... [ 173.512513][ T6747] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 173.517455][ T6747] done [ 173.527262][ T6747] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 173.527288][ T6747] bcachefs (loop2): check_alloc_info... done [ 173.532880][ T6747] bcachefs (loop2): check_lrus... done [ 173.534072][ T6747] bcachefs (loop2): check_btree_backpointers... done [ 173.535323][ T6747] bcachefs (loop2): check_backpointers_to_extents... done [ 173.536843][ T6747] bcachefs (loop2): check_extents_to_backpointers... done [ 173.538534][ T6747] bcachefs (loop2): check_alloc_to_lru_refs... done [ 173.542769][ T6747] bcachefs (loop2): bucket_gens_init... done [ 173.544926][ T6747] bcachefs (loop2): check_snapshot_trees... done [ 173.546075][ T6747] bcachefs (loop2): check_snapshots... done [ 173.546980][ T6747] bcachefs (loop2): check_subvols... done [ 173.547851][ T6747] bcachefs (loop2): check_subvol_children... done [pid 5839] umount2("./61/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 173.548643][ T6747] bcachefs (loop2): delete_dead_snapshots... done [ 173.549732][ T6747] bcachefs (loop2): check_inodes... done [ 173.551593][ T6747] bcachefs (loop2): check_extents... done [ 173.553652][ T6747] bcachefs (loop2): check_indirect_extents... done [ 173.554481][ T6747] bcachefs (loop2): check_dirents... done [ 173.555967][ T6747] bcachefs (loop2): check_xattrs... done [ 173.556823][ T6747] bcachefs (loop2): check_root... done [ 173.557609][ T6747] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] umount2("./61/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./61/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./61/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./61/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./61/file1") = 0 [pid 5839] umount2("./61/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./61/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./61/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 173.558501][ T6747] bcachefs (loop2): check_subvolume_structure... done [ 173.560018][ T6747] bcachefs (loop2): check_directory_structure... done [ 173.561530][ T6747] bcachefs (loop2): check_nlinks... done [ 173.563232][ T6747] bcachefs (loop2): check_rebalance_work... done [ 173.564070][ T6747] bcachefs (loop2): resume_logged_ops... done [ 173.564835][ T6747] bcachefs (loop2): delete_dead_inodes... done [ 173.565675][ T6747] bcachefs (loop2): set_fs_needs_rebalance... done [ 173.570150][ T6747] bcachefs (loop2): done starting filesystem [pid 5839] close(3) = 0 [pid 5839] rmdir("./61") = 0 [pid 5839] mkdir("./62", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 173.652104][ T5839] bcachefs (loop2): shutting down [ 173.652132][ T5839] bcachefs (loop2): going read-only [ 173.652162][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 173.690489][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 173.691432][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 173.692336][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 173.694146][ T5839] bcachefs (loop2): marking filesystem clean [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6951 ./strace-static-x86_64: Process 6951 attached [pid 6951] set_robust_list(0x5555901c6760, 24) = 0 [pid 6951] chdir("./62") = 0 [pid 6951] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 173.694640][ T5902] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 173.694640][ T5902] rw journal devs: [ 173.733300][ T5839] bcachefs (loop2): shutdown complete [ 174.499686][ T6759] loop2: detected capacity change from 0 to 32768 [ 174.666488][ T6759] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 174.666516][ T6759] allowing incompatible features above 0.0: (unknown version) [pid 6951] setpgid(0, 0) = 0 [pid 6951] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6951] write(3, "1000", 4) = 4 [pid 6951] close(3) = 0 [pid 6951] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6951] write(1, "executing program\n", 18executing program [ 174.666530][ T6759] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 174.666556][ T6759] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 174.666682][ T6759] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 174.666910][ T6759] bcachefs (loop2): Version upgrade required: [ 174.666910][ T6759] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 174.666910][ T6759] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive ) = 18 [pid 6951] memfd_create("syzkaller", 0) = 3 [pid 6951] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 174.666910][ T6759] 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,check_rebalance_work,set_fs_needs_rebalance [ 174.690435][ T6759] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 174.690461][ T6759] size != 0, deleting [ 174.691450][ T6759] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 174.694725][ T6759] bcachefs (loop2): check_topology... done [ 174.696215][ T6759] bcachefs (loop2): accounting_read... done [ 174.697063][ T6759] bcachefs (loop2): alloc_read... done [ 174.697957][ T6759] bcachefs (loop2): snapshots_read... done [ 174.698819][ T6759] bcachefs (loop2): check_allocations... [ 174.702654][ T6759] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 174.702677][ T6759] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 174.704706][ T6759] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 174.704725][ T6759] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 174.706172][ T6759] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 174.706190][ T6759] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 174.707779][ T6759] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 174.707799][ T6759] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 174.712334][ T6759] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 174.712355][ T6759] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 174.713311][ T6759] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.713438][ T6759] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.713995][ T6759] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.714098][ T6759] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.714520][ T6759] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.714621][ T6759] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.714826][ T6759] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6951] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6951] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6951] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6951] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6951] close(3) = 0 [pid 6951] close(4) = 0 [pid 6951] mkdir("./file1", 0777) = 0 [ 174.714933][ T6759] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.715141][ T6759] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.715245][ T6759] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.715445][ T6759] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.715549][ T6759] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.715758][ T6759] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.715864][ T6759] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 174.716074][ T6759] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 174.716181][ T6759] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 174.716396][ T6759] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 174.716497][ T6759] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 174.716702][ T6759] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 174.716803][ T6759] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 174.717043][ T6759] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 174.717059][ T6759] Ratelimiting new instances of previous error [ 174.717183][ T6759] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 174.717218][ T6759] Ratelimiting new instances of previous error [ 174.730851][ T6759] done [ 174.733456][ T6759] bcachefs (loop2): going read-write [ 174.738826][ T6759] bcachefs (loop2): journal_replay... done [ 174.765598][ T6759] bcachefs (loop2): check_alloc_info... [ 174.767878][ T6759] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 174.767897][ T6759] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 174.767909][ T6759] gen 0 oldest_gen 0 data_type need_discard [ 174.767921][ T6759] journal_seq_nonempty 6 [ 174.767931][ T6759] journal_seq_empty 0 [ 174.767942][ T6759] need_discard 1 [ 174.767953][ T6759] need_inc_gen 1 [ 174.767962][ T6759] dirty_sectors 0 [ 174.767981][ T6759] stripe_sectors 0 [ 174.767992][ T6759] cached_sectors 0 [ 174.768001][ T6759] stripe 0 [ 174.768011][ T6759] stripe_redundancy 0 [ 174.768022][ T6759] io_time[READ] 1 [ 174.768031][ T6759] io_time[WRITE] 768 [ 174.768042][ T6759] fragmentation 0 [ 174.768053][ T6759] bp_start 8 [ 174.768063][ T6759] , fixing [ 174.783625][ T6759] done [ 174.797640][ T6759] bcachefs (loop2): check_lrus... done [ 174.801265][ T6759] bcachefs (loop2): check_btree_backpointers... done [ 174.802698][ T6759] bcachefs (loop2): check_backpointers_to_extents... done [ 174.805740][ T6759] bcachefs (loop2): check_extents_to_backpointers... [ 174.807110][ T6759] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 174.808506][ T6759] done [ 174.809174][ T6759] bcachefs (loop2): check_alloc_to_lru_refs... [ 174.811847][ T6759] bcachefs (loop2): missing fragmentation lru entry [ 174.811866][ T6759] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 174.811878][ T6759] gen 0 oldest_gen 0 data_type user [ 174.811889][ T6759] journal_seq_nonempty 5 [ 174.811899][ T6759] journal_seq_empty 134217728 [ 174.811910][ T6759] need_discard 1 [ 174.811920][ T6759] need_inc_gen 1 [ 174.811930][ T6759] dirty_sectors 16 [ 174.811940][ T6759] stripe_sectors 1802251 [ 174.811950][ T6759] cached_sectors 0 [ 174.811960][ T6759] stripe 0 [ 174.811978][ T6759] stripe_redundancy 0 [ 174.811987][ T6759] io_time[READ] 1 [ 174.811998][ T6759] io_time[WRITE] 512 [ 174.812007][ T6759] fragmentation 0 [ 174.812017][ T6759] bp_start 7 [ 174.812028][ T6759] , fixing [ 174.813560][ T6759] done [ 174.814978][ T6759] bcachefs (loop2): bucket_gens_init... done [ 174.816904][ T6759] bcachefs (loop2): check_snapshot_trees... done [ 174.817674][ T6759] bcachefs (loop2): check_snapshots... [ 174.818257][ T6759] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 6951] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6951] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6951] chdir("./file1") = 0 [pid 6951] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6951] ioctl(4, LOOP_CLR_FD) = 0 [pid 6951] close(4) = 0 [pid 6951] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6951] exit_group(0) = ? [pid 6951] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6951, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./62", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./62", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 174.818273][ T6759] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 7 printk messages dropped ** [ 174.837565][ T6759] mode=40755 ** 9 printk messages dropped ** [ 174.837664][ T6759] bi_mtime=2780562352 ** 2 printk messages dropped ** [ 174.837693][ T6759] bi_gid=0 [ 174.837702][ T6759] bi_nlink=0 [ 174.837711][ T6759] bi_generation=0 [ 174.837720][ T6759] bi_dev=0 [ 174.837729][ T6759] bi_data_checksum=0 [ 174.837738][ T6759] bi_compression=0 [ 174.837748][ T6759] bi_project=0 [ 174.837757][ T6759] bi_background_compression=0 [ 174.837769][ T6759] bi_data_replicas=0 [ 174.837778][ T6759] bi_promote_target=0 [ 174.837788][ T6759] bi_foreground_target=64 [ 174.837798][ T6759] bi_background_target=1 [ 174.837808][ T6759] bi_erasure_code=0 [ 174.837817][ T6759] bi_fields_set=0 [ 174.837826][ T6759] bi_dir=0 [ 174.837836][ T6759] bi_dir_offset=32 [ 174.837845][ T6759] bi_subvol=0 [ 174.837854][ T6759] bi_parent_subvol=0 [ 174.837864][ T6759] bi_nocow=0 [ 174.837873][ T6759] bi_depth=0 [ 174.837882][ T6759] bi_inodes_32bit=0 [ 174.837892][ T6759] bi_casefold=0, fixing [ 174.844814][ T6759] done [ 174.845538][ T6759] bcachefs (loop2): check_extents... done [ 174.847064][ T6759] bcachefs (loop2): check_indirect_extents... done [ 174.847880][ T6759] bcachefs (loop2): check_dirents... [ 174.850086][ T6759] bcachefs (loop2): directory with missing backpointer [ 174.850103][ T6759] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 174.850118][ T6759] inum: 4098:4294967295 [ 174.850128][ T6759] mode=40755 [ 174.850137][ T6759] flags=(11300000) [ 174.850146][ T6759] journal_seq=23 [ 174.850155][ T6759] hash_seed=ece93825deac2443 [ 174.850167][ T6759] hash_type=siphash [ 174.850177][ T6759] bi_size=0 [ 174.850186][ T6759] bi_sectors=0 [ 174.850196][ T6759] bi_version=0 [ 174.850205][ T6759] bi_atime=2770562249 [ 174.850214][ T6759] bi_ctime=2780562352 [ 174.850225][ T6759] bi_mtime=2780562352 [ 174.850234][ T6759] bi_otime=2770562249 [ 174.850244][ T6759] bi_uid=0 [ 174.850253][ T6759] bi_gid=0 [ 174.850262][ T6759] bi_nlink=0 [ 174.850271][ T6759] bi_generation=0 [ 174.850281][ T6759] bi_dev=0 [ 174.850290][ T6759] bi_data_checksum=0 [ 174.850300][ T6759] bi_compression=0 [ 174.850309][ T6759] bi_project=0 [ 174.850319][ T6759] bi_background_compression=0 [ 174.850329][ T6759] bi_data_replicas=0 [ 174.850339][ T6759] bi_promote_target=0 [ 174.850350][ T6759] bi_foreground_target=64 [ 174.850359][ T6759] bi_background_target=1 [ 174.850369][ T6759] bi_erasure_code=0 [ 174.850379][ T6759] bi_fields_set=0 [ 174.850388][ T6759] bi_dir=0 [ 174.850397][ T6759] bi_dir_offset=0 [ 174.850406][ T6759] bi_subvol=0 [ 174.850416][ T6759] bi_parent_subvol=0 [ 174.850426][ T6759] bi_nocow=0 [ 174.850435][ T6759] bi_depth=0 [ 174.850445][ T6759] bi_inodes_32bit=0 [ 174.850454][ T6759] bi_casefold=0, fixing [ 174.852473][ T6759] done [ 174.853648][ T6759] bcachefs (loop2): check_xattrs... done [ 174.854926][ T6759] bcachefs (loop2): check_root... done [ 174.855946][ T6759] bcachefs (loop2): check_unreachable_inodes... done [ 174.856974][ T6759] bcachefs (loop2): check_subvolume_structure... done [ 174.857793][ T6759] bcachefs (loop2): check_directory_structure... done [ 174.858600][ T6759] bcachefs (loop2): check_nlinks... [ 174.860661][ T6759] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 174.863982][ T6759] done [ 174.864584][ T6759] bcachefs (loop2): check_rebalance_work... done [ 174.867169][ T6759] bcachefs (loop2): resume_logged_ops... done [ 174.868707][ T6759] bcachefs (loop2): delete_dead_inodes... done [ 174.877733][ T6759] bcachefs (loop2): set_fs_needs_rebalance... [ 174.885100][ T6769] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 174.885122][ T6769] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 174.888876][ T6759] done [ 174.890154][ T6759] bcachefs (loop2): check_extents_to_backpointers... [ 174.891104][ T6759] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 174.892744][ T6769] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 174.895403][ T6759] done [ 174.907984][ T6759] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 174.908011][ T6759] bcachefs (loop2): check_alloc_info... done [ 174.913072][ T6759] bcachefs (loop2): check_lrus... done [ 174.914258][ T6759] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./62/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./62/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./62/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./62/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./62/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./62/file1") = 0 [ 174.915521][ T6759] bcachefs (loop2): check_backpointers_to_extents... done [ 174.917369][ T6759] bcachefs (loop2): check_extents_to_backpointers... [ 174.920187][ T6759] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 174.924681][ T6759] done [ 174.924696][ T6759] bcachefs (loop2): check_alloc_to_lru_refs... done [ 174.927190][ T6759] bcachefs (loop2): bucket_gens_init... done [ 174.928983][ T6759] bcachefs (loop2): check_snapshot_trees... done [ 174.930837][ T6759] bcachefs (loop2): check_snapshots... done [pid 5839] umount2("./62/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./62/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./62/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./62") = 0 [pid 5839] mkdir("./63", 0777) = 0 [ 174.931623][ T6759] bcachefs (loop2): check_subvols... done [ 174.932453][ T6759] bcachefs (loop2): check_subvol_children... done [ 174.933145][ T6759] bcachefs (loop2): delete_dead_snapshots... done [ 174.933883][ T6759] bcachefs (loop2): check_inodes... done [ 174.935113][ T6759] bcachefs (loop2): check_extents... done [ 174.936549][ T6759] bcachefs (loop2): check_indirect_extents... done [ 174.937772][ T6759] bcachefs (loop2): check_dirents... done [ 174.939931][ T6759] bcachefs (loop2): check_xattrs... done [ 174.941912][ T6759] bcachefs (loop2): check_root... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6962 ./strace-static-x86_64: Process 6962 attached [pid 6962] set_robust_list(0x5555901c6760, 24) = 0 [ 174.942671][ T6759] bcachefs (loop2): check_unreachable_inodes... done [ 174.944527][ T6759] bcachefs (loop2): check_subvolume_structure... done [ 174.945724][ T6759] bcachefs (loop2): check_directory_structure... done [ 174.946552][ T6759] bcachefs (loop2): check_nlinks... done [ 174.948195][ T6759] bcachefs (loop2): check_rebalance_work... done [ 174.949077][ T6759] bcachefs (loop2): resume_logged_ops... done [ 174.950549][ T6759] bcachefs (loop2): delete_dead_inodes... done [pid 6962] chdir("./63") = 0 [pid 6962] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6962] setpgid(0, 0) = 0 [pid 6962] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6962] write(3, "1000", 4) = 4 [pid 6962] close(3) = 0 [ 174.951400][ T6759] bcachefs (loop2): set_fs_needs_rebalance... done [ 174.954991][ T6759] bcachefs (loop2): done starting filesystem [ 175.040121][ T5839] bcachefs (loop2): shutting down [ 175.040143][ T5839] bcachefs (loop2): going read-only [ 175.040173][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 175.080444][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 175.081171][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 175.082042][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [pid 6962] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6962] write(1, "executing program\n", 18executing program ) = 18 [pid 6962] memfd_create("syzkaller", 0) = 3 [pid 6962] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 175.083827][ T5839] bcachefs (loop2): marking filesystem clean [ 175.146530][ T5839] bcachefs (loop2): shutdown complete [ 175.959696][ T6774] loop2: detected capacity change from 0 to 32768 [ 176.089100][ T6774] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 176.089127][ T6774] allowing incompatible features above 0.0: (unknown version) [ 176.089140][ T6774] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 176.089167][ T6774] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 176.089530][ T6774] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 176.089785][ T6774] bcachefs (loop2): Version upgrade required: [ 176.089785][ T6774] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 176.089785][ T6774] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 176.089785][ T6774] 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,check_rebalance_work,set_fs_needs_rebalance [ 176.109110][ T6774] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 176.109138][ T6774] size != 0, deleting [ 176.110758][ T6774] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 176.114053][ T6774] bcachefs (loop2): check_topology... done [ 176.115502][ T6774] bcachefs (loop2): accounting_read... done [ 176.190724][ T6774] bcachefs (loop2): alloc_read... done [ 176.191685][ T6774] bcachefs (loop2): snapshots_read... done [ 176.192738][ T6774] bcachefs (loop2): check_allocations... [ 176.194713][ T6774] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 176.194733][ T6774] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 176.196740][ T6774] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 176.196759][ T6774] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 176.198178][ T6774] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 176.198195][ T6774] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 176.201320][ T6774] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 176.201340][ T6774] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 6962] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6962] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6962] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 176.204266][ T6774] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 176.204284][ T6774] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 176.205244][ T6774] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.205373][ T6774] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6962] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6962] close(3) = 0 [pid 6962] close(4) = 0 [pid 6962] mkdir("./file1", 0777) = 0 [ 176.205927][ T6774] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.206034][ T6774] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 176.206438][ T6774] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.206545][ T6774] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 176.206745][ T6774] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.206856][ T6774] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 176.207081][ T6774] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.207185][ T6774] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 176.207384][ T6774] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.207487][ T6774] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 176.207685][ T6774] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.207793][ T6774] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 176.208033][ T6774] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 176.208136][ T6774] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 176.208336][ T6774] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 176.208465][ T6774] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 176.208666][ T6774] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 176.208774][ T6774] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 176.209010][ T6774] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 176.209026][ T6774] Ratelimiting new instances of previous error [ 176.209155][ T6774] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 176.209172][ T6774] Ratelimiting new instances of previous error [ 176.223919][ T6774] done [ 176.226524][ T6774] bcachefs (loop2): going read-write [ 176.232405][ T6774] bcachefs (loop2): journal_replay... done [ 176.260612][ T6774] bcachefs (loop2): check_alloc_info... [ 176.262421][ T6774] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 176.262439][ T6774] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 176.262451][ T6774] gen 0 oldest_gen 0 data_type need_discard [ 176.262462][ T6774] journal_seq_nonempty 6 [ 176.262474][ T6774] journal_seq_empty 0 [ 176.262484][ T6774] need_discard 1 [ 176.262494][ T6774] need_inc_gen 1 [ 176.262505][ T6774] dirty_sectors 0 [ 176.262512][ T6774] stripe_sectors 0 [ 176.262520][ T6774] cached_sectors 0 [ 176.262536][ T6774] stripe 0 [ 176.262546][ T6774] stripe_redundancy 0 [ 176.262555][ T6774] io_time[READ] 1 [ 176.262565][ T6774] io_time[WRITE] 768 [ 176.262576][ T6774] fragmentation 0 [ 176.262585][ T6774] bp_start 8 [ 176.262595][ T6774] , fixing [ 176.285186][ T6774] done [ 176.289588][ T6774] bcachefs (loop2): check_lrus... done [ 176.290607][ T6774] bcachefs (loop2): check_btree_backpointers... done [ 176.291988][ T6774] bcachefs (loop2): check_backpointers_to_extents... done [ 176.297054][ T6774] bcachefs (loop2): check_extents_to_backpointers... [ 176.298418][ T6774] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 176.301749][ T6774] done [ 176.302484][ T6774] bcachefs (loop2): check_alloc_to_lru_refs... [ 176.304903][ T6774] bcachefs (loop2): missing fragmentation lru entry [ 176.304921][ T6774] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 176.304934][ T6774] gen 0 oldest_gen 0 data_type user [ 176.304945][ T6774] journal_seq_nonempty 5 [ 176.304955][ T6774] journal_seq_empty 134217728 [ 176.304965][ T6774] need_discard 1 [ 176.304975][ T6774] need_inc_gen 1 [ 176.304985][ T6774] dirty_sectors 16 ** 1 printk messages dropped ** [ 176.305007][ T6774] cached_sectors 0 ** 5 printk messages dropped ** [ 176.305065][ T6774] bp_start 7 ** 5 printk messages dropped ** [ 176.314612][ T6774] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 7 printk messages dropped ** [ 176.332560][ T6774] inum: 4098:4294967295 ** 10 printk messages dropped ** [ 176.332669][ T6774] bi_mtime=2780562352 [pid 6962] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6962] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6962] chdir("./file1") = 0 [pid 6962] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6962] ioctl(4, LOOP_CLR_FD) = 0 [pid 6962] close(4) = 0 [pid 6962] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6962] exit_group(0) = ? [pid 6962] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6962, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=34 /* 0.34 s */} --- [pid 5839] umount2("./63", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./63", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 ** 6 printk messages dropped ** [ 176.332734][ T6774] bi_data_checksum=0 [ 176.332744][ T6774] bi_compression=0 [ 176.332753][ T6774] bi_project=0 [ 176.332762][ T6774] bi_background_compression=0 [ 176.332774][ T6774] bi_data_replicas=0 [ 176.332784][ T6774] bi_promote_target=0 [ 176.332793][ T6774] bi_foreground_target=64 [ 176.332801][ T6774] bi_background_target=1 [ 176.332812][ T6774] bi_erasure_code=0 [ 176.332821][ T6774] bi_fields_set=0 [ 176.332831][ T6774] bi_dir=0 [ 176.332839][ T6774] bi_dir_offset=32 [ 176.332850][ T6774] bi_subvol=0 [ 176.332858][ T6774] bi_parent_subvol=0 [ 176.332867][ T6774] bi_nocow=0 [ 176.332876][ T6774] bi_depth=0 [ 176.332886][ T6774] bi_inodes_32bit=0 [ 176.332895][ T6774] bi_casefold=0, fixing [ 176.334466][ T6774] done [ 176.335217][ T6774] bcachefs (loop2): check_extents... done [ 176.337253][ T6774] bcachefs (loop2): check_indirect_extents... done [ 176.338080][ T6774] bcachefs (loop2): check_dirents... [ 176.344161][ T6774] bcachefs (loop2): directory with missing backpointer [ 176.344179][ T6774] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 176.344195][ T6774] inum: 4098:4294967295 [ 176.344205][ T6774] mode=40755 [ 176.344215][ T6774] flags=(11300000) [ 176.344224][ T6774] journal_seq=22 [ 176.344233][ T6774] hash_seed=ece93825deac2443 [ 176.344243][ T6774] hash_type=siphash [ 176.344253][ T6774] bi_size=0 [ 176.344262][ T6774] bi_sectors=0 [ 176.344271][ T6774] bi_version=0 [ 176.344281][ T6774] bi_atime=2770562249 [ 176.344291][ T6774] bi_ctime=2780562352 [ 176.344300][ T6774] bi_mtime=2780562352 [ 176.344312][ T6774] bi_otime=2770562249 [ 176.344321][ T6774] bi_uid=0 [ 176.344330][ T6774] bi_gid=0 [ 176.344340][ T6774] bi_nlink=0 [ 176.344349][ T6774] bi_generation=0 [ 176.344358][ T6774] bi_dev=0 [ 176.344367][ T6774] bi_data_checksum=0 [ 176.344377][ T6774] bi_compression=0 [ 176.344386][ T6774] bi_project=0 [ 176.344395][ T6774] bi_background_compression=0 [ 176.344406][ T6774] bi_data_replicas=0 [ 176.344415][ T6774] bi_promote_target=0 [ 176.344425][ T6774] bi_foreground_target=64 [ 176.344436][ T6774] bi_background_target=1 [ 176.344445][ T6774] bi_erasure_code=0 [ 176.344455][ T6774] bi_fields_set=0 [ 176.344464][ T6774] bi_dir=0 [ 176.344473][ T6774] bi_dir_offset=0 [ 176.344483][ T6774] bi_subvol=0 [ 176.344493][ T6774] bi_parent_subvol=0 [ 176.344502][ T6774] bi_nocow=0 [ 176.344511][ T6774] bi_depth=0 [ 176.344522][ T6774] bi_inodes_32bit=0 [ 176.344531][ T6774] bi_casefold=0, fixing [ 176.346711][ T6774] done [ 176.347967][ T6774] bcachefs (loop2): check_xattrs... done [ 176.349801][ T6774] bcachefs (loop2): check_root... done [ 176.353454][ T6774] bcachefs (loop2): check_unreachable_inodes... done [ 176.355043][ T6774] bcachefs (loop2): check_subvolume_structure... done [ 176.356710][ T6774] bcachefs (loop2): check_directory_structure... done [ 176.357764][ T6774] bcachefs (loop2): check_nlinks... [ 176.359025][ T6774] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 176.360511][ T6774] done [ 176.361210][ T6774] bcachefs (loop2): check_rebalance_work... done [ 176.362447][ T6774] bcachefs (loop2): resume_logged_ops... done [ 176.363253][ T6774] bcachefs (loop2): delete_dead_inodes... done [ 176.372884][ T6774] bcachefs (loop2): set_fs_needs_rebalance... [ 176.380711][ T6783] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 176.380735][ T6783] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 176.382284][ T6774] done [ 176.383519][ T6774] bcachefs (loop2): check_extents_to_backpointers... [ 176.384475][ T6774] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 176.388227][ T6774] done [ 176.412491][ T6774] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 176.412519][ T6774] bcachefs (loop2): check_alloc_info... done [ 176.419705][ T6774] bcachefs (loop2): check_lrus... done [pid 5839] umount2("./63/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./63/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./63/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./63/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 176.420802][ T6774] bcachefs (loop2): check_btree_backpointers... done [ 176.422438][ T6774] bcachefs (loop2): check_backpointers_to_extents... done [ 176.424321][ T6774] bcachefs (loop2): check_extents_to_backpointers... done [ 176.429735][ T6774] bcachefs (loop2): check_alloc_to_lru_refs... done [ 176.432959][ T6774] bcachefs (loop2): bucket_gens_init... done [ 176.435225][ T6774] bcachefs (loop2): check_snapshot_trees... done [ 176.440360][ T6774] bcachefs (loop2): check_snapshots... done [ 176.441182][ T6774] bcachefs (loop2): check_subvols... done [pid 5839] openat(AT_FDCWD, "./63/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./63/file1") = 0 [pid 5839] umount2("./63/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./63/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./63/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./63") = 0 [pid 5839] mkdir("./64", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 176.441973][ T6774] bcachefs (loop2): check_subvol_children... done [ 176.442650][ T6774] bcachefs (loop2): delete_dead_snapshots... done [ 176.443838][ T6774] bcachefs (loop2): check_inodes... done [ 176.450420][ T6774] bcachefs (loop2): check_extents... done [ 176.452219][ T6774] bcachefs (loop2): check_indirect_extents... done [ 176.452966][ T6774] bcachefs (loop2): check_dirents... done [ 176.455141][ T6774] bcachefs (loop2): check_xattrs... done [ 176.460265][ T6774] bcachefs (loop2): check_root... done [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 6973 attached , child_tidptr=0x5555901c6750) = 6973 [pid 6973] set_robust_list(0x5555901c6760, 24) = 0 [pid 6973] chdir("./64") = 0 [ 176.461045][ T6774] bcachefs (loop2): check_unreachable_inodes... done [ 176.461922][ T6774] bcachefs (loop2): check_subvolume_structure... done [ 176.462678][ T6774] bcachefs (loop2): check_directory_structure... done [ 176.464577][ T6774] bcachefs (loop2): check_nlinks... done [ 176.470311][ T6774] bcachefs (loop2): check_rebalance_work... done [ 176.471144][ T6774] bcachefs (loop2): resume_logged_ops... done [ 176.471918][ T6774] bcachefs (loop2): delete_dead_inodes... done [ 176.472678][ T6774] bcachefs (loop2): set_fs_needs_rebalance... done [pid 6973] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6973] setpgid(0, 0) = 0 [pid 6973] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6973] write(3, "1000", 4) = 4 [pid 6973] close(3) = 0 [pid 6973] symlink("/dev/binderfs", "./binderfs") = 0 [ 176.480601][ T6774] bcachefs (loop2): done starting filesystem [ 176.560312][ T5839] bcachefs (loop2): shutting down [ 176.560333][ T5839] bcachefs (loop2): going read-only [ 176.560362][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 176.602191][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 176.605779][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 176.606605][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [pid 6973] write(1, "executing program\n", 18executing program ) = 18 [pid 6973] memfd_create("syzkaller", 0) = 3 [pid 6973] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 176.608407][ T5839] bcachefs (loop2): marking filesystem clean [ 176.673092][ T5839] bcachefs (loop2): shutdown complete [ 177.497437][ T6786] loop2: detected capacity change from 0 to 32768 [ 177.637950][ T6786] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 177.637978][ T6786] allowing incompatible features above 0.0: (unknown version) [ 177.637992][ T6786] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 177.638020][ T6786] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 177.638145][ T6786] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 177.638386][ T6786] bcachefs (loop2): Version upgrade required: [ 177.638386][ T6786] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 177.638386][ T6786] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 177.638386][ T6786] 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,check_rebalance_work,set_fs_needs_rebalance [ 177.657908][ T6786] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 177.657935][ T6786] size != 0, deleting [ 177.659110][ T6786] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 177.663403][ T6786] bcachefs (loop2): check_topology... done [ 177.664916][ T6786] bcachefs (loop2): accounting_read... done [ 177.740891][ T6786] bcachefs (loop2): alloc_read... done [ 177.741850][ T6786] bcachefs (loop2): snapshots_read... done [ 177.742729][ T6786] bcachefs (loop2): check_allocations... [ 177.745262][ T6786] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 177.745282][ T6786] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 177.747358][ T6786] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 177.747376][ T6786] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 177.748740][ T6786] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 177.748758][ T6786] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 177.751468][ T6786] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 177.751488][ T6786] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 6973] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6973] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6973] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6973] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6973] close(3) = 0 [pid 6973] close(4) = 0 [ 177.754033][ T6786] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 177.754052][ T6786] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 177.755491][ T6786] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.755616][ T6786] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.756176][ T6786] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 6973] mkdir("./file1", 0777) = 0 [ 177.756285][ T6786] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.756694][ T6786] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.756802][ T6786] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.757004][ T6786] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.757121][ T6786] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.757317][ T6786] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.757421][ T6786] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.757619][ T6786] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.757733][ T6786] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.757934][ T6786] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.758040][ T6786] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 177.758237][ T6786] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 177.758341][ T6786] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 177.758538][ T6786] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 177.758645][ T6786] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 177.758856][ T6786] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 177.758961][ T6786] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 177.759273][ T6786] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 177.759293][ T6786] Ratelimiting new instances of previous error [ 177.759427][ T6786] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 177.759443][ T6786] Ratelimiting new instances of previous error [ 177.773593][ T6786] done [ 177.775781][ T6786] bcachefs (loop2): going read-write [ 177.780822][ T6786] bcachefs (loop2): journal_replay... done [ 177.809672][ T6786] bcachefs (loop2): check_alloc_info... [ 177.811463][ T6786] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 177.811484][ T6786] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 177.811495][ T6786] gen 0 oldest_gen 0 data_type need_discard [ 177.811508][ T6786] journal_seq_nonempty 6 [ 177.811518][ T6786] journal_seq_empty 0 [ 177.811528][ T6786] need_discard 1 [ 177.811538][ T6786] need_inc_gen 1 [ 177.811549][ T6786] dirty_sectors 0 [ 177.811559][ T6786] stripe_sectors 0 [ 177.811569][ T6786] cached_sectors 0 [ 177.811579][ T6786] stripe 0 [ 177.811590][ T6786] stripe_redundancy 0 [ 177.811600][ T6786] io_time[READ] 1 [ 177.811610][ T6786] io_time[WRITE] 768 [ 177.811621][ T6786] fragmentation 0 [ 177.811630][ T6786] bp_start 8 [ 177.811639][ T6786] , fixing [ 177.828522][ T6786] done [ 177.833275][ T6786] bcachefs (loop2): check_lrus... done [ 177.834810][ T6786] bcachefs (loop2): check_btree_backpointers... done [ 177.836077][ T6786] bcachefs (loop2): check_backpointers_to_extents... done [ 177.840658][ T6786] bcachefs (loop2): check_extents_to_backpointers... ** 1 printk messages dropped ** [ 177.846091][ T6786] done [ 177.846891][ T6786] bcachefs (loop2): check_alloc_to_lru_refs... [ 177.848808][ T6786] bcachefs (loop2): missing fragmentation lru entry ** 2 printk messages dropped ** [ 177.848849][ T6786] journal_seq_nonempty 5 ** 3 printk messages dropped ** [ 177.848891][ T6786] dirty_sectors 16 [ 177.848901][ T6786] stripe_sectors 1802251 [ 177.848911][ T6786] cached_sectors 0 ** 1 printk messages dropped ** [ 177.848931][ T6786] stripe_redundancy 0 ** 2 printk messages dropped ** [ 177.848960][ T6786] fragmentation 0 ** 1 printk messages dropped ** [ 177.848981][ T6786] , fixing ** 4 printk messages dropped ** [ 177.860895][ T6786] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 1 printk messages dropped ** [ 177.871801][ T6786] done ** 3 printk messages dropped ** [ 177.875817][ T6786] bcachefs (loop2): check_inodes... ** 1 printk messages dropped ** [ 177.877416][ T6786] inum: 4098:4294967295 ** 10 printk messages dropped ** [ 177.877524][ T6786] bi_mtime=2780562352 ** 4 printk messages dropped ** [pid 6973] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6973] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6973] chdir("./file1") = 0 [pid 6973] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6973] ioctl(4, LOOP_CLR_FD) = 0 [pid 6973] close(4) = 0 [pid 6973] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6973] exit_group(0) = ? [pid 6973] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6973, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=45 /* 0.45 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./64", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 177.877569][ T6786] bi_generation=0 [ 177.877578][ T6786] bi_dev=0 [ 177.877586][ T6786] bi_data_checksum=0 [ 177.877596][ T6786] bi_compression=0 [ 177.877605][ T6786] bi_project=0 [ 177.877614][ T6786] bi_background_compression=0 [ 177.877624][ T6786] bi_data_replicas=0 [ 177.877633][ T6786] bi_promote_target=0 [ 177.877642][ T6786] bi_foreground_target=64 [ 177.877652][ T6786] bi_background_target=1 [ 177.877663][ T6786] bi_erasure_code=0 [ 177.877672][ T6786] bi_fields_set=0 [pid 5839] openat(AT_FDCWD, "./64", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 177.877681][ T6786] bi_dir=0 [ 177.877690][ T6786] bi_dir_offset=32 [ 177.877705][ T6786] bi_subvol=0 [ 177.877716][ T6786] bi_parent_subvol=0 [ 177.877725][ T6786] bi_nocow=0 [ 177.877734][ T6786] bi_depth=0 [ 177.877743][ T6786] bi_inodes_32bit=0 [ 177.877752][ T6786] bi_casefold=0, fixing [ 177.880711][ T6786] done [ 177.881361][ T6786] bcachefs (loop2): check_extents... done [ 177.883938][ T6786] bcachefs (loop2): check_indirect_extents... done [ 177.884661][ T6786] bcachefs (loop2): check_dirents... [ 177.886406][ T6786] bcachefs (loop2): directory with missing backpointer [ 177.886423][ T6786] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 177.886437][ T6786] inum: 4098:4294967295 [ 177.886447][ T6786] mode=40755 [ 177.886457][ T6786] flags=(11300000) [ 177.886466][ T6786] journal_seq=22 [ 177.886476][ T6786] hash_seed=ece93825deac2443 [ 177.886485][ T6786] hash_type=siphash [ 177.886495][ T6786] bi_size=0 [ 177.886504][ T6786] bi_sectors=0 [ 177.886513][ T6786] bi_version=0 [ 177.886523][ T6786] bi_atime=2770562249 [ 177.886533][ T6786] bi_ctime=2780562352 [ 177.886542][ T6786] bi_mtime=2780562352 [ 177.886552][ T6786] bi_otime=2770562249 [ 177.886562][ T6786] bi_uid=0 [ 177.886571][ T6786] bi_gid=0 [ 177.886580][ T6786] bi_nlink=0 [ 177.886589][ T6786] bi_generation=0 [ 177.886598][ T6786] bi_dev=0 [ 177.886607][ T6786] bi_data_checksum=0 [ 177.886619][ T6786] bi_compression=0 [ 177.886628][ T6786] bi_project=0 [ 177.886637][ T6786] bi_background_compression=0 [ 177.886648][ T6786] bi_data_replicas=0 [ 177.886658][ T6786] bi_promote_target=0 [ 177.886667][ T6786] bi_foreground_target=64 [ 177.890479][ T6786] bi_background_target=1 [ 177.890492][ T6786] bi_erasure_code=0 [ 177.890502][ T6786] bi_fields_set=0 [ 177.890511][ T6786] bi_dir=0 [ 177.890520][ T6786] bi_dir_offset=0 [ 177.890529][ T6786] bi_subvol=0 [ 177.890538][ T6786] bi_parent_subvol=0 [ 177.890547][ T6786] bi_nocow=0 [ 177.890556][ T6786] bi_depth=0 [ 177.890565][ T6786] bi_inodes_32bit=0 [ 177.890574][ T6786] bi_casefold=0, fixing [ 177.894597][ T6786] done [ 177.895305][ T6786] bcachefs (loop2): check_xattrs... done [ 177.896562][ T6786] bcachefs (loop2): check_root... done [ 177.898167][ T6786] bcachefs (loop2): check_unreachable_inodes... done [ 177.899189][ T6786] bcachefs (loop2): check_subvolume_structure... done [ 177.900540][ T6786] bcachefs (loop2): check_directory_structure... done [ 177.901313][ T6786] bcachefs (loop2): check_nlinks... [ 177.902020][ T6786] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 177.903123][ T6786] done [ 177.903801][ T6786] bcachefs (loop2): check_rebalance_work... done [ 177.904989][ T6786] bcachefs (loop2): resume_logged_ops... done [ 177.905827][ T6786] bcachefs (loop2): delete_dead_inodes... done [ 177.915270][ T6786] bcachefs (loop2): set_fs_needs_rebalance... [ 177.923575][ T6795] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 177.923598][ T6795] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 177.927319][ T6786] done [ 177.927920][ T6786] bcachefs (loop2): check_extents_to_backpointers... [ 177.932783][ T6786] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 177.935315][ T6786] done [ 177.945434][ T6786] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 177.945458][ T6786] bcachefs (loop2): check_alloc_info... done [pid 5839] umount2("./64/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./64/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 177.950519][ T6786] bcachefs (loop2): check_lrus... done [ 177.952156][ T6786] bcachefs (loop2): check_btree_backpointers... done [ 177.953464][ T6786] bcachefs (loop2): check_backpointers_to_extents... done [ 177.954926][ T6786] bcachefs (loop2): check_extents_to_backpointers... done [ 177.956581][ T6786] bcachefs (loop2): check_alloc_to_lru_refs... done [ 177.958953][ T6786] bcachefs (loop2): bucket_gens_init... done [ 177.962446][ T6786] bcachefs (loop2): check_snapshot_trees... done [ 177.963915][ T6786] bcachefs (loop2): check_snapshots... done [pid 5839] newfstatat(AT_FDCWD, "./64/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./64/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./64/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 177.964802][ T6786] bcachefs (loop2): check_subvols... done [ 177.965668][ T6786] bcachefs (loop2): check_subvol_children... done [ 177.966652][ T6786] bcachefs (loop2): delete_dead_snapshots... done [ 177.967506][ T6786] bcachefs (loop2): check_inodes... done [ 177.968763][ T6786] bcachefs (loop2): check_extents... done [ 177.971458][ T6786] bcachefs (loop2): check_indirect_extents... done [ 177.972230][ T6786] bcachefs (loop2): check_dirents... done [ 177.974270][ T6786] bcachefs (loop2): check_xattrs... done [ 177.975237][ T6786] bcachefs (loop2): check_root... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./64/file1") = 0 [pid 5839] umount2("./64/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./64/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./64/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./64") = 0 [pid 5839] mkdir("./65", 0777) = 0 [ 177.976079][ T6786] bcachefs (loop2): check_unreachable_inodes... done [ 177.977043][ T6786] bcachefs (loop2): check_subvolume_structure... done [ 177.977835][ T6786] bcachefs (loop2): check_directory_structure... done [ 177.978627][ T6786] bcachefs (loop2): check_nlinks... done [ 177.981022][ T6786] bcachefs (loop2): check_rebalance_work... done [ 177.981860][ T6786] bcachefs (loop2): resume_logged_ops... done [ 177.982628][ T6786] bcachefs (loop2): delete_dead_inodes... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6984 ./strace-static-x86_64: Process 6984 attached [pid 6984] set_robust_list(0x5555901c6760, 24) = 0 [pid 6984] chdir("./65") = 0 [pid 6984] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6984] setpgid(0, 0) = 0 [pid 6984] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6984] write(3, "1000", 4) = 4 [pid 6984] close(3) = 0 [pid 6984] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 6984] write(1, "executing program\n", 18) = 18 [pid 6984] memfd_create("syzkaller", 0) = 3 [ 177.983457][ T6786] bcachefs (loop2): set_fs_needs_rebalance... done [ 177.987558][ T6786] bcachefs (loop2): done starting filesystem [ 178.048067][ T5839] bcachefs (loop2): shutting down [ 178.048087][ T5839] bcachefs (loop2): going read-only [ 178.048117][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 178.081036][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 178.082364][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 178.083403][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [pid 6984] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 178.085229][ T5839] bcachefs (loop2): marking filesystem clean [ 178.144343][ T5839] bcachefs (loop2): shutdown complete [ 178.926156][ T6797] loop2: detected capacity change from 0 to 32768 [ 179.064036][ T6797] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 179.064063][ T6797] allowing incompatible features above 0.0: (unknown version) [ 179.064078][ T6797] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 179.064105][ T6797] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 179.064244][ T6797] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 179.064485][ T6797] bcachefs (loop2): Version upgrade required: [ 179.064485][ T6797] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 179.064485][ T6797] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 179.064485][ T6797] 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,check_rebalance_work,set_fs_needs_rebalance [ 179.083576][ T6797] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 179.083601][ T6797] size != 0, deleting [ 179.084799][ T6797] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 179.088051][ T6797] bcachefs (loop2): check_topology... done [ 179.090411][ T6797] bcachefs (loop2): accounting_read... done [ 179.126912][ T6797] bcachefs (loop2): alloc_read... done [ 179.127921][ T6797] bcachefs (loop2): snapshots_read... done [ 179.128785][ T6797] bcachefs (loop2): check_allocations... [ 179.132295][ T6797] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 179.132319][ T6797] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 179.134326][ T6797] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 179.134344][ T6797] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [pid 6984] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 6984] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6984] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 179.135779][ T6797] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 179.135797][ T6797] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 179.137415][ T6797] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 179.137447][ T6797] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 6984] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6984] close(3) = 0 [pid 6984] close(4) = 0 [pid 6984] mkdir("./file1", 0777) = 0 [ 179.141092][ T6797] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 179.141112][ T6797] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 179.143413][ T6797] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.143542][ T6797] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.144100][ T6797] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.144226][ T6797] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.144680][ T6797] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.144789][ T6797] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.144992][ T6797] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.145098][ T6797] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.145299][ T6797] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.145406][ T6797] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.145618][ T6797] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.145722][ T6797] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.145928][ T6797] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.146036][ T6797] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 179.146237][ T6797] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 179.146341][ T6797] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 179.146566][ T6797] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 179.146676][ T6797] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 179.146898][ T6797] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 179.147008][ T6797] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 179.147242][ T6797] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 179.147258][ T6797] Ratelimiting new instances of previous error [ 179.147390][ T6797] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 179.147407][ T6797] Ratelimiting new instances of previous error [ 179.161701][ T6797] done [ 179.163749][ T6797] bcachefs (loop2): going read-write [ 179.170790][ T6797] bcachefs (loop2): journal_replay... done [ 179.197811][ T6797] bcachefs (loop2): check_alloc_info... [ 179.199949][ T6797] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 179.199968][ T6797] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 179.199981][ T6797] gen 0 oldest_gen 0 data_type need_discard [ 179.199993][ T6797] journal_seq_nonempty 6 [ 179.200003][ T6797] journal_seq_empty 0 [ 179.200013][ T6797] need_discard 1 [ 179.200023][ T6797] need_inc_gen 1 [ 179.200034][ T6797] dirty_sectors 0 [ 179.200043][ T6797] stripe_sectors 0 [ 179.200053][ T6797] cached_sectors 0 ** 2 printk messages dropped ** [ 179.200085][ T6797] io_time[READ] 1 ** 7 printk messages dropped ** [ 179.224851][ T6797] bcachefs (loop2): check_backpointers_to_extents... done ** 5 printk messages dropped ** [ 179.235711][ T6797] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 179.235723][ T6797] gen 0 oldest_gen 0 data_type user [ 179.235734][ T6797] journal_seq_nonempty 5 ** 2 printk messages dropped ** [ 179.235766][ T6797] need_inc_gen 1 ** 3 printk messages dropped ** [ 179.235806][ T6797] stripe 0 [ 179.235816][ T6797] stripe_redundancy 0 [ 179.235825][ T6797] io_time[READ] 1 ** 1 printk messages dropped ** [ 179.235846][ T6797] fragmentation 0 [ 179.235856][ T6797] bp_start 7 [ 179.235866][ T6797] , fixing ** 2 printk messages dropped ** [ 179.244502][ T6797] bcachefs (loop2): check_snapshot_trees... done ** 2 printk messages dropped ** [ 179.246293][ T6797] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 6 printk messages dropped ** [ 179.262938][ T6797] inum: 4098:4294967295 ** 1 printk messages dropped ** [pid 6984] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6984] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 6984] chdir("./file1") = 0 [pid 6984] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6984] ioctl(4, LOOP_CLR_FD) = 0 [pid 6984] close(4) = 0 [pid 6984] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6984] exit_group(0) = ? [pid 6984] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6984, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=38 /* 0.38 s */} --- [ 179.262959][ T6797] flags=(15300000) [ 179.262968][ T6797] journal_seq=4 ** 3 printk messages dropped ** [ 179.263007][ T6797] bi_sectors=0 ** 10 printk messages dropped ** [ 179.263113][ T6797] bi_data_checksum=0 ** 2 printk messages dropped ** [ 179.263141][ T6797] bi_background_compression=0 [ 179.263151][ T6797] bi_data_replicas=0 [ 179.263161][ T6797] bi_promote_target=0 [ 179.263171][ T6797] bi_foreground_target=64 [ 179.263180][ T6797] bi_background_target=1 [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./65", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./65", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 179.263191][ T6797] bi_erasure_code=0 [ 179.263200][ T6797] bi_fields_set=0 [ 179.263209][ T6797] bi_dir=0 [ 179.263218][ T6797] bi_dir_offset=32 [ 179.263229][ T6797] bi_subvol=0 [ 179.263239][ T6797] bi_parent_subvol=0 [ 179.263255][ T6797] bi_nocow=0 [ 179.263264][ T6797] bi_depth=0 [ 179.263275][ T6797] bi_inodes_32bit=0 [ 179.263285][ T6797] bi_casefold=0, fixing [ 179.265475][ T6797] done [ 179.266134][ T6797] bcachefs (loop2): check_extents... done [ 179.267635][ T6797] bcachefs (loop2): check_indirect_extents... done [ 179.268482][ T6797] bcachefs (loop2): check_dirents... [ 179.272486][ T6797] bcachefs (loop2): directory with missing backpointer [ 179.272504][ T6797] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 179.272519][ T6797] inum: 4098:4294967295 [ 179.272529][ T6797] mode=40755 [ 179.272540][ T6797] flags=(11300000) [ 179.272550][ T6797] journal_seq=22 [ 179.272559][ T6797] hash_seed=ece93825deac2443 [ 179.272569][ T6797] hash_type=siphash [ 179.272579][ T6797] bi_size=0 [ 179.272588][ T6797] bi_sectors=0 [ 179.272598][ T6797] bi_version=0 [ 179.272607][ T6797] bi_atime=2770562249 [ 179.272617][ T6797] bi_ctime=2780562352 [ 179.272627][ T6797] bi_mtime=2780562352 [ 179.272638][ T6797] bi_otime=2770562249 [ 179.272648][ T6797] bi_uid=0 [ 179.272657][ T6797] bi_gid=0 [ 179.272666][ T6797] bi_nlink=0 [ 179.272675][ T6797] bi_generation=0 [ 179.272685][ T6797] bi_dev=0 [ 179.272694][ T6797] bi_data_checksum=0 [ 179.272704][ T6797] bi_compression=0 [ 179.272713][ T6797] bi_project=0 [ 179.272722][ T6797] bi_background_compression=0 [ 179.272733][ T6797] bi_data_replicas=0 [ 179.272742][ T6797] bi_promote_target=0 [ 179.272752][ T6797] bi_foreground_target=64 [ 179.272764][ T6797] bi_background_target=1 [ 179.272774][ T6797] bi_erasure_code=0 [ 179.272783][ T6797] bi_fields_set=0 [ 179.272793][ T6797] bi_dir=0 [ 179.272802][ T6797] bi_dir_offset=0 [ 179.272811][ T6797] bi_subvol=0 [ 179.272821][ T6797] bi_parent_subvol=0 [ 179.272830][ T6797] bi_nocow=0 [ 179.272839][ T6797] bi_depth=0 [ 179.272849][ T6797] bi_inodes_32bit=0 [ 179.272858][ T6797] bi_casefold=0, fixing [ 179.279055][ T6797] done [ 179.280222][ T6797] bcachefs (loop2): check_xattrs... done [ 179.282937][ T6797] bcachefs (loop2): check_root... done [ 179.284307][ T6797] bcachefs (loop2): check_unreachable_inodes... done [ 179.285363][ T6797] bcachefs (loop2): check_subvolume_structure... done [ 179.286154][ T6797] bcachefs (loop2): check_directory_structure... done [ 179.287376][ T6797] bcachefs (loop2): check_nlinks... [ 179.288087][ T6797] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 179.289084][ T6797] done [ 179.290510][ T6797] bcachefs (loop2): check_rebalance_work... done [ 179.292277][ T6797] bcachefs (loop2): resume_logged_ops... done [ 179.293098][ T6797] bcachefs (loop2): delete_dead_inodes... done [ 179.301502][ T6797] bcachefs (loop2): set_fs_needs_rebalance... [ 179.311617][ T6806] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 179.311640][ T6806] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 179.315063][ T6797] done [ 179.315710][ T6797] bcachefs (loop2): check_extents_to_backpointers... [ 179.316703][ T6797] bcachefs (loop2): scanning for missing backpointers in 3/128 buckets [ 179.322351][ T6797] done [ 179.331795][ T6797] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 179.331818][ T6797] bcachefs (loop2): check_alloc_info... done [ 179.336487][ T6797] bcachefs (loop2): check_lrus... done [ 179.337645][ T6797] bcachefs (loop2): check_btree_backpointers... done [ 179.338915][ T6797] bcachefs (loop2): check_backpointers_to_extents... done [ 179.341770][ T6797] bcachefs (loop2): check_extents_to_backpointers... done [ 179.343568][ T6797] bcachefs (loop2): check_alloc_to_lru_refs... done [ 179.345934][ T6797] bcachefs (loop2): bucket_gens_init... done [ 179.347928][ T6797] bcachefs (loop2): check_snapshot_trees... done [ 179.349152][ T6797] bcachefs (loop2): check_snapshots... done [ 179.351084][ T6797] bcachefs (loop2): check_subvols... done [ 179.352493][ T6797] bcachefs (loop2): check_subvol_children... done [ 179.353250][ T6797] bcachefs (loop2): delete_dead_snapshots... done [ 179.353990][ T6797] bcachefs (loop2): check_inodes... done [ 179.355211][ T6797] bcachefs (loop2): check_extents... done [ 179.356694][ T6797] bcachefs (loop2): check_indirect_extents... done [ 179.357458][ T6797] bcachefs (loop2): check_dirents... done [pid 5839] umount2("./65/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./65/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./65/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./65/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./65/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./65/file1") = 0 [pid 5839] umount2("./65/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./65/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./65/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [ 179.359003][ T6797] bcachefs (loop2): check_xattrs... done [ 179.360829][ T6797] bcachefs (loop2): check_root... done [ 179.362160][ T6797] bcachefs (loop2): check_unreachable_inodes... done [ 179.363680][ T6797] bcachefs (loop2): check_subvolume_structure... done [ 179.364503][ T6797] bcachefs (loop2): check_directory_structure... done [ 179.365270][ T6797] bcachefs (loop2): check_nlinks... done [ 179.366466][ T6797] bcachefs (loop2): check_rebalance_work... done [ 179.367409][ T6797] bcachefs (loop2): resume_logged_ops... done [pid 5839] rmdir("./65") = 0 [pid 5839] mkdir("./66", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 6995 ./strace-static-x86_64: Process 6995 attached [pid 6995] set_robust_list(0x5555901c6760, 24) = 0 [ 179.368130][ T6797] bcachefs (loop2): delete_dead_inodes... done [ 179.368929][ T6797] bcachefs (loop2): set_fs_needs_rebalance... done [ 179.373964][ T6797] bcachefs (loop2): done starting filesystem [ 179.477718][ T5839] bcachefs (loop2): shutting down [ 179.477739][ T5839] bcachefs (loop2): going read-only [ 179.477767][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 179.520433][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 179.521404][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 31 [pid 6995] chdir("./66") = 0 executing program [pid 6995] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 6995] setpgid(0, 0) = 0 [pid 6995] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 6995] write(3, "1000", 4) = 4 [pid 6995] close(3) = 0 [pid 6995] symlink("/dev/binderfs", "./binderfs") = 0 [pid 6995] write(1, "executing program\n", 18) = 18 [pid 6995] memfd_create("syzkaller", 0) = 3 [pid 6995] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 179.522362][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 32 [ 179.524163][ T5839] bcachefs (loop2): marking filesystem clean [ 179.564245][ T5839] bcachefs (loop2): shutdown complete [ 180.374119][ T6808] loop2: detected capacity change from 0 to 32768 [ 180.498010][ T6808] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 180.498039][ T6808] allowing incompatible features above 0.0: (unknown version) [ 180.498054][ T6808] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 180.498082][ T6808] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 180.498226][ T6808] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 180.498471][ T6808] bcachefs (loop2): Version upgrade required: [ 180.498471][ T6808] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 180.498471][ T6808] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 180.498471][ T6808] 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,check_rebalance_work,set_fs_needs_rebalance [ 180.518691][ T6808] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 180.518718][ T6808] size != 0, deleting [ 180.521628][ T6808] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 180.524945][ T6808] bcachefs (loop2): check_topology... done [ 180.526424][ T6808] bcachefs (loop2): accounting_read... done [ 180.552788][ T6808] bcachefs (loop2): alloc_read... done [ 180.553699][ T6808] bcachefs (loop2): snapshots_read... done [ 180.554570][ T6808] bcachefs (loop2): check_allocations... [ 180.556508][ T6808] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 180.556528][ T6808] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 180.558404][ T6808] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 180.558422][ T6808] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 180.561406][ T6808] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 180.561427][ T6808] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 180.563526][ T6808] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 6995] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 180.563544][ T6808] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 180.566123][ T6808] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 180.566143][ T6808] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 180.567106][ T6808] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.567232][ T6808] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 6995] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 6995] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6995] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 6995] close(3) = 0 [pid 6995] close(4) = 0 [pid 6995] mkdir("./file1", 0777) = 0 [ 180.567809][ T6808] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.567919][ T6808] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 180.568364][ T6808] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.568478][ T6808] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 180.568688][ T6808] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.568805][ T6808] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 180.569008][ T6808] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.569114][ T6808] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 180.569661][ T6808] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.569775][ T6808] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 180.569985][ T6808] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.570091][ T6808] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 180.570289][ T6808] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 180.570395][ T6808] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 180.570615][ T6808] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 180.570722][ T6808] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 180.570930][ T6808] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 180.571038][ T6808] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 180.571268][ T6808] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 180.571285][ T6808] Ratelimiting new instances of previous error [ 180.571420][ T6808] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 180.571443][ T6808] Ratelimiting new instances of previous error [ 180.585258][ T6808] done [ 180.587723][ T6808] bcachefs (loop2): going read-write [ 180.593919][ T6808] bcachefs (loop2): journal_replay... done [ 180.620875][ T6808] bcachefs (loop2): check_alloc_info... [ 180.622685][ T6808] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 180.622703][ T6808] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 180.622715][ T6808] gen 0 oldest_gen 0 data_type need_discard [ 180.622728][ T6808] journal_seq_nonempty 6 [ 180.622738][ T6808] journal_seq_empty 0 [ 180.622748][ T6808] need_discard 1 [ 180.622758][ T6808] need_inc_gen 1 [ 180.622768][ T6808] dirty_sectors 0 [ 180.622778][ T6808] stripe_sectors 0 [ 180.622788][ T6808] cached_sectors 0 [ 180.622798][ T6808] stripe 0 [ 180.622808][ T6808] stripe_redundancy 0 [ 180.622820][ T6808] io_time[READ] 1 [ 180.622830][ T6808] io_time[WRITE] 768 [ 180.622840][ T6808] fragmentation 0 [ 180.622850][ T6808] bp_start 8 [ 180.622860][ T6808] , fixing [ 180.638777][ T6808] done [ 180.642674][ T6808] bcachefs (loop2): check_lrus... done [ 180.646768][ T6808] bcachefs (loop2): check_btree_backpointers... done [ 180.648086][ T6808] bcachefs (loop2): check_backpointers_to_extents... done [ 180.653520][ T6808] bcachefs (loop2): check_extents_to_backpointers... [ 180.654893][ T6808] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 180.656296][ T6808] done [ 180.657127][ T6808] bcachefs (loop2): check_alloc_to_lru_refs... [ 180.658999][ T6808] bcachefs (loop2): missing fragmentation lru entry [ 180.659016][ T6808] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 180.659028][ T6808] gen 0 oldest_gen 0 data_type user [ 180.659040][ T6808] journal_seq_nonempty 5 [ 180.659050][ T6808] journal_seq_empty 134217728 [ 180.659061][ T6808] need_discard 1 [ 180.659072][ T6808] need_inc_gen 1 [ 180.659082][ T6808] dirty_sectors 16 ** 2 printk messages dropped ** [ 180.659114][ T6808] stripe 0 ** 1 printk messages dropped ** [ 180.659134][ T6808] io_time[READ] 1 [ 180.659145][ T6808] io_time[WRITE] 512 ** 3 printk messages dropped ** [ 180.664133][ T6808] done ** 3 printk messages dropped ** [ 180.669194][ T6808] bcachefs (loop2): snapshot points to missing/incorrect tree: [pid 6995] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 6995] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 ** 5 printk messages dropped ** [ 180.684996][ T6808] bcachefs (loop2): check_inodes... ** 9 printk messages dropped ** [ 180.686160][ T6808] bi_version=0 ** 9 printk messages dropped ** [ 180.686267][ T6808] bi_data_checksum=0 ** 6 printk messages dropped ** [ 180.686337][ T6808] bi_background_target=1 [ 180.686346][ T6808] bi_erasure_code=0 [ 180.686356][ T6808] bi_fields_set=0 [ 180.686365][ T6808] bi_dir=0 [ 180.686375][ T6808] bi_dir_offset=32 [ 180.686384][ T6808] bi_subvol=0 [pid 6995] chdir("./file1") = 0 [pid 6995] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 6995] ioctl(4, LOOP_CLR_FD) = 0 [pid 6995] close(4) = 0 [pid 6995] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 6995] exit_group(0) = ? [pid 6995] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=6995, si_uid=0, si_status=0, si_utime=4 /* 0.04 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] umount2("./66", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./66", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 180.686393][ T6808] bi_parent_subvol=0 [ 180.686403][ T6808] bi_nocow=0 [ 180.686422][ T6808] bi_depth=0 [ 180.686438][ T6808] bi_inodes_32bit=0 [ 180.686448][ T6808] bi_casefold=0, fixing [ 180.688103][ T6808] done [ 180.688686][ T6808] bcachefs (loop2): check_extents... done [ 180.693013][ T6808] bcachefs (loop2): check_indirect_extents... done [ 180.693917][ T6808] bcachefs (loop2): check_dirents... [ 180.697522][ T6808] bcachefs (loop2): directory with missing backpointer [ 180.697539][ T6808] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 180.697555][ T6808] inum: 4098:4294967295 [ 180.697565][ T6808] mode=40755 [ 180.697574][ T6808] flags=(11300000) [ 180.697584][ T6808] journal_seq=22 [ 180.697593][ T6808] hash_seed=ece93825deac2443 [ 180.697604][ T6808] hash_type=siphash [ 180.697613][ T6808] bi_size=0 [ 180.697623][ T6808] bi_sectors=0 [ 180.697632][ T6808] bi_version=0 [ 180.697641][ T6808] bi_atime=2770562249 [ 180.697651][ T6808] bi_ctime=2780562352 [ 180.697661][ T6808] bi_mtime=2780562352 [ 180.697671][ T6808] bi_otime=2770562249 [ 180.697680][ T6808] bi_uid=0 [ 180.697691][ T6808] bi_gid=0 [ 180.697699][ T6808] bi_nlink=0 [ 180.697707][ T6808] bi_generation=0 [ 180.697717][ T6808] bi_dev=0 [ 180.697728][ T6808] bi_data_checksum=0 [ 180.697736][ T6808] bi_compression=0 [ 180.697746][ T6808] bi_project=0 [ 180.697756][ T6808] bi_background_compression=0 [ 180.697766][ T6808] bi_data_replicas=0 [ 180.697776][ T6808] bi_promote_target=0 [ 180.697786][ T6808] bi_foreground_target=64 [ 180.697796][ T6808] bi_background_target=1 [ 180.697805][ T6808] bi_erasure_code=0 [ 180.697815][ T6808] bi_fields_set=0 [ 180.697824][ T6808] bi_dir=0 [ 180.697833][ T6808] bi_dir_offset=0 [ 180.697843][ T6808] bi_subvol=0 [ 180.697852][ T6808] bi_parent_subvol=0 [ 180.697861][ T6808] bi_nocow=0 [ 180.697870][ T6808] bi_depth=0 [ 180.697880][ T6808] bi_inodes_32bit=0 [ 180.697889][ T6808] bi_casefold=0, fixing [ 180.703680][ T6808] done [ 180.705758][ T6808] bcachefs (loop2): check_xattrs... done [ 180.707648][ T6808] bcachefs (loop2): check_root... done [ 180.708853][ T6808] bcachefs (loop2): check_unreachable_inodes... done [ 180.710585][ T6808] bcachefs (loop2): check_subvolume_structure... done [ 180.711383][ T6808] bcachefs (loop2): check_directory_structure... done [ 180.712178][ T6808] bcachefs (loop2): check_nlinks... [ 180.712901][ T6808] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 180.714027][ T6808] done [ 180.714763][ T6808] bcachefs (loop2): check_rebalance_work... done [ 180.716454][ T6808] bcachefs (loop2): resume_logged_ops... done [ 180.717270][ T6808] bcachefs (loop2): delete_dead_inodes... done [ 180.727318][ T6808] bcachefs (loop2): set_fs_needs_rebalance... [ 180.736245][ T6817] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 180.736270][ T6817] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 180.738862][ T6808] done [ 180.740565][ T6808] bcachefs (loop2): check_extents_to_backpointers... [ 180.741534][ T6808] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 180.744697][ T6817] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 180.747634][ T6808] done [ 180.758418][ T6808] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 180.758447][ T6808] bcachefs (loop2): check_alloc_info... done [ 180.763925][ T6808] bcachefs (loop2): check_lrus... done [ 180.765130][ T6808] bcachefs (loop2): check_btree_backpointers... done [ 180.766356][ T6808] bcachefs (loop2): check_backpointers_to_extents... done [ 180.767821][ T6808] bcachefs (loop2): check_extents_to_backpointers... [ 180.768735][ T6808] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 180.771123][ T6808] done [ 180.771139][ T6808] bcachefs (loop2): check_alloc_to_lru_refs... done [ 180.774009][ T6808] bcachefs (loop2): bucket_gens_init... done [ 180.776076][ T6808] bcachefs (loop2): check_snapshot_trees... done [pid 5839] umount2("./66/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./66/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./66/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./66/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./66/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./66/file1") = 0 [ 180.777221][ T6808] bcachefs (loop2): check_snapshots... done [ 180.778055][ T6808] bcachefs (loop2): check_subvols... done [ 180.778879][ T6808] bcachefs (loop2): check_subvol_children... done [ 180.780515][ T6808] bcachefs (loop2): delete_dead_snapshots... done [ 180.781303][ T6808] bcachefs (loop2): check_inodes... done [ 180.782522][ T6808] bcachefs (loop2): check_extents... done [ 180.784418][ T6808] bcachefs (loop2): check_indirect_extents... done [ 180.785201][ T6808] bcachefs (loop2): check_dirents... done [pid 5839] umount2("./66/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./66/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./66/binderfs") = 0 [ 180.786767][ T6808] bcachefs (loop2): check_xattrs... done [ 180.787650][ T6808] bcachefs (loop2): check_root... done [ 180.788464][ T6808] bcachefs (loop2): check_unreachable_inodes... done [ 180.789998][ T6808] bcachefs (loop2): check_subvolume_structure... done [ 180.791093][ T6808] bcachefs (loop2): check_directory_structure... done [ 180.791926][ T6808] bcachefs (loop2): check_nlinks... done [ 180.793140][ T6808] bcachefs (loop2): check_rebalance_work... done [ 180.794017][ T6808] bcachefs (loop2): resume_logged_ops... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./66") = 0 [pid 5839] mkdir("./67", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 180.795389][ T6808] bcachefs (loop2): delete_dead_inodes... done [ 180.796230][ T6808] bcachefs (loop2): set_fs_needs_rebalance... done [ 180.800842][ T6808] bcachefs (loop2): done starting filesystem [ 180.863467][ T5839] bcachefs (loop2): shutting down [ 180.863486][ T5839] bcachefs (loop2): going read-only [ 180.863515][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 180.905299][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7006 ./strace-static-x86_64: Process 7006 attached [pid 7006] set_robust_list(0x5555901c6760, 24) = 0 [pid 7006] chdir("./67") = 0 [ 180.907259][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 180.908175][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 180.909346][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 180.909346][ T5152] rw journal devs: [ 180.912054][ T5839] bcachefs (loop2): marking filesystem clean [ 180.957397][ T5839] bcachefs (loop2): shutdown complete [ 181.762777][ T6819] loop2: detected capacity change from 0 to 32768 [pid 7006] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7006] setpgid(0, 0) = 0 [pid 7006] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7006] write(3, "1000", 4) = 4 [pid 7006] close(3) = 0 [pid 7006] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7006] write(1, "executing program\n", 18executing program ) = 18 [pid 7006] memfd_create("syzkaller", 0) = 3 [ 181.920612][ T6819] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 181.920639][ T6819] allowing incompatible features above 0.0: (unknown version) [ 181.920653][ T6819] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 181.920697][ T6819] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 181.920832][ T6819] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 181.921080][ T6819] bcachefs (loop2): Version upgrade required: [pid 7006] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 181.921080][ T6819] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 181.921080][ T6819] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 181.921080][ T6819] 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,check_rebalance_work,set_fs_needs_rebalance [ 181.940174][ T6819] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 181.940201][ T6819] size != 0, deleting [ 181.941863][ T6819] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 181.945197][ T6819] bcachefs (loop2): check_topology... done [ 181.946686][ T6819] bcachefs (loop2): accounting_read... done [ 181.972836][ T6819] bcachefs (loop2): alloc_read... done [ 181.973788][ T6819] bcachefs (loop2): snapshots_read... done [ 181.974646][ T6819] bcachefs (loop2): check_allocations... [ 181.976587][ T6819] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 181.976609][ T6819] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 181.978680][ T6819] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 181.978698][ T6819] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 181.981678][ T6819] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 181.981698][ T6819] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 181.983793][ T6819] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 181.983811][ T6819] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 181.986299][ T6819] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 181.986318][ T6819] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 181.987269][ T6819] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.987406][ T6819] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.988028][ T6819] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.988135][ T6819] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.988554][ T6819] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7006] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7006] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7006] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7006] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7006] close(3) = 0 [pid 7006] close(4) = 0 [pid 7006] mkdir("./file1", 0777) = 0 [ 181.988670][ T6819] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.988872][ T6819] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.988981][ T6819] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.991391][ T6819] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.991509][ T6819] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.991741][ T6819] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.991843][ T6819] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.992040][ T6819] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.992143][ T6819] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 181.992351][ T6819] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 181.992455][ T6819] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 181.992670][ T6819] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 181.992777][ T6819] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 181.993485][ T6819] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 181.993599][ T6819] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 181.993839][ T6819] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 181.993856][ T6819] Ratelimiting new instances of previous error [ 181.993985][ T6819] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 181.994001][ T6819] Ratelimiting new instances of previous error [ 182.006330][ T6819] done [ 182.008492][ T6819] bcachefs (loop2): going read-write [ 182.014597][ T6819] bcachefs (loop2): journal_replay... done [ 182.042368][ T6819] bcachefs (loop2): check_alloc_info... [ 182.044151][ T6819] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 182.044175][ T6819] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 182.044187][ T6819] gen 0 oldest_gen 0 data_type need_discard [ 182.044199][ T6819] journal_seq_nonempty 6 [ 182.044209][ T6819] journal_seq_empty 0 [ 182.044220][ T6819] need_discard 1 [ 182.044230][ T6819] need_inc_gen 1 [ 182.044241][ T6819] dirty_sectors 0 [ 182.044250][ T6819] stripe_sectors 0 [ 182.044261][ T6819] cached_sectors 0 [ 182.044282][ T6819] stripe 0 [ 182.044293][ T6819] stripe_redundancy 0 [ 182.044303][ T6819] io_time[READ] 1 [ 182.044313][ T6819] io_time[WRITE] 768 [ 182.044323][ T6819] fragmentation 0 [ 182.044333][ T6819] bp_start 8 [ 182.044343][ T6819] , fixing [ 182.061044][ T6819] done [ 182.066124][ T6819] bcachefs (loop2): check_lrus... done [ 182.066959][ T6819] bcachefs (loop2): check_btree_backpointers... done [ 182.068305][ T6819] bcachefs (loop2): check_backpointers_to_extents... done [ 182.074585][ T6819] bcachefs (loop2): check_extents_to_backpointers... [ 182.075969][ T6819] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 182.077716][ T6819] done [ 182.078492][ T6819] bcachefs (loop2): check_alloc_to_lru_refs... [ 182.080803][ T6819] bcachefs (loop2): missing fragmentation lru entry [ 182.080822][ T6819] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 182.080833][ T6819] gen 0 oldest_gen 0 data_type user [ 182.080844][ T6819] journal_seq_nonempty 5 [ 182.080854][ T6819] journal_seq_empty 134217728 [ 182.080865][ T6819] need_discard 1 [ 182.080876][ T6819] need_inc_gen 1 [ 182.080887][ T6819] dirty_sectors 16 [ 182.080896][ T6819] stripe_sectors 1802251 [ 182.080907][ T6819] cached_sectors 0 [ 182.080916][ T6819] stripe 0 [ 182.080926][ T6819] stripe_redundancy 0 [ 182.080935][ T6819] io_time[READ] 1 [ 182.080945][ T6819] io_time[WRITE] 512 [ 182.080955][ T6819] fragmentation 0 [ 182.080964][ T6819] bp_start 7 [ 182.080973][ T6819] , fixing [ 182.084247][ T6819] done [ 182.085787][ T6819] bcachefs (loop2): bucket_gens_init... done [ 182.088349][ T6819] bcachefs (loop2): check_snapshot_trees... done [ 182.089177][ T6819] bcachefs (loop2): check_snapshots... [ 182.090573][ T6819] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 182.090591][ T6819] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 3 printk messages dropped ** [ 182.104492][ T6819] bcachefs (loop2): delete_dead_snapshots... done ** 3 printk messages dropped ** [ 182.106408][ T6819] mode=40755 ** 2 printk messages dropped ** [ 182.106438][ T6819] hash_seed=ece93825deac2443 ** 9 printk messages dropped ** [ 182.106534][ T6819] bi_gid=0 ** 1 printk messages dropped ** [pid 7006] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7006] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7006] chdir("./file1") = 0 [pid 7006] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7006] ioctl(4, LOOP_CLR_FD) = 0 [pid 7006] close(4) = 0 [pid 7006] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7006] exit_group(0) = ? [pid 7006] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7006, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=33 /* 0.33 s */} --- [pid 5839] umount2("./67", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./67", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 182.106553][ T6819] bi_generation=0 ** 1 printk messages dropped ** [ 182.106571][ T6819] bi_data_checksum=0 [ 182.106580][ T6819] bi_compression=0 [ 182.106590][ T6819] bi_project=0 [ 182.106601][ T6819] bi_background_compression=0 [ 182.106611][ T6819] bi_data_replicas=0 [ 182.106621][ T6819] bi_promote_target=0 [ 182.106630][ T6819] bi_foreground_target=64 [ 182.106640][ T6819] bi_background_target=1 [ 182.106650][ T6819] bi_erasure_code=0 [ 182.106660][ T6819] bi_fields_set=0 [ 182.106669][ T6819] bi_dir=0 [ 182.106678][ T6819] bi_dir_offset=32 [ 182.106688][ T6819] bi_subvol=0 [ 182.106697][ T6819] bi_parent_subvol=0 [ 182.106706][ T6819] bi_nocow=0 [ 182.106715][ T6819] bi_depth=0 [ 182.106724][ T6819] bi_inodes_32bit=0 [ 182.106734][ T6819] bi_casefold=0, fixing [ 182.108871][ T6819] done [ 182.110064][ T6819] bcachefs (loop2): check_extents... done [ 182.113394][ T6819] bcachefs (loop2): check_indirect_extents... done [ 182.115831][ T6819] bcachefs (loop2): check_dirents... [ 182.117529][ T6819] bcachefs (loop2): directory with missing backpointer [ 182.117548][ T6819] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 182.117562][ T6819] inum: 4098:4294967295 [ 182.117572][ T6819] mode=40755 [ 182.117581][ T6819] flags=(11300000) [ 182.117591][ T6819] journal_seq=22 [ 182.117600][ T6819] hash_seed=ece93825deac2443 [ 182.117612][ T6819] hash_type=siphash [ 182.117621][ T6819] bi_size=0 [ 182.117628][ T6819] bi_sectors=0 [ 182.117638][ T6819] bi_version=0 [ 182.117647][ T6819] bi_atime=2770562249 [ 182.117655][ T6819] bi_ctime=2780562352 [ 182.117664][ T6819] bi_mtime=2780562352 [ 182.117676][ T6819] bi_otime=2770562249 [ 182.117684][ T6819] bi_uid=0 [ 182.117694][ T6819] bi_gid=0 [ 182.117703][ T6819] bi_nlink=0 [ 182.117712][ T6819] bi_generation=0 [ 182.117722][ T6819] bi_dev=0 [ 182.117731][ T6819] bi_data_checksum=0 [ 182.117742][ T6819] bi_compression=0 [ 182.117752][ T6819] bi_project=0 [ 182.117761][ T6819] bi_background_compression=0 [ 182.117771][ T6819] bi_data_replicas=0 [ 182.117780][ T6819] bi_promote_target=0 [ 182.117790][ T6819] bi_foreground_target=64 [ 182.117802][ T6819] bi_background_target=1 [ 182.117811][ T6819] bi_erasure_code=0 [ 182.117821][ T6819] bi_fields_set=0 [ 182.117830][ T6819] bi_dir=0 [ 182.117839][ T6819] bi_dir_offset=0 [ 182.117849][ T6819] bi_subvol=0 [ 182.117858][ T6819] bi_parent_subvol=0 [ 182.117868][ T6819] bi_nocow=0 [ 182.117877][ T6819] bi_depth=0 [ 182.117886][ T6819] bi_inodes_32bit=0 [ 182.117896][ T6819] bi_casefold=0, fixing [ 182.122739][ T6819] done [ 182.123429][ T6819] bcachefs (loop2): check_xattrs... done [ 182.125446][ T6819] bcachefs (loop2): check_root... done [ 182.127318][ T6819] bcachefs (loop2): check_unreachable_inodes... done [ 182.128376][ T6819] bcachefs (loop2): check_subvolume_structure... done [ 182.130751][ T6819] bcachefs (loop2): check_directory_structure... done [ 182.131556][ T6819] bcachefs (loop2): check_nlinks... [ 182.132280][ T6819] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 182.133356][ T6819] done [ 182.134047][ T6819] bcachefs (loop2): check_rebalance_work... done [ 182.135243][ T6819] bcachefs (loop2): resume_logged_ops... done [ 182.136002][ T6819] bcachefs (loop2): delete_dead_inodes... done [ 182.145337][ T6819] bcachefs (loop2): set_fs_needs_rebalance... [ 182.153717][ T6828] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 182.153741][ T6828] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 182.156594][ T6819] done [ 182.157580][ T6819] bcachefs (loop2): check_extents_to_backpointers... [ 182.158530][ T6819] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 182.164813][ T6819] done [ 182.175628][ T6819] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [pid 5839] umount2("./67/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 182.175654][ T6819] bcachefs (loop2): check_alloc_info... done [ 182.180618][ T6819] bcachefs (loop2): check_lrus... done [ 182.182236][ T6819] bcachefs (loop2): check_btree_backpointers... done [ 182.183520][ T6819] bcachefs (loop2): check_backpointers_to_extents... done [ 182.185003][ T6819] bcachefs (loop2): check_extents_to_backpointers... done [ 182.186732][ T6819] bcachefs (loop2): check_alloc_to_lru_refs... done [ 182.190272][ T6819] bcachefs (loop2): bucket_gens_init... done [ 182.193025][ T6819] bcachefs (loop2): check_snapshot_trees... done [pid 5839] umount2("./67/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./67/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./67/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./67/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./67/file1") = 0 [ 182.194240][ T6819] bcachefs (loop2): check_snapshots... done [ 182.195103][ T6819] bcachefs (loop2): check_subvols... done [ 182.195958][ T6819] bcachefs (loop2): check_subvol_children... done [ 182.196719][ T6819] bcachefs (loop2): delete_dead_snapshots... done [ 182.197469][ T6819] bcachefs (loop2): check_inodes... done [ 182.198718][ T6819] bcachefs (loop2): check_extents... done [ 182.201205][ T6819] bcachefs (loop2): check_indirect_extents... done [ 182.201979][ T6819] bcachefs (loop2): check_dirents... done [ 182.204089][ T6819] bcachefs (loop2): check_xattrs... done [pid 5839] umount2("./67/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./67/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./67/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./67") = 0 [pid 5839] mkdir("./68", 0777) = 0 [ 182.204998][ T6819] bcachefs (loop2): check_root... done [ 182.205809][ T6819] bcachefs (loop2): check_unreachable_inodes... done [ 182.206674][ T6819] bcachefs (loop2): check_subvolume_structure... done [ 182.207461][ T6819] bcachefs (loop2): check_directory_structure... done [ 182.208261][ T6819] bcachefs (loop2): check_nlinks... done [ 182.210717][ T6819] bcachefs (loop2): check_rebalance_work... done [ 182.211632][ T6819] bcachefs (loop2): resume_logged_ops... done [ 182.212415][ T6819] bcachefs (loop2): delete_dead_inodes... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7017 ./strace-static-x86_64: Process 7017 attached [ 182.213609][ T6819] bcachefs (loop2): set_fs_needs_rebalance... done [ 182.217333][ T6819] bcachefs (loop2): done starting filesystem [ 182.368501][ T5839] bcachefs (loop2): shutting down [ 182.368522][ T5839] bcachefs (loop2): going read-only [ 182.368553][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 182.380621][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 182.380991][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [pid 7017] set_robust_list(0x5555901c6760, 24) = 0 [pid 7017] chdir("./68") = 0 [pid 7017] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7017] setpgid(0, 0) = 0 [pid 7017] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 182.382309][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 182.384094][ T5839] bcachefs (loop2): marking filesystem clean [ 182.451414][ T5839] bcachefs (loop2): shutdown complete [ 183.214536][ T6830] loop2: detected capacity change from 0 to 32768 [ 183.329098][ T6830] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 183.329125][ T6830] allowing incompatible features above 0.0: (unknown version) [pid 7017] write(3, "1000", 4) = 4 [pid 7017] close(3) = 0 [pid 7017] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7017] write(1, "executing program\n", 18) = 18 [pid 7017] memfd_create("syzkaller", 0) = 3 [pid 7017] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 183.329140][ T6830] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 183.329169][ T6830] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 183.331704][ T6830] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 183.331961][ T6830] bcachefs (loop2): Version upgrade required: [ 183.331961][ T6830] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 183.331961][ T6830] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 183.331961][ T6830] 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,check_rebalance_work,set_fs_needs_rebalance [ 183.351856][ T6830] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 183.351883][ T6830] size != 0, deleting [ 183.353030][ T6830] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 183.356299][ T6830] bcachefs (loop2): check_topology... done [ 183.357753][ T6830] bcachefs (loop2): accounting_read... done [ 183.384385][ T6830] bcachefs (loop2): alloc_read... done [ 183.385333][ T6830] bcachefs (loop2): snapshots_read... done [ 183.386165][ T6830] bcachefs (loop2): check_allocations... [ 183.388157][ T6830] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 183.388177][ T6830] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 183.391160][ T6830] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 183.391181][ T6830] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 183.392548][ T6830] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 183.392567][ T6830] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 183.394132][ T6830] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 7017] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 183.394150][ T6830] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 183.396715][ T6830] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 183.396733][ T6830] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 183.397696][ T6830] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.397820][ T6830] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7017] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7017] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7017] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7017] close(3) = 0 [pid 7017] close(4) = 0 [pid 7017] mkdir("./file1", 0777) = 0 [ 183.398381][ T6830] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.398492][ T6830] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 183.398909][ T6830] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.399019][ T6830] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 183.401767][ T6830] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.401903][ T6830] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 183.402137][ T6830] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.402243][ T6830] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 183.402444][ T6830] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.402551][ T6830] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 183.402756][ T6830] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.402870][ T6830] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 183.403078][ T6830] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 183.403182][ T6830] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 183.403385][ T6830] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 183.403492][ T6830] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 183.403720][ T6830] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 183.403826][ T6830] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 183.404064][ T6830] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 183.404080][ T6830] Ratelimiting new instances of previous error [ 183.404215][ T6830] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 183.404232][ T6830] Ratelimiting new instances of previous error [ 183.417351][ T6830] done [ 183.419801][ T6830] bcachefs (loop2): going read-write [ 183.425590][ T6830] bcachefs (loop2): journal_replay... done [ 183.452698][ T6830] bcachefs (loop2): check_alloc_info... [ 183.454511][ T6830] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 183.454531][ T6830] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 183.454543][ T6830] gen 0 oldest_gen 0 data_type need_discard [ 183.454556][ T6830] journal_seq_nonempty 6 [ 183.454567][ T6830] journal_seq_empty 0 [ 183.454576][ T6830] need_discard 1 [ 183.454587][ T6830] need_inc_gen 1 [ 183.454597][ T6830] dirty_sectors 0 [ 183.454606][ T6830] stripe_sectors 0 [ 183.454616][ T6830] cached_sectors 0 [ 183.454628][ T6830] stripe 0 [ 183.454638][ T6830] stripe_redundancy 0 [ 183.454648][ T6830] io_time[READ] 1 [ 183.454658][ T6830] io_time[WRITE] 768 [ 183.454668][ T6830] fragmentation 0 [ 183.454678][ T6830] bp_start 8 [ 183.454688][ T6830] , fixing [ 183.471384][ T6830] done [ 183.477254][ T6830] bcachefs (loop2): check_lrus... done [ 183.478542][ T6830] bcachefs (loop2): check_btree_backpointers... done [ 183.480154][ T6830] bcachefs (loop2): check_backpointers_to_extents... done [ 183.484813][ T6830] bcachefs (loop2): check_extents_to_backpointers... [ 183.486176][ T6830] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 183.487554][ T6830] done [ 183.488692][ T6830] bcachefs (loop2): check_alloc_to_lru_refs... [ 183.491166][ T6830] bcachefs (loop2): missing fragmentation lru entry [ 183.491185][ T6830] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 183.491196][ T6830] gen 0 oldest_gen 0 data_type user [ 183.491208][ T6830] journal_seq_nonempty 5 ** 1 printk messages dropped ** [ 183.491229][ T6830] need_discard 1 ** 4 printk messages dropped ** [ 183.491280][ T6830] stripe 0 ** 1 printk messages dropped ** [ 183.491300][ T6830] io_time[READ] 1 ** 4 printk messages dropped ** [ 183.492923][ T6830] done ** 3 printk messages dropped ** [ 183.497838][ T6830] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 183.497853][ T6830] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 183.511230][ T6830] done [ 183.511922][ T6830] bcachefs (loop2): check_subvols... done [ 183.513536][ T6830] bcachefs (loop2): check_subvol_children... done [ 183.514420][ T6830] bcachefs (loop2): delete_dead_snapshots... done [ 183.515202][ T6830] bcachefs (loop2): check_inodes... ** 1 printk messages dropped ** [ 183.516295][ T6830] inum: 4098:4294967295 ** 3 printk messages dropped ** [ 183.516335][ T6830] hash_seed=ece93825deac2443 ** 5 printk messages dropped ** [ 183.516393][ T6830] bi_ctime=2780562352 [ 183.516403][ T6830] bi_mtime=2780562352 [pid 7017] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7017] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7017] chdir("./file1") = 0 [pid 7017] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7017] ioctl(4, LOOP_CLR_FD) = 0 [pid 7017] close(4) = 0 [pid 7017] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7017] exit_group(0) = ? [pid 7017] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7017, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=31 /* 0.31 s */} --- ** 3 printk messages dropped ** [ 183.516443][ T6830] bi_nlink=0 ** 9 printk messages dropped ** [ 183.516538][ T6830] bi_background_target=1 ** 2 printk messages dropped ** [ 183.516567][ T6830] bi_dir=0 ** 3 printk messages dropped ** [ 183.516604][ T6830] bi_nocow=0 ** 1 printk messages dropped ** [ 183.516622][ T6830] bi_inodes_32bit=0 [ 183.516632][ T6830] bi_casefold=0, fixing [ 183.518329][ T6830] done [ 183.518985][ T6830] bcachefs (loop2): check_extents... done [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./68", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./68", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 183.527248][ T6830] bcachefs (loop2): check_indirect_extents... done [ 183.528172][ T6830] bcachefs (loop2): check_dirents... [ 183.530377][ T6830] bcachefs (loop2): directory with missing backpointer [ 183.530395][ T6830] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 183.530411][ T6830] inum: 4098:4294967295 [ 183.530420][ T6830] mode=40755 [ 183.530430][ T6830] flags=(11300000) [ 183.530440][ T6830] journal_seq=22 [ 183.530450][ T6830] hash_seed=ece93825deac2443 [ 183.530460][ T6830] hash_type=siphash [ 183.530469][ T6830] bi_size=0 [ 183.530478][ T6830] bi_sectors=0 [ 183.530494][ T6830] bi_version=0 [ 183.530503][ T6830] bi_atime=2770562249 [ 183.530513][ T6830] bi_ctime=2780562352 [ 183.530522][ T6830] bi_mtime=2780562352 [ 183.530532][ T6830] bi_otime=2770562249 [ 183.530542][ T6830] bi_uid=0 [ 183.530551][ T6830] bi_gid=0 [ 183.530560][ T6830] bi_nlink=0 [ 183.530570][ T6830] bi_generation=0 [ 183.530579][ T6830] bi_dev=0 [ 183.530588][ T6830] bi_data_checksum=0 [ 183.530598][ T6830] bi_compression=0 [ 183.530607][ T6830] bi_project=0 [ 183.530616][ T6830] bi_background_compression=0 [ 183.530626][ T6830] bi_data_replicas=0 [ 183.530636][ T6830] bi_promote_target=0 [ 183.530647][ T6830] bi_foreground_target=64 [ 183.530657][ T6830] bi_background_target=1 [ 183.530667][ T6830] bi_erasure_code=0 [ 183.530676][ T6830] bi_fields_set=0 [ 183.530686][ T6830] bi_dir=0 [ 183.530695][ T6830] bi_dir_offset=0 [ 183.530704][ T6830] bi_subvol=0 [ 183.530714][ T6830] bi_parent_subvol=0 [ 183.530723][ T6830] bi_nocow=0 [ 183.530732][ T6830] bi_depth=0 [ 183.530741][ T6830] bi_inodes_32bit=0 [ 183.530751][ T6830] bi_casefold=0, fixing [ 183.536555][ T6830] done [ 183.537238][ T6830] bcachefs (loop2): check_xattrs... done [ 183.538442][ T6830] bcachefs (loop2): check_root... done [ 183.539957][ T6830] bcachefs (loop2): check_unreachable_inodes... done [ 183.540966][ T6830] bcachefs (loop2): check_subvolume_structure... done [ 183.541799][ T6830] bcachefs (loop2): check_directory_structure... done [ 183.542616][ T6830] bcachefs (loop2): check_nlinks... [ 183.543317][ T6830] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 183.544290][ T6830] done [ 183.545498][ T6830] bcachefs (loop2): check_rebalance_work... done [ 183.546629][ T6830] bcachefs (loop2): resume_logged_ops... done [ 183.547434][ T6830] bcachefs (loop2): delete_dead_inodes... done [ 183.556986][ T6830] bcachefs (loop2): set_fs_needs_rebalance... [ 183.564654][ T6839] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 183.564677][ T6839] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 183.566950][ T6830] done [ 183.568262][ T6830] bcachefs (loop2): check_extents_to_backpointers... [ 183.570627][ T6830] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 183.576075][ T6830] done [ 183.592780][ T6830] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 183.592807][ T6830] bcachefs (loop2): check_alloc_info... done [ 183.600167][ T6830] bcachefs (loop2): check_lrus... done [ 183.601654][ T6830] bcachefs (loop2): check_btree_backpointers... done [ 183.602778][ T6830] bcachefs (loop2): check_backpointers_to_extents... done [ 183.604245][ T6830] bcachefs (loop2): check_extents_to_backpointers... done [ 183.609971][ T6830] bcachefs (loop2): check_alloc_to_lru_refs... done [ 183.612763][ T6830] bcachefs (loop2): bucket_gens_init... done [ 183.614706][ T6830] bcachefs (loop2): check_snapshot_trees... done [ 183.615766][ T6830] bcachefs (loop2): check_snapshots... done [ 183.616614][ T6830] bcachefs (loop2): check_subvols... done [ 183.620484][ T6830] bcachefs (loop2): check_subvol_children... done [ 183.621237][ T6830] bcachefs (loop2): delete_dead_snapshots... done [ 183.622391][ T6830] bcachefs (loop2): check_inodes... done [ 183.625618][ T6830] bcachefs (loop2): check_extents... done [ 183.629699][ T6830] bcachefs (loop2): check_indirect_extents... done [ 183.630991][ T6830] bcachefs (loop2): check_dirents... done [pid 5839] umount2("./68/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./68/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./68/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./68/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./68/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./68/file1") = 0 [ 183.640219][ T6830] bcachefs (loop2): check_xattrs... done [ 183.641366][ T6830] bcachefs (loop2): check_root... done [ 183.642241][ T6830] bcachefs (loop2): check_unreachable_inodes... done [ 183.643224][ T6830] bcachefs (loop2): check_subvolume_structure... done [ 183.643925][ T6830] bcachefs (loop2): check_directory_structure... done [ 183.644653][ T6830] bcachefs (loop2): check_nlinks... done [ 183.646204][ T6830] bcachefs (loop2): check_rebalance_work... done [ 183.646989][ T6830] bcachefs (loop2): resume_logged_ops... done [pid 5839] umount2("./68/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./68/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./68/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./68") = 0 [pid 5839] mkdir("./69", 0777) = 0 [ 183.647737][ T6830] bcachefs (loop2): delete_dead_inodes... done [ 183.650493][ T6830] bcachefs (loop2): set_fs_needs_rebalance... done [ 183.659104][ T6830] bcachefs (loop2): done starting filesystem [ 183.780212][ T5839] bcachefs (loop2): shutting down [ 183.780234][ T5839] bcachefs (loop2): going read-only [ 183.780490][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 183.830423][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 183.830795][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7028 ./strace-static-x86_64: Process 7028 attached [pid 7028] set_robust_list(0x5555901c6760, 24) = 0 [ 183.831780][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 183.833579][ T5839] bcachefs (loop2): marking filesystem clean [ 183.973560][ T5839] bcachefs (loop2): shutdown complete [ 184.764310][ T6841] loop2: detected capacity change from 0 to 32768 [ 184.890567][ T6841] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 184.890593][ T6841] allowing incompatible features above 0.0: (unknown version) [pid 7028] chdir("./69") = 0 [pid 7028] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7028] setpgid(0, 0) = 0 [pid 7028] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7028] write(3, "1000", 4) = 4 [pid 7028] close(3) = 0 [pid 7028] symlink("/dev/binderfs", "./binderfs") = 0 [ 184.890607][ T6841] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 184.890634][ T6841] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 184.890763][ T6841] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 184.891005][ T6841] bcachefs (loop2): Version upgrade required: [ 184.891005][ T6841] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [pid 7028] write(1, "executing program\n", 18executing program ) = 18 [pid 7028] memfd_create("syzkaller", 0) = 3 [pid 7028] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 184.891005][ T6841] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 184.891005][ T6841] 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,check_rebalance_work,set_fs_needs_rebalance [ 184.910223][ T6841] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 184.910249][ T6841] size != 0, deleting [ 184.911851][ T6841] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 184.915140][ T6841] bcachefs (loop2): check_topology... done [ 184.916643][ T6841] bcachefs (loop2): accounting_read... done [ 184.940800][ T6841] bcachefs (loop2): alloc_read... done [ 184.941879][ T6841] bcachefs (loop2): snapshots_read... done [ 184.942868][ T6841] bcachefs (loop2): check_allocations... [ 184.944769][ T6841] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 184.944787][ T6841] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 184.946805][ T6841] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 184.946823][ T6841] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 184.948209][ T6841] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 184.948227][ T6841] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 184.951086][ T6841] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 184.951106][ T6841] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 184.955009][ T6841] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 184.955036][ T6841] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 184.955974][ T6841] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.956106][ T6841] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7028] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 184.956659][ T6841] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.956765][ T6841] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 184.957177][ T6841] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.957282][ T6841] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7028] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7028] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7028] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7028] close(3) = 0 [pid 7028] close(4) = 0 [pid 7028] mkdir("./file1", 0777) = 0 [ 184.957495][ T6841] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.957604][ T6841] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 184.957808][ T6841] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.957914][ T6841] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 184.958137][ T6841] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.958244][ T6841] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 184.958445][ T6841] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.958550][ T6841] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 184.958750][ T6841] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 184.958859][ T6841] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 184.959078][ T6841] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 184.959184][ T6841] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 184.961502][ T6841] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 184.961608][ T6841] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 184.961846][ T6841] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 184.961863][ T6841] Ratelimiting new instances of previous error [ 184.961995][ T6841] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 184.962011][ T6841] Ratelimiting new instances of previous error [ 184.974334][ T6841] done [ 184.976516][ T6841] bcachefs (loop2): going read-write [ 184.982417][ T6841] bcachefs (loop2): journal_replay... done [ 185.010953][ T6841] bcachefs (loop2): check_alloc_info... [ 185.012782][ T6841] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 185.012803][ T6841] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 185.012814][ T6841] gen 0 oldest_gen 0 data_type need_discard [ 185.012826][ T6841] journal_seq_nonempty 6 [ 185.012836][ T6841] journal_seq_empty 0 [ 185.012846][ T6841] need_discard 1 [ 185.012856][ T6841] need_inc_gen 1 [ 185.012866][ T6841] dirty_sectors 0 [ 185.012878][ T6841] stripe_sectors 0 [ 185.012888][ T6841] cached_sectors 0 [ 185.012898][ T6841] stripe 0 [ 185.012908][ T6841] stripe_redundancy 0 [ 185.012918][ T6841] io_time[READ] 1 [ 185.012928][ T6841] io_time[WRITE] 768 [ 185.012938][ T6841] fragmentation 0 [ 185.012949][ T6841] bp_start 8 [ 185.012959][ T6841] , fixing [ 185.028874][ T6841] done [ 185.031781][ T6841] bcachefs (loop2): check_lrus... done [ 185.036583][ T6841] bcachefs (loop2): check_btree_backpointers... done [ 185.037968][ T6841] bcachefs (loop2): check_backpointers_to_extents... done [ 185.042284][ T6841] bcachefs (loop2): check_extents_to_backpointers... [ 185.044114][ T6841] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 185.046493][ T6841] done [ 185.047232][ T6841] bcachefs (loop2): check_alloc_to_lru_refs... [ 185.049127][ T6841] bcachefs (loop2): missing fragmentation lru entry [ 185.049144][ T6841] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 185.049155][ T6841] gen 0 oldest_gen 0 data_type user [ 185.049166][ T6841] journal_seq_nonempty 5 [ 185.049178][ T6841] journal_seq_empty 134217728 [ 185.049606][ T6841] need_discard 1 [ 185.049618][ T6841] need_inc_gen 1 [ 185.049628][ T6841] dirty_sectors 16 [ 185.049639][ T6841] stripe_sectors 1802251 [ 185.049650][ T6841] cached_sectors 0 [ 185.049660][ T6841] stripe 0 [ 185.049670][ T6841] stripe_redundancy 0 [ 185.049680][ T6841] io_time[READ] 1 [ 185.049690][ T6841] io_time[WRITE] 512 [ 185.049700][ T6841] fragmentation 0 [ 185.049710][ T6841] bp_start 7 [ 185.049719][ T6841] , fixing [ 185.054165][ T6841] done [ 185.055747][ T6841] bcachefs (loop2): bucket_gens_init... done [ 185.057863][ T6841] bcachefs (loop2): check_snapshot_trees... done ** 1 printk messages dropped ** [ 185.059865][ T6841] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 185.059883][ T6841] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 185.070705][ T6841] done [ 185.071416][ T6841] bcachefs (loop2): check_subvols... done [ 185.072936][ T6841] bcachefs (loop2): check_subvol_children... done ** 2 printk messages dropped ** [ 185.076222][ T6841] bcachefs (loop2): inode points to missing dirent ** 3 printk messages dropped ** [ 185.076270][ T6841] journal_seq=4 ** 4 printk messages dropped ** [ 185.076321][ T6841] bi_version=0 ** 6 printk messages dropped ** [ 185.076389][ T6841] bi_nlink=0 ** 3 printk messages dropped ** [ 185.076425][ T6841] bi_compression=0 ** 5 printk messages dropped ** [pid 7028] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7028] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7028] chdir("./file1") = 0 [pid 7028] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7028] ioctl(4, LOOP_CLR_FD) = 0 [pid 7028] close(4) = 0 [pid 7028] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7028] exit_group(0) = ? [pid 7028] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7028, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=43 /* 0.43 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [ 185.076484][ T6841] bi_background_target=1 ** 6 printk messages dropped ** [ 185.076550][ T6841] bi_nocow=0 ** 1 printk messages dropped ** [ 185.076569][ T6841] bi_inodes_32bit=0 [ 185.076578][ T6841] bi_casefold=0, fixing [ 185.078216][ T6841] done [ 185.078860][ T6841] bcachefs (loop2): check_extents... done [ 185.082681][ T6841] bcachefs (loop2): check_indirect_extents... done [ 185.084064][ T6841] bcachefs (loop2): check_dirents... [ 185.087443][ T6841] bcachefs (loop2): directory with missing backpointer [pid 5839] umount2("./69", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./69", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 185.087461][ T6841] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 185.087476][ T6841] inum: 4098:4294967295 [ 185.087486][ T6841] mode=40755 [ 185.087496][ T6841] flags=(11300000) [ 185.087505][ T6841] journal_seq=22 [ 185.087515][ T6841] hash_seed=ece93825deac2443 [ 185.087525][ T6841] hash_type=siphash [ 185.087535][ T6841] bi_size=0 [ 185.087568][ T6841] bi_sectors=0 [ 185.087579][ T6841] bi_version=0 [ 185.087588][ T6841] bi_atime=2770562249 [ 185.087598][ T6841] bi_ctime=2780562352 [ 185.087608][ T6841] bi_mtime=2780562352 [ 185.087617][ T6841] bi_otime=2770562249 [ 185.087627][ T6841] bi_uid=0 [ 185.087637][ T6841] bi_gid=0 [ 185.087646][ T6841] bi_nlink=0 [ 185.087655][ T6841] bi_generation=0 [ 185.087664][ T6841] bi_dev=0 [ 185.087673][ T6841] bi_data_checksum=0 [ 185.087683][ T6841] bi_compression=0 [ 185.087692][ T6841] bi_project=0 [ 185.087702][ T6841] bi_background_compression=0 [ 185.087712][ T6841] bi_data_replicas=0 [ 185.087722][ T6841] bi_promote_target=0 [ 185.087732][ T6841] bi_foreground_target=64 [ 185.087743][ T6841] bi_background_target=1 [ 185.087753][ T6841] bi_erasure_code=0 [ 185.087760][ T6841] bi_fields_set=0 [ 185.087767][ T6841] bi_dir=0 [ 185.087774][ T6841] bi_dir_offset=0 [ 185.087784][ T6841] bi_subvol=0 [ 185.087793][ T6841] bi_parent_subvol=0 [ 185.087802][ T6841] bi_nocow=0 [ 185.087811][ T6841] bi_depth=0 [ 185.087821][ T6841] bi_inodes_32bit=0 [ 185.087830][ T6841] bi_casefold=0, fixing [ 185.091301][ T6841] done [ 185.091966][ T6841] bcachefs (loop2): check_xattrs... done [ 185.094209][ T6841] bcachefs (loop2): check_root... done [ 185.096907][ T6841] bcachefs (loop2): check_unreachable_inodes... done [ 185.098393][ T6841] bcachefs (loop2): check_subvolume_structure... done [ 185.099111][ T6841] bcachefs (loop2): check_directory_structure... done [ 185.100330][ T6841] bcachefs (loop2): check_nlinks... [ 185.101043][ T6841] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 185.102079][ T6841] done [ 185.102752][ T6841] bcachefs (loop2): check_rebalance_work... done [ 185.103850][ T6841] bcachefs (loop2): resume_logged_ops... done [ 185.104642][ T6841] bcachefs (loop2): delete_dead_inodes... done [ 185.114086][ T6841] bcachefs (loop2): set_fs_needs_rebalance... done [ 185.125510][ T6850] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 185.125530][ T6850] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 185.129644][ T6841] bcachefs (loop2): check_extents_to_backpointers... [ 185.130884][ T6841] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 185.134111][ T6850] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 185.136831][ T6841] done [ 185.145627][ T6841] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 185.145654][ T6841] bcachefs (loop2): check_alloc_info... done [ 185.150735][ T6841] bcachefs (loop2): check_lrus... done [ 185.152399][ T6841] bcachefs (loop2): check_btree_backpointers... done [ 185.153674][ T6841] bcachefs (loop2): check_backpointers_to_extents... done [ 185.155202][ T6841] bcachefs (loop2): check_extents_to_backpointers... [ 185.156130][ T6841] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 185.157427][ T6841] done [ 185.157441][ T6841] bcachefs (loop2): check_alloc_to_lru_refs... done [ 185.160775][ T6841] bcachefs (loop2): bucket_gens_init... done [ 185.163312][ T6841] bcachefs (loop2): check_snapshot_trees... done [ 185.164454][ T6841] bcachefs (loop2): check_snapshots... done [ 185.165345][ T6841] bcachefs (loop2): check_subvols... done [ 185.166301][ T6841] bcachefs (loop2): check_subvol_children... done [ 185.167113][ T6841] bcachefs (loop2): delete_dead_snapshots... done [ 185.167885][ T6841] bcachefs (loop2): check_inodes... done [ 185.169109][ T6841] bcachefs (loop2): check_extents... done [ 185.171353][ T6841] bcachefs (loop2): check_indirect_extents... done [ 185.172168][ T6841] bcachefs (loop2): check_dirents... done [pid 5839] umount2("./69/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./69/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 185.174360][ T6841] bcachefs (loop2): check_xattrs... done [ 185.175277][ T6841] bcachefs (loop2): check_root... done [ 185.176112][ T6841] bcachefs (loop2): check_unreachable_inodes... done [ 185.177122][ T6841] bcachefs (loop2): check_subvolume_structure... done [ 185.177885][ T6841] bcachefs (loop2): check_directory_structure... done [ 185.178744][ T6841] bcachefs (loop2): check_nlinks... done [ 185.181091][ T6841] bcachefs (loop2): check_rebalance_work... done [ 185.181950][ T6841] bcachefs (loop2): resume_logged_ops... done [pid 5839] newfstatat(AT_FDCWD, "./69/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./69/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./69/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./69/file1") = 0 [ 185.182734][ T6841] bcachefs (loop2): delete_dead_inodes... done [ 185.183541][ T6841] bcachefs (loop2): set_fs_needs_rebalance... done [ 185.187621][ T6841] bcachefs (loop2): done starting filesystem [ 185.292802][ T5839] bcachefs (loop2): shutting down [ 185.292821][ T5839] bcachefs (loop2): going read-only [ 185.292852][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 185.334484][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [pid 5839] umount2("./69/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./69/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./69/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./69") = 0 [pid 5839] mkdir("./70", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 185.335574][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 185.336449][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 185.338246][ T5839] bcachefs (loop2): marking filesystem clean [ 185.338757][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 185.338757][ T5900] rw journal devs: [ 185.398239][ T5839] bcachefs (loop2): shutdown complete [ 186.262337][ T6852] loop2: detected capacity change from 0 to 32768 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7039 attached , child_tidptr=0x5555901c6750) = 7039 [ 186.412893][ T6852] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 186.412921][ T6852] allowing incompatible features above 0.0: (unknown version) [ 186.412935][ T6852] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 186.412964][ T6852] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 186.413092][ T6852] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 186.413337][ T6852] bcachefs (loop2): Version upgrade required: [pid 7039] set_robust_list(0x5555901c6760, 24) = 0 [pid 7039] chdir("./70") = 0 [pid 7039] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7039] setpgid(0, 0) = 0 [pid 7039] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 186.413337][ T6852] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 186.413337][ T6852] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7039] write(3, "1000", 4) = 4 [pid 7039] close(3) = 0 [pid 7039] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7039] write(1, "executing program\n", 18executing program ) = 18 [pid 7039] memfd_create("syzkaller", 0) = 3 [pid 7039] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 186.413337][ T6852] 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,check_rebalance_work,set_fs_needs_rebalance [ 186.432092][ T6852] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 186.432121][ T6852] size != 0, deleting [ 186.433259][ T6852] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 186.437746][ T6852] bcachefs (loop2): check_topology... done [ 186.439183][ T6852] bcachefs (loop2): accounting_read... done [ 186.460846][ T6852] bcachefs (loop2): alloc_read... done [ 186.469595][ T6852] bcachefs (loop2): snapshots_read... done [ 186.470680][ T6852] bcachefs (loop2): check_allocations... [ 186.472912][ T6852] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 186.472932][ T6852] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 186.475175][ T6852] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 186.475196][ T6852] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 186.476608][ T6852] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 186.476626][ T6852] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 186.478195][ T6852] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 186.478213][ T6852] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 186.481942][ T6852] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 186.481961][ T6852] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 186.482909][ T6852] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.483038][ T6852] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 186.483591][ T6852] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.483699][ T6852] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 186.484109][ T6852] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.484214][ T6852] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 186.484421][ T6852] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.485049][ T6852] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 186.485269][ T6852] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.485376][ T6852] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7039] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 186.485577][ T6852] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.485687][ T6852] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 186.485902][ T6852] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.486008][ T6852] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7039] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7039] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7039] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7039] close(3) = 0 [pid 7039] close(4) = 0 [pid 7039] mkdir("./file1", 0777) = 0 [ 186.486208][ T6852] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 186.486313][ T6852] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 186.486514][ T6852] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 186.486616][ T6852] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 186.486818][ T6852] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 186.486932][ T6852] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 186.487172][ T6852] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 186.487189][ T6852] Ratelimiting new instances of previous error [ 186.487317][ T6852] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 186.487333][ T6852] Ratelimiting new instances of previous error [ 186.501221][ T6852] done [ 186.503373][ T6852] bcachefs (loop2): going read-write [ 186.509106][ T6852] bcachefs (loop2): journal_replay... done [ 186.537012][ T6852] bcachefs (loop2): check_alloc_info... [ 186.539737][ T6852] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 186.539756][ T6852] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 186.539768][ T6852] gen 0 oldest_gen 0 data_type need_discard [ 186.539781][ T6852] journal_seq_nonempty 6 [ 186.539791][ T6852] journal_seq_empty 0 [ 186.539802][ T6852] need_discard 1 [ 186.539812][ T6852] need_inc_gen 1 [ 186.539835][ T6852] dirty_sectors 0 [ 186.539844][ T6852] stripe_sectors 0 [ 186.539855][ T6852] cached_sectors 0 [ 186.539864][ T6852] stripe 0 [ 186.539874][ T6852] stripe_redundancy 0 [ 186.539884][ T6852] io_time[READ] 1 [ 186.539894][ T6852] io_time[WRITE] 768 [ 186.539904][ T6852] fragmentation 0 [ 186.539913][ T6852] bp_start 8 [ 186.539923][ T6852] , fixing [ 186.555744][ T6852] done [ 186.563858][ T6852] bcachefs (loop2): check_lrus... done [ 186.565553][ T6852] bcachefs (loop2): check_btree_backpointers... done [ 186.566988][ T6852] bcachefs (loop2): check_backpointers_to_extents... done [ 186.570466][ T6852] bcachefs (loop2): check_extents_to_backpointers... [ 186.571843][ T6852] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 186.573743][ T6852] done [ 186.574401][ T6852] bcachefs (loop2): check_alloc_to_lru_refs... [ 186.575923][ T6852] bcachefs (loop2): missing fragmentation lru entry [ 186.575939][ T6852] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 186.575953][ T6852] gen 0 oldest_gen 0 data_type user [ 186.575964][ T6852] journal_seq_nonempty 5 [ 186.575974][ T6852] journal_seq_empty 134217728 [ 186.575984][ T6852] need_discard 1 [ 186.575994][ T6852] need_inc_gen 1 [ 186.576004][ T6852] dirty_sectors 16 [ 186.576013][ T6852] stripe_sectors 1802251 [ 186.576024][ T6852] cached_sectors 0 [ 186.576033][ T6852] stripe 0 [ 186.576043][ T6852] stripe_redundancy 0 [ 186.576053][ T6852] io_time[READ] 1 [ 186.576064][ T6852] io_time[WRITE] 512 [ 186.576074][ T6852] fragmentation 0 [ 186.576084][ T6852] bp_start 7 [ 186.576093][ T6852] , fixing [ 186.577607][ T6852] done [ 186.578823][ T6852] bcachefs (loop2): bucket_gens_init... done [ 186.584388][ T6852] bcachefs (loop2): check_snapshot_trees... done [ 186.585903][ T6852] bcachefs (loop2): check_snapshots... [ 186.586489][ T6852] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 186.586507][ T6852] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 186.597289][ T6852] done [ 186.597973][ T6852] bcachefs (loop2): check_subvols... done [ 186.599887][ T6852] bcachefs (loop2): check_subvol_children... done [ 186.600753][ T6852] bcachefs (loop2): delete_dead_snapshots... done [ 186.601584][ T6852] bcachefs (loop2): check_inodes... [ 186.602681][ T6852] bcachefs (loop2): inode points to missing dirent [ 186.602698][ T6852] inum: 4098:4294967295 [ 186.602708][ T6852] mode=40755 [ 186.602718][ T6852] flags=(15300000) [ 186.602727][ T6852] journal_seq=4 [ 186.602736][ T6852] hash_seed=ece93825deac2443 [ 186.602747][ T6852] hash_type=siphash [ 186.602757][ T6852] bi_size=0 [ 186.602766][ T6852] bi_sectors=0 [ 186.602775][ T6852] bi_version=0 [ 186.602785][ T6852] bi_atime=2770562249 [ 186.602795][ T6852] bi_ctime=2780562352 [ 186.602804][ T6852] bi_mtime=2780562352 [ 186.602823][ T6852] bi_otime=2770562249 [ 186.602833][ T6852] bi_uid=0 [ 186.602842][ T6852] bi_gid=0 [ 186.602851][ T6852] bi_nlink=0 [ 186.602860][ T6852] bi_generation=0 [ 186.602869][ T6852] bi_dev=0 [ 186.602879][ T6852] bi_data_checksum=0 [ 186.602889][ T6852] bi_compression=0 [ 186.602899][ T6852] bi_project=0 [ 186.602909][ T6852] bi_background_compression=0 [ 186.602919][ T6852] bi_data_replicas=0 [pid 7039] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7039] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7039] chdir("./file1") = 0 [pid 7039] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 186.602928][ T6852] bi_promote_target=0 [ 186.602938][ T6852] bi_foreground_target=64 [ 186.602948][ T6852] bi_background_target=1 [ 186.602958][ T6852] bi_erasure_code=0 [ 186.602968][ T6852] bi_fields_set=0 [ 186.602977][ T6852] bi_dir=0 [ 186.602986][ T6852] bi_dir_offset=32 [ 186.602996][ T6852] bi_subvol=0 [ 186.603005][ T6852] bi_parent_subvol=0 [ 186.603015][ T6852] bi_nocow=0 [ 186.603026][ T6852] bi_depth=0 [ 186.603035][ T6852] bi_inodes_32bit=0 [ 186.603044][ T6852] bi_casefold=0, fixing [pid 7039] ioctl(4, LOOP_CLR_FD) = 0 [pid 7039] close(4) = 0 [pid 7039] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7039] exit_group(0) = ? [pid 7039] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7039, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5839] umount2("./70", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./70", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 186.605319][ T6852] done [ 186.606113][ T6852] bcachefs (loop2): check_extents... done [ 186.607713][ T6852] bcachefs (loop2): check_indirect_extents... done [ 186.608544][ T6852] bcachefs (loop2): check_dirents... [ 186.612185][ T6852] bcachefs (loop2): directory with missing backpointer [ 186.612204][ T6852] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 186.612218][ T6852] inum: 4098:4294967295 [ 186.612227][ T6852] mode=40755 [ 186.612237][ T6852] flags=(11300000) [ 186.612248][ T6852] journal_seq=23 [ 186.612258][ T6852] hash_seed=ece93825deac2443 [ 186.612268][ T6852] hash_type=siphash [ 186.612278][ T6852] bi_size=0 [ 186.612287][ T6852] bi_sectors=0 [ 186.612296][ T6852] bi_version=0 [ 186.612306][ T6852] bi_atime=2770562249 [ 186.612315][ T6852] bi_ctime=2780562352 [ 186.612325][ T6852] bi_mtime=2780562352 [ 186.612335][ T6852] bi_otime=2770562249 [ 186.612344][ T6852] bi_uid=0 [ 186.612353][ T6852] bi_gid=0 [ 186.612362][ T6852] bi_nlink=0 [ 186.612371][ T6852] bi_generation=0 [ 186.612381][ T6852] bi_dev=0 [ 186.612390][ T6852] bi_data_checksum=0 [ 186.612400][ T6852] bi_compression=0 [ 186.612409][ T6852] bi_project=0 [ 186.612418][ T6852] bi_background_compression=0 [ 186.612429][ T6852] bi_data_replicas=0 [ 186.612438][ T6852] bi_promote_target=0 [ 186.612447][ T6852] bi_foreground_target=64 [ 186.612459][ T6852] bi_background_target=1 [ 186.612469][ T6852] bi_erasure_code=0 [ 186.612478][ T6852] bi_fields_set=0 [ 186.612488][ T6852] bi_dir=0 [ 186.612497][ T6852] bi_dir_offset=0 [ 186.612506][ T6852] bi_subvol=0 [ 186.612515][ T6852] bi_parent_subvol=0 [ 186.612525][ T6852] bi_nocow=0 [ 186.612534][ T6852] bi_depth=0 [ 186.612543][ T6852] bi_inodes_32bit=0 [ 186.612553][ T6852] bi_casefold=0, fixing [ 186.619688][ T6852] done [ 186.620256][ T6852] bcachefs (loop2): check_xattrs... done [ 186.621485][ T6852] bcachefs (loop2): check_root... done [ 186.622489][ T6852] bcachefs (loop2): check_unreachable_inodes... done [ 186.624637][ T6852] bcachefs (loop2): check_subvolume_structure... done [ 186.627261][ T6852] bcachefs (loop2): check_directory_structure... done [ 186.628504][ T6852] bcachefs (loop2): check_nlinks... [ 186.629448][ T6852] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 186.630514][ T6852] done [ 186.631198][ T6852] bcachefs (loop2): check_rebalance_work... done [ 186.632362][ T6852] bcachefs (loop2): resume_logged_ops... done [ 186.633166][ T6852] bcachefs (loop2): delete_dead_inodes... done [ 186.643123][ T6852] bcachefs (loop2): set_fs_needs_rebalance... done [ 186.653966][ T6861] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 186.653988][ T6861] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 186.658102][ T6852] bcachefs (loop2): check_extents_to_backpointers... [ 186.659058][ T6852] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 186.662626][ T6861] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 186.664490][ T6852] done [ 186.673188][ T6852] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 186.673214][ T6852] bcachefs (loop2): check_alloc_info... done [ 186.677851][ T6852] bcachefs (loop2): check_lrus... done [ 186.680000][ T6852] bcachefs (loop2): check_btree_backpointers... done [ 186.681268][ T6852] bcachefs (loop2): check_backpointers_to_extents... done [ 186.682767][ T6852] bcachefs (loop2): check_extents_to_backpointers... [ 186.683622][ T6852] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 186.684918][ T6852] done [ 186.684931][ T6852] bcachefs (loop2): check_alloc_to_lru_refs... done [ 186.687309][ T6852] bcachefs (loop2): bucket_gens_init... done [ 186.690854][ T6852] bcachefs (loop2): check_snapshot_trees... done [ 186.691839][ T6852] bcachefs (loop2): check_snapshots... done [ 186.692625][ T6852] bcachefs (loop2): check_subvols... done [ 186.693390][ T6852] bcachefs (loop2): check_subvol_children... done [pid 5839] umount2("./70/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./70/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./70/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./70/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./70/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./70/file1") = 0 [ 186.694133][ T6852] bcachefs (loop2): delete_dead_snapshots... done [ 186.694885][ T6852] bcachefs (loop2): check_inodes... done [ 186.696110][ T6852] bcachefs (loop2): check_extents... done [ 186.697615][ T6852] bcachefs (loop2): check_indirect_extents... done [ 186.698370][ T6852] bcachefs (loop2): check_dirents... done [ 186.701473][ T6852] bcachefs (loop2): check_xattrs... done [ 186.702386][ T6852] bcachefs (loop2): check_root... done [ 186.703222][ T6852] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] umount2("./70/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./70/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./70/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./70") = 0 [pid 5839] mkdir("./71", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 186.704229][ T6852] bcachefs (loop2): check_subvolume_structure... done [ 186.705011][ T6852] bcachefs (loop2): check_directory_structure... done [ 186.705814][ T6852] bcachefs (loop2): check_nlinks... done [ 186.707045][ T6852] bcachefs (loop2): check_rebalance_work... done [ 186.707898][ T6852] bcachefs (loop2): resume_logged_ops... done [ 186.708609][ T6852] bcachefs (loop2): delete_dead_inodes... done [ 186.710291][ T6852] bcachefs (loop2): set_fs_needs_rebalance... done [ 186.714877][ T6852] bcachefs (loop2): done starting filesystem [ 186.782222][ T5839] bcachefs (loop2): shutting down [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7050 attached , child_tidptr=0x5555901c6750) = 7050 [ 186.782243][ T5839] bcachefs (loop2): going read-only [ 186.782273][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 186.820878][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 186.822265][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 186.823273][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 186.825071][ T5839] bcachefs (loop2): marking filesystem clean [ 186.868317][ T5839] bcachefs (loop2): shutdown complete [pid 7050] set_robust_list(0x5555901c6760, 24) = 0 [pid 7050] chdir("./71") = 0 [pid 7050] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7050] setpgid(0, 0) = 0 [pid 7050] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 187.593091][ T6863] loop2: detected capacity change from 0 to 32768 [ 187.750946][ T6863] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 187.750974][ T6863] allowing incompatible features above 0.0: (unknown version) [ 187.750988][ T6863] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 7050] write(3, "1000", 4) = 4 [pid 7050] close(3) = 0 [pid 7050] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7050] write(1, "executing program\n", 18executing program ) = 18 [pid 7050] memfd_create("syzkaller", 0) = 3 [pid 7050] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 187.751017][ T6863] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 187.751148][ T6863] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 187.751381][ T6863] bcachefs (loop2): Version upgrade required: [ 187.751381][ T6863] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 187.751381][ T6863] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 187.751381][ T6863] 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,check_rebalance_work,set_fs_needs_rebalance [ 187.770503][ T6863] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 187.770531][ T6863] size != 0, deleting [ 187.772181][ T6863] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 187.775488][ T6863] bcachefs (loop2): check_topology... done [ 187.777052][ T6863] bcachefs (loop2): accounting_read... done [ 187.804049][ T6863] bcachefs (loop2): alloc_read... done [ 187.805003][ T6863] bcachefs (loop2): snapshots_read... done [ 187.805859][ T6863] bcachefs (loop2): check_allocations... [ 187.807862][ T6863] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 187.807884][ T6863] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 187.811403][ T6863] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 187.811425][ T6863] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 187.814106][ T6863] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 187.814126][ T6863] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 187.815712][ T6863] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 187.815731][ T6863] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 187.818286][ T6863] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 187.818304][ T6863] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 187.820285][ T6863] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.820435][ T6863] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 187.821032][ T6863] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7050] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7050] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7050] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7050] ioctl(4, LOOP_SET_FD, 3) = 0 [ 187.821139][ T6863] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 187.821550][ T6863] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.821655][ T6863] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 187.821866][ T6863] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.821972][ T6863] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7050] close(3) = 0 [pid 7050] close(4) = 0 [pid 7050] mkdir("./file1", 0777) = 0 [ 187.822178][ T6863] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.822286][ T6863] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 187.822486][ T6863] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.822591][ T6863] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 187.822811][ T6863] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.822917][ T6863] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 187.823129][ T6863] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 187.823235][ T6863] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 187.823435][ T6863] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 187.824029][ T6863] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 187.824243][ T6863] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 187.824349][ T6863] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 187.824587][ T6863] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 187.824603][ T6863] Ratelimiting new instances of previous error [ 187.824740][ T6863] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 187.824755][ T6863] Ratelimiting new instances of previous error [ 187.838212][ T6863] done [ 187.840754][ T6863] bcachefs (loop2): going read-write [ 187.846132][ T6863] bcachefs (loop2): journal_replay... done [ 187.874076][ T6863] bcachefs (loop2): check_alloc_info... [ 187.875890][ T6863] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 187.875909][ T6863] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 187.875921][ T6863] gen 0 oldest_gen 0 data_type need_discard [ 187.875934][ T6863] journal_seq_nonempty 6 [ 187.875944][ T6863] journal_seq_empty 0 [ 187.875954][ T6863] need_discard 1 [ 187.875964][ T6863] need_inc_gen 1 [ 187.875974][ T6863] dirty_sectors 0 [ 187.875984][ T6863] stripe_sectors 0 [ 187.875994][ T6863] cached_sectors 0 [ 187.876004][ T6863] stripe 0 [ 187.876016][ T6863] stripe_redundancy 0 [ 187.876026][ T6863] io_time[READ] 1 [ 187.876036][ T6863] io_time[WRITE] 768 [ 187.876046][ T6863] fragmentation 0 [ 187.876056][ T6863] bp_start 8 [ 187.876066][ T6863] , fixing [ 187.893654][ T6863] done [ 187.899944][ T6863] bcachefs (loop2): check_lrus... done [ 187.901307][ T6863] bcachefs (loop2): check_btree_backpointers... done [ 187.903464][ T6863] bcachefs (loop2): check_backpointers_to_extents... done [ 187.906189][ T6863] bcachefs (loop2): check_extents_to_backpointers... [ 187.907549][ T6863] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 187.911770][ T6863] done [ 187.912564][ T6863] bcachefs (loop2): check_alloc_to_lru_refs... [ 187.914460][ T6863] bcachefs (loop2): missing fragmentation lru entry [ 187.914479][ T6863] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 187.914491][ T6863] gen 0 oldest_gen 0 data_type user [ 187.914501][ T6863] journal_seq_nonempty 5 [ 187.914512][ T6863] journal_seq_empty 134217728 [ 187.914522][ T6863] need_discard 1 [ 187.914532][ T6863] need_inc_gen 1 [ 187.914541][ T6863] dirty_sectors 16 [ 187.914551][ T6863] stripe_sectors 1802251 [ 187.914561][ T6863] cached_sectors 0 [ 187.914571][ T6863] stripe 0 [ 187.914581][ T6863] stripe_redundancy 0 [ 187.914590][ T6863] io_time[READ] 1 [ 187.914602][ T6863] io_time[WRITE] 512 [ 187.914611][ T6863] fragmentation 0 [ 187.914621][ T6863] bp_start 7 [ 187.914648][ T6863] , fixing [ 187.916206][ T6863] done [ 187.917716][ T6863] bcachefs (loop2): bucket_gens_init... done [pid 7050] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 187.922586][ T6863] bcachefs (loop2): check_snapshot_trees... done [ 187.924431][ T6863] bcachefs (loop2): check_snapshots... ** 2 printk messages dropped ** [ 187.936818][ T6863] done ** 2 printk messages dropped ** [ 187.940526][ T6863] bcachefs (loop2): delete_dead_snapshots... done ** 9 printk messages dropped ** [ 187.942462][ T6863] bi_sectors=0 ** 9 printk messages dropped ** [ 187.942556][ T6863] bi_dev=0 ** 9 printk messages dropped ** [ 187.943214][ T6863] bi_fields_set=0 ** 1 printk messages dropped ** [ 187.943235][ T6863] bi_dir_offset=32 [pid 7050] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7050] chdir("./file1") = 0 [pid 7050] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7050] ioctl(4, LOOP_CLR_FD) = 0 [pid 7050] close(4) = 0 [pid 7050] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7050] exit_group(0) = ? [pid 7050] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7050, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] umount2("./71", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./71", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 187.943244][ T6863] bi_subvol=0 [ 187.943253][ T6863] bi_parent_subvol=0 [ 187.943263][ T6863] bi_nocow=0 [ 187.943272][ T6863] bi_depth=0 [ 187.943281][ T6863] bi_inodes_32bit=0 [ 187.943291][ T6863] bi_casefold=0, fixing [ 187.944950][ T6863] done [ 187.945627][ T6863] bcachefs (loop2): check_extents... done [ 187.947131][ T6863] bcachefs (loop2): check_indirect_extents... done [ 187.947981][ T6863] bcachefs (loop2): check_dirents... [ 187.952093][ T6863] bcachefs (loop2): directory with missing backpointer [ 187.952113][ T6863] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 187.952128][ T6863] inum: 4098:4294967295 [ 187.952138][ T6863] mode=40755 [ 187.952148][ T6863] flags=(11300000) [ 187.952158][ T6863] journal_seq=22 [ 187.952180][ T6863] hash_seed=ece93825deac2443 [ 187.952190][ T6863] hash_type=siphash [ 187.952200][ T6863] bi_size=0 [ 187.952209][ T6863] bi_sectors=0 [ 187.952219][ T6863] bi_version=0 [ 187.952228][ T6863] bi_atime=2770562249 [ 187.952238][ T6863] bi_ctime=2780562352 [ 187.952247][ T6863] bi_mtime=2780562352 [ 187.952258][ T6863] bi_otime=2770562249 [ 187.952268][ T6863] bi_uid=0 [ 187.952276][ T6863] bi_gid=0 [ 187.952285][ T6863] bi_nlink=0 [ 187.952295][ T6863] bi_generation=0 [ 187.952304][ T6863] bi_dev=0 [ 187.952313][ T6863] bi_data_checksum=0 [ 187.952322][ T6863] bi_compression=0 [ 187.952331][ T6863] bi_project=0 [ 187.952340][ T6863] bi_background_compression=0 [ 187.952350][ T6863] bi_data_replicas=0 [ 187.952359][ T6863] bi_promote_target=0 [ 187.952369][ T6863] bi_foreground_target=64 [ 187.952378][ T6863] bi_background_target=1 [ 187.952388][ T6863] bi_erasure_code=0 [ 187.952397][ T6863] bi_fields_set=0 [ 187.952406][ T6863] bi_dir=0 [ 187.952415][ T6863] bi_dir_offset=0 [ 187.952423][ T6863] bi_subvol=0 [ 187.952433][ T6863] bi_parent_subvol=0 [ 187.952443][ T6863] bi_nocow=0 [ 187.952452][ T6863] bi_depth=0 [ 187.952460][ T6863] bi_inodes_32bit=0 [ 187.952470][ T6863] bi_casefold=0, fixing [ 187.959990][ T6863] done [ 187.960878][ T6863] bcachefs (loop2): check_xattrs... done [ 187.963521][ T6863] bcachefs (loop2): check_root... done [ 187.964709][ T6863] bcachefs (loop2): check_unreachable_inodes... done [ 187.966254][ T6863] bcachefs (loop2): check_subvolume_structure... done [ 187.967024][ T6863] bcachefs (loop2): check_directory_structure... done [ 187.967834][ T6863] bcachefs (loop2): check_nlinks... [ 187.968537][ T6863] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 187.970426][ T6863] done [ 187.971151][ T6863] bcachefs (loop2): check_rebalance_work... done [ 187.972353][ T6863] bcachefs (loop2): resume_logged_ops... done [ 187.973175][ T6863] bcachefs (loop2): delete_dead_inodes... done [ 187.982481][ T6863] bcachefs (loop2): set_fs_needs_rebalance... done [ 187.994289][ T6863] bcachefs (loop2): check_extents_to_backpointers... [ 187.995287][ T6863] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 187.995837][ T6872] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 187.995856][ T6872] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 188.000435][ T6863] done [ 188.022334][ T6863] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 188.022360][ T6863] bcachefs (loop2): check_alloc_info... done [ 188.027404][ T6863] bcachefs (loop2): check_lrus... done [ 188.028447][ T6863] bcachefs (loop2): check_btree_backpointers... done [ 188.030126][ T6863] bcachefs (loop2): check_backpointers_to_extents... done [ 188.031694][ T6863] bcachefs (loop2): check_extents_to_backpointers... done [ 188.037895][ T6863] bcachefs (loop2): check_alloc_to_lru_refs... done [ 188.041309][ T6863] bcachefs (loop2): bucket_gens_init... done [ 188.048992][ T6863] bcachefs (loop2): check_snapshot_trees... done [ 188.050201][ T6863] bcachefs (loop2): check_snapshots... done [ 188.051000][ T6863] bcachefs (loop2): check_subvols... done [ 188.052115][ T6863] bcachefs (loop2): check_subvol_children... done [pid 5839] umount2("./71/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./71/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./71/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./71/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 188.052982][ T6863] bcachefs (loop2): delete_dead_snapshots... done [ 188.053688][ T6863] bcachefs (loop2): check_inodes... done [ 188.059039][ T6863] bcachefs (loop2): check_extents... done [ 188.061592][ T6863] bcachefs (loop2): check_indirect_extents... done [ 188.062188][ T6863] bcachefs (loop2): check_dirents... done [ 188.063686][ T6863] bcachefs (loop2): check_xattrs... done [ 188.070091][ T6863] bcachefs (loop2): check_root... done [ 188.070832][ T6863] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] openat(AT_FDCWD, "./71/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./71/file1") = 0 [pid 5839] umount2("./71/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./71/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./71/binderfs") = 0 [ 188.071672][ T6863] bcachefs (loop2): check_subvolume_structure... done [ 188.072368][ T6863] bcachefs (loop2): check_directory_structure... done [ 188.073059][ T6863] bcachefs (loop2): check_nlinks... done [ 188.074191][ T6863] bcachefs (loop2): check_rebalance_work... done [ 188.080743][ T6863] bcachefs (loop2): resume_logged_ops... done [ 188.081535][ T6863] bcachefs (loop2): delete_dead_inodes... done [ 188.082269][ T6863] bcachefs (loop2): set_fs_needs_rebalance... done [ 188.085270][ T6863] bcachefs (loop2): done starting filesystem [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./71") = 0 [pid 5839] mkdir("./72", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 188.160290][ T5839] bcachefs (loop2): shutting down [ 188.160313][ T5839] bcachefs (loop2): going read-only [ 188.160574][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 188.195305][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 188.196085][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 188.196748][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 188.198528][ T5839] bcachefs (loop2): marking filesystem clean [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7061 ./strace-static-x86_64: Process 7061 attached [pid 7061] set_robust_list(0x5555901c6760, 24) = 0 [pid 7061] chdir("./72") = 0 [pid 7061] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7061] setpgid(0, 0) = 0 [ 188.261788][ T5839] bcachefs (loop2): shutdown complete [ 189.060892][ T6874] loop2: detected capacity change from 0 to 32768 [ 189.219658][ T6874] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 189.219686][ T6874] allowing incompatible features above 0.0: (unknown version) [ 189.219699][ T6874] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 7061] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7061] write(3, "1000", 4) = 4 [pid 7061] close(3) = 0 [pid 7061] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7061] write(1, "executing program\n", 18executing program ) = 18 [ 189.219727][ T6874] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 189.219855][ T6874] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 189.220092][ T6874] bcachefs (loop2): Version upgrade required: [ 189.220092][ T6874] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 189.220092][ T6874] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7061] memfd_create("syzkaller", 0) = 3 [pid 7061] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 189.220092][ T6874] 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,check_rebalance_work,set_fs_needs_rebalance [ 189.239460][ T6874] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 189.239487][ T6874] size != 0, deleting [ 189.240650][ T6874] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 189.244133][ T6874] bcachefs (loop2): check_topology... done [ 189.246105][ T6874] bcachefs (loop2): accounting_read... done [ 189.293488][ T6874] bcachefs (loop2): alloc_read... done [ 189.294428][ T6874] bcachefs (loop2): snapshots_read... done [ 189.295275][ T6874] bcachefs (loop2): check_allocations... [ 189.297888][ T6874] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 189.297908][ T6874] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 189.301065][ T6874] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 189.301087][ T6874] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 189.302476][ T6874] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 189.302495][ T6874] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 189.304069][ T6874] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 189.304088][ T6874] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 189.306523][ T6874] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 189.306540][ T6874] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 189.308032][ T6874] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.308159][ T6874] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 189.308721][ T6874] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7061] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 189.308830][ T6874] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 189.310079][ T6874] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.310208][ T6874] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 189.310476][ T6874] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.310583][ T6874] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7061] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7061] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7061] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7061] close(3) = 0 [pid 7061] close(4) = 0 [pid 7061] mkdir("./file1", 0777) = 0 [ 189.310788][ T6874] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.310897][ T6874] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 189.311102][ T6874] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.311206][ T6874] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 189.311418][ T6874] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.311526][ T6874] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 189.311728][ T6874] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 189.311831][ T6874] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 189.312043][ T6874] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 189.312147][ T6874] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 189.312367][ T6874] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 189.312475][ T6874] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 189.312704][ T6874] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 189.312721][ T6874] Ratelimiting new instances of previous error [ 189.312867][ T6874] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 189.312884][ T6874] Ratelimiting new instances of previous error [ 189.327078][ T6874] done [ 189.329628][ T6874] bcachefs (loop2): going read-write [ 189.335135][ T6874] bcachefs (loop2): journal_replay... done [ 189.361921][ T6874] bcachefs (loop2): check_alloc_info... [ 189.364166][ T6874] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 189.364185][ T6874] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 189.364199][ T6874] gen 0 oldest_gen 0 data_type need_discard [ 189.364210][ T6874] journal_seq_nonempty 6 [ 189.364222][ T6874] journal_seq_empty 0 [ 189.364232][ T6874] need_discard 1 [ 189.364242][ T6874] need_inc_gen 1 [ 189.364254][ T6874] dirty_sectors 0 [ 189.364262][ T6874] stripe_sectors 0 [ 189.364281][ T6874] cached_sectors 0 [ 189.364292][ T6874] stripe 0 [ 189.364302][ T6874] stripe_redundancy 0 [ 189.364312][ T6874] io_time[READ] 1 [ 189.364322][ T6874] io_time[WRITE] 768 [ 189.364332][ T6874] fragmentation 0 [ 189.364344][ T6874] bp_start 8 [ 189.364353][ T6874] , fixing [ 189.380201][ T6874] done [ 189.387091][ T6874] bcachefs (loop2): check_lrus... done [ 189.388060][ T6874] bcachefs (loop2): check_btree_backpointers... done [ 189.389505][ T6874] bcachefs (loop2): check_backpointers_to_extents... done [ 189.394709][ T6874] bcachefs (loop2): check_extents_to_backpointers... [ 189.396069][ T6874] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 189.397470][ T6874] done [ 189.398081][ T6874] bcachefs (loop2): check_alloc_to_lru_refs... [ 189.400719][ T6874] bcachefs (loop2): missing fragmentation lru entry [ 189.400737][ T6874] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 189.400749][ T6874] gen 0 oldest_gen 0 data_type user [ 189.400758][ T6874] journal_seq_nonempty 5 [ 189.400767][ T6874] journal_seq_empty 134217728 [ 189.400776][ T6874] need_discard 1 [ 189.400786][ T6874] need_inc_gen 1 [ 189.400797][ T6874] dirty_sectors 16 [ 189.400807][ T6874] stripe_sectors 1802251 [ 189.400817][ T6874] cached_sectors 0 [ 189.400827][ T6874] stripe 0 [ 189.400837][ T6874] stripe_redundancy 0 [ 189.400848][ T6874] io_time[READ] 1 [ 189.400858][ T6874] io_time[WRITE] 512 [ 189.400868][ T6874] fragmentation 0 [ 189.400879][ T6874] bp_start 7 [ 189.400888][ T6874] , fixing [ 189.404090][ T6874] done [ 189.406159][ T6874] bcachefs (loop2): bucket_gens_init... done [ 189.408250][ T6874] bcachefs (loop2): check_snapshot_trees... done [ 189.409060][ T6874] bcachefs (loop2): check_snapshots... [ 189.410465][ T6874] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 189.410484][ T6874] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 4 printk messages dropped ** [ 189.425257][ T6874] bcachefs (loop2): check_inodes... ** 7 printk messages dropped ** [ 189.426884][ T6874] bi_size=0 ** 6 printk messages dropped ** [pid 7061] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7061] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7061] chdir("./file1") = 0 [pid 7061] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7061] ioctl(4, LOOP_CLR_FD) = 0 [pid 7061] close(4) = 0 [ 189.426951][ T6874] bi_uid=0 ** 9 printk messages dropped ** [ 189.427047][ T6874] bi_promote_target=0 ** 5 printk messages dropped ** [ 189.427104][ T6874] bi_dir_offset=32 [ 189.427114][ T6874] bi_subvol=0 [ 189.427151][ T6874] bi_parent_subvol=0 [ 189.427160][ T6874] bi_nocow=0 [ 189.427169][ T6874] bi_depth=0 [ 189.427178][ T6874] bi_inodes_32bit=0 [ 189.427190][ T6874] bi_casefold=0, fixing [ 189.428718][ T6874] done [ 189.431351][ T6874] bcachefs (loop2): check_extents... done [pid 7061] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7061] exit_group(0) = ? [pid 7061] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7061, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./72", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./72", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 189.434927][ T6874] bcachefs (loop2): check_indirect_extents... done [ 189.437196][ T6874] bcachefs (loop2): check_dirents... [ 189.438857][ T6874] bcachefs (loop2): directory with missing backpointer [ 189.438873][ T6874] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 189.438888][ T6874] inum: 4098:4294967295 [ 189.438898][ T6874] mode=40755 [ 189.438907][ T6874] flags=(11300000) [ 189.438916][ T6874] journal_seq=22 [ 189.438925][ T6874] hash_seed=ece93825deac2443 [ 189.438935][ T6874] hash_type=siphash [ 189.438944][ T6874] bi_size=0 [ 189.438953][ T6874] bi_sectors=0 [ 189.438962][ T6874] bi_version=0 [ 189.438971][ T6874] bi_atime=2770562249 [ 189.438981][ T6874] bi_ctime=2780562352 [ 189.438990][ T6874] bi_mtime=2780562352 [ 189.438999][ T6874] bi_otime=2770562249 [ 189.439009][ T6874] bi_uid=0 [ 189.439017][ T6874] bi_gid=0 [ 189.439026][ T6874] bi_nlink=0 [ 189.439035][ T6874] bi_generation=0 [ 189.439044][ T6874] bi_dev=0 [ 189.439053][ T6874] bi_data_checksum=0 [ 189.439062][ T6874] bi_compression=0 [ 189.439071][ T6874] bi_project=0 [ 189.439080][ T6874] bi_background_compression=0 [ 189.439090][ T6874] bi_data_replicas=0 [ 189.439100][ T6874] bi_promote_target=0 [ 189.439110][ T6874] bi_foreground_target=64 [ 189.439118][ T6874] bi_background_target=1 [ 189.439129][ T6874] bi_erasure_code=0 [ 189.439138][ T6874] bi_fields_set=0 [ 189.439147][ T6874] bi_dir=0 [ 189.439157][ T6874] bi_dir_offset=0 [ 189.439166][ T6874] bi_subvol=0 [ 189.439175][ T6874] bi_parent_subvol=0 [ 189.439184][ T6874] bi_nocow=0 [ 189.442972][ T6874] bi_depth=0 [ 189.442986][ T6874] bi_inodes_32bit=0 [ 189.442996][ T6874] bi_casefold=0, fixing [ 189.445864][ T6874] done [ 189.446559][ T6874] bcachefs (loop2): check_xattrs... done [ 189.448342][ T6874] bcachefs (loop2): check_root... done [ 189.449877][ T6874] bcachefs (loop2): check_unreachable_inodes... done [ 189.450911][ T6874] bcachefs (loop2): check_subvolume_structure... done [ 189.451743][ T6874] bcachefs (loop2): check_directory_structure... done [ 189.452518][ T6874] bcachefs (loop2): check_nlinks... [ 189.453215][ T6874] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 189.454312][ T6874] done [ 189.454974][ T6874] bcachefs (loop2): check_rebalance_work... done [ 189.456127][ T6874] bcachefs (loop2): resume_logged_ops... done [ 189.456868][ T6874] bcachefs (loop2): delete_dead_inodes... done [ 189.466607][ T6874] bcachefs (loop2): set_fs_needs_rebalance... [ 189.475031][ T6883] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 189.475053][ T6883] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 189.477941][ T6874] done [ 189.479335][ T6874] bcachefs (loop2): check_extents_to_backpointers... [ 189.480290][ T6874] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 189.487601][ T6874] done [ 189.505669][ T6874] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 189.505698][ T6874] bcachefs (loop2): check_alloc_info... done [ 189.514814][ T6874] bcachefs (loop2): check_lrus... done [ 189.519311][ T6874] bcachefs (loop2): check_btree_backpointers... done [ 189.520881][ T6874] bcachefs (loop2): check_backpointers_to_extents... done [ 189.522316][ T6874] bcachefs (loop2): check_extents_to_backpointers... done [ 189.526816][ T6874] bcachefs (loop2): check_alloc_to_lru_refs... done [ 189.529039][ T6874] bcachefs (loop2): bucket_gens_init... done [ 189.538472][ T6874] bcachefs (loop2): check_snapshot_trees... done [ 189.539987][ T6874] bcachefs (loop2): check_snapshots... done [ 189.540850][ T6874] bcachefs (loop2): check_subvols... done [ 189.542219][ T6874] bcachefs (loop2): check_subvol_children... done [ 189.542911][ T6874] bcachefs (loop2): delete_dead_snapshots... done [ 189.543584][ T6874] bcachefs (loop2): check_inodes... done [ 189.548392][ T6874] bcachefs (loop2): check_extents... done [ 189.551242][ T6874] bcachefs (loop2): check_indirect_extents... done [ 189.551948][ T6874] bcachefs (loop2): check_dirents... done [pid 5839] umount2("./72/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./72/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./72/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./72/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./72/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 189.558988][ T6874] bcachefs (loop2): check_xattrs... done [ 189.560154][ T6874] bcachefs (loop2): check_root... done [ 189.561596][ T6874] bcachefs (loop2): check_unreachable_inodes... done [ 189.562503][ T6874] bcachefs (loop2): check_subvolume_structure... done [ 189.563217][ T6874] bcachefs (loop2): check_directory_structure... done [ 189.563951][ T6874] bcachefs (loop2): check_nlinks... done [ 189.569626][ T6874] bcachefs (loop2): check_rebalance_work... done [ 189.570985][ T6874] bcachefs (loop2): resume_logged_ops... done [pid 5839] rmdir("./72/file1") = 0 [pid 5839] umount2("./72/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./72/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./72/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./72") = 0 [pid 5839] mkdir("./73", 0777) = 0 [ 189.571706][ T6874] bcachefs (loop2): delete_dead_inodes... done [ 189.572480][ T6874] bcachefs (loop2): set_fs_needs_rebalance... done [ 189.575289][ T6874] bcachefs (loop2): done starting filesystem [ 189.642276][ T5839] bcachefs (loop2): shutting down [ 189.642295][ T5839] bcachefs (loop2): going read-only [ 189.642327][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 189.683301][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7072 attached [pid 7072] set_robust_list(0x5555901c6760, 24) = 0 [pid 7072] chdir("./73" [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 7072 [pid 7072] <... chdir resumed>) = 0 [pid 7072] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7072] setpgid(0, 0) = 0 [pid 7072] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7072] write(3, "1000", 4) = 4 [pid 7072] close(3) = 0 [ 189.684201][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 189.685006][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 189.686805][ T5839] bcachefs (loop2): marking filesystem clean [ 189.745002][ T5839] bcachefs (loop2): shutdown complete [ 190.575799][ T6885] loop2: detected capacity change from 0 to 32768 [ 190.704271][ T6885] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 7072] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7072] write(1, "executing program\n", 18executing program ) = 18 [pid 7072] memfd_create("syzkaller", 0) = 3 [pid 7072] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 190.704294][ T6885] allowing incompatible features above 0.0: (unknown version) [ 190.704307][ T6885] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 190.704335][ T6885] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 190.704483][ T6885] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 190.704720][ T6885] bcachefs (loop2): Version upgrade required: [ 190.704720][ T6885] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 190.704720][ T6885] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 190.704720][ T6885] 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,check_rebalance_work,set_fs_needs_rebalance [ 190.724388][ T6885] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 190.724415][ T6885] size != 0, deleting [ 190.725586][ T6885] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 190.728922][ T6885] bcachefs (loop2): check_topology... done [ 190.731114][ T6885] bcachefs (loop2): accounting_read... done [ 190.753718][ T6885] bcachefs (loop2): alloc_read... done [ 190.754878][ T6885] bcachefs (loop2): snapshots_read... done [ 190.755722][ T6885] bcachefs (loop2): check_allocations... [ 190.757659][ T6885] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 190.757681][ T6885] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 190.760762][ T6885] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 190.760781][ T6885] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 190.762174][ T6885] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 190.762193][ T6885] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 190.763778][ T6885] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 190.763796][ T6885] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 190.766953][ T6885] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 190.766971][ T6885] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 190.767984][ T6885] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7072] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7072] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7072] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7072] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7072] close(3) = 0 [pid 7072] close(4) = 0 [ 190.768107][ T6885] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 190.768683][ T6885] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.768791][ T6885] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 190.771133][ T6885] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.771246][ T6885] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7072] mkdir("./file1", 0777) = 0 [ 190.771506][ T6885] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.771609][ T6885] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 190.771815][ T6885] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.771917][ T6885] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 190.772119][ T6885] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.772225][ T6885] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 190.772425][ T6885] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.772529][ T6885] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 190.772750][ T6885] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 190.772865][ T6885] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 190.773068][ T6885] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 190.773166][ T6885] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 190.773435][ T6885] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 190.773550][ T6885] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 190.773787][ T6885] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 190.773803][ T6885] Ratelimiting new instances of previous error [ 190.773933][ T6885] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 190.773950][ T6885] Ratelimiting new instances of previous error [ 190.788136][ T6885] done [ 190.790707][ T6885] bcachefs (loop2): going read-write [ 190.796639][ T6885] bcachefs (loop2): journal_replay... done [ 190.825513][ T6885] bcachefs (loop2): check_alloc_info... [ 190.827324][ T6885] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 190.827343][ T6885] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 190.827355][ T6885] gen 0 oldest_gen 0 data_type need_discard [ 190.827368][ T6885] journal_seq_nonempty 6 [ 190.827378][ T6885] journal_seq_empty 0 [ 190.827390][ T6885] need_discard 1 [ 190.827399][ T6885] need_inc_gen 1 [ 190.827417][ T6885] dirty_sectors 0 [ 190.827428][ T6885] stripe_sectors 0 [ 190.827439][ T6885] cached_sectors 0 [ 190.827448][ T6885] stripe 0 [ 190.827460][ T6885] stripe_redundancy 0 [ 190.827470][ T6885] io_time[READ] 1 [ 190.827480][ T6885] io_time[WRITE] 768 [ 190.827490][ T6885] fragmentation 0 [ 190.827502][ T6885] bp_start 8 [ 190.827512][ T6885] , fixing [ 190.845775][ T6885] done [ 190.849776][ T6885] bcachefs (loop2): check_lrus... done [ 190.850555][ T6885] bcachefs (loop2): check_btree_backpointers... done [ 190.851869][ T6885] bcachefs (loop2): check_backpointers_to_extents... done [ 190.857630][ T6885] bcachefs (loop2): check_extents_to_backpointers... [ 190.858967][ T6885] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 190.862962][ T6885] done [ 190.863717][ T6885] bcachefs (loop2): check_alloc_to_lru_refs... [ 190.866090][ T6885] bcachefs (loop2): missing fragmentation lru entry [ 190.866107][ T6885] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 190.866118][ T6885] gen 0 oldest_gen 0 data_type user [ 190.866129][ T6885] journal_seq_nonempty 5 [ 190.866139][ T6885] journal_seq_empty 134217728 [ 190.866151][ T6885] need_discard 1 [ 190.866158][ T6885] need_inc_gen 1 [ 190.866168][ T6885] dirty_sectors 16 ** 1 printk messages dropped ** [ 190.866188][ T6885] cached_sectors 0 [ 190.866197][ T6885] stripe 0 [ 190.866207][ T6885] stripe_redundancy 0 [ 190.866217][ T6885] io_time[READ] 1 ** 6 printk messages dropped ** [ 190.874173][ T6885] bcachefs (loop2): check_snapshot_trees... done ** 1 printk messages dropped ** [ 190.876052][ T6885] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 1 printk messages dropped ** [ 190.886913][ T6885] done ** 1 printk messages dropped ** [ 190.889128][ T6885] bcachefs (loop2): check_subvol_children... done ** 4 printk messages dropped ** [ 190.892578][ T6885] mode=40755 ** 10 printk messages dropped ** [ 190.892684][ T6885] bi_otime=2770562249 ** 8 printk messages dropped ** [ 190.892769][ T6885] bi_background_compression=0 [pid 7072] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7072] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7072] chdir("./file1") = 0 [pid 7072] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7072] ioctl(4, LOOP_CLR_FD) = 0 [pid 7072] close(4) = 0 [pid 7072] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7072] exit_group(0) = ? [pid 7072] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7072, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./73", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./73", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 ** 9 printk messages dropped ** [ 190.892865][ T6885] bi_parent_subvol=0 ** 1 printk messages dropped ** [ 190.892884][ T6885] bi_depth=0 [ 190.892893][ T6885] bi_inodes_32bit=0 [ 190.892903][ T6885] bi_casefold=0, fixing [ 190.894553][ T6885] done [ 190.895219][ T6885] bcachefs (loop2): check_extents... done [ 190.897218][ T6885] bcachefs (loop2): check_indirect_extents... done [ 190.898007][ T6885] bcachefs (loop2): check_dirents... [ 190.901858][ T6885] bcachefs (loop2): directory with missing backpointer [ 190.901876][ T6885] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 190.901891][ T6885] inum: 4098:4294967295 [ 190.901902][ T6885] mode=40755 [ 190.901911][ T6885] flags=(11300000) [ 190.901921][ T6885] journal_seq=22 [ 190.901931][ T6885] hash_seed=ece93825deac2443 [ 190.901941][ T6885] hash_type=siphash [ 190.901950][ T6885] bi_size=0 [ 190.901960][ T6885] bi_sectors=0 [ 190.901969][ T6885] bi_version=0 [ 190.901978][ T6885] bi_atime=2770562249 [ 190.901988][ T6885] bi_ctime=2780562352 [ 190.901998][ T6885] bi_mtime=2780562352 [ 190.902007][ T6885] bi_otime=2770562249 [ 190.902019][ T6885] bi_uid=0 [ 190.902026][ T6885] bi_gid=0 [ 190.902035][ T6885] bi_nlink=0 [ 190.902044][ T6885] bi_generation=0 [ 190.902054][ T6885] bi_dev=0 [ 190.902063][ T6885] bi_data_checksum=0 [ 190.902072][ T6885] bi_compression=0 [ 190.902082][ T6885] bi_project=0 [ 190.902092][ T6885] bi_background_compression=0 [ 190.902103][ T6885] bi_data_replicas=0 [ 190.902113][ T6885] bi_promote_target=0 [ 190.902122][ T6885] bi_foreground_target=64 [ 190.902132][ T6885] bi_background_target=1 [ 190.902142][ T6885] bi_erasure_code=0 [ 190.902152][ T6885] bi_fields_set=0 [ 190.902159][ T6885] bi_dir=0 [ 190.902169][ T6885] bi_dir_offset=0 [ 190.902178][ T6885] bi_subvol=0 [ 190.902187][ T6885] bi_parent_subvol=0 [ 190.902197][ T6885] bi_nocow=0 [ 190.902206][ T6885] bi_depth=0 [ 190.902215][ T6885] bi_inodes_32bit=0 [ 190.902224][ T6885] bi_casefold=0, fixing [ 190.909440][ T6885] done [ 190.910394][ T6885] bcachefs (loop2): check_xattrs... done [ 190.912906][ T6885] bcachefs (loop2): check_root... done [ 190.914053][ T6885] bcachefs (loop2): check_unreachable_inodes... done [ 190.915130][ T6885] bcachefs (loop2): check_subvolume_structure... done [ 190.915907][ T6885] bcachefs (loop2): check_directory_structure... done [ 190.916662][ T6885] bcachefs (loop2): check_nlinks... [ 190.917384][ T6885] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 190.918429][ T6885] done [ 190.920502][ T6885] bcachefs (loop2): check_rebalance_work... done [ 190.921730][ T6885] bcachefs (loop2): resume_logged_ops... done [ 190.922492][ T6885] bcachefs (loop2): delete_dead_inodes... done [ 190.931558][ T6885] bcachefs (loop2): set_fs_needs_rebalance... [ 190.938997][ T6894] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 190.939020][ T6894] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 190.941539][ T6885] done [ 190.942546][ T6885] bcachefs (loop2): check_extents_to_backpointers... [ 190.943500][ T6885] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 190.948899][ T6885] done [ 190.973577][ T6885] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 190.973603][ T6885] bcachefs (loop2): check_alloc_info... done [ 190.979728][ T6885] bcachefs (loop2): check_lrus... done [ 190.981060][ T6885] bcachefs (loop2): check_btree_backpointers... done [ 190.982670][ T6885] bcachefs (loop2): check_backpointers_to_extents... done [ 190.984146][ T6885] bcachefs (loop2): check_extents_to_backpointers... done [ 190.990137][ T6885] bcachefs (loop2): check_alloc_to_lru_refs... done [ 190.992806][ T6885] bcachefs (loop2): bucket_gens_init... done [ 191.001093][ T6885] bcachefs (loop2): check_snapshot_trees... done [ 191.002210][ T6885] bcachefs (loop2): check_snapshots... done [ 191.003513][ T6885] bcachefs (loop2): check_subvols... done [ 191.004408][ T6885] bcachefs (loop2): check_subvol_children... done [pid 5839] umount2("./73/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./73/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./73/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./73/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./73/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 191.010389][ T6885] bcachefs (loop2): delete_dead_snapshots... done [ 191.011105][ T6885] bcachefs (loop2): check_inodes... done [ 191.012238][ T6885] bcachefs (loop2): check_extents... done [ 191.014290][ T6885] bcachefs (loop2): check_indirect_extents... done [ 191.014979][ T6885] bcachefs (loop2): check_dirents... done [ 191.020252][ T6885] bcachefs (loop2): check_xattrs... done [ 191.021296][ T6885] bcachefs (loop2): check_root... done [ 191.022041][ T6885] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./73/file1") = 0 [ 191.024141][ T6885] bcachefs (loop2): check_subvolume_structure... done [ 191.024865][ T6885] bcachefs (loop2): check_directory_structure... done [ 191.029909][ T6885] bcachefs (loop2): check_nlinks... done [ 191.031151][ T6885] bcachefs (loop2): check_rebalance_work... done [ 191.031862][ T6885] bcachefs (loop2): resume_logged_ops... done [ 191.032510][ T6885] bcachefs (loop2): delete_dead_inodes... done [ 191.033299][ T6885] bcachefs (loop2): set_fs_needs_rebalance... done [ 191.042414][ T6885] bcachefs (loop2): done starting filesystem [pid 5839] umount2("./73/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./73/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./73/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./73") = 0 [ 191.111701][ T5839] bcachefs (loop2): shutting down [ 191.111720][ T5839] bcachefs (loop2): going read-only [ 191.111749][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 191.113630][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 191.113630][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 191.113804][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [pid 5839] mkdir("./74", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7083 ./strace-static-x86_64: Process 7083 attached [ 191.113820][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 191.113840][ T12] loop2 checksum error [ 191.150324][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 191.155123][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 191.155984][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [pid 7083] set_robust_list(0x5555901c6760, 24) = 0 [pid 7083] chdir("./74") = 0 [pid 7083] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7083] setpgid(0, 0) = 0 [pid 7083] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 191.157771][ T5839] bcachefs (loop2): marking filesystem clean [ 191.214947][ T5839] bcachefs (loop2): shutdown complete [ 192.013382][ T6896] loop2: detected capacity change from 0 to 32768 [ 192.140914][ T6896] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 192.140942][ T6896] allowing incompatible features above 0.0: (unknown version) [ 192.140958][ T6896] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 7083] write(3, "1000", 4) = 4 [pid 7083] close(3) = 0 [pid 7083] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7083] write(1, "executing program\n", 18executing program ) = 18 [pid 7083] memfd_create("syzkaller", 0) = 3 [pid 7083] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 192.140986][ T6896] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 192.141114][ T6896] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 192.141360][ T6896] bcachefs (loop2): Version upgrade required: [ 192.141360][ T6896] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 192.141360][ T6896] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 192.141360][ T6896] 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,check_rebalance_work,set_fs_needs_rebalance [ 192.160614][ T6896] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 192.160643][ T6896] size != 0, deleting [ 192.161797][ T6896] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 192.165587][ T6896] bcachefs (loop2): check_topology... done [ 192.167035][ T6896] bcachefs (loop2): accounting_read... done [ 192.201215][ T6896] bcachefs (loop2): alloc_read... done [ 192.201989][ T6896] bcachefs (loop2): snapshots_read... done [ 192.202684][ T6896] bcachefs (loop2): check_allocations... [ 192.204643][ T6896] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 192.204665][ T6896] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 192.207163][ T6896] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 192.207184][ T6896] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 192.208612][ T6896] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 192.208631][ T6896] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 192.211997][ T6896] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 192.212016][ T6896] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 192.214488][ T6896] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 192.214506][ T6896] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 192.215443][ T6896] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.215569][ T6896] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 192.216137][ T6896] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7083] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7083] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7083] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 192.216252][ T6896] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 192.217155][ T6896] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.217273][ T6896] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 192.217488][ T6896] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.217593][ T6896] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7083] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7083] close(3) = 0 [pid 7083] close(4) = 0 [pid 7083] mkdir("./file1", 0777) = 0 [ 192.217806][ T6896] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.217908][ T6896] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 192.218122][ T6896] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.218229][ T6896] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 192.218443][ T6896] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.218547][ T6896] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 192.218746][ T6896] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 192.218851][ T6896] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 192.219050][ T6896] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 192.219154][ T6896] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 192.222055][ T6896] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 192.222165][ T6896] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 192.222406][ T6896] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 192.222423][ T6896] Ratelimiting new instances of previous error [ 192.222557][ T6896] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 192.222573][ T6896] Ratelimiting new instances of previous error [ 192.234529][ T6896] done [ 192.236687][ T6896] bcachefs (loop2): going read-write [ 192.249891][ T6896] bcachefs (loop2): journal_replay... done [ 192.271796][ T6896] bcachefs (loop2): check_alloc_info... [ 192.273608][ T6896] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 192.273626][ T6896] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 192.273637][ T6896] gen 0 oldest_gen 0 data_type need_discard [ 192.273647][ T6896] journal_seq_nonempty 6 [ 192.273658][ T6896] journal_seq_empty 0 [ 192.273668][ T6896] need_discard 1 [ 192.273677][ T6896] need_inc_gen 1 [ 192.273687][ T6896] dirty_sectors 0 [ 192.273697][ T6896] stripe_sectors 0 [ 192.273706][ T6896] cached_sectors 0 [ 192.273715][ T6896] stripe 0 [ 192.273725][ T6896] stripe_redundancy 0 [ 192.273734][ T6896] io_time[READ] 1 [ 192.273744][ T6896] io_time[WRITE] 768 [ 192.273754][ T6896] fragmentation 0 [ 192.273763][ T6896] bp_start 8 [ 192.273773][ T6896] , fixing [ 192.289571][ T6896] done [ 192.295349][ T6896] bcachefs (loop2): check_lrus... done [ 192.296758][ T6896] bcachefs (loop2): check_btree_backpointers... done [ 192.298086][ T6896] bcachefs (loop2): check_backpointers_to_extents... done [ 192.303684][ T6896] bcachefs (loop2): check_extents_to_backpointers... [ 192.305069][ T6896] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 192.307017][ T6896] done [ 192.307777][ T6896] bcachefs (loop2): check_alloc_to_lru_refs... [ 192.310606][ T6896] bcachefs (loop2): missing fragmentation lru entry [ 192.310623][ T6896] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 192.310635][ T6896] gen 0 oldest_gen 0 data_type user [ 192.310646][ T6896] journal_seq_nonempty 5 [ 192.310656][ T6896] journal_seq_empty 134217728 [ 192.310668][ T6896] need_discard 1 [ 192.310678][ T6896] need_inc_gen 1 [ 192.310688][ T6896] dirty_sectors 16 [ 192.310698][ T6896] stripe_sectors 1802251 [ 192.310709][ T6896] cached_sectors 0 [ 192.310719][ T6896] stripe 0 [ 192.310730][ T6896] stripe_redundancy 0 [ 192.310740][ T6896] io_time[READ] 1 [ 192.310750][ T6896] io_time[WRITE] 512 [ 192.310761][ T6896] fragmentation 0 [ 192.310771][ T6896] bp_start 7 [ 192.310780][ T6896] , fixing [ 192.312365][ T6896] done [ 192.313804][ T6896] bcachefs (loop2): bucket_gens_init... done [ 192.315903][ T6896] bcachefs (loop2): check_snapshot_trees... done [ 192.316751][ T6896] bcachefs (loop2): check_snapshots... [ 192.317895][ T6896] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 192.317913][ T6896] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 192.330433][ T6896] done [ 192.331477][ T6896] bcachefs (loop2): check_subvols... done [ 192.334585][ T6896] bcachefs (loop2): check_subvol_children... done [pid 7083] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7083] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7083] chdir("./file1") = 0 [pid 7083] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7083] ioctl(4, LOOP_CLR_FD) = 0 [pid 7083] close(4) = 0 ** 1 printk messages dropped ** [ 192.336257][ T6896] bcachefs (loop2): check_inodes... ** 1 printk messages dropped ** [ 192.337375][ T6896] inum: 4098:4294967295 ** 9 printk messages dropped ** [ 192.337482][ T6896] bi_ctime=2780562352 ** 7 printk messages dropped ** [ 192.337554][ T6896] bi_data_checksum=0 [ 192.337564][ T6896] bi_compression=0 [ 192.337573][ T6896] bi_project=0 [ 192.337583][ T6896] bi_background_compression=0 [ 192.337593][ T6896] bi_data_replicas=0 [pid 7083] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7083] exit_group(0) = ? [pid 7083] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7083, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./74", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./74", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 192.337602][ T6896] bi_promote_target=0 [ 192.337613][ T6896] bi_foreground_target=64 [ 192.337623][ T6896] bi_background_target=1 [ 192.337632][ T6896] bi_erasure_code=0 [ 192.337643][ T6896] bi_fields_set=0 [ 192.337652][ T6896] bi_dir=0 [ 192.337661][ T6896] bi_dir_offset=32 [ 192.337670][ T6896] bi_subvol=0 [ 192.337679][ T6896] bi_parent_subvol=0 [ 192.337688][ T6896] bi_nocow=0 [ 192.337697][ T6896] bi_depth=0 [ 192.337706][ T6896] bi_inodes_32bit=0 [ 192.337715][ T6896] bi_casefold=0, fixing [ 192.343478][ T6896] done [ 192.344135][ T6896] bcachefs (loop2): check_extents... done [ 192.345601][ T6896] bcachefs (loop2): check_indirect_extents... done [ 192.346249][ T6896] bcachefs (loop2): check_dirents... [ 192.347995][ T6896] bcachefs (loop2): directory with missing backpointer [ 192.348019][ T6896] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 192.348034][ T6896] inum: 4098:4294967295 [ 192.348045][ T6896] mode=40755 [ 192.348055][ T6896] flags=(11300000) [ 192.348064][ T6896] journal_seq=24 [ 192.348074][ T6896] hash_seed=ece93825deac2443 [ 192.348084][ T6896] hash_type=siphash [ 192.348093][ T6896] bi_size=0 [ 192.348103][ T6896] bi_sectors=0 [ 192.348112][ T6896] bi_version=0 [ 192.348121][ T6896] bi_atime=2770562249 [ 192.348131][ T6896] bi_ctime=2780562352 [ 192.348140][ T6896] bi_mtime=2780562352 [ 192.348150][ T6896] bi_otime=2770562249 [ 192.348160][ T6896] bi_uid=0 [ 192.348169][ T6896] bi_gid=0 [ 192.348178][ T6896] bi_nlink=0 [ 192.348187][ T6896] bi_generation=0 [ 192.348197][ T6896] bi_dev=0 [ 192.348206][ T6896] bi_data_checksum=0 [ 192.348216][ T6896] bi_compression=0 [ 192.348226][ T6896] bi_project=0 [ 192.348235][ T6896] bi_background_compression=0 [ 192.348245][ T6896] bi_data_replicas=0 [ 192.348255][ T6896] bi_promote_target=0 [ 192.348262][ T6896] bi_foreground_target=64 [ 192.348272][ T6896] bi_background_target=1 [ 192.348284][ T6896] bi_erasure_code=0 [ 192.348293][ T6896] bi_fields_set=0 [ 192.348302][ T6896] bi_dir=0 [ 192.348312][ T6896] bi_dir_offset=0 [ 192.348321][ T6896] bi_subvol=0 [ 192.348330][ T6896] bi_parent_subvol=0 [ 192.348340][ T6896] bi_nocow=0 [ 192.348349][ T6896] bi_depth=0 [ 192.348358][ T6896] bi_inodes_32bit=0 [ 192.348367][ T6896] bi_casefold=0, fixing [ 192.356499][ T6896] done [ 192.357201][ T6896] bcachefs (loop2): check_xattrs... done [ 192.358463][ T6896] bcachefs (loop2): check_root... done [ 192.360851][ T6896] bcachefs (loop2): check_unreachable_inodes... done [ 192.362396][ T6896] bcachefs (loop2): check_subvolume_structure... done [ 192.363233][ T6896] bcachefs (loop2): check_directory_structure... done [ 192.364036][ T6896] bcachefs (loop2): check_nlinks... [ 192.364750][ T6896] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 192.365870][ T6896] done [ 192.366555][ T6896] bcachefs (loop2): check_rebalance_work... done [ 192.367770][ T6896] bcachefs (loop2): resume_logged_ops... done [ 192.368581][ T6896] bcachefs (loop2): delete_dead_inodes... done [ 192.378068][ T6896] bcachefs (loop2): set_fs_needs_rebalance... [ 192.386212][ T6905] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 192.386236][ T6905] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 192.389270][ T6896] done [ 192.390502][ T6896] bcachefs (loop2): check_extents_to_backpointers... [ 192.391444][ T6896] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 192.396648][ T6896] done [ 192.412639][ T6896] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 192.412666][ T6896] bcachefs (loop2): check_alloc_info... done [ 192.422384][ T6896] bcachefs (loop2): check_lrus... done [ 192.423502][ T6896] bcachefs (loop2): check_btree_backpointers... done [ 192.424664][ T6896] bcachefs (loop2): check_backpointers_to_extents... done [ 192.430243][ T6896] bcachefs (loop2): check_extents_to_backpointers... done [ 192.436043][ T6896] bcachefs (loop2): check_alloc_to_lru_refs... done [pid 5839] umount2("./74/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./74/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./74/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 192.438592][ T6896] bcachefs (loop2): bucket_gens_init... done [ 192.441101][ T6896] bcachefs (loop2): check_snapshot_trees... done [ 192.442173][ T6896] bcachefs (loop2): check_snapshots... done [ 192.448563][ T6896] bcachefs (loop2): check_subvols... done [ 192.450199][ T6896] bcachefs (loop2): check_subvol_children... done [ 192.450920][ T6896] bcachefs (loop2): delete_dead_snapshots... done [ 192.451606][ T6896] bcachefs (loop2): check_inodes... done [ 192.452698][ T6896] bcachefs (loop2): check_extents... done [pid 5839] umount2("./74/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./74/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./74/file1") = 0 [pid 5839] umount2("./74/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./74/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./74/binderfs") = 0 [ 192.454337][ T6896] bcachefs (loop2): check_indirect_extents... done [ 192.459086][ T6896] bcachefs (loop2): check_dirents... done [ 192.469222][ T6896] bcachefs (loop2): check_xattrs... done [ 192.470712][ T6896] bcachefs (loop2): check_root... done [ 192.471453][ T6896] bcachefs (loop2): check_unreachable_inodes... done [ 192.472304][ T6896] bcachefs (loop2): check_subvolume_structure... done [ 192.473050][ T6896] bcachefs (loop2): check_directory_structure... done [ 192.473756][ T6896] bcachefs (loop2): check_nlinks... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./74") = 0 [pid 5839] mkdir("./75", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 192.474903][ T6896] bcachefs (loop2): check_rebalance_work... done [ 192.475711][ T6896] bcachefs (loop2): resume_logged_ops... done [ 192.476469][ T6896] bcachefs (loop2): delete_dead_inodes... done [ 192.477116][ T6896] bcachefs (loop2): set_fs_needs_rebalance... done [ 192.491530][ T6896] bcachefs (loop2): done starting filesystem [ 192.542149][ T5839] bcachefs (loop2): shutting down [ 192.542169][ T5839] bcachefs (loop2): going read-only [ 192.542198][ T5839] bcachefs (loop2): finished waiting for writes to stop [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7094 ./strace-static-x86_64: Process 7094 attached [pid 7094] set_robust_list(0x5555901c6760, 24) = 0 [ 192.552342][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 192.552342][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 192.552540][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 192.552558][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 192.552578][ T12] loop2 checksum error [pid 7094] chdir("./75") = 0 [pid 7094] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7094] setpgid(0, 0) = 0 [pid 7094] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7094] write(3, "1000", 4) = 4 [pid 7094] close(3) = 0 [pid 7094] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7094] write(1, "executing program\n", 18executing program ) = 18 [ 192.580777][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 36 [ 192.584723][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 36 [ 192.585629][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 37 [ 192.587453][ T5839] bcachefs (loop2): marking filesystem clean [ 192.655518][ T5839] bcachefs (loop2): shutdown complete [ 193.487114][ T6907] loop2: detected capacity change from 0 to 32768 [pid 7094] memfd_create("syzkaller", 0) = 3 [pid 7094] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 193.617340][ T6907] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 193.617369][ T6907] allowing incompatible features above 0.0: (unknown version) [ 193.617385][ T6907] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 193.617414][ T6907] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 193.617546][ T6907] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 193.617783][ T6907] bcachefs (loop2): Version upgrade required: [ 193.617783][ T6907] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 193.617783][ T6907] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 193.617783][ T6907] 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,check_rebalance_work,set_fs_needs_rebalance [ 193.639653][ T6907] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 193.639679][ T6907] size != 0, deleting [ 193.640613][ T6907] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 193.644140][ T6907] bcachefs (loop2): check_topology... done [ 193.645651][ T6907] bcachefs (loop2): accounting_read... done [ 193.646527][ T6907] bcachefs (loop2): alloc_read... done [ 193.647420][ T6907] bcachefs (loop2): snapshots_read... done [ 193.648189][ T6907] bcachefs (loop2): check_allocations... [ 193.651287][ T6907] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 193.651308][ T6907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 193.653497][ T6907] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 193.653515][ T6907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 193.654831][ T6907] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 193.654848][ T6907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 7094] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7094] munmap(0x7fbbeb93a000, 138412032) = 0 [ 193.656344][ T6907] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 193.656362][ T6907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 193.669711][ T6907] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 193.669733][ T6907] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [pid 7094] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7094] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7094] close(3) = 0 [pid 7094] close(4) = 0 [pid 7094] mkdir("./file1", 0777) = 0 [ 193.670736][ T6907] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.670862][ T6907] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.671426][ T6907] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.671538][ T6907] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.671937][ T6907] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.672044][ T6907] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.672257][ T6907] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.672362][ T6907] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.672562][ T6907] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.672666][ T6907] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.672863][ T6907] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.672970][ T6907] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.673179][ T6907] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.673283][ T6907] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 193.673480][ T6907] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 193.673583][ T6907] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 193.674033][ T6907] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 193.674185][ T6907] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 193.674416][ T6907] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 193.674523][ T6907] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 193.674753][ T6907] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 193.674770][ T6907] Ratelimiting new instances of previous error [ 193.674897][ T6907] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 193.674913][ T6907] Ratelimiting new instances of previous error [ 193.688215][ T6907] done [ 193.690718][ T6907] bcachefs (loop2): going read-write [ 193.695892][ T6907] bcachefs (loop2): journal_replay... done [ 193.723065][ T6907] bcachefs (loop2): check_alloc_info... [ 193.724863][ T6907] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 193.724881][ T6907] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 193.724892][ T6907] gen 0 oldest_gen 0 data_type need_discard [ 193.724905][ T6907] journal_seq_nonempty 6 [ 193.724915][ T6907] journal_seq_empty 0 [ 193.724925][ T6907] need_discard 1 [ 193.724935][ T6907] need_inc_gen 1 [ 193.724944][ T6907] dirty_sectors 0 [ 193.724954][ T6907] stripe_sectors 0 [ 193.724964][ T6907] cached_sectors 0 [ 193.724974][ T6907] stripe 0 [ 193.724983][ T6907] stripe_redundancy 0 [ 193.724993][ T6907] io_time[READ] 1 [ 193.725003][ T6907] io_time[WRITE] 768 [ 193.725012][ T6907] fragmentation 0 [ 193.725022][ T6907] bp_start 8 [ 193.725032][ T6907] , fixing [ 193.741268][ T6907] done [ 193.747001][ T6907] bcachefs (loop2): check_lrus... done [ 193.747825][ T6907] bcachefs (loop2): check_btree_backpointers... done [ 193.749091][ T6907] bcachefs (loop2): check_backpointers_to_extents... done [ 193.753055][ T6907] bcachefs (loop2): check_extents_to_backpointers... ** 1 printk messages dropped ** [ 193.758087][ T6907] done [ 193.758841][ T6907] bcachefs (loop2): check_alloc_to_lru_refs... [ 193.761798][ T6907] bcachefs (loop2): missing fragmentation lru entry ** 3 printk messages dropped ** [ 193.761851][ T6907] journal_seq_empty 134217728 ** 5 printk messages dropped ** [ 193.761911][ T6907] stripe 0 [ 193.761920][ T6907] stripe_redundancy 0 [ 193.761929][ T6907] io_time[READ] 1 ** 1 printk messages dropped ** [ 193.761948][ T6907] fragmentation 0 ** 7 printk messages dropped ** [ 193.768546][ T6907] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 11 printk messages dropped ** [pid 7094] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7094] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7094] chdir("./file1") = 0 [pid 7094] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7094] ioctl(4, LOOP_CLR_FD) = 0 [pid 7094] close(4) = 0 [pid 7094] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7094] exit_group(0) = ? [pid 7094] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7094, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] umount2("./75", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./75", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 193.786559][ T6907] hash_type=siphash ** 11 printk messages dropped ** [ 193.786674][ T6907] bi_dev=0 ** 5 printk messages dropped ** [ 193.786754][ T6907] bi_promote_target=0 [ 193.786763][ T6907] bi_foreground_target=64 [ 193.786773][ T6907] bi_background_target=1 [ 193.786783][ T6907] bi_erasure_code=0 [ 193.786793][ T6907] bi_fields_set=0 [ 193.786802][ T6907] bi_dir=0 [ 193.786811][ T6907] bi_dir_offset=32 [ 193.786821][ T6907] bi_subvol=0 [ 193.786830][ T6907] bi_parent_subvol=0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 193.786840][ T6907] bi_nocow=0 [ 193.786849][ T6907] bi_depth=0 [ 193.786858][ T6907] bi_inodes_32bit=0 [ 193.786867][ T6907] bi_casefold=0, fixing [ 193.788523][ T6907] done [ 193.792863][ T6907] bcachefs (loop2): check_extents... done [ 193.794462][ T6907] bcachefs (loop2): check_indirect_extents... done [ 193.795169][ T6907] bcachefs (loop2): check_dirents... [ 193.796875][ T6907] bcachefs (loop2): directory with missing backpointer [ 193.796892][ T6907] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 193.796906][ T6907] inum: 4098:4294967295 [ 193.796918][ T6907] mode=40755 [ 193.796927][ T6907] flags=(11300000) [ 193.796935][ T6907] journal_seq=22 [ 193.796945][ T6907] hash_seed=ece93825deac2443 [ 193.796955][ T6907] hash_type=siphash [ 193.796964][ T6907] bi_size=0 [ 193.796973][ T6907] bi_sectors=0 [ 193.796983][ T6907] bi_version=0 [ 193.796992][ T6907] bi_atime=2770562249 [ 193.797003][ T6907] bi_ctime=2780562352 [ 193.797013][ T6907] bi_mtime=2780562352 [ 193.797023][ T6907] bi_otime=2770562249 [ 193.797032][ T6907] bi_uid=0 [ 193.797042][ T6907] bi_gid=0 [ 193.797051][ T6907] bi_nlink=0 [ 193.797060][ T6907] bi_generation=0 [ 193.797069][ T6907] bi_dev=0 [ 193.797078][ T6907] bi_data_checksum=0 [ 193.797088][ T6907] bi_compression=0 [ 193.797097][ T6907] bi_project=0 [ 193.797106][ T6907] bi_background_compression=0 [ 193.797117][ T6907] bi_data_replicas=0 [ 193.797126][ T6907] bi_promote_target=0 [ 193.797136][ T6907] bi_foreground_target=64 [ 193.797146][ T6907] bi_background_target=1 [ 193.797156][ T6907] bi_erasure_code=0 [ 193.797166][ T6907] bi_fields_set=0 [ 193.797175][ T6907] bi_dir=0 [ 193.797192][ T6907] bi_dir_offset=0 [ 193.797201][ T6907] bi_subvol=0 [ 193.797211][ T6907] bi_parent_subvol=0 [ 193.797221][ T6907] bi_nocow=0 [ 193.797230][ T6907] bi_depth=0 [ 193.797239][ T6907] bi_inodes_32bit=0 [ 193.797249][ T6907] bi_casefold=0, fixing [ 193.801310][ T6907] done [ 193.802200][ T6907] bcachefs (loop2): check_xattrs... done [ 193.804952][ T6907] bcachefs (loop2): check_root... done [ 193.807516][ T6907] bcachefs (loop2): check_unreachable_inodes... done [ 193.808549][ T6907] bcachefs (loop2): check_subvolume_structure... done [ 193.809670][ T6907] bcachefs (loop2): check_directory_structure... done [ 193.810799][ T6907] bcachefs (loop2): check_nlinks... [ 193.811570][ T6907] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 193.812655][ T6907] done [ 193.813327][ T6907] bcachefs (loop2): check_rebalance_work... done [ 193.814520][ T6907] bcachefs (loop2): resume_logged_ops... done [ 193.815331][ T6907] bcachefs (loop2): delete_dead_inodes... done [ 193.824304][ T6907] bcachefs (loop2): set_fs_needs_rebalance... done [ 193.834390][ T6907] bcachefs (loop2): check_extents_to_backpointers... [ 193.835396][ T6907] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 193.835711][ T6916] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 193.835729][ T6916] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 193.843139][ T6907] done [ 193.855863][ T6907] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 193.855889][ T6907] bcachefs (loop2): check_alloc_info... done [ 193.870138][ T6907] bcachefs (loop2): check_lrus... done [ 193.871301][ T6907] bcachefs (loop2): check_btree_backpointers... done [ 193.872529][ T6907] bcachefs (loop2): check_backpointers_to_extents... done [pid 5839] umount2("./75/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./75/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./75/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./75/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 193.873990][ T6907] bcachefs (loop2): check_extents_to_backpointers... done [ 193.880415][ T6907] bcachefs (loop2): check_alloc_to_lru_refs... done [ 193.882491][ T6907] bcachefs (loop2): bucket_gens_init... done [ 193.885885][ T6907] bcachefs (loop2): check_snapshot_trees... done [ 193.890398][ T6907] bcachefs (loop2): check_snapshots... done [ 193.891283][ T6907] bcachefs (loop2): check_subvols... done [ 193.892058][ T6907] bcachefs (loop2): check_subvol_children... done [ 193.892792][ T6907] bcachefs (loop2): delete_dead_snapshots... done [pid 5839] openat(AT_FDCWD, "./75/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./75/file1") = 0 [pid 5839] umount2("./75/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./75/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./75/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [ 193.893541][ T6907] bcachefs (loop2): check_inodes... done [ 193.900320][ T6907] bcachefs (loop2): check_extents... done [ 193.901993][ T6907] bcachefs (loop2): check_indirect_extents... done [ 193.902710][ T6907] bcachefs (loop2): check_dirents... done [ 193.910079][ T6907] bcachefs (loop2): check_xattrs... done [ 193.911696][ T6907] bcachefs (loop2): check_root... done [ 193.912444][ T6907] bcachefs (loop2): check_unreachable_inodes... done [ 193.913292][ T6907] bcachefs (loop2): check_subvolume_structure... done [pid 5839] rmdir("./75") = 0 [pid 5839] mkdir("./76", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7105 attached , child_tidptr=0x5555901c6750) = 7105 [ 193.914007][ T6907] bcachefs (loop2): check_directory_structure... done [ 193.914743][ T6907] bcachefs (loop2): check_nlinks... done [ 193.915892][ T6907] bcachefs (loop2): check_rebalance_work... done [ 193.916693][ T6907] bcachefs (loop2): resume_logged_ops... done [ 193.920134][ T6907] bcachefs (loop2): delete_dead_inodes... done [ 193.920961][ T6907] bcachefs (loop2): set_fs_needs_rebalance... done [ 193.930241][ T6907] bcachefs (loop2): done starting filesystem [ 194.033235][ T5839] bcachefs (loop2): shutting down [pid 7105] set_robust_list(0x5555901c6760, 24) = 0 [pid 7105] chdir("./76") = 0 [pid 7105] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7105] setpgid(0, 0) = 0 [pid 7105] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 194.033257][ T5839] bcachefs (loop2): going read-only [ 194.033286][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 194.073316][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 194.073677][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 194.074651][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 194.076447][ T5839] bcachefs (loop2): marking filesystem clean [ 194.135039][ T5839] bcachefs (loop2): shutdown complete [pid 7105] write(3, "1000", 4) = 4 [pid 7105] close(3) = 0 [pid 7105] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7105] write(1, "executing program\n", 18executing program ) = 18 [pid 7105] memfd_create("syzkaller", 0) = 3 [pid 7105] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 195.028605][ T6918] loop2: detected capacity change from 0 to 32768 [ 195.165630][ T6918] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 195.165658][ T6918] allowing incompatible features above 0.0: (unknown version) [ 195.165673][ T6918] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 195.165701][ T6918] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 195.165828][ T6918] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 195.166079][ T6918] bcachefs (loop2): Version upgrade required: [ 195.166079][ T6918] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 195.166079][ T6918] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 195.166079][ T6918] 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,check_rebalance_work,set_fs_needs_rebalance [ 195.185531][ T6918] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 195.185560][ T6918] size != 0, deleting [ 195.186726][ T6918] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 195.191108][ T6918] bcachefs (loop2): check_topology... done [ 195.192533][ T6918] bcachefs (loop2): accounting_read... done [ 195.233959][ T6918] bcachefs (loop2): alloc_read... done [ 195.234884][ T6918] bcachefs (loop2): snapshots_read... done [ 195.235714][ T6918] bcachefs (loop2): check_allocations... [ 195.237714][ T6918] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 195.237733][ T6918] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 195.241073][ T6918] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 195.241093][ T6918] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 195.243270][ T6918] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 195.243291][ T6918] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 195.244877][ T6918] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 195.244897][ T6918] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 195.247501][ T6918] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 7105] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 195.247520][ T6918] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 195.248499][ T6918] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.248629][ T6918] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.249536][ T6918] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.249654][ T6918] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7105] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7105] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7105] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7105] close(3) = 0 [pid 7105] close(4) = 0 [pid 7105] mkdir("./file1", 0777) = 0 [ 195.250092][ T6918] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.250230][ T6918] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.250454][ T6918] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.250578][ T6918] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.250805][ T6918] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.250914][ T6918] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.251116][ T6918] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.251224][ T6918] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.251425][ T6918] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.251532][ T6918] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 195.251733][ T6918] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 195.251848][ T6918] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 195.252051][ T6918] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 195.252161][ T6918] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 195.252366][ T6918] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 195.252472][ T6918] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 195.252703][ T6918] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 195.252718][ T6918] Ratelimiting new instances of previous error [ 195.252860][ T6918] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 195.252877][ T6918] Ratelimiting new instances of previous error [ 195.266610][ T6918] done [ 195.268768][ T6918] bcachefs (loop2): going read-write [ 195.275126][ T6918] bcachefs (loop2): journal_replay... done [ 195.301700][ T6918] bcachefs (loop2): check_alloc_info... [ 195.303530][ T6918] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 195.303549][ T6918] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 195.303561][ T6918] gen 0 oldest_gen 0 data_type need_discard [ 195.303573][ T6918] journal_seq_nonempty 6 [ 195.303584][ T6918] journal_seq_empty 0 [ 195.303594][ T6918] need_discard 1 [ 195.303604][ T6918] need_inc_gen 1 [ 195.303614][ T6918] dirty_sectors 0 [ 195.303623][ T6918] stripe_sectors 0 [ 195.303633][ T6918] cached_sectors 0 [ 195.303643][ T6918] stripe 0 [ 195.303653][ T6918] stripe_redundancy 0 [ 195.303663][ T6918] io_time[READ] 1 [ 195.303673][ T6918] io_time[WRITE] 768 [ 195.303683][ T6918] fragmentation 0 [ 195.303692][ T6918] bp_start 8 [ 195.303702][ T6918] , fixing [ 195.320531][ T6918] done [ 195.323757][ T6918] bcachefs (loop2): check_lrus... done [ 195.324573][ T6918] bcachefs (loop2): check_btree_backpointers... done [ 195.330561][ T6918] bcachefs (loop2): check_backpointers_to_extents... done [ 195.334821][ T6918] bcachefs (loop2): check_extents_to_backpointers... [ 195.336642][ T6918] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 195.338055][ T6918] done [ 195.338703][ T6918] bcachefs (loop2): check_alloc_to_lru_refs... [ 195.340865][ T6918] bcachefs (loop2): missing fragmentation lru entry [ 195.340885][ T6918] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 195.340897][ T6918] gen 0 oldest_gen 0 data_type user [ 195.340908][ T6918] journal_seq_nonempty 5 [ 195.340918][ T6918] journal_seq_empty 134217728 [ 195.340929][ T6918] need_discard 1 [ 195.340940][ T6918] need_inc_gen 1 ** 2 printk messages dropped ** [ 195.340970][ T6918] cached_sectors 0 ** 3 printk messages dropped ** [ 195.341011][ T6918] io_time[WRITE] 512 [ 195.341021][ T6918] fragmentation 0 ** 3 printk messages dropped ** [ 195.346573][ T6918] bcachefs (loop2): bucket_gens_init... done ** 3 printk messages dropped ** [ 195.351656][ T6918] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 10 printk messages dropped ** [ 195.368258][ T6918] hash_seed=ece93825deac2443 ** 11 printk messages dropped ** [ 195.368372][ T6918] bi_generation=0 ** 6 printk messages dropped ** [pid 7105] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7105] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7105] chdir("./file1") = 0 [pid 7105] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7105] ioctl(4, LOOP_CLR_FD) = 0 [pid 7105] close(4) = 0 [pid 7105] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7105] exit_group(0) = ? [pid 7105] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7105, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] umount2("./76", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./76", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 195.368441][ T6918] bi_promote_target=0 [ 195.368451][ T6918] bi_foreground_target=64 [ 195.368460][ T6918] bi_background_target=1 [ 195.368471][ T6918] bi_erasure_code=0 [ 195.368480][ T6918] bi_fields_set=0 [ 195.368489][ T6918] bi_dir=0 [ 195.368499][ T6918] bi_dir_offset=32 [ 195.368508][ T6918] bi_subvol=0 [ 195.368518][ T6918] bi_parent_subvol=0 [ 195.368527][ T6918] bi_nocow=0 [ 195.368537][ T6918] bi_depth=0 [ 195.368546][ T6918] bi_inodes_32bit=0 [ 195.368557][ T6918] bi_casefold=0, fixing [ 195.372783][ T6918] done [ 195.373450][ T6918] bcachefs (loop2): check_extents... done [ 195.376589][ T6918] bcachefs (loop2): check_indirect_extents... done [ 195.378169][ T6918] bcachefs (loop2): check_dirents... [ 195.380327][ T6918] bcachefs (loop2): directory with missing backpointer [ 195.380345][ T6918] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 195.380360][ T6918] inum: 4098:4294967295 [ 195.380370][ T6918] mode=40755 [ 195.380379][ T6918] flags=(11300000) [ 195.380390][ T6918] journal_seq=22 [ 195.380400][ T6918] hash_seed=ece93825deac2443 [ 195.380410][ T6918] hash_type=siphash [ 195.380419][ T6918] bi_size=0 [ 195.380429][ T6918] bi_sectors=0 [ 195.380438][ T6918] bi_version=0 [ 195.380447][ T6918] bi_atime=2770562249 [ 195.380457][ T6918] bi_ctime=2780562352 [ 195.380467][ T6918] bi_mtime=2780562352 [ 195.380477][ T6918] bi_otime=2770562249 [ 195.380486][ T6918] bi_uid=0 [ 195.380495][ T6918] bi_gid=0 [ 195.380505][ T6918] bi_nlink=0 [ 195.380514][ T6918] bi_generation=0 [ 195.380524][ T6918] bi_dev=0 [ 195.380533][ T6918] bi_data_checksum=0 [ 195.380543][ T6918] bi_compression=0 [ 195.380553][ T6918] bi_project=0 [ 195.380562][ T6918] bi_background_compression=0 [ 195.380573][ T6918] bi_data_replicas=0 [ 195.380582][ T6918] bi_promote_target=0 [ 195.380592][ T6918] bi_foreground_target=64 [ 195.380602][ T6918] bi_background_target=1 [ 195.380612][ T6918] bi_erasure_code=0 [ 195.380621][ T6918] bi_fields_set=0 [ 195.380631][ T6918] bi_dir=0 [ 195.380640][ T6918] bi_dir_offset=0 [ 195.380651][ T6918] bi_subvol=0 [ 195.380660][ T6918] bi_parent_subvol=0 [ 195.380669][ T6918] bi_nocow=0 [ 195.380678][ T6918] bi_depth=0 [ 195.380686][ T6918] bi_inodes_32bit=0 [ 195.380719][ T6918] bi_casefold=0, fixing [ 195.382885][ T6918] done [ 195.383545][ T6918] bcachefs (loop2): check_xattrs... done [ 195.384666][ T6918] bcachefs (loop2): check_root... done [ 195.385800][ T6918] bcachefs (loop2): check_unreachable_inodes... done [ 195.386829][ T6918] bcachefs (loop2): check_subvolume_structure... done [ 195.387607][ T6918] bcachefs (loop2): check_directory_structure... done [ 195.388916][ T6918] bcachefs (loop2): check_nlinks... [ 195.391077][ T6918] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 195.394142][ T6918] done [ 195.395249][ T6918] bcachefs (loop2): check_rebalance_work... done [ 195.397410][ T6918] bcachefs (loop2): resume_logged_ops... done [ 195.399019][ T6918] bcachefs (loop2): delete_dead_inodes... done [ 195.407597][ T6918] bcachefs (loop2): set_fs_needs_rebalance... [ 195.415908][ T6927] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 195.415934][ T6927] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 195.418835][ T6918] done [ 195.420613][ T6918] bcachefs (loop2): check_extents_to_backpointers... [ 195.421557][ T6918] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 195.424041][ T6927] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 195.427323][ T6918] done [ 195.436872][ T6918] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 195.436899][ T6918] bcachefs (loop2): check_alloc_info... done [ 195.442326][ T6918] bcachefs (loop2): check_lrus... done [ 195.443477][ T6918] bcachefs (loop2): check_btree_backpointers... done [ 195.444713][ T6918] bcachefs (loop2): check_backpointers_to_extents... done [pid 5839] umount2("./76/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./76/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./76/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 195.446213][ T6918] bcachefs (loop2): check_extents_to_backpointers... [ 195.447155][ T6918] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 195.448472][ T6918] done [ 195.448487][ T6918] bcachefs (loop2): check_alloc_to_lru_refs... done [ 195.452233][ T6918] bcachefs (loop2): bucket_gens_init... done [ 195.454327][ T6918] bcachefs (loop2): check_snapshot_trees... done [ 195.455472][ T6918] bcachefs (loop2): check_snapshots... done [ 195.456350][ T6918] bcachefs (loop2): check_subvols... done [pid 5839] umount2("./76/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./76/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./76/file1") = 0 [pid 5839] umount2("./76/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./76/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./76/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./76") = 0 [ 195.457183][ T6918] bcachefs (loop2): check_subvol_children... done [ 195.457967][ T6918] bcachefs (loop2): delete_dead_snapshots... done [ 195.458715][ T6918] bcachefs (loop2): check_inodes... done [ 195.460769][ T6918] bcachefs (loop2): check_extents... done [ 195.462722][ T6918] bcachefs (loop2): check_indirect_extents... done [ 195.463553][ T6918] bcachefs (loop2): check_dirents... done [ 195.465029][ T6918] bcachefs (loop2): check_xattrs... done [ 195.465868][ T6918] bcachefs (loop2): check_root... done [ 195.466633][ T6918] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] mkdir("./77", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 195.467541][ T6918] bcachefs (loop2): check_subvolume_structure... done [ 195.468303][ T6918] bcachefs (loop2): check_directory_structure... done [ 195.469128][ T6918] bcachefs (loop2): check_nlinks... done [ 195.472369][ T6918] bcachefs (loop2): check_rebalance_work... done [ 195.473251][ T6918] bcachefs (loop2): resume_logged_ops... done [ 195.474075][ T6918] bcachefs (loop2): delete_dead_inodes... done [ 195.474925][ T6918] bcachefs (loop2): set_fs_needs_rebalance... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7116 ./strace-static-x86_64: Process 7116 attached [pid 7116] set_robust_list(0x5555901c6760, 24) = 0 [ 195.478470][ T6918] bcachefs (loop2): done starting filesystem [ 195.572547][ T5839] bcachefs (loop2): shutting down [ 195.572569][ T5839] bcachefs (loop2): going read-only [ 195.572598][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 195.618711][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 195.621500][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 195.622370][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [pid 7116] chdir("./77") = 0 [pid 7116] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7116] setpgid(0, 0) = 0 [pid 7116] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 195.624208][ T5839] bcachefs (loop2): marking filesystem clean [ 195.674141][ T5839] bcachefs (loop2): shutdown complete [ 196.462521][ T6929] loop2: detected capacity change from 0 to 32768 [ 196.992053][ T6929] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 196.992081][ T6929] allowing incompatible features above 0.0: (unknown version) [ 196.992093][ T6929] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 7116] write(3, "1000", 4) = 4 [pid 7116] close(3) = 0 [pid 7116] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7116] write(1, "executing program\n", 18executing program ) = 18 [pid 7116] memfd_create("syzkaller", 0) = 3 [pid 7116] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 196.992120][ T6929] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 196.992249][ T6929] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 196.992484][ T6929] bcachefs (loop2): Version upgrade required: [ 196.992484][ T6929] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 196.992484][ T6929] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 196.992484][ T6929] 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,check_rebalance_work,set_fs_needs_rebalance [ 197.012150][ T6929] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 197.012180][ T6929] size != 0, deleting [ 197.013329][ T6929] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 197.017081][ T6929] bcachefs (loop2): check_topology... done [ 197.018549][ T6929] bcachefs (loop2): accounting_read... done [ 197.043666][ T6929] bcachefs (loop2): alloc_read... done [ 197.044554][ T6929] bcachefs (loop2): snapshots_read... done [ 197.045433][ T6929] bcachefs (loop2): check_allocations... [ 197.047559][ T6929] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 197.047579][ T6929] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 197.050835][ T6929] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 197.050856][ T6929] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 197.052580][ T6929] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 197.052600][ T6929] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 197.054140][ T6929] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 197.054159][ T6929] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 197.056634][ T6929] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 197.056652][ T6929] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 197.058140][ T6929] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.058281][ T6929] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 197.058838][ T6929] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7116] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7116] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7116] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 197.058944][ T6929] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 197.060391][ T6929] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.060503][ T6929] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 197.060718][ T6929] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.060824][ T6929] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7116] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7116] close(3) = 0 [pid 7116] close(4) = 0 [pid 7116] mkdir("./file1", 0777) = 0 [ 197.061027][ T6929] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.061132][ T6929] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 197.061332][ T6929] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.062242][ T6929] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 197.062459][ T6929] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.062563][ T6929] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 197.062773][ T6929] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 197.062878][ T6929] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 197.063078][ T6929] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 197.063180][ T6929] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 197.063389][ T6929] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 197.063495][ T6929] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 197.063734][ T6929] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 197.063751][ T6929] Ratelimiting new instances of previous error [ 197.063881][ T6929] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 197.063897][ T6929] Ratelimiting new instances of previous error [ 197.076908][ T6929] done [ 197.079081][ T6929] bcachefs (loop2): going read-write [ 197.085886][ T6929] bcachefs (loop2): journal_replay... done [ 197.113509][ T6929] bcachefs (loop2): check_alloc_info... [ 197.115316][ T6929] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 197.115335][ T6929] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 197.115348][ T6929] gen 0 oldest_gen 0 data_type need_discard [ 197.115359][ T6929] journal_seq_nonempty 6 [ 197.115369][ T6929] journal_seq_empty 0 [ 197.115379][ T6929] need_discard 1 [ 197.115389][ T6929] need_inc_gen 1 [ 197.115398][ T6929] dirty_sectors 0 [ 197.115410][ T6929] stripe_sectors 0 [ 197.115420][ T6929] cached_sectors 0 [ 197.115430][ T6929] stripe 0 [ 197.115440][ T6929] stripe_redundancy 0 [ 197.115450][ T6929] io_time[READ] 1 [ 197.115460][ T6929] io_time[WRITE] 768 [ 197.115470][ T6929] fragmentation 0 [ 197.115479][ T6929] bp_start 8 [ 197.115489][ T6929] , fixing [ 197.131508][ T6929] done [ 197.137641][ T6929] bcachefs (loop2): check_lrus... done [ 197.138704][ T6929] bcachefs (loop2): check_btree_backpointers... done [ 197.140409][ T6929] bcachefs (loop2): check_backpointers_to_extents... done [ 197.143461][ T6929] bcachefs (loop2): check_extents_to_backpointers... [ 197.144803][ T6929] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 197.147715][ T6929] done [ 197.148441][ T6929] bcachefs (loop2): check_alloc_to_lru_refs... [ 197.151415][ T6929] bcachefs (loop2): missing fragmentation lru entry [ 197.151433][ T6929] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 197.151445][ T6929] gen 0 oldest_gen 0 data_type user [ 197.151455][ T6929] journal_seq_nonempty 5 [ 197.151465][ T6929] journal_seq_empty 134217728 [ 197.151476][ T6929] need_discard 1 [ 197.151487][ T6929] need_inc_gen 1 [ 197.151497][ T6929] dirty_sectors 16 [ 197.151508][ T6929] stripe_sectors 1802251 [ 197.151518][ T6929] cached_sectors 0 [ 197.151528][ T6929] stripe 0 [ 197.151538][ T6929] stripe_redundancy 0 [ 197.151548][ T6929] io_time[READ] 1 [ 197.151558][ T6929] io_time[WRITE] 512 [ 197.151568][ T6929] fragmentation 0 [ 197.151578][ T6929] bp_start 7 [ 197.151588][ T6929] , fixing [ 197.153209][ T6929] done ** 1 printk messages dropped ** [pid 7116] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7116] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7116] chdir("./file1") = 0 [pid 7116] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7116] ioctl(4, LOOP_CLR_FD) = 0 [ 197.156852][ T6929] bcachefs (loop2): check_snapshot_trees... done ** 3 printk messages dropped ** [ 197.172708][ T6929] done ** 3 printk messages dropped ** [ 197.176792][ T6929] bcachefs (loop2): check_inodes... ** 11 printk messages dropped ** [ 197.177981][ T6929] bi_ctime=2780562352 ** 6 printk messages dropped ** [ 197.178046][ T6929] bi_dev=0 ** 1 printk messages dropped ** [ 197.178065][ T6929] bi_compression=0 [ 197.178075][ T6929] bi_project=0 [ 197.178084][ T6929] bi_background_compression=0 [pid 7116] close(4) = 0 [pid 7116] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7116] exit_group(0) = ? [pid 7116] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7116, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=46 /* 0.46 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./77", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./77", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 197.178094][ T6929] bi_data_replicas=0 [ 197.178103][ T6929] bi_promote_target=0 [ 197.178114][ T6929] bi_foreground_target=64 [ 197.178123][ T6929] bi_background_target=1 [ 197.178133][ T6929] bi_erasure_code=0 [ 197.178143][ T6929] bi_fields_set=0 [ 197.178154][ T6929] bi_dir=0 [ 197.178161][ T6929] bi_dir_offset=32 [ 197.178172][ T6929] bi_subvol=0 [ 197.178181][ T6929] bi_parent_subvol=0 [ 197.178191][ T6929] bi_nocow=0 [ 197.178200][ T6929] bi_depth=0 [ 197.178209][ T6929] bi_inodes_32bit=0 [ 197.178219][ T6929] bi_casefold=0, fixing [ 197.184037][ T6929] done [ 197.184737][ T6929] bcachefs (loop2): check_extents... done [ 197.186222][ T6929] bcachefs (loop2): check_indirect_extents... done [ 197.187080][ T6929] bcachefs (loop2): check_dirents... [ 197.188801][ T6929] bcachefs (loop2): directory with missing backpointer [ 197.188819][ T6929] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 197.188833][ T6929] inum: 4098:4294967295 [ 197.188843][ T6929] mode=40755 [ 197.188852][ T6929] flags=(11300000) [ 197.188863][ T6929] journal_seq=22 [ 197.188872][ T6929] hash_seed=ece93825deac2443 [ 197.188882][ T6929] hash_type=siphash [ 197.188892][ T6929] bi_size=0 [ 197.188901][ T6929] bi_sectors=0 [ 197.188910][ T6929] bi_version=0 [ 197.188919][ T6929] bi_atime=2770562249 [ 197.188929][ T6929] bi_ctime=2780562352 [ 197.188939][ T6929] bi_mtime=2780562352 [ 197.188948][ T6929] bi_otime=2770562249 [ 197.188958][ T6929] bi_uid=0 [ 197.188967][ T6929] bi_gid=0 [ 197.188976][ T6929] bi_nlink=0 [ 197.188986][ T6929] bi_generation=0 [ 197.188995][ T6929] bi_dev=0 [ 197.189004][ T6929] bi_data_checksum=0 [ 197.189013][ T6929] bi_compression=0 [ 197.189023][ T6929] bi_project=0 [ 197.189033][ T6929] bi_background_compression=0 [ 197.189044][ T6929] bi_data_replicas=0 [ 197.189054][ T6929] bi_promote_target=0 [ 197.189064][ T6929] bi_foreground_target=64 [ 197.189074][ T6929] bi_background_target=1 [ 197.189084][ T6929] bi_erasure_code=0 [ 197.189093][ T6929] bi_fields_set=0 [ 197.189103][ T6929] bi_dir=0 [ 197.189112][ T6929] bi_dir_offset=0 [ 197.189121][ T6929] bi_subvol=0 [ 197.189130][ T6929] bi_parent_subvol=0 [ 197.189140][ T6929] bi_nocow=0 [ 197.189149][ T6929] bi_depth=0 [ 197.189158][ T6929] bi_inodes_32bit=0 [ 197.189168][ T6929] bi_casefold=0, fixing [ 197.196711][ T6929] done [ 197.197392][ T6929] bcachefs (loop2): check_xattrs... done [ 197.198666][ T6929] bcachefs (loop2): check_root... done [ 197.200146][ T6929] bcachefs (loop2): check_unreachable_inodes... done [ 197.201110][ T6929] bcachefs (loop2): check_subvolume_structure... done [ 197.201905][ T6929] bcachefs (loop2): check_directory_structure... done [ 197.202710][ T6929] bcachefs (loop2): check_nlinks... [ 197.203890][ T6929] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 197.204959][ T6929] done [ 197.205658][ T6929] bcachefs (loop2): check_rebalance_work... done [ 197.206874][ T6929] bcachefs (loop2): resume_logged_ops... done [ 197.207712][ T6929] bcachefs (loop2): delete_dead_inodes... done [ 197.218573][ T6929] bcachefs (loop2): set_fs_needs_rebalance... done [ 197.230054][ T6938] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 197.230075][ T6938] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 197.232616][ T6929] bcachefs (loop2): check_extents_to_backpointers... [pid 5839] umount2("./77/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./77/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./77/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./77/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 197.233651][ T6929] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 197.238504][ T6938] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 197.239167][ T6929] done [ 197.249500][ T6929] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 197.249527][ T6929] bcachefs (loop2): check_alloc_info... done [ 197.254305][ T6929] bcachefs (loop2): check_lrus... done [ 197.256046][ T6929] bcachefs (loop2): check_btree_backpointers... done [ 197.257352][ T6929] bcachefs (loop2): check_backpointers_to_extents... done [pid 5839] openat(AT_FDCWD, "./77/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./77/file1") = 0 [pid 5839] umount2("./77/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./77/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./77/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 197.258843][ T6929] bcachefs (loop2): check_extents_to_backpointers... [ 197.260439][ T6929] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 197.261805][ T6929] done [ 197.261818][ T6929] bcachefs (loop2): check_alloc_to_lru_refs... done [ 197.264169][ T6929] bcachefs (loop2): bucket_gens_init... done [ 197.266753][ T6929] bcachefs (loop2): check_snapshot_trees... done [ 197.267992][ T6929] bcachefs (loop2): check_snapshots... done [ 197.268835][ T6929] bcachefs (loop2): check_subvols... done [pid 5839] close(3) = 0 [pid 5839] rmdir("./77") = 0 [pid 5839] mkdir("./78", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7127 attached [pid 7127] set_robust_list(0x5555901c6760, 24 [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 7127 [pid 7127] <... set_robust_list resumed>) = 0 [ 197.270996][ T6929] bcachefs (loop2): check_subvol_children... done [ 197.271822][ T6929] bcachefs (loop2): delete_dead_snapshots... done [ 197.272544][ T6929] bcachefs (loop2): check_inodes... done [ 197.273768][ T6929] bcachefs (loop2): check_extents... done [ 197.275176][ T6929] bcachefs (loop2): check_indirect_extents... done [ 197.275953][ T6929] bcachefs (loop2): check_dirents... done [ 197.278009][ T6929] bcachefs (loop2): check_xattrs... done [ 197.278951][ T6929] bcachefs (loop2): check_root... done [pid 7127] chdir("./78") = 0 [pid 7127] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7127] setpgid(0, 0) = 0 [pid 7127] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7127] write(3, "1000", 4) = 4 [pid 7127] close(3) = 0 [pid 7127] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7127] write(1, "executing program\n", 18) = 18 [pid 7127] memfd_create("syzkaller", 0) = 3 [pid 7127] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 197.280827][ T6929] bcachefs (loop2): check_unreachable_inodes... done [ 197.281766][ T6929] bcachefs (loop2): check_subvolume_structure... done [ 197.282616][ T6929] bcachefs (loop2): check_directory_structure... done [ 197.283374][ T6929] bcachefs (loop2): check_nlinks... done [ 197.284602][ T6929] bcachefs (loop2): check_rebalance_work... done [ 197.285482][ T6929] bcachefs (loop2): resume_logged_ops... done [ 197.286298][ T6929] bcachefs (loop2): delete_dead_inodes... done [ 197.287623][ T6929] bcachefs (loop2): set_fs_needs_rebalance... done [ 197.292179][ T6929] bcachefs (loop2): done starting filesystem [ 197.362363][ T5839] bcachefs (loop2): shutting down [ 197.362384][ T5839] bcachefs (loop2): going read-only [ 197.362413][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 197.401252][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 197.402764][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 197.403673][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 197.405475][ T5839] bcachefs (loop2): marking filesystem clean [ 197.469047][ T5839] bcachefs (loop2): shutdown complete [ 198.239747][ T6940] loop2: detected capacity change from 0 to 32768 [ 198.388193][ T6940] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 198.388221][ T6940] allowing incompatible features above 0.0: (unknown version) [ 198.388237][ T6940] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 198.388265][ T6940] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 198.388435][ T6940] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 198.388684][ T6940] bcachefs (loop2): Version upgrade required: [ 198.388684][ T6940] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 198.388684][ T6940] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 198.388684][ T6940] 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,check_rebalance_work,set_fs_needs_rebalance [ 198.407804][ T6940] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 198.407830][ T6940] size != 0, deleting [ 198.408985][ T6940] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 198.413656][ T6940] bcachefs (loop2): check_topology... done [ 198.415009][ T6940] bcachefs (loop2): accounting_read... done [ 198.446155][ T6940] bcachefs (loop2): alloc_read... done [ 198.447106][ T6940] bcachefs (loop2): snapshots_read... done [ 198.447988][ T6940] bcachefs (loop2): check_allocations... [pid 7127] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7127] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7127] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7127] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7127] close(3) = 0 [pid 7127] close(4) = 0 [pid 7127] mkdir("./file1", 0777) = 0 [ 198.450728][ T6940] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 198.450751][ T6940] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 198.453346][ T6940] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 198.453368][ T6940] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 198.454931][ T6940] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 198.454951][ T6940] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 198.456695][ T6940] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 198.456712][ T6940] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 198.460297][ T6940] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 198.460316][ T6940] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 198.461285][ T6940] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.461424][ T6940] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.461975][ T6940] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.462085][ T6940] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.462500][ T6940] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.462607][ T6940] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.462807][ T6940] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.462912][ T6940] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.466298][ T6940] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.466429][ T6940] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.466657][ T6940] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.466765][ T6940] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.466982][ T6940] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.467089][ T6940] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 198.467295][ T6940] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 198.467400][ T6940] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 198.467622][ T6940] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 198.467729][ T6940] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 198.467943][ T6940] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 198.468048][ T6940] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 198.468280][ T6940] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 198.468296][ T6940] Ratelimiting new instances of previous error [ 198.468439][ T6940] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 198.468456][ T6940] Ratelimiting new instances of previous error [ 198.481282][ T6940] done [ 198.483443][ T6940] bcachefs (loop2): going read-write [ 198.489982][ T6940] bcachefs (loop2): journal_replay... done [ 198.516312][ T6940] bcachefs (loop2): check_alloc_info... [ 198.518120][ T6940] bcachefs (loop2): bucket incorrectly unset in need_discard btree ** 4 printk messages dropped ** [ 198.518180][ T6940] need_discard 1 ** 3 printk messages dropped ** [ 198.518220][ T6940] cached_sectors 0 ** 9 printk messages dropped ** [ 198.540574][ T6940] bcachefs (loop2): check_btree_backpointers... done ** 1 printk messages dropped ** [ 198.548347][ T6940] bcachefs (loop2): check_extents_to_backpointers... [ 198.551740][ T6940] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets ** 6 printk messages dropped ** [ 198.556358][ T6940] journal_seq_empty 134217728 [ 198.556369][ T6940] need_discard 1 [ 198.556379][ T6940] need_inc_gen 1 [ 198.556390][ T6940] dirty_sectors 16 [ 198.556410][ T6940] stripe_sectors 1802251 [ 198.556421][ T6940] cached_sectors 0 ** 2 printk messages dropped ** [ 198.556451][ T6940] io_time[READ] 1 ** 2 printk messages dropped ** [ 198.556481][ T6940] bp_start 7 ** 4 printk messages dropped ** [ 198.565381][ T6940] bcachefs (loop2): check_snapshots... ** 2 printk messages dropped ** [ 198.577481][ T6940] done ** 2 printk messages dropped ** [pid 7127] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7127] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7127] chdir("./file1") = 0 [pid 7127] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7127] ioctl(4, LOOP_CLR_FD) = 0 [pid 7127] close(4) = 0 [pid 7127] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7127] exit_group(0) = ? [pid 7127] +++ exited with 0 +++ [ 198.581388][ T6940] bcachefs (loop2): delete_dead_snapshots... done ** 5 printk messages dropped ** [ 198.583240][ T6940] journal_seq=4 ** 6 printk messages dropped ** [ 198.583306][ T6940] bi_ctime=2780562352 ** 2 printk messages dropped ** [ 198.583337][ T6940] bi_uid=0 [ 198.583346][ T6940] bi_gid=0 [ 198.583354][ T6940] bi_nlink=0 [ 198.583364][ T6940] bi_generation=0 [ 198.583373][ T6940] bi_dev=0 [ 198.583382][ T6940] bi_data_checksum=0 [ 198.583392][ T6940] bi_compression=0 [ 198.583401][ T6940] bi_project=0 [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7127, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] umount2("./78", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./78", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 198.583410][ T6940] bi_background_compression=0 [ 198.583420][ T6940] bi_data_replicas=0 [ 198.583430][ T6940] bi_promote_target=0 [ 198.583439][ T6940] bi_foreground_target=64 [ 198.583450][ T6940] bi_background_target=1 [ 198.583467][ T6940] bi_erasure_code=0 [ 198.583477][ T6940] bi_fields_set=0 [ 198.583486][ T6940] bi_dir=0 [ 198.583496][ T6940] bi_dir_offset=32 [ 198.583505][ T6940] bi_subvol=0 [ 198.583514][ T6940] bi_parent_subvol=0 [ 198.583524][ T6940] bi_nocow=0 [ 198.583532][ T6940] bi_depth=0 [ 198.583541][ T6940] bi_inodes_32bit=0 [ 198.583551][ T6940] bi_casefold=0, fixing [ 198.585175][ T6940] done [ 198.585890][ T6940] bcachefs (loop2): check_extents... done [ 198.587797][ T6940] bcachefs (loop2): check_indirect_extents... done [ 198.588638][ T6940] bcachefs (loop2): check_dirents... [ 198.593524][ T6940] bcachefs (loop2): directory with missing backpointer [ 198.593542][ T6940] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 198.593557][ T6940] inum: 4098:4294967295 [ 198.593567][ T6940] mode=40755 [ 198.593577][ T6940] flags=(11300000) [ 198.593586][ T6940] journal_seq=22 [ 198.593596][ T6940] hash_seed=ece93825deac2443 [ 198.593606][ T6940] hash_type=siphash [ 198.593616][ T6940] bi_size=0 [ 198.593625][ T6940] bi_sectors=0 [ 198.593635][ T6940] bi_version=0 [ 198.593644][ T6940] bi_atime=2770562249 [ 198.593653][ T6940] bi_ctime=2780562352 [ 198.593663][ T6940] bi_mtime=2780562352 [ 198.593673][ T6940] bi_otime=2770562249 [ 198.593684][ T6940] bi_uid=0 [ 198.593693][ T6940] bi_gid=0 [ 198.593702][ T6940] bi_nlink=0 [ 198.593709][ T6940] bi_generation=0 [ 198.593718][ T6940] bi_dev=0 [ 198.593726][ T6940] bi_data_checksum=0 [ 198.593737][ T6940] bi_compression=0 [ 198.593747][ T6940] bi_project=0 [ 198.593756][ T6940] bi_background_compression=0 [ 198.593766][ T6940] bi_data_replicas=0 [ 198.593776][ T6940] bi_promote_target=0 [ 198.593786][ T6940] bi_foreground_target=64 [ 198.593796][ T6940] bi_background_target=1 [ 198.593806][ T6940] bi_erasure_code=0 [ 198.593815][ T6940] bi_fields_set=0 [ 198.593824][ T6940] bi_dir=0 [ 198.593833][ T6940] bi_dir_offset=0 [ 198.593843][ T6940] bi_subvol=0 [ 198.593852][ T6940] bi_parent_subvol=0 [ 198.593862][ T6940] bi_nocow=0 [ 198.593871][ T6940] bi_depth=0 [ 198.593880][ T6940] bi_inodes_32bit=0 [ 198.593891][ T6940] bi_casefold=0, fixing [ 198.600505][ T6940] done [ 198.601979][ T6940] bcachefs (loop2): check_xattrs... done [ 198.603261][ T6940] bcachefs (loop2): check_root... done [ 198.604383][ T6940] bcachefs (loop2): check_unreachable_inodes... done [ 198.605440][ T6940] bcachefs (loop2): check_subvolume_structure... done [ 198.606199][ T6940] bcachefs (loop2): check_directory_structure... done [ 198.606996][ T6940] bcachefs (loop2): check_nlinks... [ 198.607701][ T6940] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 198.608738][ T6940] done [ 198.610587][ T6940] bcachefs (loop2): check_rebalance_work... done [ 198.612720][ T6940] bcachefs (loop2): resume_logged_ops... done [ 198.613550][ T6940] bcachefs (loop2): delete_dead_inodes... done [ 198.622570][ T6940] bcachefs (loop2): set_fs_needs_rebalance... [ 198.630414][ T6949] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 198.630438][ T6949] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 198.631861][ T6940] done [ 198.633009][ T6940] bcachefs (loop2): check_extents_to_backpointers... [ 198.634013][ T6940] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 198.638706][ T6940] done [ 198.655583][ T6940] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 198.655609][ T6940] bcachefs (loop2): check_alloc_info... done [ 198.671708][ T6940] bcachefs (loop2): check_lrus... done [ 198.673207][ T6940] bcachefs (loop2): check_btree_backpointers... done [ 198.674412][ T6940] bcachefs (loop2): check_backpointers_to_extents... done [pid 5839] umount2("./78/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./78/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./78/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./78/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./78/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./78/file1") = 0 [pid 5839] umount2("./78/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./78/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./78/binderfs") = 0 [ 198.675843][ T6940] bcachefs (loop2): check_extents_to_backpointers... done [ 198.677495][ T6940] bcachefs (loop2): check_alloc_to_lru_refs... done [ 198.680572][ T6940] bcachefs (loop2): bucket_gens_init... done [ 198.684814][ T6940] bcachefs (loop2): check_snapshot_trees... done [ 198.690012][ T6940] bcachefs (loop2): check_snapshots... done [ 198.690818][ T6940] bcachefs (loop2): check_subvols... done [ 198.691603][ T6940] bcachefs (loop2): check_subvol_children... done [ 198.692297][ T6940] bcachefs (loop2): delete_dead_snapshots... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./78") = 0 [pid 5839] mkdir("./79", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [ 198.692958][ T6940] bcachefs (loop2): check_inodes... done [ 198.694566][ T6940] bcachefs (loop2): check_extents... done [ 198.700409][ T6940] bcachefs (loop2): check_indirect_extents... done [ 198.701144][ T6940] bcachefs (loop2): check_dirents... done [ 198.704706][ T6940] bcachefs (loop2): check_xattrs... done [ 198.705801][ T6940] bcachefs (loop2): check_root... done [ 198.706586][ T6940] bcachefs (loop2): check_unreachable_inodes... done [ 198.710680][ T6940] bcachefs (loop2): check_subvolume_structure... done [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7138 attached , child_tidptr=0x5555901c6750) = 7138 [pid 7138] set_robust_list(0x5555901c6760, 24) = 0 [pid 7138] chdir("./79") = 0 [pid 7138] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 198.711402][ T6940] bcachefs (loop2): check_directory_structure... done [ 198.712127][ T6940] bcachefs (loop2): check_nlinks... done [ 198.715304][ T6940] bcachefs (loop2): check_rebalance_work... done [ 198.716025][ T6940] bcachefs (loop2): resume_logged_ops... done [ 198.716732][ T6940] bcachefs (loop2): delete_dead_inodes... done [ 198.720660][ T6940] bcachefs (loop2): set_fs_needs_rebalance... done [ 198.727183][ T6940] bcachefs (loop2): done starting filesystem [ 198.802870][ T5839] bcachefs (loop2): shutting down [ 198.802890][ T5839] bcachefs (loop2): going read-only [pid 7138] setpgid(0, 0) = 0 [pid 7138] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7138] write(3, "1000", 4) = 4 [pid 7138] close(3) = 0 [pid 7138] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7138] write(1, "executing program\n", 18executing program ) = 18 [pid 7138] memfd_create("syzkaller", 0) = 3 [pid 7138] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 198.802919][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 198.811767][ T1275] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 198.811767][ T1275] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 198.811946][ T1275] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 198.811964][ T1275] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 198.811987][ T1275] loop2 checksum error [ 198.842502][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 198.851257][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 198.852147][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 198.853945][ T5839] bcachefs (loop2): marking filesystem clean [ 198.916788][ T5839] bcachefs (loop2): shutdown complete [ 199.702718][ T6951] loop2: detected capacity change from 0 to 32768 [ 199.823469][ T6951] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 199.823499][ T6951] allowing incompatible features above 0.0: (unknown version) [ 199.823513][ T6951] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 199.823549][ T6951] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 199.823679][ T6951] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 199.823924][ T6951] bcachefs (loop2): Version upgrade required: [ 199.823924][ T6951] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 199.823924][ T6951] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 199.823924][ T6951] 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,check_rebalance_work,set_fs_needs_rebalance [ 199.843362][ T6951] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 199.843389][ T6951] size != 0, deleting [ 199.844536][ T6951] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 199.847888][ T6951] bcachefs (loop2): check_topology... done [ 199.851259][ T6951] bcachefs (loop2): accounting_read... done [ 199.880346][ T6951] bcachefs (loop2): alloc_read... done [ 199.881240][ T6951] bcachefs (loop2): snapshots_read... done [ 199.882060][ T6951] bcachefs (loop2): check_allocations... [ 199.884638][ T6951] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7138] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7138] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7138] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 199.884657][ T6951] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 199.886596][ T6951] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 199.886614][ T6951] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 199.887979][ T6951] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7138] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7138] close(3) = 0 [pid 7138] close(4) = 0 [pid 7138] mkdir("./file1", 0777) = 0 [ 199.887997][ T6951] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 199.890685][ T6951] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 199.890704][ T6951] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 199.894797][ T6951] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 199.894816][ T6951] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 199.895758][ T6951] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.895899][ T6951] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.896460][ T6951] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.896566][ T6951] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.896963][ T6951] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.897070][ T6951] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.897279][ T6951] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.897406][ T6951] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.897607][ T6951] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.897712][ T6951] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.897915][ T6951] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.898020][ T6951] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.898242][ T6951] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.898358][ T6951] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 199.898557][ T6951] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 199.898661][ T6951] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 199.898861][ T6951] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 199.898965][ T6951] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 199.899167][ T6951] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 199.900001][ T6951] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 199.900263][ T6951] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 199.900335][ T6951] Ratelimiting new instances of previous error [ 199.900462][ T6951] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 199.900478][ T6951] Ratelimiting new instances of previous error [ 199.913471][ T6951] done [ 199.915496][ T6951] bcachefs (loop2): going read-write [ 199.920457][ T6951] bcachefs (loop2): journal_replay... done [ 199.948292][ T6951] bcachefs (loop2): check_alloc_info... [ 199.951609][ T6951] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 199.951628][ T6951] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 199.951641][ T6951] gen 0 oldest_gen 0 data_type need_discard ** 1 printk messages dropped ** [ 199.951661][ T6951] journal_seq_empty 0 ** 1 printk messages dropped ** [ 199.951681][ T6951] need_inc_gen 1 ** 9 printk messages dropped ** [ 199.951780][ T6951] , fixing ** 4 printk messages dropped ** [ 199.981109][ T6951] bcachefs (loop2): check_extents_to_backpointers... [ 199.982503][ T6951] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets ** 3 printk messages dropped ** [ 199.988636][ T6951] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: ** 4 printk messages dropped ** [ 199.988690][ T6951] need_inc_gen 1 [pid 7138] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 199.988700][ T6951] dirty_sectors 16 ** 2 printk messages dropped ** [ 199.988730][ T6951] stripe 0 ** 3 printk messages dropped ** [ 199.988770][ T6951] fragmentation 0 ** 6 printk messages dropped ** [ 200.001188][ T6951] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 7 printk messages dropped ** [ 200.018013][ T6951] inum: 4098:4294967295 ** 9 printk messages dropped ** [ 200.018105][ T6951] bi_ctime=2780562352 ** 6 printk messages dropped ** [pid 7138] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7138] chdir("./file1") = 0 [pid 7138] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7138] ioctl(4, LOOP_CLR_FD) = 0 [pid 7138] close(4) = 0 [pid 7138] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7138] exit_group(0) = ? [pid 7138] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7138, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./79", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./79", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 200.018169][ T6951] bi_dev=0 ** 1 printk messages dropped ** [ 200.018187][ T6951] bi_compression=0 [ 200.018196][ T6951] bi_project=0 [ 200.018205][ T6951] bi_background_compression=0 [ 200.018215][ T6951] bi_data_replicas=0 [ 200.018224][ T6951] bi_promote_target=0 [ 200.018233][ T6951] bi_foreground_target=64 [ 200.018245][ T6951] bi_background_target=1 [ 200.018254][ T6951] bi_erasure_code=0 [ 200.018269][ T6951] bi_fields_set=0 [ 200.018280][ T6951] bi_dir=0 [ 200.018289][ T6951] bi_dir_offset=32 [ 200.018298][ T6951] bi_subvol=0 [ 200.018323][ T6951] bi_parent_subvol=0 [ 200.018333][ T6951] bi_nocow=0 [ 200.018342][ T6951] bi_depth=0 [ 200.018351][ T6951] bi_inodes_32bit=0 [ 200.018361][ T6951] bi_casefold=0, fixing [ 200.023213][ T6951] done [ 200.024673][ T6951] bcachefs (loop2): check_extents... done [ 200.027329][ T6951] bcachefs (loop2): check_indirect_extents... done [ 200.028167][ T6951] bcachefs (loop2): check_dirents... [ 200.029944][ T6951] bcachefs (loop2): directory with missing backpointer [ 200.029962][ T6951] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 200.029976][ T6951] inum: 4098:4294967295 [ 200.029988][ T6951] mode=40755 [ 200.029997][ T6951] flags=(11300000) [ 200.030006][ T6951] journal_seq=22 [ 200.030016][ T6951] hash_seed=ece93825deac2443 [ 200.030026][ T6951] hash_type=siphash [ 200.030036][ T6951] bi_size=0 [ 200.030045][ T6951] bi_sectors=0 [ 200.030054][ T6951] bi_version=0 [ 200.030064][ T6951] bi_atime=2770562249 [ 200.030074][ T6951] bi_ctime=2780562352 [ 200.030085][ T6951] bi_mtime=2780562352 [ 200.030094][ T6951] bi_otime=2770562249 [ 200.030105][ T6951] bi_uid=0 [ 200.030114][ T6951] bi_gid=0 [ 200.030124][ T6951] bi_nlink=0 [ 200.030134][ T6951] bi_generation=0 [ 200.030143][ T6951] bi_dev=0 [ 200.030152][ T6951] bi_data_checksum=0 [ 200.030162][ T6951] bi_compression=0 [ 200.030173][ T6951] bi_project=0 [ 200.030182][ T6951] bi_background_compression=0 [ 200.030193][ T6951] bi_data_replicas=0 [ 200.030202][ T6951] bi_promote_target=0 [ 200.030213][ T6951] bi_foreground_target=64 [ 200.030223][ T6951] bi_background_target=1 [ 200.030234][ T6951] bi_erasure_code=0 [ 200.030244][ T6951] bi_fields_set=0 [ 200.030254][ T6951] bi_dir=0 [ 200.030272][ T6951] bi_dir_offset=0 [ 200.030281][ T6951] bi_subvol=0 [ 200.030291][ T6951] bi_parent_subvol=0 [ 200.030300][ T6951] bi_nocow=0 [ 200.030310][ T6951] bi_depth=0 [ 200.030319][ T6951] bi_inodes_32bit=0 [ 200.030329][ T6951] bi_casefold=0, fixing [ 200.036337][ T6951] done [ 200.037481][ T6951] bcachefs (loop2): check_xattrs... done [ 200.038931][ T6951] bcachefs (loop2): check_root... done [ 200.040567][ T6951] bcachefs (loop2): check_unreachable_inodes... done [ 200.041635][ T6951] bcachefs (loop2): check_subvolume_structure... done [ 200.042423][ T6951] bcachefs (loop2): check_directory_structure... done [ 200.043192][ T6951] bcachefs (loop2): check_nlinks... [ 200.043903][ T6951] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 200.044991][ T6951] done [ 200.045686][ T6951] bcachefs (loop2): check_rebalance_work... done [ 200.046918][ T6951] bcachefs (loop2): resume_logged_ops... done [ 200.047669][ T6951] bcachefs (loop2): delete_dead_inodes... done [ 200.057479][ T6951] bcachefs (loop2): set_fs_needs_rebalance... [ 200.065505][ T6960] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 200.065530][ T6960] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 200.068791][ T6951] done [ 200.070486][ T6951] bcachefs (loop2): check_extents_to_backpointers... [ 200.071480][ T6951] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 200.077737][ T6951] done [ 200.087514][ T6951] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 200.087540][ T6951] bcachefs (loop2): check_alloc_info... done [ 200.092615][ T6951] bcachefs (loop2): check_lrus... done [pid 5839] umount2("./79/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 200.093806][ T6951] bcachefs (loop2): check_btree_backpointers... done [ 200.095478][ T6951] bcachefs (loop2): check_backpointers_to_extents... done [ 200.097187][ T6951] bcachefs (loop2): check_extents_to_backpointers... done [ 200.098974][ T6951] bcachefs (loop2): check_alloc_to_lru_refs... done [ 200.102141][ T6951] bcachefs (loop2): bucket_gens_init... done [ 200.104240][ T6951] bcachefs (loop2): check_snapshot_trees... done [ 200.105497][ T6951] bcachefs (loop2): check_snapshots... done [ 200.106465][ T6951] bcachefs (loop2): check_subvols... done [pid 5839] umount2("./79/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./79/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./79/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./79/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 200.107769][ T6951] bcachefs (loop2): check_subvol_children... done [ 200.108546][ T6951] bcachefs (loop2): delete_dead_snapshots... done [ 200.109730][ T6951] bcachefs (loop2): check_inodes... done [ 200.111589][ T6951] bcachefs (loop2): check_extents... done [ 200.112993][ T6951] bcachefs (loop2): check_indirect_extents... done [ 200.113769][ T6951] bcachefs (loop2): check_dirents... done [ 200.115341][ T6951] bcachefs (loop2): check_xattrs... done [ 200.116280][ T6951] bcachefs (loop2): check_root... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 200.117119][ T6951] bcachefs (loop2): check_unreachable_inodes... done [ 200.118618][ T6951] bcachefs (loop2): check_subvolume_structure... done [ 200.119908][ T6951] bcachefs (loop2): check_directory_structure... done [ 200.121731][ T6951] bcachefs (loop2): check_nlinks... done [ 200.122963][ T6951] bcachefs (loop2): check_rebalance_work... done [ 200.123726][ T6951] bcachefs (loop2): resume_logged_ops... done [ 200.124504][ T6951] bcachefs (loop2): delete_dead_inodes... done [ 200.125213][ T6951] bcachefs (loop2): set_fs_needs_rebalance... done [pid 5839] rmdir("./79/file1") = 0 [pid 5839] umount2("./79/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./79/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./79/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./79") = 0 [pid 5839] mkdir("./80", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 200.129675][ T6951] bcachefs (loop2): done starting filesystem [ 200.200783][ T5839] bcachefs (loop2): shutting down [ 200.200803][ T5839] bcachefs (loop2): going read-only [ 200.200833][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 200.244921][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 200.247200][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 200.248126][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7149 ./strace-static-x86_64: Process 7149 attached [pid 7149] set_robust_list(0x5555901c6760, 24) = 0 [ 200.249626][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 200.249626][ T5900] rw journal devs: [ 200.251285][ T5839] bcachefs (loop2): marking filesystem clean [ 200.294019][ T5839] bcachefs (loop2): shutdown complete [ 201.121421][ T6962] loop2: detected capacity change from 0 to 32768 [ 201.260893][ T6962] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 201.260921][ T6962] allowing incompatible features above 0.0: (unknown version) [pid 7149] chdir("./80") = 0 [pid 7149] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7149] setpgid(0, 0) = 0 [pid 7149] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7149] write(3, "1000", 4) = 4 [pid 7149] close(3) = 0 [ 201.260933][ T6962] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 201.260978][ T6962] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 201.261107][ T6962] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 201.261387][ T6962] bcachefs (loop2): Version upgrade required: [ 201.261387][ T6962] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [pid 7149] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7149] write(1, "executing program\n", 18) = 18 [pid 7149] memfd_create("syzkaller", 0) = 3 [pid 7149] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 201.261387][ T6962] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 201.261387][ T6962] 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,check_rebalance_work,set_fs_needs_rebalance [ 201.281123][ T6962] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 201.281150][ T6962] size != 0, deleting [ 201.282385][ T6962] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 201.286334][ T6962] bcachefs (loop2): check_topology... done [ 201.287847][ T6962] bcachefs (loop2): accounting_read... done [ 201.320340][ T6962] bcachefs (loop2): alloc_read... done [ 201.321301][ T6962] bcachefs (loop2): snapshots_read... done [ 201.322101][ T6962] bcachefs (loop2): check_allocations... [ 201.324059][ T6962] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 201.324078][ T6962] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 201.326136][ T6962] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 201.326155][ T6962] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 201.328063][ T6962] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 201.328082][ T6962] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 201.331090][ T6962] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 201.331108][ T6962] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 201.334312][ T6962] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 201.334331][ T6962] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 201.335323][ T6962] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.335457][ T6962] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 201.336012][ T6962] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.336117][ T6962] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 201.336523][ T6962] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.336635][ T6962] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7149] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7149] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7149] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7149] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7149] close(3) = 0 [pid 7149] close(4) = 0 [ 201.336835][ T6962] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.336941][ T6962] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 201.337137][ T6962] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.337241][ T6962] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 201.337464][ T6962] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7149] mkdir("./file1", 0777) = 0 [ 201.337572][ T6962] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 201.338384][ T6962] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.338502][ T6962] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 201.338712][ T6962] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 201.338821][ T6962] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 201.339035][ T6962] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 201.339139][ T6962] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 201.339649][ T6962] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 201.339758][ T6962] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 201.339994][ T6962] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 201.340008][ T6962] Ratelimiting new instances of previous error [ 201.340145][ T6962] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 201.340160][ T6962] Ratelimiting new instances of previous error [ 201.353656][ T6962] done [ 201.355821][ T6962] bcachefs (loop2): going read-write [ 201.360470][ T6962] bcachefs (loop2): journal_replay... done [ 201.390019][ T6962] bcachefs (loop2): check_alloc_info... [ 201.391861][ T6962] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 201.391879][ T6962] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 201.391890][ T6962] gen 0 oldest_gen 0 data_type need_discard [ 201.391901][ T6962] journal_seq_nonempty 6 [ 201.391911][ T6962] journal_seq_empty 0 [ 201.391922][ T6962] need_discard 1 [ 201.391932][ T6962] need_inc_gen 1 [ 201.391942][ T6962] dirty_sectors 0 [ 201.391952][ T6962] stripe_sectors 0 [ 201.391961][ T6962] cached_sectors 0 [ 201.391971][ T6962] stripe 0 [ 201.391981][ T6962] stripe_redundancy 0 [ 201.391990][ T6962] io_time[READ] 1 [ 201.392000][ T6962] io_time[WRITE] 768 [ 201.392010][ T6962] fragmentation 0 [ 201.392019][ T6962] bp_start 8 [ 201.392029][ T6962] , fixing [ 201.408710][ T6962] done [ 201.414150][ T6962] bcachefs (loop2): check_lrus... done [ 201.414998][ T6962] bcachefs (loop2): check_btree_backpointers... done [ 201.416328][ T6962] bcachefs (loop2): check_backpointers_to_extents... done [ 201.421054][ T6962] bcachefs (loop2): check_extents_to_backpointers... [ 201.422432][ T6962] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 201.426426][ T6962] done [ 201.427194][ T6962] bcachefs (loop2): check_alloc_to_lru_refs... [ 201.429054][ T6962] bcachefs (loop2): missing fragmentation lru entry [ 201.429072][ T6962] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 201.429083][ T6962] gen 0 oldest_gen 0 data_type user [ 201.429092][ T6962] journal_seq_nonempty 5 [ 201.429102][ T6962] journal_seq_empty 134217728 [ 201.429114][ T6962] need_discard 1 [ 201.429123][ T6962] need_inc_gen 1 [ 201.429133][ T6962] dirty_sectors 16 [ 201.429143][ T6962] stripe_sectors 1802251 [ 201.429153][ T6962] cached_sectors 0 [ 201.429164][ T6962] stripe 0 [ 201.429173][ T6962] stripe_redundancy 0 [ 201.429183][ T6962] io_time[READ] 1 [ 201.429193][ T6962] io_time[WRITE] 512 [ 201.430842][ T6962] fragmentation 0 [ 201.430855][ T6962] bp_start 7 [ 201.430865][ T6962] , fixing [ 201.434155][ T6962] done [ 201.436149][ T6962] bcachefs (loop2): bucket_gens_init... done [ 201.438245][ T6962] bcachefs (loop2): check_snapshot_trees... done [ 201.439069][ T6962] bcachefs (loop2): check_snapshots... [ 201.440153][ T6962] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 201.440172][ T6962] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 201.451022][ T6962] done [ 201.451814][ T6962] bcachefs (loop2): check_subvols... done [ 201.453631][ T6962] bcachefs (loop2): check_subvol_children... done [ 201.454600][ T6962] bcachefs (loop2): delete_dead_snapshots... done [ 201.455399][ T6962] bcachefs (loop2): check_inodes... [ 201.457015][ T6962] bcachefs (loop2): inode points to missing dirent [ 201.457033][ T6962] inum: 4098:4294967295 [ 201.457043][ T6962] mode=40755 [ 201.457053][ T6962] flags=(15300000) [ 201.457062][ T6962] journal_seq=4 [pid 7149] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7149] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7149] chdir("./file1") = 0 [pid 7149] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7149] ioctl(4, LOOP_CLR_FD) = 0 [pid 7149] close(4) = 0 [pid 7149] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 201.457072][ T6962] hash_seed=ece93825deac2443 [ 201.457083][ T6962] hash_type=siphash ** 3 printk messages dropped ** [ 201.457130][ T6962] bi_atime=2770562249 ** 3 printk messages dropped ** [ 201.457169][ T6962] bi_uid=0 [ 201.457178][ T6962] bi_gid=0 ** 1 printk messages dropped ** [ 201.457196][ T6962] bi_generation=0 [ 201.457206][ T6962] bi_dev=0 [ 201.457215][ T6962] bi_data_checksum=0 [ 201.457224][ T6962] bi_compression=0 [ 201.457234][ T6962] bi_project=0 [ 201.457241][ T6962] bi_background_compression=0 [pid 7149] exit_group(0) = ? [pid 7149] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7149, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./80", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./80", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 201.457252][ T6962] bi_data_replicas=0 [ 201.457263][ T6962] bi_promote_target=0 [ 201.457272][ T6962] bi_foreground_target=64 [ 201.457283][ T6962] bi_background_target=1 [ 201.457292][ T6962] bi_erasure_code=0 [ 201.457302][ T6962] bi_fields_set=0 [ 201.457312][ T6962] bi_dir=0 [ 201.457321][ T6962] bi_dir_offset=32 [ 201.457330][ T6962] bi_subvol=0 [ 201.457340][ T6962] bi_parent_subvol=0 [ 201.457349][ T6962] bi_nocow=0 [ 201.457359][ T6962] bi_depth=0 [ 201.457368][ T6962] bi_inodes_32bit=0 [ 201.457376][ T6962] bi_casefold=0, fixing [ 201.459057][ T6962] done [ 201.460381][ T6962] bcachefs (loop2): check_extents... done [ 201.463675][ T6962] bcachefs (loop2): check_indirect_extents... done [ 201.464738][ T6962] bcachefs (loop2): check_dirents... [ 201.468635][ T6962] bcachefs (loop2): directory with missing backpointer [ 201.468653][ T6962] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 201.468667][ T6962] inum: 4098:4294967295 [ 201.468677][ T6962] mode=40755 [ 201.468686][ T6962] flags=(11300000) [ 201.468697][ T6962] journal_seq=22 [ 201.468707][ T6962] hash_seed=ece93825deac2443 [ 201.468717][ T6962] hash_type=siphash [ 201.468727][ T6962] bi_size=0 [ 201.468737][ T6962] bi_sectors=0 [ 201.468746][ T6962] bi_version=0 [ 201.468755][ T6962] bi_atime=2770562249 [ 201.468765][ T6962] bi_ctime=2780562352 [ 201.468775][ T6962] bi_mtime=2780562352 [ 201.468785][ T6962] bi_otime=2770562249 [ 201.468795][ T6962] bi_uid=0 [ 201.468803][ T6962] bi_gid=0 [ 201.468812][ T6962] bi_nlink=0 [ 201.468822][ T6962] bi_generation=0 [ 201.468831][ T6962] bi_dev=0 [ 201.468840][ T6962] bi_data_checksum=0 [ 201.468850][ T6962] bi_compression=0 [ 201.468860][ T6962] bi_project=0 [ 201.468869][ T6962] bi_background_compression=0 [ 201.468879][ T6962] bi_data_replicas=0 [ 201.468890][ T6962] bi_promote_target=0 [ 201.468898][ T6962] bi_foreground_target=64 [ 201.468908][ T6962] bi_background_target=1 [ 201.468918][ T6962] bi_erasure_code=0 [ 201.468926][ T6962] bi_fields_set=0 [ 201.468936][ T6962] bi_dir=0 [ 201.468945][ T6962] bi_dir_offset=0 [ 201.468955][ T6962] bi_subvol=0 [ 201.468966][ T6962] bi_parent_subvol=0 [ 201.468975][ T6962] bi_nocow=0 [ 201.468985][ T6962] bi_depth=0 [ 201.468994][ T6962] bi_inodes_32bit=0 [ 201.469006][ T6962] bi_casefold=0, fixing [ 201.473577][ T6962] done [ 201.474509][ T6962] bcachefs (loop2): check_xattrs... done [ 201.477473][ T6962] bcachefs (loop2): check_root... done [ 201.478642][ T6962] bcachefs (loop2): check_unreachable_inodes... done [ 201.480060][ T6962] bcachefs (loop2): check_subvolume_structure... done [ 201.480858][ T6962] bcachefs (loop2): check_directory_structure... done [ 201.481650][ T6962] bcachefs (loop2): check_nlinks... [ 201.482340][ T6962] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 201.483363][ T6962] done [ 201.484071][ T6962] bcachefs (loop2): check_rebalance_work... done [ 201.485164][ T6962] bcachefs (loop2): resume_logged_ops... done [ 201.485927][ T6962] bcachefs (loop2): delete_dead_inodes... done [ 201.496189][ T6962] bcachefs (loop2): set_fs_needs_rebalance... [ 201.504378][ T6971] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 201.504400][ T6971] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 201.507362][ T6962] done [ 201.509090][ T6962] bcachefs (loop2): check_extents_to_backpointers... [ 201.510271][ T6962] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 201.512904][ T6971] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 201.516037][ T6962] done [ 201.525836][ T6962] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 201.525862][ T6962] bcachefs (loop2): check_alloc_info... done [ 201.531330][ T6962] bcachefs (loop2): check_lrus... done [ 201.532504][ T6962] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./80/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./80/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./80/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 201.533768][ T6962] bcachefs (loop2): check_backpointers_to_extents... done [ 201.535275][ T6962] bcachefs (loop2): check_extents_to_backpointers... [ 201.536201][ T6962] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 201.537481][ T6962] done [ 201.537494][ T6962] bcachefs (loop2): check_alloc_to_lru_refs... done [ 201.541282][ T6962] bcachefs (loop2): bucket_gens_init... done [ 201.543518][ T6962] bcachefs (loop2): check_snapshot_trees... done [ 201.544674][ T6962] bcachefs (loop2): check_snapshots... done [ 201.545550][ T6962] bcachefs (loop2): check_subvols... done [pid 5839] umount2("./80/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./80/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./80/file1") = 0 [pid 5839] umount2("./80/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./80/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./80/binderfs") = 0 [ 201.546332][ T6962] bcachefs (loop2): check_subvol_children... done [ 201.547088][ T6962] bcachefs (loop2): delete_dead_snapshots... done [ 201.547839][ T6962] bcachefs (loop2): check_inodes... done [ 201.549000][ T6962] bcachefs (loop2): check_extents... done [ 201.551232][ T6962] bcachefs (loop2): check_indirect_extents... done [ 201.552040][ T6962] bcachefs (loop2): check_dirents... done [ 201.554130][ T6962] bcachefs (loop2): check_xattrs... done [ 201.555010][ T6962] bcachefs (loop2): check_root... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./80") = 0 [pid 5839] mkdir("./81", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 201.555806][ T6962] bcachefs (loop2): check_unreachable_inodes... done [ 201.556696][ T6962] bcachefs (loop2): check_subvolume_structure... done [ 201.557447][ T6962] bcachefs (loop2): check_directory_structure... done [ 201.558185][ T6962] bcachefs (loop2): check_nlinks... done [ 201.560414][ T6962] bcachefs (loop2): check_rebalance_work... done [ 201.561277][ T6962] bcachefs (loop2): resume_logged_ops... done [ 201.562049][ T6962] bcachefs (loop2): delete_dead_inodes... done [ 201.562843][ T6962] bcachefs (loop2): set_fs_needs_rebalance... done [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7160 ./strace-static-x86_64: Process 7160 attached [ 201.566652][ T6962] bcachefs (loop2): done starting filesystem [ 201.630135][ T5839] bcachefs (loop2): shutting down [ 201.630155][ T5839] bcachefs (loop2): going read-only [ 201.630186][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 201.673283][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 201.674808][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 201.675713][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [pid 7160] set_robust_list(0x5555901c6760, 24) = 0 [pid 7160] chdir("./81") = 0 [pid 7160] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7160] setpgid(0, 0) = 0 [ 201.677504][ T5839] bcachefs (loop2): marking filesystem clean [ 201.737046][ T5839] bcachefs (loop2): shutdown complete [ 202.515771][ T6973] loop2: detected capacity change from 0 to 32768 [ 202.652655][ T6973] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 202.652685][ T6973] allowing incompatible features above 0.0: (unknown version) [pid 7160] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7160] write(3, "1000", 4) = 4 [pid 7160] close(3) = 0 [pid 7160] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7160] write(1, "executing program\n", 18executing program ) = 18 [pid 7160] memfd_create("syzkaller", 0) = 3 [pid 7160] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 202.652698][ T6973] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 202.652725][ T6973] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 202.652851][ T6973] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 202.653090][ T6973] bcachefs (loop2): Version upgrade required: [ 202.653090][ T6973] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 202.653090][ T6973] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 202.653090][ T6973] 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,check_rebalance_work,set_fs_needs_rebalance [ 202.672089][ T6973] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 202.672116][ T6973] size != 0, deleting [ 202.673334][ T6973] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 202.676643][ T6973] bcachefs (loop2): check_topology... done [ 202.678056][ T6973] bcachefs (loop2): accounting_read... done [ 202.703664][ T6973] bcachefs (loop2): alloc_read... done [ 202.704611][ T6973] bcachefs (loop2): snapshots_read... done [ 202.705561][ T6973] bcachefs (loop2): check_allocations... [ 202.707606][ T6973] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 202.707626][ T6973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 202.710685][ T6973] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 202.710704][ T6973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 202.712350][ T6973] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 202.712370][ T6973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 202.714463][ T6973] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 202.714482][ T6973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 202.717046][ T6973] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 202.717064][ T6973] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 202.718055][ T6973] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 202.718183][ T6973] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.718745][ T6973] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7160] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7160] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7160] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 202.718853][ T6973] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.719601][ T6973] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 202.719722][ T6973] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.719935][ T6973] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7160] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7160] close(3) = 0 [pid 7160] close(4) = 0 [pid 7160] mkdir("./file1", 0777) = 0 [ 202.720034][ T6973] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.720252][ T6973] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 202.720355][ T6973] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.720551][ T6973] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 202.720654][ T6973] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.720850][ T6973] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 202.720970][ T6973] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 202.721185][ T6973] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 202.721296][ T6973] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 202.721500][ T6973] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 202.721609][ T6973] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 202.721814][ T6973] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 202.721928][ T6973] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 202.722158][ T6973] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 202.722174][ T6973] Ratelimiting new instances of previous error [ 202.722311][ T6973] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 202.722328][ T6973] Ratelimiting new instances of previous error [ 202.736727][ T6973] done [ 202.739729][ T6973] bcachefs (loop2): going read-write [ 202.745055][ T6973] bcachefs (loop2): journal_replay... done [ 202.773093][ T6973] bcachefs (loop2): check_alloc_info... [ 202.774869][ T6973] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 202.774887][ T6973] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 202.774898][ T6973] gen 0 oldest_gen 0 data_type need_discard [ 202.774909][ T6973] journal_seq_nonempty 6 [ 202.774921][ T6973] journal_seq_empty 0 [ 202.774930][ T6973] need_discard 1 [ 202.774940][ T6973] need_inc_gen 1 [ 202.774950][ T6973] dirty_sectors 0 [ 202.774959][ T6973] stripe_sectors 0 [ 202.774969][ T6973] cached_sectors 0 [ 202.774979][ T6973] stripe 0 [ 202.774997][ T6973] stripe_redundancy 0 [ 202.775008][ T6973] io_time[READ] 1 [ 202.775018][ T6973] io_time[WRITE] 768 [ 202.775027][ T6973] fragmentation 0 [ 202.775037][ T6973] bp_start 8 [ 202.775049][ T6973] , fixing [ 202.792815][ T6973] done [ 202.798423][ T6973] bcachefs (loop2): check_lrus... done [ 202.799432][ T6973] bcachefs (loop2): check_btree_backpointers... done [ 202.801122][ T6973] bcachefs (loop2): check_backpointers_to_extents... done [ 202.804378][ T6973] bcachefs (loop2): check_extents_to_backpointers... [ 202.805715][ T6973] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 202.807175][ T6973] done [ 202.807723][ T6973] bcachefs (loop2): check_alloc_to_lru_refs... [ 202.811625][ T6973] bcachefs (loop2): missing fragmentation lru entry [ 202.811643][ T6973] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 202.811655][ T6973] gen 0 oldest_gen 0 data_type user [ 202.811667][ T6973] journal_seq_nonempty 5 [ 202.811677][ T6973] journal_seq_empty 134217728 [ 202.811688][ T6973] need_discard 1 [ 202.811698][ T6973] need_inc_gen 1 [ 202.811708][ T6973] dirty_sectors 16 [ 202.811718][ T6973] stripe_sectors 1802251 [ 202.811728][ T6973] cached_sectors 0 [ 202.811738][ T6973] stripe 0 [ 202.811747][ T6973] stripe_redundancy 0 [ 202.811757][ T6973] io_time[READ] 1 [ 202.811769][ T6973] io_time[WRITE] 512 [ 202.811779][ T6973] fragmentation 0 [ 202.811788][ T6973] bp_start 7 [ 202.811798][ T6973] , fixing [ 202.814116][ T6973] done [ 202.815703][ T6973] bcachefs (loop2): bucket_gens_init... done [ 202.817753][ T6973] bcachefs (loop2): check_snapshot_trees... done [ 202.818563][ T6973] bcachefs (loop2): check_snapshots... [ 202.819146][ T6973] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 202.819164][ T6973] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 202.832320][ T6973] done [ 202.833041][ T6973] bcachefs (loop2): check_subvols... done [pid 7160] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7160] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7160] chdir("./file1") = 0 [pid 7160] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7160] ioctl(4, LOOP_CLR_FD) = 0 [ 202.834614][ T6973] bcachefs (loop2): check_subvol_children... done [ 202.835496][ T6973] bcachefs (loop2): delete_dead_snapshots... done [ 202.836776][ T6973] bcachefs (loop2): check_inodes... [ 202.837890][ T6973] bcachefs (loop2): inode points to missing dirent ** 3 printk messages dropped ** [ 202.837936][ T6973] journal_seq=4 ** 3 printk messages dropped ** [ 202.837976][ T6973] bi_sectors=0 [ 202.837995][ T6973] bi_version=0 [ 202.838005][ T6973] bi_atime=2770562249 [ 202.838014][ T6973] bi_ctime=2780562352 [ 202.838024][ T6973] bi_mtime=2780562352 [pid 7160] close(4) = 0 [pid 7160] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7160] exit_group(0) = ? [pid 7160] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7160, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] umount2("./81", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./81", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 202.838034][ T6973] bi_otime=2770562249 [ 202.838044][ T6973] bi_uid=0 [ 202.838052][ T6973] bi_gid=0 [ 202.838061][ T6973] bi_nlink=0 [ 202.838071][ T6973] bi_generation=0 [ 202.838080][ T6973] bi_dev=0 [ 202.838089][ T6973] bi_data_checksum=0 [ 202.838099][ T6973] bi_compression=0 [ 202.838108][ T6973] bi_project=0 [ 202.838117][ T6973] bi_background_compression=0 [ 202.838128][ T6973] bi_data_replicas=0 [ 202.838137][ T6973] bi_promote_target=0 [ 202.838146][ T6973] bi_foreground_target=64 [ 202.838158][ T6973] bi_background_target=1 [ 202.838168][ T6973] bi_erasure_code=0 [ 202.838177][ T6973] bi_fields_set=0 [ 202.838187][ T6973] bi_dir=0 [ 202.838196][ T6973] bi_dir_offset=32 [ 202.838205][ T6973] bi_subvol=0 [ 202.838215][ T6973] bi_parent_subvol=0 [ 202.838225][ T6973] bi_nocow=0 [ 202.838232][ T6973] bi_depth=0 [ 202.838241][ T6973] bi_inodes_32bit=0 [ 202.838251][ T6973] bi_casefold=0, fixing [ 202.842784][ T6973] done [ 202.843669][ T6973] bcachefs (loop2): check_extents... done [ 202.846796][ T6973] bcachefs (loop2): check_indirect_extents... done [ 202.847634][ T6973] bcachefs (loop2): check_dirents... [ 202.849714][ T6973] bcachefs (loop2): directory with missing backpointer [ 202.849732][ T6973] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 202.849747][ T6973] inum: 4098:4294967295 [ 202.849758][ T6973] mode=40755 [ 202.849767][ T6973] flags=(11300000) [ 202.849776][ T6973] journal_seq=22 [ 202.849786][ T6973] hash_seed=ece93825deac2443 [ 202.849796][ T6973] hash_type=siphash [ 202.849806][ T6973] bi_size=0 [ 202.849815][ T6973] bi_sectors=0 [ 202.849826][ T6973] bi_version=0 [ 202.849835][ T6973] bi_atime=2770562249 [ 202.849845][ T6973] bi_ctime=2780562352 [ 202.849854][ T6973] bi_mtime=2780562352 [ 202.849864][ T6973] bi_otime=2770562249 [ 202.849874][ T6973] bi_uid=0 [ 202.849883][ T6973] bi_gid=0 [ 202.849892][ T6973] bi_nlink=0 [ 202.849901][ T6973] bi_generation=0 [ 202.849911][ T6973] bi_dev=0 [ 202.849920][ T6973] bi_data_checksum=0 [ 202.849930][ T6973] bi_compression=0 [ 202.849939][ T6973] bi_project=0 [ 202.849949][ T6973] bi_background_compression=0 [ 202.849959][ T6973] bi_data_replicas=0 [ 202.849969][ T6973] bi_promote_target=0 [ 202.849992][ T6973] bi_foreground_target=64 [ 202.850002][ T6973] bi_background_target=1 [ 202.850012][ T6973] bi_erasure_code=0 [ 202.850022][ T6973] bi_fields_set=0 [ 202.850031][ T6973] bi_dir=0 [ 202.850041][ T6973] bi_dir_offset=0 [ 202.850050][ T6973] bi_subvol=0 [ 202.850059][ T6973] bi_parent_subvol=0 [ 202.850069][ T6973] bi_nocow=0 [ 202.850080][ T6973] bi_depth=0 [ 202.850090][ T6973] bi_inodes_32bit=0 [ 202.850099][ T6973] bi_casefold=0, fixing [ 202.852262][ T6973] done [ 202.852962][ T6973] bcachefs (loop2): check_xattrs... done [ 202.854269][ T6973] bcachefs (loop2): check_root... done [ 202.855435][ T6973] bcachefs (loop2): check_unreachable_inodes... done [ 202.856421][ T6973] bcachefs (loop2): check_subvolume_structure... done [ 202.857738][ T6973] bcachefs (loop2): check_directory_structure... done [ 202.858510][ T6973] bcachefs (loop2): check_nlinks... [ 202.860527][ T6973] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 202.863188][ T6973] done [ 202.863835][ T6973] bcachefs (loop2): check_rebalance_work... done [ 202.865785][ T6973] bcachefs (loop2): resume_logged_ops... done [ 202.868045][ T6973] bcachefs (loop2): delete_dead_inodes... done [ 202.876987][ T6973] bcachefs (loop2): set_fs_needs_rebalance... [ 202.885470][ T6982] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 202.885494][ T6982] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 202.888549][ T6973] done [ 202.889671][ T6973] bcachefs (loop2): check_extents_to_backpointers... [ 202.890627][ T6973] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 202.896434][ T6973] done [pid 5839] umount2("./81/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./81/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./81/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./81/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./81/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 202.908762][ T6973] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 202.908787][ T6973] bcachefs (loop2): check_alloc_info... done [ 202.917047][ T6973] bcachefs (loop2): check_lrus... done [ 202.919829][ T6973] bcachefs (loop2): check_btree_backpointers... done [ 202.921078][ T6973] bcachefs (loop2): check_backpointers_to_extents... done [ 202.927467][ T6973] bcachefs (loop2): check_extents_to_backpointers... done [ 202.929129][ T6973] bcachefs (loop2): check_alloc_to_lru_refs... done [ 202.931995][ T6973] bcachefs (loop2): bucket_gens_init... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./81/file1") = 0 [pid 5839] umount2("./81/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./81/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 202.934023][ T6973] bcachefs (loop2): check_snapshot_trees... done [ 202.937997][ T6973] bcachefs (loop2): check_snapshots... done [ 202.938744][ T6973] bcachefs (loop2): check_subvols... done [ 202.940281][ T6973] bcachefs (loop2): check_subvol_children... done [ 202.944177][ T6973] bcachefs (loop2): delete_dead_snapshots... done [ 202.944865][ T6973] bcachefs (loop2): check_inodes... done [ 202.946029][ T6973] bcachefs (loop2): check_extents... done [ 202.950390][ T6973] bcachefs (loop2): check_indirect_extents... done [pid 5839] unlink("./81/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./81") = 0 [pid 5839] mkdir("./82", 0777) = 0 [ 202.951121][ T6973] bcachefs (loop2): check_dirents... done [ 202.959017][ T6973] bcachefs (loop2): check_xattrs... done [ 202.960135][ T6973] bcachefs (loop2): check_root... done [ 202.961337][ T6973] bcachefs (loop2): check_unreachable_inodes... done [ 202.962246][ T6973] bcachefs (loop2): check_subvolume_structure... done [ 202.962908][ T6973] bcachefs (loop2): check_directory_structure... done [ 202.963633][ T6973] bcachefs (loop2): check_nlinks... done [ 202.964740][ T6973] bcachefs (loop2): check_rebalance_work... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7171 attached [pid 7171] set_robust_list(0x5555901c6760, 24) = 0 [pid 7171] chdir("./82") = 0 [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 7171 [pid 7171] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7171] setpgid(0, 0) = 0 [pid 7171] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7171] write(3, "1000", 4) = 4 [pid 7171] close(3) = 0 [pid 7171] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7171] write(1, "executing program\n", 18executing program ) = 18 [pid 7171] memfd_create("syzkaller", 0) = 3 [pid 7171] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 202.965464][ T6973] bcachefs (loop2): resume_logged_ops... done [ 202.966277][ T6973] bcachefs (loop2): delete_dead_inodes... done [ 202.970567][ T6973] bcachefs (loop2): set_fs_needs_rebalance... done [ 202.982463][ T6973] bcachefs (loop2): done starting filesystem [ 203.072876][ T5839] bcachefs (loop2): shutting down [ 203.072898][ T5839] bcachefs (loop2): going read-only [ 203.072928][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 203.111455][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 203.112254][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 203.113164][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 203.114926][ T5839] bcachefs (loop2): marking filesystem clean [ 203.115430][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 203.115430][ T5152] rw journal devs: [ 203.173369][ T5839] bcachefs (loop2): shutdown complete [ 203.882304][ T6984] loop2: detected capacity change from 0 to 32768 [ 204.019702][ T6984] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 204.019730][ T6984] allowing incompatible features above 0.0: (unknown version) [ 204.019744][ T6984] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 204.019770][ T6984] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 204.019892][ T6984] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 204.020131][ T6984] bcachefs (loop2): Version upgrade required: [ 204.020131][ T6984] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 204.020131][ T6984] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 204.020131][ T6984] 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,check_rebalance_work,set_fs_needs_rebalance [ 204.038807][ T6984] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 204.038833][ T6984] size != 0, deleting [ 204.040808][ T6984] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 204.044143][ T6984] bcachefs (loop2): check_topology... done [ 204.045559][ T6984] bcachefs (loop2): accounting_read... done [ 204.071615][ T6984] bcachefs (loop2): alloc_read... done [ 204.072599][ T6984] bcachefs (loop2): snapshots_read... done [ 204.073502][ T6984] bcachefs (loop2): check_allocations... [ 204.075541][ T6984] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7171] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7171] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7171] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 204.075562][ T6984] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 204.077596][ T6984] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 204.077613][ T6984] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 204.079006][ T6984] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7171] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7171] close(3) = 0 [pid 7171] close(4) = 0 [pid 7171] mkdir("./file1", 0777) = 0 [ 204.079022][ T6984] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 204.082203][ T6984] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 204.082223][ T6984] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 204.084956][ T6984] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 204.084974][ T6984] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 204.085987][ T6984] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.086124][ T6984] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.086704][ T6984] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.086811][ T6984] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.087235][ T6984] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.087340][ T6984] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.087564][ T6984] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.087672][ T6984] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.087877][ T6984] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.087982][ T6984] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.088207][ T6984] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.088312][ T6984] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.088523][ T6984] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.088628][ T6984] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 204.088829][ T6984] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 204.088933][ T6984] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 204.089145][ T6984] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 204.091921][ T6984] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 204.092159][ T6984] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 204.092279][ T6984] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 204.092522][ T6984] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 204.092539][ T6984] Ratelimiting new instances of previous error [ 204.092671][ T6984] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 204.092686][ T6984] Ratelimiting new instances of previous error [ 204.105404][ T6984] done [ 204.107667][ T6984] bcachefs (loop2): going read-write [ 204.113514][ T6984] bcachefs (loop2): journal_replay... done [ 204.140482][ T6984] bcachefs (loop2): check_alloc_info... [ 204.142290][ T6984] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 204.142307][ T6984] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 204.142318][ T6984] gen 0 oldest_gen 0 data_type need_discard [ 204.142329][ T6984] journal_seq_nonempty 6 [ 204.142339][ T6984] journal_seq_empty 0 ** 1 printk messages dropped ** [ 204.142358][ T6984] need_inc_gen 1 ** 12 printk messages dropped ** [ 204.166512][ T6984] bcachefs (loop2): check_btree_backpointers... done [ 204.167866][ T6984] bcachefs (loop2): check_backpointers_to_extents... done [ 204.172818][ T6984] bcachefs (loop2): check_extents_to_backpointers... ** 4 printk messages dropped ** [ 204.178776][ T6984] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 204.178787][ T6984] gen 0 oldest_gen 0 data_type user [ 204.178798][ T6984] journal_seq_nonempty 5 [ 204.178808][ T6984] journal_seq_empty 134217728 [ 204.178817][ T6984] need_discard 1 [ 204.178827][ T6984] need_inc_gen 1 [ 204.178838][ T6984] dirty_sectors 16 ** 2 printk messages dropped ** [ 204.178867][ T6984] stripe 0 ** 2 printk messages dropped ** [ 204.178895][ T6984] io_time[WRITE] 512 ** 4 printk messages dropped ** [ 204.185072][ T6984] bcachefs (loop2): bucket_gens_init... done ** 3 printk messages dropped ** [pid 7171] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7171] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7171] chdir("./file1") = 0 [pid 7171] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7171] ioctl(4, LOOP_CLR_FD) = 0 [pid 7171] close(4) = 0 [pid 7171] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7171] exit_group(0) = ? [pid 7171] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7171, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=30 /* 0.30 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./82", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./82", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 204.188670][ T6984] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 6 printk messages dropped ** [ 204.204926][ T6984] inum: 4098:4294967295 ** 6 printk messages dropped ** [ 204.204994][ T6984] bi_sectors=0 [ 204.205003][ T6984] bi_version=0 [ 204.205013][ T6984] bi_atime=2770562249 [ 204.205022][ T6984] bi_ctime=2780562352 [ 204.205032][ T6984] bi_mtime=2780562352 [ 204.205042][ T6984] bi_otime=2770562249 [ 204.205051][ T6984] bi_uid=0 [ 204.205060][ T6984] bi_gid=0 [ 204.205069][ T6984] bi_nlink=0 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 204.205078][ T6984] bi_generation=0 [ 204.205088][ T6984] bi_dev=0 [ 204.205097][ T6984] bi_data_checksum=0 [ 204.205106][ T6984] bi_compression=0 [ 204.205116][ T6984] bi_project=0 [ 204.205126][ T6984] bi_background_compression=0 [ 204.205137][ T6984] bi_data_replicas=0 [ 204.205146][ T6984] bi_promote_target=0 [ 204.205156][ T6984] bi_foreground_target=64 [ 204.205174][ T6984] bi_background_target=1 [ 204.205184][ T6984] bi_erasure_code=0 [ 204.205194][ T6984] bi_fields_set=0 [ 204.205203][ T6984] bi_dir=0 [ 204.205212][ T6984] bi_dir_offset=32 [ 204.205222][ T6984] bi_subvol=0 [ 204.205231][ T6984] bi_parent_subvol=0 [ 204.205240][ T6984] bi_nocow=0 [ 204.205744][ T6984] bi_depth=0 [ 204.205755][ T6984] bi_inodes_32bit=0 [ 204.205766][ T6984] bi_casefold=0, fixing [ 204.207321][ T6984] done [ 204.207892][ T6984] bcachefs (loop2): check_extents... done [ 204.212442][ T6984] bcachefs (loop2): check_indirect_extents... done [ 204.214011][ T6984] bcachefs (loop2): check_dirents... [ 204.215732][ T6984] bcachefs (loop2): directory with missing backpointer [ 204.215747][ T6984] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 204.215762][ T6984] inum: 4098:4294967295 [ 204.215773][ T6984] mode=40755 [ 204.217434][ T6984] flags=(11300000) [ 204.217447][ T6984] journal_seq=22 [ 204.217458][ T6984] hash_seed=ece93825deac2443 [ 204.217468][ T6984] hash_type=siphash [ 204.217477][ T6984] bi_size=0 [ 204.217486][ T6984] bi_sectors=0 [ 204.217495][ T6984] bi_version=0 [ 204.217504][ T6984] bi_atime=2770562249 [ 204.217514][ T6984] bi_ctime=2780562352 [ 204.217523][ T6984] bi_mtime=2780562352 [ 204.217532][ T6984] bi_otime=2770562249 [ 204.217542][ T6984] bi_uid=0 [ 204.217550][ T6984] bi_gid=0 [ 204.217559][ T6984] bi_nlink=0 [ 204.217568][ T6984] bi_generation=0 [ 204.217577][ T6984] bi_dev=0 [ 204.217586][ T6984] bi_data_checksum=0 [ 204.217596][ T6984] bi_compression=0 [ 204.217605][ T6984] bi_project=0 [ 204.217614][ T6984] bi_background_compression=0 [ 204.217626][ T6984] bi_data_replicas=0 [ 204.217635][ T6984] bi_promote_target=0 [ 204.217645][ T6984] bi_foreground_target=64 [ 204.217655][ T6984] bi_background_target=1 [ 204.217664][ T6984] bi_erasure_code=0 [ 204.217673][ T6984] bi_fields_set=0 [ 204.217683][ T6984] bi_dir=0 [ 204.217692][ T6984] bi_dir_offset=0 [ 204.217702][ T6984] bi_subvol=0 [ 204.217710][ T6984] bi_parent_subvol=0 [ 204.217720][ T6984] bi_nocow=0 [ 204.217729][ T6984] bi_depth=0 [ 204.217739][ T6984] bi_inodes_32bit=0 [ 204.217749][ T6984] bi_casefold=0, fixing [ 204.221306][ T6984] done [ 204.222132][ T6984] bcachefs (loop2): check_xattrs... done [ 204.225041][ T6984] bcachefs (loop2): check_root... done [ 204.226205][ T6984] bcachefs (loop2): check_unreachable_inodes... done [ 204.227786][ T6984] bcachefs (loop2): check_subvolume_structure... done [ 204.228608][ T6984] bcachefs (loop2): check_directory_structure... done [ 204.229819][ T6984] bcachefs (loop2): check_nlinks... [ 204.230549][ T6984] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 204.231742][ T6984] done [ 204.232439][ T6984] bcachefs (loop2): check_rebalance_work... done [ 204.233633][ T6984] bcachefs (loop2): resume_logged_ops... done [ 204.234402][ T6984] bcachefs (loop2): delete_dead_inodes... done [ 204.245896][ T6984] bcachefs (loop2): set_fs_needs_rebalance... [ 204.254628][ T6993] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 204.254653][ T6993] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 204.257887][ T6984] done [ 204.259966][ T6984] bcachefs (loop2): check_extents_to_backpointers... [ 204.260927][ T6984] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 204.270313][ T6984] done [ 204.280792][ T6984] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 204.280816][ T6984] bcachefs (loop2): check_alloc_info... done [pid 5839] umount2("./82/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./82/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./82/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./82/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 204.292886][ T6984] bcachefs (loop2): check_lrus... done [ 204.294484][ T6984] bcachefs (loop2): check_btree_backpointers... done [ 204.295700][ T6984] bcachefs (loop2): check_backpointers_to_extents... done [ 204.297166][ T6984] bcachefs (loop2): check_extents_to_backpointers... done [ 204.305015][ T6984] bcachefs (loop2): check_alloc_to_lru_refs... done [ 204.307348][ T6984] bcachefs (loop2): bucket_gens_init... done [ 204.309929][ T6984] bcachefs (loop2): check_snapshot_trees... done [ 204.311223][ T6984] bcachefs (loop2): check_snapshots... done [pid 5839] openat(AT_FDCWD, "./82/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 204.317076][ T6984] bcachefs (loop2): check_subvols... done [ 204.318675][ T6984] bcachefs (loop2): check_subvol_children... done [ 204.319497][ T6984] bcachefs (loop2): delete_dead_snapshots... done [ 204.320924][ T6984] bcachefs (loop2): check_inodes... done [ 204.322013][ T6984] bcachefs (loop2): check_extents... done [ 204.327829][ T6984] bcachefs (loop2): check_indirect_extents... done [ 204.328568][ T6984] bcachefs (loop2): check_dirents... done [ 204.338379][ T6984] bcachefs (loop2): check_xattrs... done [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./82/file1") = 0 [pid 5839] umount2("./82/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./82/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./82/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./82") = 0 [ 204.339565][ T6984] bcachefs (loop2): check_root... done [ 204.340633][ T6984] bcachefs (loop2): check_unreachable_inodes... done [ 204.341490][ T6984] bcachefs (loop2): check_subvolume_structure... done [ 204.342219][ T6984] bcachefs (loop2): check_directory_structure... done [ 204.342967][ T6984] bcachefs (loop2): check_nlinks... done [ 204.344108][ T6984] bcachefs (loop2): check_rebalance_work... done [ 204.344773][ T6984] bcachefs (loop2): resume_logged_ops... done [ 204.345463][ T6984] bcachefs (loop2): delete_dead_inodes... done [pid 5839] mkdir("./83", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7182 attached , child_tidptr=0x5555901c6750) = 7182 [pid 7182] set_robust_list(0x5555901c6760, 24) = 0 [ 204.348977][ T6984] bcachefs (loop2): set_fs_needs_rebalance... done [ 204.352739][ T6984] bcachefs (loop2): done starting filesystem [ 204.412395][ T5839] bcachefs (loop2): shutting down [ 204.412415][ T5839] bcachefs (loop2): going read-only [ 204.412663][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 204.457918][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 204.458681][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [pid 7182] chdir("./83") = 0 [pid 7182] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7182] setpgid(0, 0) = 0 [pid 7182] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7182] write(3, "1000", 4) = 4 [pid 7182] close(3) = 0 [pid 7182] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7182] write(1, "executing program\n", 18) = 18 [ 204.462272][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 204.464090][ T5839] bcachefs (loop2): marking filesystem clean [ 204.513840][ T5839] bcachefs (loop2): shutdown complete [ 205.316206][ T6995] loop2: detected capacity change from 0 to 32768 [ 205.461344][ T6995] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 205.461373][ T6995] allowing incompatible features above 0.0: (unknown version) [pid 7182] memfd_create("syzkaller", 0) = 3 [pid 7182] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 205.461387][ T6995] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 205.461414][ T6995] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 205.461550][ T6995] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 205.461792][ T6995] bcachefs (loop2): Version upgrade required: [ 205.461792][ T6995] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 205.461792][ T6995] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 205.461792][ T6995] 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,check_rebalance_work,set_fs_needs_rebalance [ 205.481514][ T6995] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 205.481540][ T6995] size != 0, deleting [ 205.482714][ T6995] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 205.486529][ T6995] bcachefs (loop2): check_topology... done [ 205.487984][ T6995] bcachefs (loop2): accounting_read... done [ 205.514028][ T6995] bcachefs (loop2): alloc_read... done [ 205.514953][ T6995] bcachefs (loop2): snapshots_read... done [ 205.516044][ T6995] bcachefs (loop2): check_allocations... [ 205.518014][ T6995] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 205.518033][ T6995] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 205.521326][ T6995] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 205.521345][ T6995] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 205.522739][ T6995] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 205.522756][ T6995] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 205.524337][ T6995] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 205.524355][ T6995] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 7182] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 205.527217][ T6995] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 205.527236][ T6995] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 205.528182][ T6995] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.528307][ T6995] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7182] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7182] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7182] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7182] close(3) = 0 [pid 7182] close(4) = 0 [pid 7182] mkdir("./file1", 0777) = 0 [ 205.528865][ T6995] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.528970][ T6995] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 205.530675][ T6995] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.530783][ T6995] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 205.531003][ T6995] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.531111][ T6995] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 205.531323][ T6995] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.531444][ T6995] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 205.531647][ T6995] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.531753][ T6995] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 205.531955][ T6995] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.532068][ T6995] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 205.532268][ T6995] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 205.532373][ T6995] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 205.532586][ T6995] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 205.532693][ T6995] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 205.532897][ T6995] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 205.533011][ T6995] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 205.533240][ T6995] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 205.533256][ T6995] Ratelimiting new instances of previous error [ 205.533396][ T6995] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 205.533412][ T6995] Ratelimiting new instances of previous error [ 205.547307][ T6995] done [ 205.549855][ T6995] bcachefs (loop2): going read-write [ 205.555125][ T6995] bcachefs (loop2): journal_replay... done [ 205.583628][ T6995] bcachefs (loop2): check_alloc_info... [ 205.585439][ T6995] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 205.585456][ T6995] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 205.585467][ T6995] gen 0 oldest_gen 0 data_type need_discard [ 205.585478][ T6995] journal_seq_nonempty 6 [ 205.585488][ T6995] journal_seq_empty 0 [ 205.585498][ T6995] need_discard 1 [ 205.585508][ T6995] need_inc_gen 1 [ 205.585518][ T6995] dirty_sectors 0 [ 205.585527][ T6995] stripe_sectors 0 [ 205.585539][ T6995] cached_sectors 0 [ 205.585549][ T6995] stripe 0 [ 205.585582][ T6995] stripe_redundancy 0 [ 205.585593][ T6995] io_time[READ] 1 [ 205.585603][ T6995] io_time[WRITE] 768 [ 205.585613][ T6995] fragmentation 0 [ 205.585622][ T6995] bp_start 8 [ 205.585634][ T6995] , fixing [ 205.603595][ T6995] done [ 205.609776][ T6995] bcachefs (loop2): check_lrus... done [ 205.610640][ T6995] bcachefs (loop2): check_btree_backpointers... done [ 205.614541][ T6995] bcachefs (loop2): check_backpointers_to_extents... done [ 205.618161][ T6995] bcachefs (loop2): check_extents_to_backpointers... [ 205.620153][ T6995] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 205.621593][ T6995] done [ 205.622320][ T6995] bcachefs (loop2): check_alloc_to_lru_refs... [ 205.624742][ T6995] bcachefs (loop2): missing fragmentation lru entry [ 205.624760][ T6995] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 205.624771][ T6995] gen 0 oldest_gen 0 data_type user [ 205.624781][ T6995] journal_seq_nonempty 5 [ 205.624790][ T6995] journal_seq_empty 134217728 [ 205.624802][ T6995] need_discard 1 [ 205.624812][ T6995] need_inc_gen 1 [ 205.624822][ T6995] dirty_sectors 16 [ 205.624832][ T6995] stripe_sectors 1802251 [ 205.624843][ T6995] cached_sectors 0 [ 205.624853][ T6995] stripe 0 [ 205.624862][ T6995] stripe_redundancy 0 [ 205.624872][ T6995] io_time[READ] 1 [ 205.624882][ T6995] io_time[WRITE] 512 [ 205.624892][ T6995] fragmentation 0 ** 1 printk messages dropped ** [ 205.624911][ T6995] , fixing [ 205.626479][ T6995] done [pid 7182] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7182] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7182] chdir("./file1") = 0 [pid 7182] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7182] ioctl(4, LOOP_CLR_FD) = 0 [pid 7182] close(4) = 0 [ 205.627877][ T6995] bcachefs (loop2): bucket_gens_init... done ** 4 printk messages dropped ** [ 205.646862][ T6995] done ** 3 printk messages dropped ** [ 205.651332][ T6995] bcachefs (loop2): check_inodes... [ 205.652397][ T6995] bcachefs (loop2): inode points to missing dirent ** 7 printk messages dropped ** [ 205.652479][ T6995] bi_sectors=0 [ 205.652487][ T6995] bi_version=0 [ 205.652497][ T6995] bi_atime=2770562249 [ 205.652506][ T6995] bi_ctime=2780562352 [ 205.652515][ T6995] bi_mtime=2780562352 [pid 7182] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7182] exit_group(0) = ? [pid 7182] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7182, si_uid=0, si_status=0, si_utime=5 /* 0.05 s */, si_stime=43 /* 0.43 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./83", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./83", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 205.652525][ T6995] bi_otime=2770562249 [ 205.652534][ T6995] bi_uid=0 [ 205.652543][ T6995] bi_gid=0 [ 205.652551][ T6995] bi_nlink=0 [ 205.652561][ T6995] bi_generation=0 [ 205.652570][ T6995] bi_dev=0 [ 205.652578][ T6995] bi_data_checksum=0 [ 205.652589][ T6995] bi_compression=0 [ 205.652598][ T6995] bi_project=0 [ 205.652607][ T6995] bi_background_compression=0 [ 205.652616][ T6995] bi_data_replicas=0 [ 205.652625][ T6995] bi_promote_target=0 [ 205.652634][ T6995] bi_foreground_target=64 [ 205.652642][ T6995] bi_background_target=1 [ 205.652651][ T6995] bi_erasure_code=0 [ 205.652659][ T6995] bi_fields_set=0 [ 205.652668][ T6995] bi_dir=0 [ 205.652677][ T6995] bi_dir_offset=32 [ 205.652686][ T6995] bi_subvol=0 [ 205.652695][ T6995] bi_parent_subvol=0 [ 205.652704][ T6995] bi_nocow=0 [ 205.652713][ T6995] bi_depth=0 [ 205.652723][ T6995] bi_inodes_32bit=0 [ 205.652733][ T6995] bi_casefold=0, fixing [ 205.654365][ T6995] done [ 205.655026][ T6995] bcachefs (loop2): check_extents... done [ 205.656965][ T6995] bcachefs (loop2): check_indirect_extents... done [ 205.657779][ T6995] bcachefs (loop2): check_dirents... [ 205.663005][ T6995] bcachefs (loop2): directory with missing backpointer [ 205.663025][ T6995] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 205.663039][ T6995] inum: 4098:4294967295 [ 205.663049][ T6995] mode=40755 [ 205.663058][ T6995] flags=(11300000) [ 205.663068][ T6995] journal_seq=23 [ 205.663077][ T6995] hash_seed=ece93825deac2443 [ 205.663089][ T6995] hash_type=siphash [ 205.663098][ T6995] bi_size=0 [ 205.663108][ T6995] bi_sectors=0 [ 205.663117][ T6995] bi_version=0 [ 205.663126][ T6995] bi_atime=2770562249 [ 205.663136][ T6995] bi_ctime=2780562352 [ 205.663146][ T6995] bi_mtime=2780562352 [ 205.663157][ T6995] bi_otime=2770562249 [ 205.663167][ T6995] bi_uid=0 [ 205.663176][ T6995] bi_gid=0 [ 205.663185][ T6995] bi_nlink=0 [ 205.663195][ T6995] bi_generation=0 [ 205.663205][ T6995] bi_dev=0 [ 205.663215][ T6995] bi_data_checksum=0 [ 205.663225][ T6995] bi_compression=0 [ 205.663236][ T6995] bi_project=0 [ 205.663246][ T6995] bi_background_compression=0 [ 205.663256][ T6995] bi_data_replicas=0 [ 205.663266][ T6995] bi_promote_target=0 [ 205.663276][ T6995] bi_foreground_target=64 [ 205.663286][ T6995] bi_background_target=1 [ 205.663297][ T6995] bi_erasure_code=0 [ 205.663307][ T6995] bi_fields_set=0 [ 205.663317][ T6995] bi_dir=0 [ 205.663326][ T6995] bi_dir_offset=0 [ 205.663336][ T6995] bi_subvol=0 [ 205.663345][ T6995] bi_parent_subvol=0 [ 205.663355][ T6995] bi_nocow=0 [ 205.663364][ T6995] bi_depth=0 [ 205.663374][ T6995] bi_inodes_32bit=0 [ 205.663383][ T6995] bi_casefold=0, fixing [ 205.670291][ T6995] done [ 205.670923][ T6995] bcachefs (loop2): check_xattrs... done [ 205.672428][ T6995] bcachefs (loop2): check_root... done [ 205.673554][ T6995] bcachefs (loop2): check_unreachable_inodes... done [ 205.674589][ T6995] bcachefs (loop2): check_subvolume_structure... done [ 205.675452][ T6995] bcachefs (loop2): check_directory_structure... done [ 205.676267][ T6995] bcachefs (loop2): check_nlinks... [ 205.676982][ T6995] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 205.678019][ T6995] done [ 205.679538][ T6995] bcachefs (loop2): check_rebalance_work... done [ 205.681428][ T6995] bcachefs (loop2): resume_logged_ops... done [ 205.682260][ T6995] bcachefs (loop2): delete_dead_inodes... done [ 205.691245][ T6995] bcachefs (loop2): set_fs_needs_rebalance... [ 205.698703][ T7004] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 205.698725][ T7004] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 205.701474][ T6995] done [ 205.702407][ T6995] bcachefs (loop2): check_extents_to_backpointers... [ 205.703403][ T6995] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [pid 5839] umount2("./83/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./83/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./83/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 205.709958][ T7004] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 205.711667][ T6995] done [ 205.721073][ T6995] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 205.721098][ T6995] bcachefs (loop2): check_alloc_info... done [ 205.726221][ T6995] bcachefs (loop2): check_lrus... done [ 205.727359][ T6995] bcachefs (loop2): check_btree_backpointers... done [ 205.728507][ T6995] bcachefs (loop2): check_backpointers_to_extents... done [ 205.730595][ T6995] bcachefs (loop2): check_extents_to_backpointers... [pid 5839] umount2("./83/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./83/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 205.731502][ T6995] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 205.732764][ T6995] done [ 205.732776][ T6995] bcachefs (loop2): check_alloc_to_lru_refs... done [ 205.735645][ T6995] bcachefs (loop2): bucket_gens_init... done [ 205.737790][ T6995] bcachefs (loop2): check_snapshot_trees... done [ 205.738995][ T6995] bcachefs (loop2): check_snapshots... done [ 205.740610][ T6995] bcachefs (loop2): check_subvols... done [ 205.741320][ T6995] bcachefs (loop2): check_subvol_children... done [pid 5839] close(4) = 0 [pid 5839] rmdir("./83/file1") = 0 [pid 5839] umount2("./83/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 205.742108][ T6995] bcachefs (loop2): delete_dead_snapshots... done [ 205.742771][ T6995] bcachefs (loop2): check_inodes... done [ 205.743955][ T6995] bcachefs (loop2): check_extents... done [ 205.745995][ T6995] bcachefs (loop2): check_indirect_extents... done [ 205.746795][ T6995] bcachefs (loop2): check_dirents... done [ 205.748400][ T6995] bcachefs (loop2): check_xattrs... done [ 205.750143][ T6995] bcachefs (loop2): check_root... done [ 205.751455][ T6995] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] newfstatat(AT_FDCWD, "./83/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./83/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./83") = 0 [pid 5839] mkdir("./84", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7193 attached , child_tidptr=0x5555901c6750) = 7193 [ 205.752365][ T6995] bcachefs (loop2): check_subvolume_structure... done [ 205.753194][ T6995] bcachefs (loop2): check_directory_structure... done [ 205.754021][ T6995] bcachefs (loop2): check_nlinks... done [ 205.755578][ T6995] bcachefs (loop2): check_rebalance_work... done [ 205.756494][ T6995] bcachefs (loop2): resume_logged_ops... done [ 205.757326][ T6995] bcachefs (loop2): delete_dead_inodes... done [ 205.758174][ T6995] bcachefs (loop2): set_fs_needs_rebalance... done [ 205.762818][ T6995] bcachefs (loop2): done starting filesystem [ 205.846120][ T5839] bcachefs (loop2): shutting down [pid 7193] set_robust_list(0x5555901c6760, 24) = 0 [pid 7193] chdir("./84") = 0 [pid 7193] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7193] setpgid(0, 0) = 0 [ 205.846141][ T5839] bcachefs (loop2): going read-only [ 205.846170][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 205.882262][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 205.883651][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 205.884660][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 205.886478][ T5839] bcachefs (loop2): marking filesystem clean [ 205.945897][ T5839] bcachefs (loop2): shutdown complete [pid 7193] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7193] write(3, "1000", 4) = 4 [pid 7193] close(3) = 0 [pid 7193] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7193] write(1, "executing program\n", 18executing program ) = 18 [pid 7193] memfd_create("syzkaller", 0) = 3 [pid 7193] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 206.775335][ T7006] loop2: detected capacity change from 0 to 32768 [ 206.897162][ T7006] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 206.897190][ T7006] allowing incompatible features above 0.0: (unknown version) [ 206.897205][ T7006] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 206.897235][ T7006] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 206.897366][ T7006] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 206.897624][ T7006] bcachefs (loop2): Version upgrade required: [ 206.897624][ T7006] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 206.897624][ T7006] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 206.897624][ T7006] 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,check_rebalance_work,set_fs_needs_rebalance [ 206.917013][ T7006] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 206.917040][ T7006] size != 0, deleting [ 206.918202][ T7006] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 206.923104][ T7006] bcachefs (loop2): check_topology... done [ 206.924770][ T7006] bcachefs (loop2): accounting_read... done [ 206.966525][ T7006] bcachefs (loop2): alloc_read... done [ 206.967460][ T7006] bcachefs (loop2): snapshots_read... done [ 206.968264][ T7006] bcachefs (loop2): check_allocations... [ 206.971473][ T7006] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 206.971494][ T7006] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 206.973867][ T7006] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 206.973885][ T7006] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 206.975295][ T7006] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 206.975313][ T7006] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 206.976908][ T7006] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 206.976926][ T7006] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 206.981559][ T7006] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 7193] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7193] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7193] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 206.981586][ T7006] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 206.982525][ T7006] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.982665][ T7006] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.983350][ T7006] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7193] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7193] close(3) = 0 [pid 7193] close(4) = 0 [pid 7193] mkdir("./file1", 0777) = 0 [ 206.983458][ T7006] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.983890][ T7006] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.984007][ T7006] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.984212][ T7006] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.984317][ T7006] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.984521][ T7006] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.984633][ T7006] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.984835][ T7006] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.984939][ T7006] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.985141][ T7006] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.985246][ T7006] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 206.985477][ T7006] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 206.985647][ T7006] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 206.985854][ T7006] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 206.985960][ T7006] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 206.986164][ T7006] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 206.986268][ T7006] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 206.986500][ T7006] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 206.986515][ T7006] Ratelimiting new instances of previous error [ 206.986663][ T7006] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 206.986679][ T7006] Ratelimiting new instances of previous error [ 207.000354][ T7006] done [ 207.002556][ T7006] bcachefs (loop2): going read-write [ 207.008407][ T7006] bcachefs (loop2): journal_replay... done [ 207.035220][ T7006] bcachefs (loop2): check_alloc_info... [ 207.037018][ T7006] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 207.037036][ T7006] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 207.037049][ T7006] gen 0 oldest_gen 0 data_type need_discard [ 207.037060][ T7006] journal_seq_nonempty 6 [ 207.037070][ T7006] journal_seq_empty 0 [ 207.037079][ T7006] need_discard 1 [ 207.037089][ T7006] need_inc_gen 1 [ 207.037099][ T7006] dirty_sectors 0 [ 207.037109][ T7006] stripe_sectors 0 [ 207.037118][ T7006] cached_sectors 0 [ 207.037128][ T7006] stripe 0 [ 207.037138][ T7006] stripe_redundancy 0 [ 207.037148][ T7006] io_time[READ] 1 [ 207.037159][ T7006] io_time[WRITE] 768 [ 207.037169][ T7006] fragmentation 0 [ 207.037179][ T7006] bp_start 8 [ 207.037189][ T7006] , fixing [ 207.053702][ T7006] done [ 207.059509][ T7006] bcachefs (loop2): check_lrus... done [ 207.060489][ T7006] bcachefs (loop2): check_btree_backpointers... done [ 207.062280][ T7006] bcachefs (loop2): check_backpointers_to_extents... done [ 207.067018][ T7006] bcachefs (loop2): check_extents_to_backpointers... [ 207.068457][ T7006] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 207.070845][ T7006] done [ 207.071516][ T7006] bcachefs (loop2): check_alloc_to_lru_refs... [ 207.073897][ T7006] bcachefs (loop2): missing fragmentation lru entry [ 207.073914][ T7006] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 207.073925][ T7006] gen 0 oldest_gen 0 data_type user [ 207.073938][ T7006] journal_seq_nonempty 5 [ 207.073948][ T7006] journal_seq_empty 134217728 [ 207.073959][ T7006] need_discard 1 [ 207.073969][ T7006] need_inc_gen 1 [ 207.073979][ T7006] dirty_sectors 16 [ 207.073989][ T7006] stripe_sectors 1802251 [ 207.073999][ T7006] cached_sectors 0 [ 207.074010][ T7006] stripe 0 [ 207.074020][ T7006] stripe_redundancy 0 [ 207.074030][ T7006] io_time[READ] 1 [ 207.074040][ T7006] io_time[WRITE] 512 [ 207.074050][ T7006] fragmentation 0 ** 2 printk messages dropped ** [ 207.075641][ T7006] done ** 3 printk messages dropped ** [ 207.083670][ T7006] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 8 printk messages dropped ** [pid 7193] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7193] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7193] chdir("./file1") = 0 [pid 7193] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7193] ioctl(4, LOOP_CLR_FD) = 0 [pid 7193] close(4) = 0 [pid 7193] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7193] exit_group(0) = ? [pid 7193] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7193, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=37 /* 0.37 s */} --- [ 207.101124][ T7006] mode=40755 ** 1 printk messages dropped ** [ 207.101143][ T7006] journal_seq=4 [ 207.101153][ T7006] hash_seed=ece93825deac2443 [ 207.101163][ T7006] hash_type=siphash [ 207.101174][ T7006] bi_size=0 [ 207.101183][ T7006] bi_sectors=0 [ 207.101193][ T7006] bi_version=0 [ 207.101202][ T7006] bi_atime=2770562249 [ 207.101212][ T7006] bi_ctime=2780562352 [ 207.101221][ T7006] bi_mtime=2780562352 [ 207.101231][ T7006] bi_otime=2770562249 [ 207.101241][ T7006] bi_uid=0 [pid 5839] umount2("./84", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./84", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 207.101250][ T7006] bi_gid=0 [ 207.101259][ T7006] bi_nlink=0 [ 207.101268][ T7006] bi_generation=0 [ 207.101277][ T7006] bi_dev=0 [ 207.101286][ T7006] bi_data_checksum=0 [ 207.101296][ T7006] bi_compression=0 [ 207.101305][ T7006] bi_project=0 [ 207.101314][ T7006] bi_background_compression=0 [ 207.101325][ T7006] bi_data_replicas=0 [ 207.101334][ T7006] bi_promote_target=0 [ 207.101344][ T7006] bi_foreground_target=64 [ 207.101354][ T7006] bi_background_target=1 [ 207.101364][ T7006] bi_erasure_code=0 [ 207.101373][ T7006] bi_fields_set=0 [ 207.101383][ T7006] bi_dir=0 [ 207.101392][ T7006] bi_dir_offset=32 [ 207.101401][ T7006] bi_subvol=0 [ 207.101410][ T7006] bi_parent_subvol=0 [ 207.101420][ T7006] bi_nocow=0 [ 207.101429][ T7006] bi_depth=0 [ 207.101438][ T7006] bi_inodes_32bit=0 [ 207.101448][ T7006] bi_casefold=0, fixing [ 207.102985][ T7006] done [ 207.103673][ T7006] bcachefs (loop2): check_extents... done [ 207.105729][ T7006] bcachefs (loop2): check_indirect_extents... done [ 207.106542][ T7006] bcachefs (loop2): check_dirents... [ 207.108249][ T7006] bcachefs (loop2): directory with missing backpointer [ 207.108264][ T7006] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 207.108280][ T7006] inum: 4098:4294967295 [ 207.108290][ T7006] mode=40755 [ 207.108299][ T7006] flags=(11300000) [ 207.108309][ T7006] journal_seq=22 [ 207.108319][ T7006] hash_seed=ece93825deac2443 [ 207.108329][ T7006] hash_type=siphash [ 207.108338][ T7006] bi_size=0 [ 207.108347][ T7006] bi_sectors=0 [ 207.108358][ T7006] bi_version=0 [ 207.108368][ T7006] bi_atime=2770562249 [ 207.108378][ T7006] bi_ctime=2780562352 [ 207.108387][ T7006] bi_mtime=2780562352 [ 207.108397][ T7006] bi_otime=2770562249 [ 207.108407][ T7006] bi_uid=0 [ 207.108416][ T7006] bi_gid=0 [ 207.108425][ T7006] bi_nlink=0 [ 207.108434][ T7006] bi_generation=0 [ 207.108443][ T7006] bi_dev=0 [ 207.108452][ T7006] bi_data_checksum=0 [ 207.108462][ T7006] bi_compression=0 [ 207.108472][ T7006] bi_project=0 [ 207.108481][ T7006] bi_background_compression=0 [ 207.108492][ T7006] bi_data_replicas=0 [ 207.108502][ T7006] bi_promote_target=0 [ 207.108512][ T7006] bi_foreground_target=64 [ 207.108522][ T7006] bi_background_target=1 [ 207.108532][ T7006] bi_erasure_code=0 [ 207.108541][ T7006] bi_fields_set=0 [ 207.108563][ T7006] bi_dir=0 [ 207.108573][ T7006] bi_dir_offset=0 [ 207.108582][ T7006] bi_subvol=0 [ 207.108591][ T7006] bi_parent_subvol=0 [ 207.108601][ T7006] bi_nocow=0 [ 207.108610][ T7006] bi_depth=0 [ 207.108620][ T7006] bi_inodes_32bit=0 [ 207.108630][ T7006] bi_casefold=0, fixing [ 207.115149][ T7006] done [ 207.115842][ T7006] bcachefs (loop2): check_xattrs... done [ 207.118142][ T7006] bcachefs (loop2): check_root... done [ 207.121378][ T7006] bcachefs (loop2): check_unreachable_inodes... done [ 207.123261][ T7006] bcachefs (loop2): check_subvolume_structure... done [ 207.124363][ T7006] bcachefs (loop2): check_directory_structure... done [ 207.125147][ T7006] bcachefs (loop2): check_nlinks... [ 207.125881][ T7006] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 207.127431][ T7006] done [ 207.128183][ T7006] bcachefs (loop2): check_rebalance_work... done [ 207.130535][ T7006] bcachefs (loop2): resume_logged_ops... done [ 207.131365][ T7006] bcachefs (loop2): delete_dead_inodes... done [ 207.140838][ T7006] bcachefs (loop2): set_fs_needs_rebalance... [pid 5839] umount2("./84/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./84/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./84/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 207.148425][ T7015] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 207.148449][ T7015] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 207.150287][ T7006] done [ 207.151408][ T7006] bcachefs (loop2): check_extents_to_backpointers... [ 207.152362][ T7006] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 207.158369][ T7006] done [ 207.171415][ T7006] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [pid 5839] umount2("./84/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./84/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./84/file1") = 0 [pid 5839] umount2("./84/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./84/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./84/binderfs") = 0 [ 207.171440][ T7006] bcachefs (loop2): check_alloc_info... done [ 207.180390][ T7006] bcachefs (loop2): check_lrus... done [ 207.181584][ T7006] bcachefs (loop2): check_btree_backpointers... done [ 207.182720][ T7006] bcachefs (loop2): check_backpointers_to_extents... done [ 207.184219][ T7006] bcachefs (loop2): check_extents_to_backpointers... done [ 207.191610][ T7006] bcachefs (loop2): check_alloc_to_lru_refs... done [ 207.193752][ T7006] bcachefs (loop2): bucket_gens_init... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./84") = 0 [pid 5839] mkdir("./85", 0777) = 0 [ 207.195688][ T7006] bcachefs (loop2): check_snapshot_trees... done [ 207.196858][ T7006] bcachefs (loop2): check_snapshots... done [ 207.200138][ T7006] bcachefs (loop2): check_subvols... done [ 207.200934][ T7006] bcachefs (loop2): check_subvol_children... done [ 207.202233][ T7006] bcachefs (loop2): delete_dead_snapshots... done [ 207.210874][ T7006] bcachefs (loop2): check_inodes... done [ 207.212532][ T7006] bcachefs (loop2): check_extents... done [ 207.214163][ T7006] bcachefs (loop2): check_indirect_extents... done [ 207.214887][ T7006] bcachefs (loop2): check_dirents... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7204 attached , child_tidptr=0x5555901c6750) = 7204 [pid 7204] set_robust_list(0x5555901c6760, 24) = 0 [ 207.220291][ T7006] bcachefs (loop2): check_xattrs... done [ 207.221345][ T7006] bcachefs (loop2): check_root... done [ 207.222156][ T7006] bcachefs (loop2): check_unreachable_inodes... done [ 207.230289][ T7006] bcachefs (loop2): check_subvolume_structure... done [ 207.231044][ T7006] bcachefs (loop2): check_directory_structure... done [ 207.231778][ T7006] bcachefs (loop2): check_nlinks... done [ 207.232915][ T7006] bcachefs (loop2): check_rebalance_work... done [ 207.234160][ T7006] bcachefs (loop2): resume_logged_ops... done [pid 7204] chdir("./85") = 0 [pid 7204] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7204] setpgid(0, 0) = 0 [pid 7204] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7204] write(3, "1000", 4) = 4 [pid 7204] close(3) = 0 [pid 7204] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7204] write(1, "executing program\n", 18) = 18 [ 207.234885][ T7006] bcachefs (loop2): delete_dead_inodes... done [ 207.235655][ T7006] bcachefs (loop2): set_fs_needs_rebalance... done [ 207.241316][ T7006] bcachefs (loop2): done starting filesystem [ 207.351044][ T5839] bcachefs (loop2): shutting down [ 207.351067][ T5839] bcachefs (loop2): going read-only [ 207.351318][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 207.360976][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [pid 7204] memfd_create("syzkaller", 0) = 3 [pid 7204] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 207.360976][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 207.361164][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 207.361181][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 207.361202][ T87] loop2 checksum error [ 207.380419][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 207.384359][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 207.385246][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 207.387043][ T5839] bcachefs (loop2): marking filesystem clean [ 207.444091][ T5839] bcachefs (loop2): shutdown complete [ 208.214374][ T7017] loop2: detected capacity change from 0 to 32768 [ 208.371931][ T7017] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 208.371961][ T7017] allowing incompatible features above 0.0: (unknown version) [ 208.371975][ T7017] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 208.372003][ T7017] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 208.372133][ T7017] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 208.372371][ T7017] bcachefs (loop2): Version upgrade required: [ 208.372371][ T7017] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 208.372371][ T7017] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 208.372371][ T7017] 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,check_rebalance_work,set_fs_needs_rebalance [ 208.390883][ T7017] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 208.390908][ T7017] size != 0, deleting [ 208.392280][ T7017] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 208.395623][ T7017] bcachefs (loop2): check_topology... done [ 208.397015][ T7017] bcachefs (loop2): accounting_read... done [pid 7204] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 208.434406][ T7017] bcachefs (loop2): alloc_read... done [ 208.435569][ T7017] bcachefs (loop2): snapshots_read... done [ 208.436500][ T7017] bcachefs (loop2): check_allocations... [ 208.438577][ T7017] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 208.438598][ T7017] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 208.441983][ T7017] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 7204] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7204] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7204] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7204] close(3) = 0 [pid 7204] close(4) = 0 [pid 7204] mkdir("./file1", 0777) = 0 [ 208.442003][ T7017] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 208.443446][ T7017] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 208.443464][ T7017] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 208.445652][ T7017] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 208.445679][ T7017] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 208.448166][ T7017] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 208.448184][ T7017] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 208.449151][ T7017] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.449628][ T7017] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.450210][ T7017] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.450320][ T7017] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.450732][ T7017] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.450851][ T7017] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.451047][ T7017] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.451162][ T7017] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.451362][ T7017] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.451459][ T7017] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.451661][ T7017] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.451788][ T7017] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.451992][ T7017] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.452096][ T7017] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 208.452310][ T7017] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 208.452413][ T7017] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 208.452607][ T7017] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 208.452738][ T7017] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 208.452938][ T7017] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 208.453052][ T7017] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 208.453282][ T7017] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 208.453297][ T7017] Ratelimiting new instances of previous error [ 208.453424][ T7017] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 208.453440][ T7017] Ratelimiting new instances of previous error [ 208.467518][ T7017] done [ 208.471057][ T7017] bcachefs (loop2): going read-write [ 208.476518][ T7017] bcachefs (loop2): journal_replay... done [ 208.504277][ T7017] bcachefs (loop2): check_alloc_info... [ 208.506096][ T7017] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 208.506114][ T7017] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 208.506126][ T7017] gen 0 oldest_gen 0 data_type need_discard [ 208.506137][ T7017] journal_seq_nonempty 6 [ 208.506147][ T7017] journal_seq_empty 0 [ 208.506157][ T7017] need_discard 1 [ 208.506166][ T7017] need_inc_gen 1 [ 208.506176][ T7017] dirty_sectors 0 [ 208.506187][ T7017] stripe_sectors 0 [ 208.506196][ T7017] cached_sectors 0 [ 208.506207][ T7017] stripe 0 [ 208.506217][ T7017] stripe_redundancy 0 [ 208.506228][ T7017] io_time[READ] 1 [ 208.506238][ T7017] io_time[WRITE] 768 [ 208.506248][ T7017] fragmentation 0 [ 208.506259][ T7017] bp_start 8 [ 208.506269][ T7017] , fixing [ 208.524423][ T7017] done [ 208.525046][ T7017] bcachefs (loop2): check_lrus... done [ 208.530120][ T7017] bcachefs (loop2): check_btree_backpointers... done [ 208.532993][ T7017] bcachefs (loop2): check_backpointers_to_extents... done [ 208.536794][ T7017] bcachefs (loop2): check_extents_to_backpointers... [ 208.538145][ T7017] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 208.541336][ T7017] done [ 208.542048][ T7017] bcachefs (loop2): check_alloc_to_lru_refs... [ 208.544436][ T7017] bcachefs (loop2): missing fragmentation lru entry [ 208.544454][ T7017] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: ** 1 printk messages dropped ** [pid 7204] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7204] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7204] chdir("./file1") = 0 [pid 7204] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7204] ioctl(4, LOOP_CLR_FD) = 0 [pid 7204] close(4) = 0 [pid 7204] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7204] exit_group(0) = ? [ 208.544481][ T7017] journal_seq_nonempty 5 ** 3 printk messages dropped ** [ 208.544521][ T7017] dirty_sectors 16 ** 3 printk messages dropped ** [ 208.544561][ T7017] stripe_redundancy 0 ** 3 printk messages dropped ** [ 208.544602][ T7017] bp_start 7 ** 6 printk messages dropped ** [ 208.552710][ T7017] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 208.565734][ T7017] done [ 208.566473][ T7017] bcachefs (loop2): check_subvols... done [pid 7204] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7204, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./85", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./85", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 208.568061][ T7017] bcachefs (loop2): check_subvol_children... done [ 208.568943][ T7017] bcachefs (loop2): delete_dead_snapshots... done [ 208.570339][ T7017] bcachefs (loop2): check_inodes... [ 208.571466][ T7017] bcachefs (loop2): inode points to missing dirent [ 208.571483][ T7017] inum: 4098:4294967295 [ 208.571493][ T7017] mode=40755 [ 208.571503][ T7017] flags=(15300000) [ 208.571513][ T7017] journal_seq=4 [ 208.571522][ T7017] hash_seed=ece93825deac2443 [ 208.571532][ T7017] hash_type=siphash [ 208.571542][ T7017] bi_size=0 [ 208.571551][ T7017] bi_sectors=0 [ 208.571560][ T7017] bi_version=0 [ 208.571570][ T7017] bi_atime=2770562249 [ 208.571579][ T7017] bi_ctime=2780562352 [ 208.571589][ T7017] bi_mtime=2780562352 [ 208.571599][ T7017] bi_otime=2770562249 [ 208.571608][ T7017] bi_uid=0 [ 208.571617][ T7017] bi_gid=0 [ 208.571626][ T7017] bi_nlink=0 [ 208.571636][ T7017] bi_generation=0 [ 208.571645][ T7017] bi_dev=0 [ 208.571654][ T7017] bi_data_checksum=0 [ 208.571672][ T7017] bi_compression=0 [ 208.571682][ T7017] bi_project=0 [ 208.571691][ T7017] bi_background_compression=0 [ 208.571701][ T7017] bi_data_replicas=0 [ 208.571711][ T7017] bi_promote_target=0 [ 208.571720][ T7017] bi_foreground_target=64 [ 208.571732][ T7017] bi_background_target=1 [ 208.571742][ T7017] bi_erasure_code=0 [ 208.571751][ T7017] bi_fields_set=0 [ 208.571761][ T7017] bi_dir=0 [ 208.571770][ T7017] bi_dir_offset=32 [ 208.571780][ T7017] bi_subvol=0 [ 208.571789][ T7017] bi_parent_subvol=0 [ 208.571799][ T7017] bi_nocow=0 [ 208.571808][ T7017] bi_depth=0 [ 208.571818][ T7017] bi_inodes_32bit=0 [ 208.571828][ T7017] bi_casefold=0, fixing [ 208.573462][ T7017] done [ 208.574136][ T7017] bcachefs (loop2): check_extents... done [ 208.576107][ T7017] bcachefs (loop2): check_indirect_extents... done [ 208.576931][ T7017] bcachefs (loop2): check_dirents... [ 208.578623][ T7017] bcachefs (loop2): directory with missing backpointer [ 208.578640][ T7017] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 208.578656][ T7017] inum: 4098:4294967295 [ 208.578674][ T7017] mode=40755 [ 208.578683][ T7017] flags=(11300000) [ 208.578693][ T7017] journal_seq=22 [ 208.578702][ T7017] hash_seed=ece93825deac2443 [ 208.578713][ T7017] hash_type=siphash [ 208.578723][ T7017] bi_size=0 [ 208.578732][ T7017] bi_sectors=0 [ 208.578742][ T7017] bi_version=0 [ 208.578751][ T7017] bi_atime=2770562249 [ 208.578761][ T7017] bi_ctime=2780562352 [ 208.578772][ T7017] bi_mtime=2780562352 [ 208.578782][ T7017] bi_otime=2770562249 [ 208.578792][ T7017] bi_uid=0 [ 208.578801][ T7017] bi_gid=0 [ 208.578810][ T7017] bi_nlink=0 [ 208.578820][ T7017] bi_generation=0 [ 208.578829][ T7017] bi_dev=0 [ 208.578839][ T7017] bi_data_checksum=0 [ 208.578849][ T7017] bi_compression=0 [ 208.578858][ T7017] bi_project=0 [ 208.578868][ T7017] bi_background_compression=0 [ 208.578880][ T7017] bi_data_replicas=0 [ 208.578890][ T7017] bi_promote_target=0 [ 208.578900][ T7017] bi_foreground_target=64 [ 208.578910][ T7017] bi_background_target=1 [ 208.578920][ T7017] bi_erasure_code=0 [ 208.578930][ T7017] bi_fields_set=0 [ 208.578940][ T7017] bi_dir=0 [ 208.578948][ T7017] bi_dir_offset=0 [ 208.578958][ T7017] bi_subvol=0 [ 208.578968][ T7017] bi_parent_subvol=0 [ 208.578978][ T7017] bi_nocow=0 [ 208.578987][ T7017] bi_depth=0 [ 208.578996][ T7017] bi_inodes_32bit=0 [ 208.579006][ T7017] bi_casefold=0, fixing [ 208.588395][ T7017] done [ 208.589746][ T7017] bcachefs (loop2): check_xattrs... done [ 208.591825][ T7017] bcachefs (loop2): check_root... done [ 208.592996][ T7017] bcachefs (loop2): check_unreachable_inodes... done [ 208.594020][ T7017] bcachefs (loop2): check_subvolume_structure... done [ 208.594827][ T7017] bcachefs (loop2): check_directory_structure... done [ 208.595637][ T7017] bcachefs (loop2): check_nlinks... [pid 5839] umount2("./85/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./85/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./85/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./85/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./85/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 208.596339][ T7017] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 208.597302][ T7017] done [ 208.598397][ T7017] bcachefs (loop2): check_rebalance_work... done [ 208.600978][ T7017] bcachefs (loop2): resume_logged_ops... done [ 208.601769][ T7017] bcachefs (loop2): delete_dead_inodes... done [ 208.610822][ T7017] bcachefs (loop2): set_fs_needs_rebalance... [ 208.618289][ T7026] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 208.618313][ T7026] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 208.622932][ T7017] done [ 208.623952][ T7017] bcachefs (loop2): check_extents_to_backpointers... [ 208.624912][ T7017] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 208.632890][ T7017] done [ 208.646578][ T7017] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 208.646604][ T7017] bcachefs (loop2): check_alloc_info... done [ 208.658704][ T7017] bcachefs (loop2): check_lrus... done [ 208.660253][ T7017] bcachefs (loop2): check_btree_backpointers... done [pid 5839] close(4) = 0 [pid 5839] rmdir("./85/file1") = 0 [pid 5839] umount2("./85/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./85/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./85/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./85") = 0 [pid 5839] mkdir("./86", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [ 208.661455][ T7017] bcachefs (loop2): check_backpointers_to_extents... done [ 208.669739][ T7017] bcachefs (loop2): check_extents_to_backpointers... done [ 208.671532][ T7017] bcachefs (loop2): check_alloc_to_lru_refs... done [ 208.673705][ T7017] bcachefs (loop2): bucket_gens_init... done [ 208.680888][ T7017] bcachefs (loop2): check_snapshot_trees... done [ 208.682071][ T7017] bcachefs (loop2): check_snapshots... done [ 208.682863][ T7017] bcachefs (loop2): check_subvols... done [ 208.683657][ T7017] bcachefs (loop2): check_subvol_children... done [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7215 ./strace-static-x86_64: Process 7215 attached [pid 7215] set_robust_list(0x5555901c6760, 24) = 0 [pid 7215] chdir("./86") = 0 [pid 7215] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 208.684360][ T7017] bcachefs (loop2): delete_dead_snapshots... done [ 208.685046][ T7017] bcachefs (loop2): check_inodes... done [ 208.690871][ T7017] bcachefs (loop2): check_extents... done [ 208.699869][ T7017] bcachefs (loop2): check_indirect_extents... done [ 208.700703][ T7017] bcachefs (loop2): check_dirents... done [ 208.702669][ T7017] bcachefs (loop2): check_xattrs... done [ 208.703743][ T7017] bcachefs (loop2): check_root... done [ 208.705615][ T7017] bcachefs (loop2): check_unreachable_inodes... done [pid 7215] setpgid(0, 0) = 0 [pid 7215] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7215] write(3, "1000", 4) = 4 [pid 7215] close(3) = 0 [pid 7215] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7215] write(1, "executing program\n", 18executing program ) = 18 [ 208.706450][ T7017] bcachefs (loop2): check_subvolume_structure... done [ 208.707230][ T7017] bcachefs (loop2): check_directory_structure... done [ 208.707928][ T7017] bcachefs (loop2): check_nlinks... done [ 208.709069][ T7017] bcachefs (loop2): check_rebalance_work... done [ 208.713573][ T7017] bcachefs (loop2): resume_logged_ops... done [ 208.719907][ T7017] bcachefs (loop2): delete_dead_inodes... done [ 208.720671][ T7017] bcachefs (loop2): set_fs_needs_rebalance... done [ 208.724083][ T7017] bcachefs (loop2): done starting filesystem [pid 7215] memfd_create("syzkaller", 0) = 3 [pid 7215] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 208.804012][ T5839] bcachefs (loop2): shutting down [ 208.804033][ T5839] bcachefs (loop2): going read-only [ 208.804062][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 208.842326][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 208.843148][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 208.844033][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 208.845857][ T5839] bcachefs (loop2): marking filesystem clean [ 208.901998][ T5839] bcachefs (loop2): shutdown complete [ 209.682245][ T7028] loop2: detected capacity change from 0 to 32768 [ 209.829601][ T7028] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 209.829630][ T7028] allowing incompatible features above 0.0: (unknown version) [ 209.829644][ T7028] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 209.829672][ T7028] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 209.829801][ T7028] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 209.830040][ T7028] bcachefs (loop2): Version upgrade required: [ 209.830040][ T7028] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 209.830040][ T7028] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 209.830040][ T7028] 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,check_rebalance_work,set_fs_needs_rebalance [ 209.849755][ T7028] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 209.849781][ T7028] size != 0, deleting [ 209.850938][ T7028] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 209.854236][ T7028] bcachefs (loop2): check_topology... done [ 209.855705][ T7028] bcachefs (loop2): accounting_read... done [ 209.892065][ T7028] bcachefs (loop2): alloc_read... done [ 209.893004][ T7028] bcachefs (loop2): snapshots_read... done [ 209.893849][ T7028] bcachefs (loop2): check_allocations... [ 209.895806][ T7028] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7215] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 209.895825][ T7028] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 209.897780][ T7028] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 209.897798][ T7028] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 209.900756][ T7028] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7215] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7215] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7215] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7215] close(3) = 0 [pid 7215] close(4) = 0 [pid 7215] mkdir("./file1", 0777) = 0 [ 209.900775][ T7028] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 209.903161][ T7028] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 209.903181][ T7028] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 209.905872][ T7028] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 209.905891][ T7028] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 209.906858][ T7028] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.906985][ T7028] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.907547][ T7028] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.907663][ T7028] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.908080][ T7028] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.908198][ T7028] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.908402][ T7028] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.908508][ T7028] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.908732][ T7028] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.908838][ T7028] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.909041][ T7028] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.909177][ T7028] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.911155][ T7028] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.911264][ T7028] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 209.911463][ T7028] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 209.911569][ T7028] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 209.911791][ T7028] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 209.911897][ T7028] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 209.912096][ T7028] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 209.912201][ T7028] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 209.912433][ T7028] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 209.912448][ T7028] Ratelimiting new instances of previous error [ 209.913037][ T7028] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 209.913055][ T7028] Ratelimiting new instances of previous error [ 209.925811][ T7028] done [ 209.927958][ T7028] bcachefs (loop2): going read-write [ 209.934998][ T7028] bcachefs (loop2): journal_replay... done [ 209.962439][ T7028] bcachefs (loop2): check_alloc_info... [ 209.964349][ T7028] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 209.964366][ T7028] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 209.964380][ T7028] gen 0 oldest_gen 0 data_type need_discard [ 209.964391][ T7028] journal_seq_nonempty 6 [ 209.964401][ T7028] journal_seq_empty 0 [ 209.964411][ T7028] need_discard 1 [ 209.964421][ T7028] need_inc_gen 1 [ 209.964431][ T7028] dirty_sectors 0 [ 209.964443][ T7028] stripe_sectors 0 [ 209.964453][ T7028] cached_sectors 0 ** 2 printk messages dropped ** [ 209.964493][ T7028] io_time[READ] 1 [ 209.964502][ T7028] io_time[WRITE] 768 [ 209.964513][ T7028] fragmentation 0 ** 4 printk messages dropped ** [ 209.987464][ T7028] bcachefs (loop2): check_btree_backpointers... done ** 3 printk messages dropped ** [ 209.997034][ T7028] done [ 209.997814][ T7028] bcachefs (loop2): check_alloc_to_lru_refs... ** 1 printk messages dropped ** [ 210.000806][ T7028] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: ** 7 printk messages dropped ** [ 210.000891][ T7028] cached_sectors 0 ** 3 printk messages dropped ** [ 210.000931][ T7028] io_time[WRITE] 512 ** 9 printk messages dropped ** [ 210.021078][ T7028] done ** 2 printk messages dropped ** [pid 7215] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7215] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7215] chdir("./file1") = 0 [pid 7215] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7215] ioctl(4, LOOP_CLR_FD) = 0 [ 210.024293][ T7028] bcachefs (loop2): delete_dead_snapshots... done ** 8 printk messages dropped ** [ 210.026341][ T7028] bi_size=0 [ 210.026350][ T7028] bi_sectors=0 [ 210.026359][ T7028] bi_version=0 [ 210.026369][ T7028] bi_atime=2770562249 [ 210.026378][ T7028] bi_ctime=2780562352 [ 210.026388][ T7028] bi_mtime=2780562352 [ 210.026399][ T7028] bi_otime=2770562249 [ 210.026409][ T7028] bi_uid=0 [ 210.026418][ T7028] bi_gid=0 [ 210.026427][ T7028] bi_nlink=0 [pid 7215] close(4) = 0 [pid 7215] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7215] exit_group(0) = ? [pid 7215] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7215, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./86", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./86", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 210.026438][ T7028] bi_generation=0 [ 210.026448][ T7028] bi_dev=0 [ 210.026457][ T7028] bi_data_checksum=0 [ 210.026467][ T7028] bi_compression=0 [ 210.026478][ T7028] bi_project=0 [ 210.026487][ T7028] bi_background_compression=0 [ 210.026498][ T7028] bi_data_replicas=0 [ 210.026507][ T7028] bi_promote_target=0 [ 210.026517][ T7028] bi_foreground_target=64 [ 210.026527][ T7028] bi_background_target=1 [ 210.026536][ T7028] bi_erasure_code=0 [ 210.026546][ T7028] bi_fields_set=0 [ 210.026556][ T7028] bi_dir=0 [ 210.026572][ T7028] bi_dir_offset=32 [ 210.026581][ T7028] bi_subvol=0 [ 210.026602][ T7028] bi_parent_subvol=0 [ 210.026612][ T7028] bi_nocow=0 [ 210.026621][ T7028] bi_depth=0 [ 210.026630][ T7028] bi_inodes_32bit=0 [ 210.026640][ T7028] bi_casefold=0, fixing [ 210.028281][ T7028] done [ 210.028996][ T7028] bcachefs (loop2): check_extents... done [ 210.034789][ T7028] bcachefs (loop2): check_indirect_extents... done [ 210.035573][ T7028] bcachefs (loop2): check_dirents... [ 210.037309][ T7028] bcachefs (loop2): directory with missing backpointer [ 210.037325][ T7028] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 210.037340][ T7028] inum: 4098:4294967295 [ 210.037350][ T7028] mode=40755 [ 210.037359][ T7028] flags=(11300000) [ 210.037369][ T7028] journal_seq=22 [ 210.037378][ T7028] hash_seed=ece93825deac2443 [ 210.037389][ T7028] hash_type=siphash [ 210.037399][ T7028] bi_size=0 [ 210.037408][ T7028] bi_sectors=0 [ 210.037418][ T7028] bi_version=0 [ 210.037429][ T7028] bi_atime=2770562249 [ 210.037438][ T7028] bi_ctime=2780562352 [ 210.037447][ T7028] bi_mtime=2780562352 [ 210.037457][ T7028] bi_otime=2770562249 [ 210.037467][ T7028] bi_uid=0 [ 210.037476][ T7028] bi_gid=0 [ 210.037486][ T7028] bi_nlink=0 [ 210.037496][ T7028] bi_generation=0 [ 210.037505][ T7028] bi_dev=0 [ 210.037515][ T7028] bi_data_checksum=0 [ 210.037524][ T7028] bi_compression=0 [ 210.037534][ T7028] bi_project=0 [ 210.037545][ T7028] bi_background_compression=0 [ 210.037556][ T7028] bi_data_replicas=0 [ 210.037573][ T7028] bi_promote_target=0 [ 210.037583][ T7028] bi_foreground_target=64 [ 210.037594][ T7028] bi_background_target=1 [ 210.037604][ T7028] bi_erasure_code=0 [ 210.037614][ T7028] bi_fields_set=0 [ 210.037623][ T7028] bi_dir=0 [ 210.037632][ T7028] bi_dir_offset=0 [ 210.037642][ T7028] bi_subvol=0 [ 210.037652][ T7028] bi_parent_subvol=0 [ 210.037662][ T7028] bi_nocow=0 [ 210.037672][ T7028] bi_depth=0 [ 210.037681][ T7028] bi_inodes_32bit=0 [ 210.037691][ T7028] bi_casefold=0, fixing [ 210.040070][ T7028] done [ 210.040712][ T7028] bcachefs (loop2): check_xattrs... done [ 210.043536][ T7028] bcachefs (loop2): check_root... done [ 210.046718][ T7028] bcachefs (loop2): check_unreachable_inodes... done [ 210.048550][ T7028] bcachefs (loop2): check_subvolume_structure... done [ 210.050481][ T7028] bcachefs (loop2): check_directory_structure... done [ 210.051324][ T7028] bcachefs (loop2): check_nlinks... [ 210.052088][ T7028] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 210.053062][ T7028] done [ 210.054265][ T7028] bcachefs (loop2): check_rebalance_work... done [ 210.055509][ T7028] bcachefs (loop2): resume_logged_ops... done [ 210.056318][ T7028] bcachefs (loop2): delete_dead_inodes... done [ 210.065772][ T7028] bcachefs (loop2): set_fs_needs_rebalance... [ 210.073461][ T7037] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 210.073485][ T7037] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 210.075863][ T7028] done [ 210.076762][ T7028] bcachefs (loop2): check_extents_to_backpointers... [ 210.077702][ T7028] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 210.083001][ T7028] done [ 210.105058][ T7028] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 210.105084][ T7028] bcachefs (loop2): check_alloc_info... done [pid 5839] umount2("./86/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./86/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./86/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 210.110245][ T7028] bcachefs (loop2): check_lrus... done [ 210.111240][ T7028] bcachefs (loop2): check_btree_backpointers... done [ 210.112449][ T7028] bcachefs (loop2): check_backpointers_to_extents... done [ 210.114459][ T7028] bcachefs (loop2): check_extents_to_backpointers... done [ 210.116422][ T7028] bcachefs (loop2): check_alloc_to_lru_refs... done [ 210.120990][ T7028] bcachefs (loop2): bucket_gens_init... done [ 210.125864][ T7028] bcachefs (loop2): check_snapshot_trees... done [ 210.127041][ T7028] bcachefs (loop2): check_snapshots... done [pid 5839] umount2("./86/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./86/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./86/file1") = 0 [pid 5839] umount2("./86/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 210.127796][ T7028] bcachefs (loop2): check_subvols... done [ 210.128430][ T7028] bcachefs (loop2): check_subvol_children... done [ 210.129061][ T7028] bcachefs (loop2): delete_dead_snapshots... done [ 210.134580][ T7028] bcachefs (loop2): check_inodes... done [ 210.136179][ T7028] bcachefs (loop2): check_extents... done [ 210.137899][ T7028] bcachefs (loop2): check_indirect_extents... done [ 210.138543][ T7028] bcachefs (loop2): check_dirents... done [ 210.145997][ T7028] bcachefs (loop2): check_xattrs... done [pid 5839] newfstatat(AT_FDCWD, "./86/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./86/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./86") = 0 [pid 5839] mkdir("./87", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 210.147082][ T7028] bcachefs (loop2): check_root... done [ 210.147788][ T7028] bcachefs (loop2): check_unreachable_inodes... done [ 210.148663][ T7028] bcachefs (loop2): check_subvolume_structure... done [ 210.150107][ T7028] bcachefs (loop2): check_directory_structure... done [ 210.150880][ T7028] bcachefs (loop2): check_nlinks... done [ 210.156819][ T7028] bcachefs (loop2): check_rebalance_work... done [ 210.157581][ T7028] bcachefs (loop2): resume_logged_ops... done [ 210.158220][ T7028] bcachefs (loop2): delete_dead_inodes... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7226 ./strace-static-x86_64: Process 7226 attached [pid 7226] set_robust_list(0x5555901c6760, 24) = 0 [pid 7226] chdir("./87") = 0 [ 210.159059][ T7028] bcachefs (loop2): set_fs_needs_rebalance... done [ 210.167154][ T7028] bcachefs (loop2): done starting filesystem [ 210.243155][ T5839] bcachefs (loop2): shutting down [ 210.243178][ T5839] bcachefs (loop2): going read-only [ 210.243207][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 210.281396][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 210.282290][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 210.283065][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [pid 7226] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7226] setpgid(0, 0) = 0 [pid 7226] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7226] write(3, "1000", 4) = 4 [pid 7226] close(3) = 0 [pid 7226] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7226] write(1, "executing program\n", 18executing program ) = 18 [ 210.284741][ T5839] bcachefs (loop2): marking filesystem clean [ 210.345845][ T5839] bcachefs (loop2): shutdown complete [ 211.235917][ T7039] loop2: detected capacity change from 0 to 32768 [ 211.430520][ T7039] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 211.430549][ T7039] allowing incompatible features above 0.0: (unknown version) [pid 7226] memfd_create("syzkaller", 0) = 3 [pid 7226] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 211.430564][ T7039] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 211.430592][ T7039] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 211.430721][ T7039] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 211.430950][ T7039] bcachefs (loop2): Version upgrade required: [ 211.430950][ T7039] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 211.430950][ T7039] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 211.430950][ T7039] 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,check_rebalance_work,set_fs_needs_rebalance [ 211.450454][ T7039] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 211.450967][ T7039] size != 0, deleting [ 211.452089][ T7039] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 211.455445][ T7039] bcachefs (loop2): check_topology... done [ 211.456897][ T7039] bcachefs (loop2): accounting_read... done [ 211.493060][ T7039] bcachefs (loop2): alloc_read... done [ 211.494012][ T7039] bcachefs (loop2): snapshots_read... done [ 211.494876][ T7039] bcachefs (loop2): check_allocations... [ 211.496808][ T7039] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 211.496828][ T7039] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 211.498706][ T7039] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 211.498724][ T7039] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 211.501609][ T7039] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 211.501629][ T7039] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 211.503498][ T7039] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 211.503516][ T7039] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 211.506012][ T7039] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 211.506030][ T7039] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 211.506981][ T7039] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.507106][ T7039] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7226] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7226] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7226] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7226] close(3) = 0 [pid 7226] close(4) = 0 [pid 7226] mkdir("./file1", 0777) = 0 [ 211.507684][ T7039] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.507786][ T7039] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 211.508181][ T7039] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.508282][ T7039] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 211.508499][ T7039] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.508604][ T7039] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 211.508819][ T7039] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.508925][ T7039] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 211.509135][ T7039] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.511832][ T7039] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 211.512096][ T7039] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.512212][ T7039] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 211.512642][ T7039] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 211.512745][ T7039] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 211.512944][ T7039] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 211.513048][ T7039] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 211.513254][ T7039] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 211.513367][ T7039] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 211.513591][ T7039] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 211.513606][ T7039] Ratelimiting new instances of previous error [ 211.513740][ T7039] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 211.513756][ T7039] Ratelimiting new instances of previous error [ 211.526269][ T7039] done [ 211.528451][ T7039] bcachefs (loop2): going read-write [ 211.534354][ T7039] bcachefs (loop2): journal_replay... done [ 211.560991][ T7039] bcachefs (loop2): check_alloc_info... [ 211.563762][ T7039] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 211.563781][ T7039] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 211.563793][ T7039] gen 0 oldest_gen 0 data_type need_discard [ 211.563805][ T7039] journal_seq_nonempty 6 [ 211.563815][ T7039] journal_seq_empty 0 [ 211.563826][ T7039] need_discard 1 [ 211.563836][ T7039] need_inc_gen 1 [ 211.563846][ T7039] dirty_sectors 0 [ 211.563856][ T7039] stripe_sectors 0 [ 211.563866][ T7039] cached_sectors 0 [ 211.563876][ T7039] stripe 0 [ 211.563886][ T7039] stripe_redundancy 0 [ 211.563896][ T7039] io_time[READ] 1 [ 211.563907][ T7039] io_time[WRITE] 768 [ 211.563917][ T7039] fragmentation 0 [ 211.563927][ T7039] bp_start 8 [ 211.563937][ T7039] , fixing [ 211.581622][ T7039] done [ 211.587651][ T7039] bcachefs (loop2): check_lrus... done [ 211.588690][ T7039] bcachefs (loop2): check_btree_backpointers... done [ 211.590785][ T7039] bcachefs (loop2): check_backpointers_to_extents... done [ 211.595129][ T7039] bcachefs (loop2): check_extents_to_backpointers... [ 211.596497][ T7039] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 211.597814][ T7039] done [ 211.599010][ T7039] bcachefs (loop2): check_alloc_to_lru_refs... [ 211.601162][ T7039] bcachefs (loop2): missing fragmentation lru entry [ 211.601178][ T7039] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 211.601190][ T7039] gen 0 oldest_gen 0 data_type user [ 211.601201][ T7039] journal_seq_nonempty 5 [ 211.601211][ T7039] journal_seq_empty 134217728 [ 211.601222][ T7039] need_discard 1 [ 211.601232][ T7039] need_inc_gen 1 [ 211.601241][ T7039] dirty_sectors 16 [ 211.601251][ T7039] stripe_sectors 1802251 [ 211.601263][ T7039] cached_sectors 0 [ 211.601273][ T7039] stripe 0 [ 211.601283][ T7039] stripe_redundancy 0 [ 211.601293][ T7039] io_time[READ] 1 [ 211.601303][ T7039] io_time[WRITE] 512 [ 211.601312][ T7039] fragmentation 0 [ 211.601322][ T7039] bp_start 7 [ 211.601332][ T7039] , fixing [ 211.604750][ T7039] done [ 211.606321][ T7039] bcachefs (loop2): bucket_gens_init... done [ 211.608395][ T7039] bcachefs (loop2): check_snapshot_trees... done [ 211.610244][ T7039] bcachefs (loop2): check_snapshots... [ 211.610832][ T7039] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 211.610850][ T7039] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 3 printk messages dropped ** [pid 7226] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7226] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7226] chdir("./file1") = 0 [pid 7226] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7226] ioctl(4, LOOP_CLR_FD) = 0 [ 211.625252][ T7039] bcachefs (loop2): delete_dead_snapshots... done ** 8 printk messages dropped ** [ 211.627157][ T7039] bi_size=0 ** 2 printk messages dropped ** [ 211.627185][ T7039] bi_atime=2770562249 ** 1 printk messages dropped ** [ 211.627205][ T7039] bi_mtime=2780562352 [ 211.627215][ T7039] bi_otime=2770562249 [ 211.627225][ T7039] bi_uid=0 [ 211.627234][ T7039] bi_gid=0 [ 211.627243][ T7039] bi_nlink=0 [ 211.627253][ T7039] bi_generation=0 [ 211.627263][ T7039] bi_dev=0 [ 211.627273][ T7039] bi_data_checksum=0 [pid 7226] close(4) = 0 [pid 7226] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7226] exit_group(0) = ? [pid 7226] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7226, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./87", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./87", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 211.627282][ T7039] bi_compression=0 [ 211.627292][ T7039] bi_project=0 [ 211.627303][ T7039] bi_background_compression=0 [ 211.627313][ T7039] bi_data_replicas=0 [ 211.627322][ T7039] bi_promote_target=0 [ 211.627334][ T7039] bi_foreground_target=64 [ 211.627343][ T7039] bi_background_target=1 [ 211.627353][ T7039] bi_erasure_code=0 [ 211.627363][ T7039] bi_fields_set=0 [ 211.627372][ T7039] bi_dir=0 [ 211.627394][ T7039] bi_dir_offset=32 [ 211.627405][ T7039] bi_subvol=0 [ 211.627415][ T7039] bi_parent_subvol=0 [ 211.627424][ T7039] bi_nocow=0 [ 211.627434][ T7039] bi_depth=0 [ 211.627443][ T7039] bi_inodes_32bit=0 [ 211.627452][ T7039] bi_casefold=0, fixing [ 211.629035][ T7039] done [ 211.631275][ T7039] bcachefs (loop2): check_extents... done [ 211.634695][ T7039] bcachefs (loop2): check_indirect_extents... done [ 211.636800][ T7039] bcachefs (loop2): check_dirents... [ 211.638517][ T7039] bcachefs (loop2): directory with missing backpointer [ 211.638535][ T7039] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 211.638550][ T7039] inum: 4098:4294967295 [ 211.638560][ T7039] mode=40755 [ 211.638569][ T7039] flags=(11300000) [ 211.638579][ T7039] journal_seq=22 [ 211.638588][ T7039] hash_seed=ece93825deac2443 [ 211.638598][ T7039] hash_type=siphash [ 211.638608][ T7039] bi_size=0 [ 211.638618][ T7039] bi_sectors=0 [ 211.638627][ T7039] bi_version=0 [ 211.638636][ T7039] bi_atime=2770562249 [ 211.638646][ T7039] bi_ctime=2780562352 [ 211.638656][ T7039] bi_mtime=2780562352 [ 211.638666][ T7039] bi_otime=2770562249 [ 211.638676][ T7039] bi_uid=0 [ 211.638685][ T7039] bi_gid=0 [ 211.638694][ T7039] bi_nlink=0 [ 211.638704][ T7039] bi_generation=0 [ 211.638714][ T7039] bi_dev=0 [ 211.638724][ T7039] bi_data_checksum=0 [ 211.638734][ T7039] bi_compression=0 [ 211.638745][ T7039] bi_project=0 [ 211.638754][ T7039] bi_background_compression=0 [ 211.638765][ T7039] bi_data_replicas=0 [ 211.638776][ T7039] bi_promote_target=0 [ 211.638786][ T7039] bi_foreground_target=64 [ 211.638796][ T7039] bi_background_target=1 [ 211.638808][ T7039] bi_erasure_code=0 [ 211.638818][ T7039] bi_fields_set=0 [ 211.638827][ T7039] bi_dir=0 [ 211.638849][ T7039] bi_dir_offset=0 [ 211.638860][ T7039] bi_subvol=0 [ 211.638869][ T7039] bi_parent_subvol=0 [ 211.638878][ T7039] bi_nocow=0 [ 211.638887][ T7039] bi_depth=0 [ 211.638896][ T7039] bi_inodes_32bit=0 [ 211.638906][ T7039] bi_casefold=0, fixing [ 211.644745][ T7039] done [ 211.645492][ T7039] bcachefs (loop2): check_xattrs... done [ 211.646736][ T7039] bcachefs (loop2): check_root... done [ 211.647899][ T7039] bcachefs (loop2): check_unreachable_inodes... done [ 211.648936][ T7039] bcachefs (loop2): check_subvolume_structure... done [ 211.650414][ T7039] bcachefs (loop2): check_directory_structure... done [ 211.651618][ T7039] bcachefs (loop2): check_nlinks... [ 211.652293][ T7039] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 211.653336][ T7039] done [ 211.654041][ T7039] bcachefs (loop2): check_rebalance_work... done [ 211.655231][ T7039] bcachefs (loop2): resume_logged_ops... done [ 211.656033][ T7039] bcachefs (loop2): delete_dead_inodes... done [ 211.665560][ T7039] bcachefs (loop2): set_fs_needs_rebalance... [ 211.673368][ T7048] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 211.673401][ T7048] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 211.676578][ T7039] done [ 211.677598][ T7039] bcachefs (loop2): check_extents_to_backpointers... [ 211.678539][ T7039] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 211.684662][ T7039] done [ 211.694982][ T7039] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 211.695008][ T7039] bcachefs (loop2): check_alloc_info... done [ 211.701097][ T7039] bcachefs (loop2): check_lrus... done [ 211.702071][ T7039] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./87/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./87/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./87/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./87/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./87/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [ 211.703149][ T7039] bcachefs (loop2): check_backpointers_to_extents... done [ 211.704479][ T7039] bcachefs (loop2): check_extents_to_backpointers... done [ 211.706715][ T7039] bcachefs (loop2): check_alloc_to_lru_refs... done [ 211.708872][ T7039] bcachefs (loop2): bucket_gens_init... done [ 211.711895][ T7039] bcachefs (loop2): check_snapshot_trees... done [ 211.713029][ T7039] bcachefs (loop2): check_snapshots... done [ 211.713925][ T7039] bcachefs (loop2): check_subvols... done [ 211.714824][ T7039] bcachefs (loop2): check_subvol_children... done [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./87/file1") = 0 [pid 5839] umount2("./87/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./87/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./87/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./87") = 0 [pid 5839] mkdir("./88", 0777) = 0 [ 211.715677][ T7039] bcachefs (loop2): delete_dead_snapshots... done [ 211.716942][ T7039] bcachefs (loop2): check_inodes... done [ 211.718107][ T7039] bcachefs (loop2): check_extents... done [ 211.720685][ T7039] bcachefs (loop2): check_indirect_extents... done [ 211.721496][ T7039] bcachefs (loop2): check_dirents... done [ 211.723061][ T7039] bcachefs (loop2): check_xattrs... done [ 211.723940][ T7039] bcachefs (loop2): check_root... done [ 211.724795][ T7039] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7237 attached , child_tidptr=0x5555901c6750) = 7237 [pid 7237] set_robust_list(0x5555901c6760, 24) = 0 [ 211.725758][ T7039] bcachefs (loop2): check_subvolume_structure... done [ 211.726568][ T7039] bcachefs (loop2): check_directory_structure... done [ 211.727778][ T7039] bcachefs (loop2): check_nlinks... done [ 211.728978][ T7039] bcachefs (loop2): check_rebalance_work... done [ 211.732053][ T7039] bcachefs (loop2): resume_logged_ops... done [ 211.733081][ T7039] bcachefs (loop2): delete_dead_inodes... done [ 211.733843][ T7039] bcachefs (loop2): set_fs_needs_rebalance... done [ 211.737833][ T7039] bcachefs (loop2): done starting filesystem [ 211.840193][ T5839] bcachefs (loop2): shutting down [pid 7237] chdir("./88") = 0 [pid 7237] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7237] setpgid(0, 0) = 0 [pid 7237] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7237] write(3, "1000", 4) = 4 [pid 7237] close(3) = 0 [pid 7237] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7237] write(1, "executing program\n", 18executing program [ 211.840213][ T5839] bcachefs (loop2): going read-only [ 211.840244][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 211.879728][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 211.880655][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 211.881478][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 211.883288][ T5839] bcachefs (loop2): marking filesystem clean ) = 18 [pid 7237] memfd_create("syzkaller", 0) = 3 [pid 7237] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 211.883821][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 211.883821][ T5152] rw journal devs: [ 211.924769][ T5839] bcachefs (loop2): shutdown complete [ 212.717240][ T7050] loop2: detected capacity change from 0 to 32768 [ 212.856895][ T7050] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 212.856923][ T7050] allowing incompatible features above 0.0: (unknown version) [ 212.856945][ T7050] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 212.856974][ T7050] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 212.857104][ T7050] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 212.857354][ T7050] bcachefs (loop2): Version upgrade required: [ 212.857354][ T7050] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 212.857354][ T7050] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 212.857354][ T7050] 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,check_rebalance_work,set_fs_needs_rebalance [ 212.877249][ T7050] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 212.877283][ T7050] size != 0, deleting [ 212.878455][ T7050] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 212.883127][ T7050] bcachefs (loop2): check_topology... done [ 212.884621][ T7050] bcachefs (loop2): accounting_read... done [ 212.912381][ T7050] bcachefs (loop2): alloc_read... done [ 212.913324][ T7050] bcachefs (loop2): snapshots_read... done [ 212.914181][ T7050] bcachefs (loop2): check_allocations... [ 212.916028][ T7050] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 212.916046][ T7050] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 212.918060][ T7050] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 212.918079][ T7050] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 212.920590][ T7050] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 212.920608][ T7050] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 212.922696][ T7050] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 212.922715][ T7050] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 7237] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7237] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7237] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 212.925279][ T7050] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 212.925298][ T7050] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 212.926227][ T7050] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.926364][ T7050] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7237] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7237] close(3) = 0 [pid 7237] close(4) = 0 [pid 7237] mkdir("./file1", 0777) = 0 [ 212.926917][ T7050] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.927034][ T7050] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 212.927440][ T7050] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.927548][ T7050] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 212.927752][ T7050] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.927858][ T7050] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 212.928056][ T7050] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.928165][ T7050] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 212.928379][ T7050] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.928483][ T7050] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 212.928688][ T7050] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.928802][ T7050] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 212.929013][ T7050] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 212.929118][ T7050] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 212.931411][ T7050] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 212.931521][ T7050] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 212.931729][ T7050] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 212.931877][ T7050] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 212.932156][ T7050] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 212.932173][ T7050] Ratelimiting new instances of previous error [ 212.932311][ T7050] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 212.932326][ T7050] Ratelimiting new instances of previous error [ 212.944223][ T7050] done [ 212.946471][ T7050] bcachefs (loop2): going read-write [ 212.952625][ T7050] bcachefs (loop2): journal_replay... done [ 212.981161][ T7050] bcachefs (loop2): check_alloc_info... [ 212.983469][ T7050] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 212.983487][ T7050] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 212.983500][ T7050] gen 0 oldest_gen 0 data_type need_discard [ 212.983511][ T7050] journal_seq_nonempty 6 [ 212.983521][ T7050] journal_seq_empty 0 [ 212.983531][ T7050] need_discard 1 [ 212.983540][ T7050] need_inc_gen 1 [ 212.983551][ T7050] dirty_sectors 0 [ 212.983560][ T7050] stripe_sectors 0 [ 212.983570][ T7050] cached_sectors 0 [ 212.983580][ T7050] stripe 0 [ 212.983590][ T7050] stripe_redundancy 0 [ 212.983602][ T7050] io_time[READ] 1 [ 212.983611][ T7050] io_time[WRITE] 768 [ 212.983622][ T7050] fragmentation 0 [ 212.983632][ T7050] bp_start 8 [ 212.983641][ T7050] , fixing [ 213.000786][ T7050] done [ 213.003071][ T7050] bcachefs (loop2): check_lrus... done [ 213.008026][ T7050] bcachefs (loop2): check_btree_backpointers... done [ 213.012473][ T7050] bcachefs (loop2): check_backpointers_to_extents... done [ 213.016078][ T7050] bcachefs (loop2): check_extents_to_backpointers... [ 213.017466][ T7050] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 213.018865][ T7050] done [ 213.020311][ T7050] bcachefs (loop2): check_alloc_to_lru_refs... [ 213.022115][ T7050] bcachefs (loop2): missing fragmentation lru entry [ 213.022134][ T7050] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 213.022145][ T7050] gen 0 oldest_gen 0 data_type user [ 213.022155][ T7050] journal_seq_nonempty 5 [ 213.022165][ T7050] journal_seq_empty 134217728 [ 213.022178][ T7050] need_discard 1 [ 213.022187][ T7050] need_inc_gen 1 [ 213.022198][ T7050] dirty_sectors 16 [ 213.022207][ T7050] stripe_sectors 1802251 [ 213.022217][ T7050] cached_sectors 0 [ 213.022227][ T7050] stripe 0 [ 213.022237][ T7050] stripe_redundancy 0 [ 213.022255][ T7050] io_time[READ] 1 [ 213.022266][ T7050] io_time[WRITE] 512 [ 213.022277][ T7050] fragmentation 0 [ 213.022287][ T7050] bp_start 7 ** 3 printk messages dropped ** [pid 7237] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7237] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7237] chdir("./file1") = 0 [pid 7237] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7237] ioctl(4, LOOP_CLR_FD) = 0 [pid 7237] close(4) = 0 [pid 7237] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7237] exit_group(0) = ? [ 213.027804][ T7050] bcachefs (loop2): check_snapshot_trees... done ** 3 printk messages dropped ** [ 213.042757][ T7050] done ** 4 printk messages dropped ** [ 213.048358][ T7050] bcachefs (loop2): inode points to missing dirent ** 10 printk messages dropped ** [ 213.048468][ T7050] bi_ctime=2780562352 ** 6 printk messages dropped ** [ 213.048532][ T7050] bi_dev=0 [ 213.048541][ T7050] bi_data_checksum=0 [ 213.048551][ T7050] bi_compression=0 [ 213.048561][ T7050] bi_project=0 [ 213.048570][ T7050] bi_background_compression=0 [pid 7237] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7237, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./88", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./88", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 213.048580][ T7050] bi_data_replicas=0 [ 213.048589][ T7050] bi_promote_target=0 [ 213.048598][ T7050] bi_foreground_target=64 [ 213.048608][ T7050] bi_background_target=1 [ 213.048618][ T7050] bi_erasure_code=0 [ 213.048627][ T7050] bi_fields_set=0 [ 213.048636][ T7050] bi_dir=0 [ 213.048663][ T7050] bi_dir_offset=32 [ 213.048672][ T7050] bi_subvol=0 [ 213.048681][ T7050] bi_parent_subvol=0 [ 213.048691][ T7050] bi_nocow=0 [ 213.048700][ T7050] bi_depth=0 [ 213.048709][ T7050] bi_inodes_32bit=0 [ 213.048721][ T7050] bi_casefold=0, fixing [ 213.054878][ T7050] done [ 213.055560][ T7050] bcachefs (loop2): check_extents... done [ 213.057498][ T7050] bcachefs (loop2): check_indirect_extents... done [ 213.058273][ T7050] bcachefs (loop2): check_dirents... [ 213.060450][ T7050] bcachefs (loop2): directory with missing backpointer [ 213.060466][ T7050] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 213.060481][ T7050] inum: 4098:4294967295 [ 213.060492][ T7050] mode=40755 [ 213.060500][ T7050] flags=(11300000) [ 213.060510][ T7050] journal_seq=23 [ 213.060519][ T7050] hash_seed=ece93825deac2443 [ 213.060529][ T7050] hash_type=siphash [ 213.060538][ T7050] bi_size=0 [ 213.060547][ T7050] bi_sectors=0 [ 213.060556][ T7050] bi_version=0 [ 213.060565][ T7050] bi_atime=2770562249 [ 213.060575][ T7050] bi_ctime=2780562352 [ 213.060584][ T7050] bi_mtime=2780562352 [ 213.060593][ T7050] bi_otime=2770562249 [ 213.060604][ T7050] bi_uid=0 [ 213.060613][ T7050] bi_gid=0 [ 213.060622][ T7050] bi_nlink=0 [ 213.060631][ T7050] bi_generation=0 [ 213.060641][ T7050] bi_dev=0 [ 213.060649][ T7050] bi_data_checksum=0 [ 213.060659][ T7050] bi_compression=0 [ 213.060669][ T7050] bi_project=0 [ 213.060678][ T7050] bi_background_compression=0 [ 213.060688][ T7050] bi_data_replicas=0 [ 213.060697][ T7050] bi_promote_target=0 [ 213.060707][ T7050] bi_foreground_target=64 [ 213.060717][ T7050] bi_background_target=1 [ 213.060726][ T7050] bi_erasure_code=0 [ 213.060737][ T7050] bi_fields_set=0 [ 213.060746][ T7050] bi_dir=0 [ 213.060755][ T7050] bi_dir_offset=0 [ 213.060765][ T7050] bi_subvol=0 [ 213.060792][ T7050] bi_parent_subvol=0 [ 213.060802][ T7050] bi_nocow=0 [ 213.060811][ T7050] bi_depth=0 [ 213.060821][ T7050] bi_inodes_32bit=0 [ 213.060831][ T7050] bi_casefold=0, fixing [ 213.062962][ T7050] done [ 213.063652][ T7050] bcachefs (loop2): check_xattrs... done [ 213.064920][ T7050] bcachefs (loop2): check_root... done [ 213.066077][ T7050] bcachefs (loop2): check_unreachable_inodes... done [ 213.067083][ T7050] bcachefs (loop2): check_subvolume_structure... done [ 213.068245][ T7050] bcachefs (loop2): check_directory_structure... done [ 213.069034][ T7050] bcachefs (loop2): check_nlinks... [ 213.070939][ T7050] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 213.073864][ T7050] done [ 213.075504][ T7050] bcachefs (loop2): check_rebalance_work... done [ 213.077023][ T7050] bcachefs (loop2): resume_logged_ops... done [ 213.078300][ T7050] bcachefs (loop2): delete_dead_inodes... done [ 213.087007][ T7050] bcachefs (loop2): set_fs_needs_rebalance... [ 213.095223][ T7059] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 213.095248][ T7059] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 213.098468][ T7050] done [ 213.101015][ T7050] bcachefs (loop2): check_extents_to_backpointers... [pid 5839] umount2("./88/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 213.102145][ T7050] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 213.103825][ T7059] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 213.106761][ T7050] done [ 213.118911][ T7050] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 213.118938][ T7050] bcachefs (loop2): check_alloc_info... done [ 213.124411][ T7050] bcachefs (loop2): check_lrus... done [ 213.125640][ T7050] bcachefs (loop2): check_btree_backpointers... done [pid 5839] umount2("./88/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./88/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./88/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./88/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./88/file1") = 0 [pid 5839] umount2("./88/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./88/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./88/binderfs") = 0 [ 213.126909][ T7050] bcachefs (loop2): check_backpointers_to_extents... done [ 213.128430][ T7050] bcachefs (loop2): check_extents_to_backpointers... [ 213.130116][ T7050] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 213.131986][ T7050] done [ 213.132000][ T7050] bcachefs (loop2): check_alloc_to_lru_refs... done [ 213.134110][ T7050] bcachefs (loop2): bucket_gens_init... done [ 213.136212][ T7050] bcachefs (loop2): check_snapshot_trees... done [ 213.137400][ T7050] bcachefs (loop2): check_snapshots... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./88") = 0 [pid 5839] mkdir("./89", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 213.138291][ T7050] bcachefs (loop2): check_subvols... done [ 213.139097][ T7050] bcachefs (loop2): check_subvol_children... done [ 213.140840][ T7050] bcachefs (loop2): delete_dead_snapshots... done [ 213.142430][ T7050] bcachefs (loop2): check_inodes... done [ 213.143659][ T7050] bcachefs (loop2): check_extents... done [ 213.145159][ T7050] bcachefs (loop2): check_indirect_extents... done [ 213.145979][ T7050] bcachefs (loop2): check_dirents... done [ 213.147526][ T7050] bcachefs (loop2): check_xattrs... done [ 213.148430][ T7050] bcachefs (loop2): check_root... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7249 ./strace-static-x86_64: Process 7249 attached [pid 7249] set_robust_list(0x5555901c6760, 24) = 0 [pid 7249] chdir("./89") = 0 [pid 7249] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7249] setpgid(0, 0) = 0 [pid 7249] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 213.150227][ T7050] bcachefs (loop2): check_unreachable_inodes... done [ 213.151152][ T7050] bcachefs (loop2): check_subvolume_structure... done [ 213.151955][ T7050] bcachefs (loop2): check_directory_structure... done [ 213.153239][ T7050] bcachefs (loop2): check_nlinks... done [ 213.154478][ T7050] bcachefs (loop2): check_rebalance_work... done [ 213.155311][ T7050] bcachefs (loop2): resume_logged_ops... done [ 213.156109][ T7050] bcachefs (loop2): delete_dead_inodes... done [ 213.156955][ T7050] bcachefs (loop2): set_fs_needs_rebalance... done [pid 7249] write(3, "1000", 4) = 4 [pid 7249] close(3) = 0 [pid 7249] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7249] write(1, "executing program\n", 18executing program ) = 18 [pid 7249] memfd_create("syzkaller", 0) = 3 [pid 7249] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 213.161228][ T7050] bcachefs (loop2): done starting filesystem [ 213.253739][ T5839] bcachefs (loop2): shutting down [ 213.253761][ T5839] bcachefs (loop2): going read-only [ 213.253791][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 213.289906][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 213.290939][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 213.291869][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 213.293671][ T5839] bcachefs (loop2): marking filesystem clean [ 213.331771][ T5839] bcachefs (loop2): shutdown complete [ 214.156252][ T7061] loop2: detected capacity change from 0 to 32768 [ 214.288845][ T7061] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 214.288869][ T7061] allowing incompatible features above 0.0: (unknown version) [ 214.288880][ T7061] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 214.288910][ T7061] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 214.289039][ T7061] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 214.291092][ T7061] bcachefs (loop2): Version upgrade required: [ 214.291092][ T7061] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 214.291092][ T7061] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 214.291092][ T7061] 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,check_rebalance_work,set_fs_needs_rebalance [ 214.309804][ T7061] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 214.309829][ T7061] size != 0, deleting [ 214.310998][ T7061] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 214.314364][ T7061] bcachefs (loop2): check_topology... done [ 214.316305][ T7061] bcachefs (loop2): accounting_read... done [ 214.343066][ T7061] bcachefs (loop2): alloc_read... done [ 214.344012][ T7061] bcachefs (loop2): snapshots_read... done [ 214.344907][ T7061] bcachefs (loop2): check_allocations... [ 214.347157][ T7061] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 214.347177][ T7061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 214.350155][ T7061] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 214.350174][ T7061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [pid 7249] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 214.351639][ T7061] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 214.351657][ T7061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 214.353240][ T7061] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 214.353258][ T7061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 7249] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7249] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7249] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7249] close(3) = 0 [pid 7249] close(4) = 0 [pid 7249] mkdir("./file1", 0777) = 0 [ 214.355747][ T7061] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 214.355763][ T7061] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 214.357203][ T7061] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.357337][ T7061] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.357894][ T7061] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.358001][ T7061] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.358408][ T7061] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.358525][ T7061] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.358730][ T7061] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.358836][ T7061] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.359036][ T7061] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.359149][ T7061] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.359672][ T7061] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.359780][ T7061] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.359986][ T7061] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.360092][ T7061] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 214.360315][ T7061] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 214.360444][ T7061] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 214.360652][ T7061] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 214.360758][ T7061] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 214.360960][ T7061] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 214.361066][ T7061] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 214.361315][ T7061] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 214.361329][ T7061] Ratelimiting new instances of previous error [ 214.361464][ T7061] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 214.361480][ T7061] Ratelimiting new instances of previous error [ 214.375972][ T7061] done [ 214.378145][ T7061] bcachefs (loop2): going read-write [ 214.384248][ T7061] bcachefs (loop2): journal_replay... done [ 214.410779][ T7061] bcachefs (loop2): check_alloc_info... [ 214.413084][ T7061] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 214.413112][ T7061] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 214.413124][ T7061] gen 0 oldest_gen 0 data_type need_discard [ 214.413134][ T7061] journal_seq_nonempty 6 [ 214.413144][ T7061] journal_seq_empty 0 [ 214.413156][ T7061] need_discard 1 [ 214.413166][ T7061] need_inc_gen 1 [ 214.413176][ T7061] dirty_sectors 0 [ 214.413186][ T7061] stripe_sectors 0 [ 214.413196][ T7061] cached_sectors 0 [ 214.413206][ T7061] stripe 0 [ 214.413216][ T7061] stripe_redundancy 0 [ 214.413228][ T7061] io_time[READ] 1 [ 214.413238][ T7061] io_time[WRITE] 768 [ 214.413248][ T7061] fragmentation 0 [ 214.413258][ T7061] bp_start 8 [ 214.413267][ T7061] , fixing [ 214.428523][ T7061] done [ 214.433099][ T7061] bcachefs (loop2): check_lrus... done [ 214.434545][ T7061] bcachefs (loop2): check_btree_backpointers... done [ 214.437047][ T7061] bcachefs (loop2): check_backpointers_to_extents... done [ 214.441924][ T7061] bcachefs (loop2): check_extents_to_backpointers... [ 214.443435][ T7061] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 214.445429][ T7061] done [ 214.446122][ T7061] bcachefs (loop2): check_alloc_to_lru_refs... [ 214.447995][ T7061] bcachefs (loop2): missing fragmentation lru entry [ 214.448013][ T7061] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 214.448025][ T7061] gen 0 oldest_gen 0 data_type user [ 214.448036][ T7061] journal_seq_nonempty 5 [ 214.448046][ T7061] journal_seq_empty 134217728 [ 214.448056][ T7061] need_discard 1 [ 214.448068][ T7061] need_inc_gen 1 [ 214.448077][ T7061] dirty_sectors 16 [ 214.448088][ T7061] stripe_sectors 1802251 [ 214.448098][ T7061] cached_sectors 0 [ 214.448107][ T7061] stripe 0 [ 214.448124][ T7061] stripe_redundancy 0 [ 214.448134][ T7061] io_time[READ] 1 [ 214.448144][ T7061] io_time[WRITE] 512 [ 214.448154][ T7061] fragmentation 0 [ 214.448164][ T7061] bp_start 7 [ 214.448174][ T7061] , fixing [pid 7249] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7249] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7249] chdir("./file1") = 0 [pid 7249] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 214.452296][ T7061] done [ 214.454109][ T7061] bcachefs (loop2): bucket_gens_init... done ** 4 printk messages dropped ** [ 214.469475][ T7061] done ** 2 printk messages dropped ** [ 214.472530][ T7061] bcachefs (loop2): delete_dead_snapshots... done ** 12 printk messages dropped ** [ 214.474442][ T7061] bi_ctime=2780562352 ** 2 printk messages dropped ** [ 214.474471][ T7061] bi_uid=0 [ 214.474479][ T7061] bi_gid=0 [ 214.474488][ T7061] bi_nlink=0 [ 214.474497][ T7061] bi_generation=0 [pid 7249] ioctl(4, LOOP_CLR_FD) = 0 [pid 7249] close(4) = 0 [pid 7249] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7249] exit_group(0) = ? [pid 7249] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7249, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=43 /* 0.43 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./89", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./89", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 214.474507][ T7061] bi_dev=0 [ 214.474516][ T7061] bi_data_checksum=0 [ 214.474524][ T7061] bi_compression=0 [ 214.474535][ T7061] bi_project=0 [ 214.474544][ T7061] bi_background_compression=0 [ 214.474554][ T7061] bi_data_replicas=0 [ 214.474564][ T7061] bi_promote_target=0 [ 214.474573][ T7061] bi_foreground_target=64 [ 214.474583][ T7061] bi_background_target=1 [ 214.474593][ T7061] bi_erasure_code=0 [ 214.474603][ T7061] bi_fields_set=0 [ 214.474612][ T7061] bi_dir=0 [ 214.474621][ T7061] bi_dir_offset=32 [ 214.474630][ T7061] bi_subvol=0 [ 214.474639][ T7061] bi_parent_subvol=0 [ 214.474649][ T7061] bi_nocow=0 [ 214.474658][ T7061] bi_depth=0 [ 214.474667][ T7061] bi_inodes_32bit=0 [ 214.474677][ T7061] bi_casefold=0, fixing [ 214.476737][ T7061] done [ 214.477411][ T7061] bcachefs (loop2): check_extents... done [ 214.479034][ T7061] bcachefs (loop2): check_indirect_extents... done [ 214.481756][ T7061] bcachefs (loop2): check_dirents... [ 214.484185][ T7061] bcachefs (loop2): directory with missing backpointer [ 214.484202][ T7061] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 214.484217][ T7061] inum: 4098:4294967295 [ 214.484228][ T7061] mode=40755 [ 214.484238][ T7061] flags=(11300000) [ 214.484247][ T7061] journal_seq=22 [ 214.484258][ T7061] hash_seed=ece93825deac2443 [ 214.484268][ T7061] hash_type=siphash [ 214.484278][ T7061] bi_size=0 [ 214.484288][ T7061] bi_sectors=0 [ 214.484297][ T7061] bi_version=0 [ 214.484307][ T7061] bi_atime=2770562249 [ 214.484317][ T7061] bi_ctime=2780562352 [ 214.484327][ T7061] bi_mtime=2780562352 [ 214.484337][ T7061] bi_otime=2770562249 [ 214.484347][ T7061] bi_uid=0 [ 214.484356][ T7061] bi_gid=0 [ 214.484365][ T7061] bi_nlink=0 [ 214.484374][ T7061] bi_generation=0 [ 214.484384][ T7061] bi_dev=0 [ 214.484393][ T7061] bi_data_checksum=0 [ 214.484403][ T7061] bi_compression=0 [ 214.484414][ T7061] bi_project=0 [ 214.484423][ T7061] bi_background_compression=0 [ 214.484434][ T7061] bi_data_replicas=0 [ 214.484444][ T7061] bi_promote_target=0 [ 214.484454][ T7061] bi_foreground_target=64 [ 214.484464][ T7061] bi_background_target=1 [ 214.484474][ T7061] bi_erasure_code=0 [ 214.484484][ T7061] bi_fields_set=0 [ 214.484493][ T7061] bi_dir=0 [ 214.484502][ T7061] bi_dir_offset=0 [ 214.484514][ T7061] bi_subvol=0 [ 214.484523][ T7061] bi_parent_subvol=0 [ 214.484533][ T7061] bi_nocow=0 [ 214.484543][ T7061] bi_depth=0 [ 214.484552][ T7061] bi_inodes_32bit=0 [ 214.484562][ T7061] bi_casefold=0, fixing [ 214.493425][ T7061] done [ 214.494377][ T7061] bcachefs (loop2): check_xattrs... done [ 214.496311][ T7061] bcachefs (loop2): check_root... done [ 214.497906][ T7061] bcachefs (loop2): check_unreachable_inodes... done [ 214.498997][ T7061] bcachefs (loop2): check_subvolume_structure... done [ 214.500419][ T7061] bcachefs (loop2): check_directory_structure... done [ 214.501216][ T7061] bcachefs (loop2): check_nlinks... [ 214.501896][ T7061] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 214.503087][ T7061] done [ 214.503797][ T7061] bcachefs (loop2): check_rebalance_work... done [ 214.505201][ T7061] bcachefs (loop2): resume_logged_ops... done [ 214.506034][ T7061] bcachefs (loop2): delete_dead_inodes... done [ 214.516116][ T7061] bcachefs (loop2): set_fs_needs_rebalance... [ 214.524617][ T7070] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 214.524642][ T7070] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 214.527559][ T7061] done [ 214.528693][ T7061] bcachefs (loop2): check_extents_to_backpointers... [ 214.529924][ T7061] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 214.536450][ T7061] done [ 214.546559][ T7061] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 214.546584][ T7061] bcachefs (loop2): check_alloc_info... done [ 214.552108][ T7061] bcachefs (loop2): check_lrus... done [ 214.553311][ T7061] bcachefs (loop2): check_btree_backpointers... done [ 214.554532][ T7061] bcachefs (loop2): check_backpointers_to_extents... done [ 214.556056][ T7061] bcachefs (loop2): check_extents_to_backpointers... done [ 214.557789][ T7061] bcachefs (loop2): check_alloc_to_lru_refs... done [ 214.560848][ T7061] bcachefs (loop2): bucket_gens_init... done [ 214.563547][ T7061] bcachefs (loop2): check_snapshot_trees... done [ 214.564782][ T7061] bcachefs (loop2): check_snapshots... done [pid 5839] umount2("./89/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./89/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 214.565638][ T7061] bcachefs (loop2): check_subvols... done [ 214.566527][ T7061] bcachefs (loop2): check_subvol_children... done [ 214.567316][ T7061] bcachefs (loop2): delete_dead_snapshots... done [ 214.568152][ T7061] bcachefs (loop2): check_inodes... done [ 214.570211][ T7061] bcachefs (loop2): check_extents... done [ 214.571685][ T7061] bcachefs (loop2): check_indirect_extents... done [ 214.572915][ T7061] bcachefs (loop2): check_dirents... done [ 214.574469][ T7061] bcachefs (loop2): check_xattrs... done [pid 5839] newfstatat(AT_FDCWD, "./89/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./89/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./89/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./89/file1") = 0 [ 214.575373][ T7061] bcachefs (loop2): check_root... done [ 214.576225][ T7061] bcachefs (loop2): check_unreachable_inodes... done [ 214.577158][ T7061] bcachefs (loop2): check_subvolume_structure... done [ 214.577986][ T7061] bcachefs (loop2): check_directory_structure... done [ 214.578781][ T7061] bcachefs (loop2): check_nlinks... done [ 214.580979][ T7061] bcachefs (loop2): check_rebalance_work... done [ 214.581907][ T7061] bcachefs (loop2): resume_logged_ops... done [ 214.582706][ T7061] bcachefs (loop2): delete_dead_inodes... done [pid 5839] umount2("./89/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./89/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./89/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 214.584004][ T7061] bcachefs (loop2): set_fs_needs_rebalance... done [ 214.587493][ T7061] bcachefs (loop2): done starting filesystem [ 214.683088][ T5839] bcachefs (loop2): shutting down [ 214.683108][ T5839] bcachefs (loop2): going read-only [ 214.683139][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 214.721668][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 214.722656][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [pid 5839] close(3) = 0 [pid 5839] rmdir("./89") = 0 [pid 5839] mkdir("./90", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 214.723578][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 214.725409][ T5839] bcachefs (loop2): marking filesystem clean [ 214.725907][ T5902] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 214.725907][ T5902] rw journal devs: [ 214.787908][ T5839] bcachefs (loop2): shutdown complete [ 215.525911][ T7072] loop2: detected capacity change from 0 to 32768 [ 215.642376][ T7072] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7265 ./strace-static-x86_64: Process 7265 attached [pid 7265] set_robust_list(0x5555901c6760, 24) = 0 [pid 7265] chdir("./90") = 0 [ 215.642406][ T7072] allowing incompatible features above 0.0: (unknown version) [ 215.642420][ T7072] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 215.642446][ T7072] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 215.642601][ T7072] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 215.642846][ T7072] bcachefs (loop2): Version upgrade required: [pid 7265] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7265] setpgid(0, 0) = 0 [pid 7265] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7265] write(3, "1000", 4) = 4 [pid 7265] close(3) = 0 [pid 7265] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7265] write(1, "executing program\n", 18executing program ) = 18 [ 215.642846][ T7072] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 215.642846][ T7072] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7265] memfd_create("syzkaller", 0) = 3 [pid 7265] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 215.642846][ T7072] 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,check_rebalance_work,set_fs_needs_rebalance [ 215.663906][ T7072] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 215.663932][ T7072] size != 0, deleting [ 215.665040][ T7072] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 215.668085][ T7072] bcachefs (loop2): check_topology... done [ 215.679636][ T7072] bcachefs (loop2): accounting_read... done [ 215.743678][ T7072] bcachefs (loop2): alloc_read... done [ 215.744628][ T7072] bcachefs (loop2): snapshots_read... done [ 215.745476][ T7072] bcachefs (loop2): check_allocations... [ 215.747393][ T7072] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 215.747413][ T7072] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 215.750230][ T7072] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 215.750250][ T7072] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 215.753197][ T7072] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 215.753215][ T7072] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 215.754788][ T7072] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 215.754805][ T7072] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 215.757650][ T7072] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 215.757669][ T7072] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 215.758658][ T7072] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.758784][ T7072] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.760796][ T7072] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.760922][ T7072] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.761383][ T7072] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.761518][ T7072] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7265] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 215.761719][ T7072] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.761822][ T7072] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.762021][ T7072] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.762134][ T7072] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.762340][ T7072] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7265] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7265] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7265] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7265] close(3) = 0 [pid 7265] close(4) = 0 [pid 7265] mkdir("./file1", 0777) = 0 [ 215.762445][ T7072] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.762931][ T7072] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.763038][ T7072] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 215.763263][ T7072] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 215.763366][ T7072] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 215.763568][ T7072] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.763672][ T7072] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.763872][ T7072] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.763981][ T7072] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.764227][ T7072] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 215.764243][ T7072] Ratelimiting new instances of previous error [ 215.764370][ T7072] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 215.764384][ T7072] Ratelimiting new instances of previous error [ 215.777485][ T7072] done [ 215.780099][ T7072] bcachefs (loop2): going read-write [ 215.785561][ T7072] bcachefs (loop2): journal_replay... done [ 215.809878][ T7072] bcachefs (loop2): check_alloc_info... [ 215.811743][ T7072] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 215.811760][ T7072] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 215.811772][ T7072] gen 0 oldest_gen 0 data_type need_discard [ 215.811784][ T7072] journal_seq_nonempty 6 [ 215.811794][ T7072] journal_seq_empty 0 [ 215.811804][ T7072] need_discard 1 [ 215.811814][ T7072] need_inc_gen 1 [ 215.811824][ T7072] dirty_sectors 0 [ 215.811834][ T7072] stripe_sectors 0 [ 215.811844][ T7072] cached_sectors 0 [ 215.811854][ T7072] stripe 0 [ 215.811864][ T7072] stripe_redundancy 0 [ 215.811875][ T7072] io_time[READ] 1 [ 215.811883][ T7072] io_time[WRITE] 768 [ 215.811895][ T7072] fragmentation 0 [ 215.811904][ T7072] bp_start 8 [ 215.811914][ T7072] , fixing [ 215.827697][ T7072] done [ 215.833277][ T7072] bcachefs (loop2): check_lrus... done [ 215.834376][ T7072] bcachefs (loop2): check_btree_backpointers... done [ 215.835729][ T7072] bcachefs (loop2): check_backpointers_to_extents... done [ 215.839866][ T7072] bcachefs (loop2): check_extents_to_backpointers... [ 215.841260][ T7072] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 215.844612][ T7072] done [ 215.845408][ T7072] bcachefs (loop2): check_alloc_to_lru_refs... [ 215.847311][ T7072] bcachefs (loop2): missing fragmentation lru entry [ 215.847328][ T7072] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 215.847338][ T7072] gen 0 oldest_gen 0 data_type user [ 215.847351][ T7072] journal_seq_nonempty 5 [ 215.847361][ T7072] journal_seq_empty 134217728 [ 215.847371][ T7072] need_discard 1 [ 215.847381][ T7072] need_inc_gen 1 [ 215.847391][ T7072] dirty_sectors 16 [ 215.847401][ T7072] stripe_sectors 1802251 [ 215.847411][ T7072] cached_sectors 0 [ 215.847422][ T7072] stripe 0 [ 215.847432][ T7072] stripe_redundancy 0 [ 215.847442][ T7072] io_time[READ] 1 [ 215.847452][ T7072] io_time[WRITE] 512 [ 215.847462][ T7072] fragmentation 0 [ 215.847471][ T7072] bp_start 7 [ 215.847498][ T7072] , fixing [ 215.849016][ T7072] done [ 215.853827][ T7072] bcachefs (loop2): bucket_gens_init... done [ 215.856186][ T7072] bcachefs (loop2): check_snapshot_trees... done [ 215.856982][ T7072] bcachefs (loop2): check_snapshots... [ 215.857591][ T7072] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 215.857608][ T7072] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 215.868790][ T7072] done [ 215.869906][ T7072] bcachefs (loop2): check_subvols... done [ 215.871564][ T7072] bcachefs (loop2): check_subvol_children... done [ 215.872429][ T7072] bcachefs (loop2): delete_dead_snapshots... done [ 215.873174][ T7072] bcachefs (loop2): check_inodes... [ 215.874281][ T7072] bcachefs (loop2): inode points to missing dirent [ 215.874297][ T7072] inum: 4098:4294967295 [ 215.874308][ T7072] mode=40755 [ 215.874317][ T7072] flags=(15300000) [ 215.874326][ T7072] journal_seq=4 [ 215.874338][ T7072] hash_seed=ece93825deac2443 [ 215.874348][ T7072] hash_type=siphash [ 215.874357][ T7072] bi_size=0 [ 215.874367][ T7072] bi_sectors=0 [ 215.874376][ T7072] bi_version=0 [ 215.874385][ T7072] bi_atime=2770562249 [ 215.874395][ T7072] bi_ctime=2780562352 [ 215.874404][ T7072] bi_mtime=2780562352 [ 215.874414][ T7072] bi_otime=2770562249 [ 215.874424][ T7072] bi_uid=0 [ 215.874433][ T7072] bi_gid=0 [ 215.874906][ T7072] bi_nlink=0 [ 215.874916][ T7072] bi_generation=0 [ 215.874926][ T7072] bi_dev=0 [ 215.874935][ T7072] bi_data_checksum=0 [ 215.874945][ T7072] bi_compression=0 [ 215.874956][ T7072] bi_project=0 [ 215.874966][ T7072] bi_background_compression=0 [ 215.874976][ T7072] bi_data_replicas=0 [ 215.874986][ T7072] bi_promote_target=0 [ 215.874997][ T7072] bi_foreground_target=64 [ 215.875007][ T7072] bi_background_target=1 [ 215.875017][ T7072] bi_erasure_code=0 [pid 7265] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7265] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7265] chdir("./file1") = 0 [pid 7265] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7265] ioctl(4, LOOP_CLR_FD) = 0 [pid 7265] close(4) = 0 [pid 7265] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7265] exit_group(0) = ? [pid 7265] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7265, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./90", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./90", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 215.875028][ T7072] bi_fields_set=0 [ 215.875045][ T7072] bi_dir=0 [ 215.875055][ T7072] bi_dir_offset=32 [ 215.875064][ T7072] bi_subvol=0 [ 215.875073][ T7072] bi_parent_subvol=0 [ 215.875085][ T7072] bi_nocow=0 [ 215.875094][ T7072] bi_depth=0 [ 215.875103][ T7072] bi_inodes_32bit=0 [ 215.875113][ T7072] bi_casefold=0, fixing [ 215.876774][ T7072] done [ 215.877436][ T7072] bcachefs (loop2): check_extents... done [ 215.878887][ T7072] bcachefs (loop2): check_indirect_extents... done [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 215.881170][ T7072] bcachefs (loop2): check_dirents... [ 215.882848][ T7072] bcachefs (loop2): directory with missing backpointer [ 215.882864][ T7072] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 215.882879][ T7072] inum: 4098:4294967295 [ 215.882890][ T7072] mode=40755 [ 215.882899][ T7072] flags=(11300000) [ 215.882909][ T7072] journal_seq=22 [ 215.882918][ T7072] hash_seed=ece93825deac2443 [ 215.882929][ T7072] hash_type=siphash [ 215.882939][ T7072] bi_size=0 [ 215.882949][ T7072] bi_sectors=0 [ 215.882958][ T7072] bi_version=0 [ 215.882968][ T7072] bi_atime=2770562249 [ 215.882978][ T7072] bi_ctime=2780562352 [ 215.882987][ T7072] bi_mtime=2780562352 [ 215.882997][ T7072] bi_otime=2770562249 [ 215.883007][ T7072] bi_uid=0 [ 215.883017][ T7072] bi_gid=0 [ 215.883026][ T7072] bi_nlink=0 [ 215.883043][ T7072] bi_generation=0 [ 215.883052][ T7072] bi_dev=0 [ 215.883062][ T7072] bi_data_checksum=0 [ 215.883073][ T7072] bi_compression=0 [ 215.883082][ T7072] bi_project=0 [ 215.883092][ T7072] bi_background_compression=0 [ 215.883102][ T7072] bi_data_replicas=0 [ 215.883112][ T7072] bi_promote_target=0 [ 215.883122][ T7072] bi_foreground_target=64 [ 215.883132][ T7072] bi_background_target=1 [ 215.883142][ T7072] bi_erasure_code=0 [ 215.883152][ T7072] bi_fields_set=0 [ 215.883162][ T7072] bi_dir=0 [ 215.883171][ T7072] bi_dir_offset=0 [ 215.883180][ T7072] bi_subvol=0 [ 215.883190][ T7072] bi_parent_subvol=0 [ 215.883200][ T7072] bi_nocow=0 [ 215.883209][ T7072] bi_depth=0 [ 215.883218][ T7072] bi_inodes_32bit=0 [ 215.883228][ T7072] bi_casefold=0, fixing [ 215.890955][ T7072] done [ 215.891639][ T7072] bcachefs (loop2): check_xattrs... done [ 215.894682][ T7072] bcachefs (loop2): check_root... done [ 215.895672][ T7072] bcachefs (loop2): check_unreachable_inodes... done [ 215.897404][ T7072] bcachefs (loop2): check_subvolume_structure... done [ 215.898191][ T7072] bcachefs (loop2): check_directory_structure... done [ 215.899017][ T7072] bcachefs (loop2): check_nlinks... [ 215.900442][ T7072] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 215.901533][ T7072] done [ 215.902218][ T7072] bcachefs (loop2): check_rebalance_work... done [ 215.903349][ T7072] bcachefs (loop2): resume_logged_ops... done [ 215.904115][ T7072] bcachefs (loop2): delete_dead_inodes... done [ 215.914606][ T7072] bcachefs (loop2): set_fs_needs_rebalance... [ 215.923101][ T7081] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 215.923141][ T7081] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 215.925623][ T7072] done [ 215.926832][ T7072] bcachefs (loop2): check_extents_to_backpointers... [ 215.927808][ T7072] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 215.933968][ T7072] done [ 215.943444][ T7072] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 215.943470][ T7072] bcachefs (loop2): check_alloc_info... done [ 215.948077][ T7072] bcachefs (loop2): check_lrus... done [ 215.949304][ T7072] bcachefs (loop2): check_btree_backpointers... done [ 215.951403][ T7072] bcachefs (loop2): check_backpointers_to_extents... done [ 215.953053][ T7072] bcachefs (loop2): check_extents_to_backpointers... done [ 215.954753][ T7072] bcachefs (loop2): check_alloc_to_lru_refs... done [ 215.957067][ T7072] bcachefs (loop2): bucket_gens_init... done [ 215.960929][ T7072] bcachefs (loop2): check_snapshot_trees... done [ 215.962188][ T7072] bcachefs (loop2): check_snapshots... done [ 215.963304][ T7072] bcachefs (loop2): check_subvols... done [ 215.964260][ T7072] bcachefs (loop2): check_subvol_children... done [ 215.965133][ T7072] bcachefs (loop2): delete_dead_snapshots... done [ 215.965937][ T7072] bcachefs (loop2): check_inodes... done [ 215.967174][ T7072] bcachefs (loop2): check_extents... done [ 215.968644][ T7072] bcachefs (loop2): check_indirect_extents... done [ 215.970423][ T7072] bcachefs (loop2): check_dirents... done [ 215.972672][ T7072] bcachefs (loop2): check_xattrs... done [pid 5839] umount2("./90/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./90/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./90/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 215.973659][ T7072] bcachefs (loop2): check_root... done [ 215.974529][ T7072] bcachefs (loop2): check_unreachable_inodes... done [ 215.975482][ T7072] bcachefs (loop2): check_subvolume_structure... done [ 215.976368][ T7072] bcachefs (loop2): check_directory_structure... done [ 215.977199][ T7072] bcachefs (loop2): check_nlinks... done [ 215.978434][ T7072] bcachefs (loop2): check_rebalance_work... done [ 215.980410][ T7072] bcachefs (loop2): resume_logged_ops... done [ 215.981115][ T7072] bcachefs (loop2): delete_dead_inodes... done [pid 5839] umount2("./90/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./90/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./90/file1") = 0 [pid 5839] umount2("./90/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 215.982226][ T7072] bcachefs (loop2): set_fs_needs_rebalance... done [ 215.985782][ T7072] bcachefs (loop2): done starting filesystem [ 216.072333][ T5839] bcachefs (loop2): shutting down [ 216.072354][ T5839] bcachefs (loop2): going read-only [ 216.072383][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 216.111526][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 216.112430][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [pid 5839] newfstatat(AT_FDCWD, "./90/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./90/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./90") = 0 [pid 5839] mkdir("./91", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 216.113315][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 216.115129][ T5839] bcachefs (loop2): marking filesystem clean [ 216.115617][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 216.115617][ T5152] rw journal devs: [ 216.163769][ T5839] bcachefs (loop2): shutdown complete [ 216.985008][ T7083] loop2: detected capacity change from 0 to 32768 [ 217.133597][ T7083] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7276 ./strace-static-x86_64: Process 7276 attached [pid 7276] set_robust_list(0x5555901c6760, 24) = 0 [ 217.133624][ T7083] allowing incompatible features above 0.0: (unknown version) [ 217.133639][ T7083] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 217.133667][ T7083] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 217.133794][ T7083] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 217.134039][ T7083] bcachefs (loop2): Version upgrade required: [pid 7276] chdir("./91") = 0 [pid 7276] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7276] setpgid(0, 0) = 0 [pid 7276] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7276] write(3, "1000", 4) = 4 [pid 7276] close(3) = 0 [pid 7276] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7276] write(1, "executing program\n", 18) = 18 [ 217.134039][ T7083] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 217.134039][ T7083] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7276] memfd_create("syzkaller", 0) = 3 [pid 7276] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 217.134039][ T7083] 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,check_rebalance_work,set_fs_needs_rebalance [ 217.153475][ T7083] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 217.153502][ T7083] size != 0, deleting [ 217.154669][ T7083] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 217.157974][ T7083] bcachefs (loop2): check_topology... done [ 217.160332][ T7083] bcachefs (loop2): accounting_read... done [ 217.193578][ T7083] bcachefs (loop2): alloc_read... done [ 217.194549][ T7083] bcachefs (loop2): snapshots_read... done [ 217.195372][ T7083] bcachefs (loop2): check_allocations... [ 217.197303][ T7083] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 217.197323][ T7083] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 217.200172][ T7083] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 217.200191][ T7083] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 217.201653][ T7083] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 217.201671][ T7083] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 217.203250][ T7083] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 217.203268][ T7083] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 217.206223][ T7083] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 217.206242][ T7083] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 217.207189][ T7083] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.207338][ T7083] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.207876][ T7083] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.207982][ T7083] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.208386][ T7083] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.208488][ T7083] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7276] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 217.208681][ T7083] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.208807][ T7083] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.209015][ T7083] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.209130][ T7083] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7276] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7276] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7276] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7276] close(3) = 0 [pid 7276] close(4) = 0 [pid 7276] mkdir("./file1", 0777) = 0 [ 217.212762][ T7083] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.212886][ T7083] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.213104][ T7083] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.213213][ T7083] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 217.213431][ T7083] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 217.213539][ T7083] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 217.213737][ T7083] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 217.213842][ T7083] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 217.214052][ T7083] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 217.214169][ T7083] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 217.214398][ T7083] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 217.214415][ T7083] Ratelimiting new instances of previous error [ 217.214543][ T7083] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 217.214836][ T7083] Ratelimiting new instances of previous error [ 217.228110][ T7083] done [ 217.230690][ T7083] bcachefs (loop2): going read-write [ 217.236348][ T7083] bcachefs (loop2): journal_replay... done [ 217.263817][ T7083] bcachefs (loop2): check_alloc_info... [ 217.265681][ T7083] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 217.265699][ T7083] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 217.265710][ T7083] gen 0 oldest_gen 0 data_type need_discard [ 217.265721][ T7083] journal_seq_nonempty 6 [ 217.265731][ T7083] journal_seq_empty 0 [ 217.265740][ T7083] need_discard 1 [ 217.265750][ T7083] need_inc_gen 1 [ 217.265761][ T7083] dirty_sectors 0 [ 217.265769][ T7083] stripe_sectors 0 [ 217.265779][ T7083] cached_sectors 0 [ 217.265791][ T7083] stripe 0 [ 217.265801][ T7083] stripe_redundancy 0 [ 217.265810][ T7083] io_time[READ] 1 [ 217.265821][ T7083] io_time[WRITE] 768 [ 217.265831][ T7083] fragmentation 0 [ 217.265841][ T7083] bp_start 8 [ 217.265851][ T7083] , fixing [ 217.282208][ T7083] done [ 217.284973][ T7083] bcachefs (loop2): check_lrus... done [ 217.289704][ T7083] bcachefs (loop2): check_btree_backpointers... done [ 217.291435][ T7083] bcachefs (loop2): check_backpointers_to_extents... done [ 217.296070][ T7083] bcachefs (loop2): check_extents_to_backpointers... [ 217.297454][ T7083] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 217.298879][ T7083] done [ 217.300394][ T7083] bcachefs (loop2): check_alloc_to_lru_refs... [ 217.302608][ T7083] bcachefs (loop2): missing fragmentation lru entry [ 217.302625][ T7083] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 217.302638][ T7083] gen 0 oldest_gen 0 data_type user [ 217.302649][ T7083] journal_seq_nonempty 5 [ 217.302659][ T7083] journal_seq_empty 134217728 [ 217.302669][ T7083] need_discard 1 [ 217.302679][ T7083] need_inc_gen 1 [ 217.302689][ T7083] dirty_sectors 16 [ 217.302699][ T7083] stripe_sectors 1802251 [ 217.302709][ T7083] cached_sectors 0 [ 217.302720][ T7083] stripe 0 [ 217.302730][ T7083] stripe_redundancy 0 [ 217.302740][ T7083] io_time[READ] 1 [ 217.302750][ T7083] io_time[WRITE] 512 [ 217.302760][ T7083] fragmentation 0 [ 217.302769][ T7083] bp_start 7 [ 217.302779][ T7083] , fixing [ 217.304194][ T7083] done [ 217.305464][ T7083] bcachefs (loop2): bucket_gens_init... done [ 217.308028][ T7083] bcachefs (loop2): check_snapshot_trees... done [ 217.308833][ T7083] bcachefs (loop2): check_snapshots... [ 217.310156][ T7083] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 217.310176][ T7083] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 217.323702][ T7083] done [ 217.324285][ T7083] bcachefs (loop2): check_subvols... done [ 217.325945][ T7083] bcachefs (loop2): check_subvol_children... done [ 217.326884][ T7083] bcachefs (loop2): delete_dead_snapshots... done [ 217.327692][ T7083] bcachefs (loop2): check_inodes... [ 217.329860][ T7083] bcachefs (loop2): inode points to missing dirent [ 217.329877][ T7083] inum: 4098:4294967295 [ 217.329888][ T7083] mode=40755 [ 217.329897][ T7083] flags=(15300000) [ 217.329907][ T7083] journal_seq=4 [ 217.329917][ T7083] hash_seed=ece93825deac2443 [ 217.329927][ T7083] hash_type=siphash [ 217.329935][ T7083] bi_size=0 [ 217.329944][ T7083] bi_sectors=0 [ 217.329953][ T7083] bi_version=0 [ 217.329962][ T7083] bi_atime=2770562249 [ 217.329973][ T7083] bi_ctime=2780562352 [ 217.329982][ T7083] bi_mtime=2780562352 [ 217.329992][ T7083] bi_otime=2770562249 ** 7 printk messages dropped ** [ 217.330069][ T7083] bi_project=0 [pid 7276] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7276] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7276] chdir("./file1") = 0 [pid 7276] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7276] ioctl(4, LOOP_CLR_FD) = 0 [pid 7276] close(4) = 0 [pid 7276] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7276] exit_group(0) = ? [pid 7276] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7276, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./91", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./91", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 ** 5 printk messages dropped ** [ 217.330129][ T7083] bi_erasure_code=0 [ 217.330139][ T7083] bi_fields_set=0 [ 217.330149][ T7083] bi_dir=0 [ 217.330158][ T7083] bi_dir_offset=32 [ 217.330168][ T7083] bi_subvol=0 [ 217.330177][ T7083] bi_parent_subvol=0 [ 217.330186][ T7083] bi_nocow=0 [ 217.330196][ T7083] bi_depth=0 [ 217.330205][ T7083] bi_inodes_32bit=0 [ 217.330214][ T7083] bi_casefold=0, fixing [ 217.331776][ T7083] done [ 217.332407][ T7083] bcachefs (loop2): check_extents... done [ 217.333928][ T7083] bcachefs (loop2): check_indirect_extents... done [ 217.334757][ T7083] bcachefs (loop2): check_dirents... [ 217.336481][ T7083] bcachefs (loop2): directory with missing backpointer [ 217.336498][ T7083] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 217.336512][ T7083] inum: 4098:4294967295 [ 217.336522][ T7083] mode=40755 [ 217.336531][ T7083] flags=(11300000) [ 217.336541][ T7083] journal_seq=22 [ 217.336550][ T7083] hash_seed=ece93825deac2443 [ 217.336562][ T7083] hash_type=siphash [ 217.336572][ T7083] bi_size=0 [ 217.336581][ T7083] bi_sectors=0 [ 217.336597][ T7083] bi_version=0 [ 217.336606][ T7083] bi_atime=2770562249 [ 217.336616][ T7083] bi_ctime=2780562352 [ 217.336627][ T7083] bi_mtime=2780562352 [ 217.336636][ T7083] bi_otime=2770562249 [ 217.336646][ T7083] bi_uid=0 [ 217.336655][ T7083] bi_gid=0 [ 217.336664][ T7083] bi_nlink=0 [ 217.336673][ T7083] bi_generation=0 [ 217.336683][ T7083] bi_dev=0 [ 217.336691][ T7083] bi_data_checksum=0 [ 217.336711][ T7083] bi_compression=0 [ 217.336721][ T7083] bi_project=0 [ 217.336731][ T7083] bi_background_compression=0 [ 217.336741][ T7083] bi_data_replicas=0 [ 217.336751][ T7083] bi_promote_target=0 [ 217.336762][ T7083] bi_foreground_target=64 [ 217.336772][ T7083] bi_background_target=1 [ 217.336782][ T7083] bi_erasure_code=0 [ 217.336792][ T7083] bi_fields_set=0 [ 217.336801][ T7083] bi_dir=0 [ 217.336811][ T7083] bi_dir_offset=0 [ 217.336821][ T7083] bi_subvol=0 [ 217.336830][ T7083] bi_parent_subvol=0 [ 217.336840][ T7083] bi_nocow=0 [ 217.336848][ T7083] bi_depth=0 [ 217.336858][ T7083] bi_inodes_32bit=0 [ 217.336869][ T7083] bi_casefold=0, fixing [ 217.338970][ T7083] done [ 217.341750][ T7083] bcachefs (loop2): check_xattrs... done [ 217.344837][ T7083] bcachefs (loop2): check_root... done [ 217.348476][ T7083] bcachefs (loop2): check_unreachable_inodes... done [ 217.350887][ T7083] bcachefs (loop2): check_subvolume_structure... done [ 217.352689][ T7083] bcachefs (loop2): check_directory_structure... done [ 217.353430][ T7083] bcachefs (loop2): check_nlinks... [ 217.354144][ T7083] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 217.357144][ T7083] done [ 217.357844][ T7083] bcachefs (loop2): check_rebalance_work... done [ 217.359058][ T7083] bcachefs (loop2): resume_logged_ops... done [ 217.360189][ T7083] bcachefs (loop2): delete_dead_inodes... done [ 217.369015][ T7083] bcachefs (loop2): set_fs_needs_rebalance... done [ 217.378090][ T7092] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 217.378109][ T7092] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 217.380224][ T7083] bcachefs (loop2): check_extents_to_backpointers... [ 217.381198][ T7083] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 217.389646][ T7083] done [ 217.404450][ T7083] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 217.404475][ T7083] bcachefs (loop2): check_alloc_info... done [ 217.420086][ T7083] bcachefs (loop2): check_lrus... done [ 217.421198][ T7083] bcachefs (loop2): check_btree_backpointers... done [ 217.422374][ T7083] bcachefs (loop2): check_backpointers_to_extents... done [ 217.423780][ T7083] bcachefs (loop2): check_extents_to_backpointers... done [ 217.425484][ T7083] bcachefs (loop2): check_alloc_to_lru_refs... done [ 217.427662][ T7083] bcachefs (loop2): bucket_gens_init... done [pid 5839] umount2("./91/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./91/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./91/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./91/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./91/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./91/file1") = 0 [ 217.431358][ T7083] bcachefs (loop2): check_snapshot_trees... done [ 217.432611][ T7083] bcachefs (loop2): check_snapshots... done [ 217.433588][ T7083] bcachefs (loop2): check_subvols... done [ 217.434313][ T7083] bcachefs (loop2): check_subvol_children... done [ 217.435096][ T7083] bcachefs (loop2): delete_dead_snapshots... done [ 217.435740][ T7083] bcachefs (loop2): check_inodes... done [ 217.436853][ T7083] bcachefs (loop2): check_extents... done [ 217.441497][ T7083] bcachefs (loop2): check_indirect_extents... done [pid 5839] umount2("./91/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./91/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./91/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./91") = 0 [ 217.449704][ T7083] bcachefs (loop2): check_dirents... done [ 217.451946][ T7083] bcachefs (loop2): check_xattrs... done [ 217.453147][ T7083] bcachefs (loop2): check_root... done [ 217.453944][ T7083] bcachefs (loop2): check_unreachable_inodes... done [ 217.454845][ T7083] bcachefs (loop2): check_subvolume_structure... done [ 217.455610][ T7083] bcachefs (loop2): check_directory_structure... done [ 217.456284][ T7083] bcachefs (loop2): check_nlinks... done [ 217.457406][ T7083] bcachefs (loop2): check_rebalance_work... done [ 217.458242][ T7083] bcachefs (loop2): resume_logged_ops... done [pid 5839] mkdir("./92", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7287 ./strace-static-x86_64: Process 7287 attached [pid 7287] set_robust_list(0x5555901c6760, 24) = 0 [ 217.458924][ T7083] bcachefs (loop2): delete_dead_inodes... done [ 217.460611][ T7083] bcachefs (loop2): set_fs_needs_rebalance... done [ 217.472679][ T7083] bcachefs (loop2): done starting filesystem [ 217.560118][ T5839] bcachefs (loop2): shutting down [ 217.560135][ T5839] bcachefs (loop2): going read-only [ 217.560161][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 217.571632][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [pid 7287] chdir("./92") = 0 [pid 7287] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7287] setpgid(0, 0) = 0 [pid 7287] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 217.571632][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 217.571817][ T87] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 217.571834][ T87] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 217.571855][ T87] loop2 checksum error [ 217.601226][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [pid 7287] write(3, "1000", 4) = 4 [pid 7287] close(3) = 0 [pid 7287] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7287] write(1, "executing program\n", 18executing program ) = 18 [pid 7287] memfd_create("syzkaller", 0) = 3 [pid 7287] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 217.605483][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 217.606383][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 217.608185][ T5839] bcachefs (loop2): marking filesystem clean [ 217.667214][ T5839] bcachefs (loop2): shutdown complete [ 218.458507][ T7094] loop2: detected capacity change from 0 to 32768 [ 218.585261][ T7094] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 218.585289][ T7094] allowing incompatible features above 0.0: (unknown version) [ 218.585303][ T7094] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 218.585333][ T7094] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 218.585459][ T7094] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 218.585697][ T7094] bcachefs (loop2): Version upgrade required: [ 218.585697][ T7094] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 218.585697][ T7094] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 218.585697][ T7094] 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,check_rebalance_work,set_fs_needs_rebalance [ 218.606223][ T7094] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 218.606248][ T7094] size != 0, deleting [ 218.607348][ T7094] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 218.611323][ T7094] bcachefs (loop2): check_topology... done [ 218.613233][ T7094] bcachefs (loop2): accounting_read... done [ 218.660636][ T7094] bcachefs (loop2): alloc_read... done [ 218.661534][ T7094] bcachefs (loop2): snapshots_read... done [ 218.662393][ T7094] bcachefs (loop2): check_allocations... [ 218.664520][ T7094] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 218.664540][ T7094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 218.666592][ T7094] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 218.666610][ T7094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 218.667989][ T7094] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 218.668006][ T7094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 218.671149][ T7094] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 7287] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7287] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7287] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 218.671167][ T7094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 218.674634][ T7094] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 218.674652][ T7094] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 218.675603][ T7094] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7287] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7287] close(3) = 0 [pid 7287] close(4) = 0 [pid 7287] mkdir("./file1", 0777) = 0 [ 218.675737][ T7094] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.676294][ T7094] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.676398][ T7094] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.676790][ T7094] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.676893][ T7094] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.677122][ T7094] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.677228][ T7094] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.677429][ T7094] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.677533][ T7094] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.677746][ T7094] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.677853][ T7094] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.678057][ T7094] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.678163][ T7094] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 218.678365][ T7094] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 218.678470][ T7094] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 218.678670][ T7094] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 218.678783][ T7094] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 218.678991][ T7094] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 218.679093][ T7094] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 218.682350][ T7094] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 218.682367][ T7094] Ratelimiting new instances of previous error [ 218.682498][ T7094] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 218.682515][ T7094] Ratelimiting new instances of previous error [ 218.694255][ T7094] done [ 218.696443][ T7094] bcachefs (loop2): going read-write [ 218.703073][ T7094] bcachefs (loop2): journal_replay... done [ 218.730103][ T7094] bcachefs (loop2): check_alloc_info... [ 218.731885][ T7094] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 218.731902][ T7094] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 218.731913][ T7094] gen 0 oldest_gen 0 data_type need_discard [ 218.731924][ T7094] journal_seq_nonempty 6 [ 218.731933][ T7094] journal_seq_empty 0 [ 218.731942][ T7094] need_discard 1 [ 218.731953][ T7094] need_inc_gen 1 [ 218.731962][ T7094] dirty_sectors 0 [ 218.731972][ T7094] stripe_sectors 0 [ 218.731981][ T7094] cached_sectors 0 [ 218.731990][ T7094] stripe 0 [ 218.732001][ T7094] stripe_redundancy 0 [ 218.732010][ T7094] io_time[READ] 1 [ 218.732019][ T7094] io_time[WRITE] 768 [ 218.732029][ T7094] fragmentation 0 [ 218.732039][ T7094] bp_start 8 [ 218.732050][ T7094] , fixing [ 218.748827][ T7094] done [ 218.752970][ T7094] bcachefs (loop2): check_lrus... done [ 218.753817][ T7094] bcachefs (loop2): check_btree_backpointers... done [ 218.755618][ T7094] bcachefs (loop2): check_backpointers_to_extents... done [ 218.760818][ T7094] bcachefs (loop2): check_extents_to_backpointers... [ 218.762162][ T7094] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 218.763829][ T7094] done [ 218.764565][ T7094] bcachefs (loop2): check_alloc_to_lru_refs... [ 218.768653][ T7094] bcachefs (loop2): missing fragmentation lru entry [ 218.768670][ T7094] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 218.768681][ T7094] gen 0 oldest_gen 0 data_type user [ 218.768700][ T7094] journal_seq_nonempty 5 [ 218.768710][ T7094] journal_seq_empty 134217728 [ 218.768721][ T7094] need_discard 1 [ 218.768731][ T7094] need_inc_gen 1 [ 218.768742][ T7094] dirty_sectors 16 [ 218.768752][ T7094] stripe_sectors 1802251 ** 4 printk messages dropped ** [ 218.768801][ T7094] io_time[WRITE] 512 ** 6 printk messages dropped ** [ 218.777600][ T7094] bcachefs (loop2): check_snapshots... ** 4 printk messages dropped ** [pid 7287] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7287] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7287] chdir("./file1") = 0 [pid 7287] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7287] ioctl(4, LOOP_CLR_FD) = 0 [pid 7287] close(4) = 0 [pid 7287] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7287] exit_group(0) = ? [pid 7287] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7287, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./92", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./92", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 218.791784][ T7094] bcachefs (loop2): check_subvol_children... done ** 12 printk messages dropped ** [ 218.794890][ T7094] bi_atime=2770562249 [ 218.794899][ T7094] bi_ctime=2780562352 [ 218.794908][ T7094] bi_mtime=2780562352 [ 218.794919][ T7094] bi_otime=2770562249 [ 218.794930][ T7094] bi_uid=0 [ 218.794939][ T7094] bi_gid=0 [ 218.794948][ T7094] bi_nlink=0 [ 218.794987][ T7094] bi_generation=0 [ 218.794997][ T7094] bi_dev=0 [ 218.795006][ T7094] bi_data_checksum=0 [ 218.795015][ T7094] bi_compression=0 [ 218.795025][ T7094] bi_project=0 [ 218.795034][ T7094] bi_background_compression=0 [ 218.795045][ T7094] bi_data_replicas=0 [ 218.795054][ T7094] bi_promote_target=0 [ 218.795064][ T7094] bi_foreground_target=64 [ 218.795074][ T7094] bi_background_target=1 [ 218.795084][ T7094] bi_erasure_code=0 [ 218.795094][ T7094] bi_fields_set=0 [ 218.795103][ T7094] bi_dir=0 [ 218.795112][ T7094] bi_dir_offset=32 [ 218.795121][ T7094] bi_subvol=0 [ 218.795131][ T7094] bi_parent_subvol=0 [ 218.795141][ T7094] bi_nocow=0 [ 218.795150][ T7094] bi_depth=0 [ 218.795159][ T7094] bi_inodes_32bit=0 [ 218.795170][ T7094] bi_casefold=0, fixing [ 218.797482][ T7094] done [ 218.798205][ T7094] bcachefs (loop2): check_extents... done [ 218.802290][ T7094] bcachefs (loop2): check_indirect_extents... done [ 218.803004][ T7094] bcachefs (loop2): check_dirents... [ 218.804754][ T7094] bcachefs (loop2): directory with missing backpointer [ 218.804771][ T7094] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 218.804786][ T7094] inum: 4098:4294967295 [ 218.804797][ T7094] mode=40755 [ 218.804806][ T7094] flags=(11300000) [ 218.804816][ T7094] journal_seq=22 [ 218.804826][ T7094] hash_seed=ece93825deac2443 [ 218.804836][ T7094] hash_type=siphash [ 218.804846][ T7094] bi_size=0 [ 218.804855][ T7094] bi_sectors=0 [ 218.804864][ T7094] bi_version=0 [ 218.804873][ T7094] bi_atime=2770562249 [ 218.804883][ T7094] bi_ctime=2780562352 [ 218.804893][ T7094] bi_mtime=2780562352 [ 218.804903][ T7094] bi_otime=2770562249 [ 218.804912][ T7094] bi_uid=0 [ 218.804922][ T7094] bi_gid=0 [ 218.804931][ T7094] bi_nlink=0 [ 218.804940][ T7094] bi_generation=0 [ 218.804951][ T7094] bi_dev=0 [ 218.804960][ T7094] bi_data_checksum=0 [ 218.804970][ T7094] bi_compression=0 [ 218.804980][ T7094] bi_project=0 [ 218.804989][ T7094] bi_background_compression=0 [ 218.805000][ T7094] bi_data_replicas=0 [ 218.805009][ T7094] bi_promote_target=0 [ 218.805019][ T7094] bi_foreground_target=64 [ 218.805029][ T7094] bi_background_target=1 [ 218.805039][ T7094] bi_erasure_code=0 [ 218.805049][ T7094] bi_fields_set=0 [ 218.805058][ T7094] bi_dir=0 [ 218.805067][ T7094] bi_dir_offset=0 [ 218.805077][ T7094] bi_subvol=0 [ 218.805088][ T7094] bi_parent_subvol=0 [ 218.805098][ T7094] bi_nocow=0 [ 218.805107][ T7094] bi_depth=0 [ 218.805117][ T7094] bi_inodes_32bit=0 [ 218.805127][ T7094] bi_casefold=0, fixing [ 218.812870][ T7094] done [ 218.813509][ T7094] bcachefs (loop2): check_xattrs... done [ 218.815861][ T7094] bcachefs (loop2): check_root... done [ 218.817374][ T7094] bcachefs (loop2): check_unreachable_inodes... done [ 218.818445][ T7094] bcachefs (loop2): check_subvolume_structure... done [ 218.819704][ T7094] bcachefs (loop2): check_directory_structure... done [ 218.821022][ T7094] bcachefs (loop2): check_nlinks... [ 218.821738][ T7094] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 218.822840][ T7094] done [ 218.823503][ T7094] bcachefs (loop2): check_rebalance_work... done [ 218.824737][ T7094] bcachefs (loop2): resume_logged_ops... done [ 218.825552][ T7094] bcachefs (loop2): delete_dead_inodes... done [ 218.835025][ T7094] bcachefs (loop2): set_fs_needs_rebalance... [ 218.842985][ T7103] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 218.843009][ T7103] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 218.846265][ T7094] done [pid 5839] umount2("./92/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./92/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./92/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./92/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./92/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./92/file1") = 0 [pid 5839] umount2("./92/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./92/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./92/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 218.846959][ T7094] bcachefs (loop2): check_extents_to_backpointers... [ 218.847940][ T7094] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 218.851025][ T7103] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 218.854371][ T7094] done [ 218.865705][ T7094] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 218.865728][ T7094] bcachefs (loop2): check_alloc_info... done [ 218.870767][ T7094] bcachefs (loop2): check_lrus... done [pid 5839] close(3) = 0 [pid 5839] rmdir("./92") = 0 [pid 5839] mkdir("./93", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7298 attached , child_tidptr=0x5555901c6750) = 7298 [ 218.871969][ T7094] bcachefs (loop2): check_btree_backpointers... done [ 218.873204][ T7094] bcachefs (loop2): check_backpointers_to_extents... done [ 218.875271][ T7094] bcachefs (loop2): check_extents_to_backpointers... [ 218.876153][ T7094] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 218.877329][ T7094] done [ 218.877341][ T7094] bcachefs (loop2): check_alloc_to_lru_refs... done [ 218.880241][ T7094] bcachefs (loop2): bucket_gens_init... done [ 218.882646][ T7094] bcachefs (loop2): check_snapshot_trees... done [pid 7298] set_robust_list(0x5555901c6760, 24) = 0 [pid 7298] chdir("./93") = 0 [pid 7298] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7298] setpgid(0, 0) = 0 [pid 7298] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7298] write(3, "1000", 4) = 4 [pid 7298] close(3) = 0 [pid 7298] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7298] write(1, "executing program\n", 18executing program ) = 18 [ 218.883820][ T7094] bcachefs (loop2): check_snapshots... done [ 218.885223][ T7094] bcachefs (loop2): check_subvols... done [ 218.886124][ T7094] bcachefs (loop2): check_subvol_children... done [ 218.886923][ T7094] bcachefs (loop2): delete_dead_snapshots... done [ 218.887644][ T7094] bcachefs (loop2): check_inodes... done [ 218.888826][ T7094] bcachefs (loop2): check_extents... done [ 218.891188][ T7094] bcachefs (loop2): check_indirect_extents... done [ 218.891945][ T7094] bcachefs (loop2): check_dirents... done [pid 7298] memfd_create("syzkaller", 0) = 3 [pid 7298] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 218.893496][ T7094] bcachefs (loop2): check_xattrs... done [ 218.894420][ T7094] bcachefs (loop2): check_root... done [ 218.895758][ T7094] bcachefs (loop2): check_unreachable_inodes... done [ 218.896713][ T7094] bcachefs (loop2): check_subvolume_structure... done [ 218.897465][ T7094] bcachefs (loop2): check_directory_structure... done [ 218.898186][ T7094] bcachefs (loop2): check_nlinks... done [ 218.900511][ T7094] bcachefs (loop2): check_rebalance_work... done [ 218.901342][ T7094] bcachefs (loop2): resume_logged_ops... done [ 218.902097][ T7094] bcachefs (loop2): delete_dead_inodes... done [ 218.902931][ T7094] bcachefs (loop2): set_fs_needs_rebalance... done [ 218.906973][ T7094] bcachefs (loop2): done starting filesystem [ 218.971873][ T5839] bcachefs (loop2): shutting down [ 218.971894][ T5839] bcachefs (loop2): going read-only [ 218.971924][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 219.012639][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 219.014734][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 219.015610][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 219.017411][ T5839] bcachefs (loop2): marking filesystem clean [ 219.075354][ T5839] bcachefs (loop2): shutdown complete [ 219.868042][ T7105] loop2: detected capacity change from 0 to 32768 [ 220.002762][ T7105] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 220.002789][ T7105] allowing incompatible features above 0.0: (unknown version) [ 220.002802][ T7105] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 220.002831][ T7105] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 220.002966][ T7105] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 220.003206][ T7105] bcachefs (loop2): Version upgrade required: [ 220.003206][ T7105] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 220.003206][ T7105] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 220.003206][ T7105] 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,check_rebalance_work,set_fs_needs_rebalance [pid 7298] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 220.022221][ T7105] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 220.022248][ T7105] size != 0, deleting [ 220.023132][ T7105] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 220.026378][ T7105] bcachefs (loop2): check_topology... done [ 220.027723][ T7105] bcachefs (loop2): accounting_read... done [ 220.054558][ T7105] bcachefs (loop2): alloc_read... done [ 220.055557][ T7105] bcachefs (loop2): snapshots_read... done [pid 7298] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7298] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7298] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7298] close(3) = 0 [pid 7298] close(4) = 0 [pid 7298] mkdir("./file1", 0777) = 0 [ 220.056390][ T7105] bcachefs (loop2): check_allocations... [ 220.058390][ T7105] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 220.058409][ T7105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 220.061465][ T7105] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 220.061484][ T7105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 220.063267][ T7105] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 220.063283][ T7105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 220.065186][ T7105] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 220.065204][ T7105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 220.067746][ T7105] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 220.067764][ T7105] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 220.068707][ T7105] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.068837][ T7105] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.070563][ T7105] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.070684][ T7105] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.071108][ T7105] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.071213][ T7105] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.071414][ T7105] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.071523][ T7105] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.071731][ T7105] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.071838][ T7105] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.072040][ T7105] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.072147][ T7105] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.072350][ T7105] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.072495][ T7105] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 220.072704][ T7105] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 220.072805][ T7105] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 220.073016][ T7105] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 220.073120][ T7105] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 220.073339][ T7105] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 220.073442][ T7105] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 220.073682][ T7105] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 220.073698][ T7105] Ratelimiting new instances of previous error [ 220.073839][ T7105] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 220.073855][ T7105] Ratelimiting new instances of previous error [ 220.087904][ T7105] done [ 220.090528][ T7105] bcachefs (loop2): going read-write [ 220.095781][ T7105] bcachefs (loop2): journal_replay... done [ 220.122578][ T7105] bcachefs (loop2): check_alloc_info... [ 220.124942][ T7105] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 220.124960][ T7105] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: ** 7 printk messages dropped ** [ 220.125046][ T7105] cached_sectors 0 ** 4 printk messages dropped ** [ 220.125095][ T7105] fragmentation 0 [ 220.125105][ T7105] bp_start 8 [ 220.125115][ T7105] , fixing ** 4 printk messages dropped ** [ 220.154079][ T7105] bcachefs (loop2): check_extents_to_backpointers... ** 1 printk messages dropped ** [ 220.158057][ T7105] done [ 220.158741][ T7105] bcachefs (loop2): check_alloc_to_lru_refs... [pid 7298] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7298] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 ** 1 printk messages dropped ** [ 220.162179][ T7105] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: ** 5 printk messages dropped ** [ 220.162241][ T7105] dirty_sectors 16 ** 3 printk messages dropped ** [ 220.162279][ T7105] stripe_redundancy 0 ** 8 printk messages dropped ** [ 220.168815][ T7105] bcachefs (loop2): check_snapshots... ** 6 printk messages dropped ** [ 220.186462][ T7105] bcachefs (loop2): check_inodes... ** 4 printk messages dropped ** [ 220.188103][ T7105] journal_seq=4 [pid 7298] chdir("./file1") = 0 [pid 7298] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7298] ioctl(4, LOOP_CLR_FD) = 0 [pid 7298] close(4) = 0 [pid 7298] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7298] exit_group(0) = ? [pid 7298] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7298, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./93", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./93", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 ** 1 printk messages dropped ** [ 220.188121][ T7105] hash_type=siphash [ 220.188131][ T7105] bi_size=0 [ 220.188140][ T7105] bi_sectors=0 [ 220.188149][ T7105] bi_version=0 [ 220.188158][ T7105] bi_atime=2770562249 [ 220.188167][ T7105] bi_ctime=2780562352 [ 220.188176][ T7105] bi_mtime=2780562352 [ 220.188186][ T7105] bi_otime=2770562249 [ 220.188195][ T7105] bi_uid=0 [ 220.188204][ T7105] bi_gid=0 [ 220.188213][ T7105] bi_nlink=0 [ 220.188222][ T7105] bi_generation=0 [ 220.188231][ T7105] bi_dev=0 [ 220.188239][ T7105] bi_data_checksum=0 [ 220.188250][ T7105] bi_compression=0 [ 220.188259][ T7105] bi_project=0 [ 220.188268][ T7105] bi_background_compression=0 [ 220.188278][ T7105] bi_data_replicas=0 [ 220.188287][ T7105] bi_promote_target=0 [ 220.188296][ T7105] bi_foreground_target=64 [ 220.188306][ T7105] bi_background_target=1 [ 220.188315][ T7105] bi_erasure_code=0 [ 220.188325][ T7105] bi_fields_set=0 [ 220.188334][ T7105] bi_dir=0 [ 220.188342][ T7105] bi_dir_offset=32 [ 220.188352][ T7105] bi_subvol=0 [ 220.188361][ T7105] bi_parent_subvol=0 [ 220.188370][ T7105] bi_nocow=0 [ 220.188379][ T7105] bi_depth=0 [ 220.188406][ T7105] bi_inodes_32bit=0 [ 220.188415][ T7105] bi_casefold=0, fixing [ 220.195288][ T7105] done [ 220.196002][ T7105] bcachefs (loop2): check_extents... done [ 220.197520][ T7105] bcachefs (loop2): check_indirect_extents... done [ 220.198847][ T7105] bcachefs (loop2): check_dirents... [ 220.200770][ T7105] bcachefs (loop2): directory with missing backpointer [ 220.200792][ T7105] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 220.200807][ T7105] inum: 4098:4294967295 [ 220.200817][ T7105] mode=40755 [ 220.200825][ T7105] flags=(11300000) [ 220.200835][ T7105] journal_seq=22 [ 220.200844][ T7105] hash_seed=ece93825deac2443 [ 220.200854][ T7105] hash_type=siphash [ 220.200864][ T7105] bi_size=0 [ 220.200872][ T7105] bi_sectors=0 [ 220.200882][ T7105] bi_version=0 [ 220.200890][ T7105] bi_atime=2770562249 [ 220.200900][ T7105] bi_ctime=2780562352 [ 220.200909][ T7105] bi_mtime=2780562352 [ 220.200918][ T7105] bi_otime=2770562249 [ 220.200930][ T7105] bi_uid=0 [ 220.200939][ T7105] bi_gid=0 [ 220.200947][ T7105] bi_nlink=0 [ 220.200957][ T7105] bi_generation=0 [ 220.200966][ T7105] bi_dev=0 [ 220.200975][ T7105] bi_data_checksum=0 [ 220.200985][ T7105] bi_compression=0 [ 220.200994][ T7105] bi_project=0 [ 220.201003][ T7105] bi_background_compression=0 [ 220.201013][ T7105] bi_data_replicas=0 [ 220.201022][ T7105] bi_promote_target=0 [ 220.201032][ T7105] bi_foreground_target=64 [ 220.201041][ T7105] bi_background_target=1 [ 220.201051][ T7105] bi_erasure_code=0 [ 220.201061][ T7105] bi_fields_set=0 [ 220.201070][ T7105] bi_dir=0 [ 220.201079][ T7105] bi_dir_offset=0 [ 220.201090][ T7105] bi_subvol=0 [ 220.201099][ T7105] bi_parent_subvol=0 [ 220.201108][ T7105] bi_nocow=0 [ 220.201117][ T7105] bi_depth=0 [ 220.201126][ T7105] bi_inodes_32bit=0 [ 220.201136][ T7105] bi_casefold=0, fixing [ 220.207001][ T7105] done [ 220.207691][ T7105] bcachefs (loop2): check_xattrs... done [ 220.209753][ T7105] bcachefs (loop2): check_root... done [ 220.210910][ T7105] bcachefs (loop2): check_unreachable_inodes... done [ 220.211921][ T7105] bcachefs (loop2): check_subvolume_structure... done [ 220.212704][ T7105] bcachefs (loop2): check_directory_structure... done [ 220.213503][ T7105] bcachefs (loop2): check_nlinks... [ 220.214214][ T7105] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 220.215279][ T7105] done [ 220.215978][ T7105] bcachefs (loop2): check_rebalance_work... done [ 220.217169][ T7105] bcachefs (loop2): resume_logged_ops... done [ 220.217948][ T7105] bcachefs (loop2): delete_dead_inodes... done [ 220.227673][ T7105] bcachefs (loop2): set_fs_needs_rebalance... [ 220.235764][ T7114] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 220.235788][ T7114] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 220.238681][ T7105] done [ 220.241008][ T7105] bcachefs (loop2): check_extents_to_backpointers... [ 220.242386][ T7105] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 220.247912][ T7105] done [ 220.258338][ T7105] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 220.258369][ T7105] bcachefs (loop2): check_alloc_info... done [ 220.263773][ T7105] bcachefs (loop2): check_lrus... done [pid 5839] umount2("./93/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./93/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./93/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./93/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./93/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 220.265046][ T7105] bcachefs (loop2): check_btree_backpointers... done [ 220.266320][ T7105] bcachefs (loop2): check_backpointers_to_extents... done [ 220.267852][ T7105] bcachefs (loop2): check_extents_to_backpointers... done [ 220.270801][ T7105] bcachefs (loop2): check_alloc_to_lru_refs... done [ 220.273847][ T7105] bcachefs (loop2): bucket_gens_init... done [ 220.275983][ T7105] bcachefs (loop2): check_snapshot_trees... done [ 220.277126][ T7105] bcachefs (loop2): check_snapshots... done [ 220.277968][ T7105] bcachefs (loop2): check_subvols... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./93/file1") = 0 [pid 5839] umount2("./93/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./93/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./93/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./93") = 0 [ 220.278789][ T7105] bcachefs (loop2): check_subvol_children... done [ 220.280215][ T7105] bcachefs (loop2): delete_dead_snapshots... done [ 220.281378][ T7105] bcachefs (loop2): check_inodes... done [ 220.282569][ T7105] bcachefs (loop2): check_extents... done [ 220.284561][ T7105] bcachefs (loop2): check_indirect_extents... done [ 220.285429][ T7105] bcachefs (loop2): check_dirents... done [ 220.287004][ T7105] bcachefs (loop2): check_xattrs... done [ 220.287891][ T7105] bcachefs (loop2): check_root... done [pid 5839] mkdir("./94", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 220.288714][ T7105] bcachefs (loop2): check_unreachable_inodes... done [ 220.290681][ T7105] bcachefs (loop2): check_subvolume_structure... done [ 220.291466][ T7105] bcachefs (loop2): check_directory_structure... done [ 220.292207][ T7105] bcachefs (loop2): check_nlinks... done [ 220.293435][ T7105] bcachefs (loop2): check_rebalance_work... done [ 220.294922][ T7105] bcachefs (loop2): resume_logged_ops... done [ 220.295731][ T7105] bcachefs (loop2): delete_dead_inodes... done [ 220.296534][ T7105] bcachefs (loop2): set_fs_needs_rebalance... done [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7309 ./strace-static-x86_64: Process 7309 attached [pid 7309] set_robust_list(0x5555901c6760, 24) = 0 [pid 7309] chdir("./94") = 0 [pid 7309] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 220.301055][ T7105] bcachefs (loop2): done starting filesystem [ 220.383765][ T5839] bcachefs (loop2): shutting down [ 220.383788][ T5839] bcachefs (loop2): going read-only [ 220.383818][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 220.422554][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 220.423481][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 220.424418][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [pid 7309] setpgid(0, 0) = 0 [pid 7309] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7309] write(3, "1000", 4) = 4 [pid 7309] close(3) = 0 [pid 7309] symlink("/dev/binderfs", "./binderfs") = 0 [ 220.426219][ T5839] bcachefs (loop2): marking filesystem clean [ 220.483998][ T5839] bcachefs (loop2): shutdown complete [ 221.313036][ T7116] loop2: detected capacity change from 0 to 32768 [ 221.440258][ T7116] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 221.440285][ T7116] allowing incompatible features above 0.0: (unknown version) [pid 7309] write(1, "executing program\n", 18executing program ) = 18 [pid 7309] memfd_create("syzkaller", 0) = 3 [pid 7309] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 221.440299][ T7116] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 221.440328][ T7116] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 221.440463][ T7116] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 221.440694][ T7116] bcachefs (loop2): Version upgrade required: [ 221.440694][ T7116] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 221.440694][ T7116] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 221.440694][ T7116] 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,check_rebalance_work,set_fs_needs_rebalance [ 221.460563][ T7116] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 221.460590][ T7116] size != 0, deleting [ 221.461777][ T7116] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 221.465613][ T7116] bcachefs (loop2): check_topology... done [ 221.467084][ T7116] bcachefs (loop2): accounting_read... done [ 221.492786][ T7116] bcachefs (loop2): alloc_read... done [ 221.493815][ T7116] bcachefs (loop2): snapshots_read... done [ 221.494706][ T7116] bcachefs (loop2): check_allocations... [ 221.496672][ T7116] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 221.496691][ T7116] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 221.498714][ T7116] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 221.498733][ T7116] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 221.501766][ T7116] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 221.501787][ T7116] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 221.503321][ T7116] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 221.503339][ T7116] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 7309] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 221.506400][ T7116] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 221.506418][ T7116] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 221.507380][ T7116] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.507525][ T7116] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.508086][ T7116] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7309] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7309] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7309] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7309] close(3) = 0 [pid 7309] close(4) = 0 [pid 7309] mkdir("./file1", 0777) = 0 [ 221.508193][ T7116] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.508598][ T7116] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.508703][ T7116] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.508908][ T7116] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.509013][ T7116] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.510784][ T7116] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.510900][ T7116] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.511124][ T7116] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.511228][ T7116] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.511433][ T7116] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.511556][ T7116] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 221.511767][ T7116] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 221.511873][ T7116] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 221.512076][ T7116] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.512177][ T7116] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.512391][ T7116] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.512508][ T7116] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.512740][ T7116] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 221.512757][ T7116] Ratelimiting new instances of previous error [ 221.512873][ T7116] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 221.512890][ T7116] Ratelimiting new instances of previous error [ 221.525651][ T7116] done [ 221.527816][ T7116] bcachefs (loop2): going read-write [ 221.533811][ T7116] bcachefs (loop2): journal_replay... done [ 221.562102][ T7116] bcachefs (loop2): check_alloc_info... [ 221.563948][ T7116] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 221.563967][ T7116] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 221.563978][ T7116] gen 0 oldest_gen 0 data_type need_discard [ 221.563989][ T7116] journal_seq_nonempty 6 [ 221.563999][ T7116] journal_seq_empty 0 [ 221.564032][ T7116] need_discard 1 [ 221.564042][ T7116] need_inc_gen 1 [ 221.564053][ T7116] dirty_sectors 0 [ 221.564063][ T7116] stripe_sectors 0 [ 221.564073][ T7116] cached_sectors 0 [ 221.564082][ T7116] stripe 0 [ 221.564093][ T7116] stripe_redundancy 0 [ 221.564103][ T7116] io_time[READ] 1 [ 221.564112][ T7116] io_time[WRITE] 768 [ 221.564123][ T7116] fragmentation 0 [ 221.564133][ T7116] bp_start 8 [ 221.564142][ T7116] , fixing [ 221.580639][ T7116] done [ 221.583635][ T7116] bcachefs (loop2): check_lrus... done [ 221.587971][ T7116] bcachefs (loop2): check_btree_backpointers... done [ 221.589951][ T7116] bcachefs (loop2): check_backpointers_to_extents... done [ 221.593511][ T7116] bcachefs (loop2): check_extents_to_backpointers... [ 221.596710][ T7116] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 221.598107][ T7116] done [ 221.598854][ T7116] bcachefs (loop2): check_alloc_to_lru_refs... [ 221.601447][ T7116] bcachefs (loop2): missing fragmentation lru entry [ 221.601464][ T7116] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 221.601475][ T7116] gen 0 oldest_gen 0 data_type user [ 221.601487][ T7116] journal_seq_nonempty 5 [ 221.601497][ T7116] journal_seq_empty 134217728 [ 221.601507][ T7116] need_discard 1 [ 221.601517][ T7116] need_inc_gen 1 [ 221.601526][ T7116] dirty_sectors 16 [ 221.601535][ T7116] stripe_sectors 1802251 [ 221.601546][ T7116] cached_sectors 0 [ 221.601555][ T7116] stripe 0 [ 221.601565][ T7116] stripe_redundancy 0 [ 221.601574][ T7116] io_time[READ] 1 [ 221.601583][ T7116] io_time[WRITE] 512 [ 221.601594][ T7116] fragmentation 0 [ 221.601604][ T7116] bp_start 7 [ 221.601613][ T7116] , fixing [ 221.604837][ T7116] done [ 221.606812][ T7116] bcachefs (loop2): bucket_gens_init... done [ 221.608799][ T7116] bcachefs (loop2): check_snapshot_trees... done [ 221.610620][ T7116] bcachefs (loop2): check_snapshots... [ 221.611249][ T7116] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 221.611267][ T7116] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing ** 3 printk messages dropped ** [ 221.625975][ T7116] bcachefs (loop2): delete_dead_snapshots... done ** 3 printk messages dropped ** [pid 7309] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7309] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7309] chdir("./file1") = 0 [pid 7309] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7309] ioctl(4, LOOP_CLR_FD) = 0 [pid 7309] close(4) = 0 [pid 7309] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7309] exit_group(0) = ? [pid 7309] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7309, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./94", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./94", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 221.628283][ T7116] mode=40755 ** 4 printk messages dropped ** [ 221.628332][ T7116] bi_size=0 [ 221.628342][ T7116] bi_sectors=0 [ 221.628353][ T7116] bi_version=0 [ 221.628362][ T7116] bi_atime=2770562249 [ 221.628371][ T7116] bi_ctime=2780562352 [ 221.628382][ T7116] bi_mtime=2780562352 [ 221.628391][ T7116] bi_otime=2770562249 [ 221.628401][ T7116] bi_uid=0 [ 221.628410][ T7116] bi_gid=0 [ 221.628419][ T7116] bi_nlink=0 [ 221.628429][ T7116] bi_generation=0 [ 221.628438][ T7116] bi_dev=0 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 221.628447][ T7116] bi_data_checksum=0 [ 221.628457][ T7116] bi_compression=0 [ 221.628466][ T7116] bi_project=0 [ 221.628474][ T7116] bi_background_compression=0 [ 221.628485][ T7116] bi_data_replicas=0 [ 221.628495][ T7116] bi_promote_target=0 [ 221.628506][ T7116] bi_foreground_target=64 [ 221.628515][ T7116] bi_background_target=1 [ 221.628525][ T7116] bi_erasure_code=0 [ 221.628535][ T7116] bi_fields_set=0 [ 221.628544][ T7116] bi_dir=0 [ 221.628553][ T7116] bi_dir_offset=32 [ 221.628563][ T7116] bi_subvol=0 [ 221.628572][ T7116] bi_parent_subvol=0 [ 221.628582][ T7116] bi_nocow=0 [ 221.628591][ T7116] bi_depth=0 [ 221.628601][ T7116] bi_inodes_32bit=0 [ 221.628610][ T7116] bi_casefold=0, fixing [ 221.632698][ T7116] done [ 221.633525][ T7116] bcachefs (loop2): check_extents... done [ 221.636434][ T7116] bcachefs (loop2): check_indirect_extents... done [ 221.637699][ T7116] bcachefs (loop2): check_dirents... [ 221.639965][ T7116] bcachefs (loop2): directory with missing backpointer [ 221.639984][ T7116] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 221.639999][ T7116] inum: 4098:4294967295 [ 221.640009][ T7116] mode=40755 [ 221.640018][ T7116] flags=(11300000) [ 221.640028][ T7116] journal_seq=22 [ 221.640038][ T7116] hash_seed=ece93825deac2443 [ 221.640048][ T7116] hash_type=siphash [ 221.640058][ T7116] bi_size=0 [ 221.640067][ T7116] bi_sectors=0 [ 221.640076][ T7116] bi_version=0 [ 221.640086][ T7116] bi_atime=2770562249 [ 221.640097][ T7116] bi_ctime=2780562352 [ 221.640107][ T7116] bi_mtime=2780562352 [ 221.640117][ T7116] bi_otime=2770562249 [ 221.640127][ T7116] bi_uid=0 [ 221.640136][ T7116] bi_gid=0 [ 221.640145][ T7116] bi_nlink=0 [ 221.640154][ T7116] bi_generation=0 [ 221.640163][ T7116] bi_dev=0 [ 221.640173][ T7116] bi_data_checksum=0 [ 221.640183][ T7116] bi_compression=0 [ 221.640192][ T7116] bi_project=0 [ 221.640202][ T7116] bi_background_compression=0 [ 221.640223][ T7116] bi_data_replicas=0 [ 221.640234][ T7116] bi_promote_target=0 [ 221.640245][ T7116] bi_foreground_target=64 [ 221.640254][ T7116] bi_background_target=1 [ 221.640265][ T7116] bi_erasure_code=0 [ 221.640274][ T7116] bi_fields_set=0 [ 221.640284][ T7116] bi_dir=0 [ 221.640293][ T7116] bi_dir_offset=0 [ 221.640302][ T7116] bi_subvol=0 [ 221.640312][ T7116] bi_parent_subvol=0 [ 221.640322][ T7116] bi_nocow=0 [ 221.640331][ T7116] bi_depth=0 [ 221.640340][ T7116] bi_inodes_32bit=0 [ 221.640350][ T7116] bi_casefold=0, fixing [ 221.642533][ T7116] done [ 221.643254][ T7116] bcachefs (loop2): check_xattrs... done [ 221.644519][ T7116] bcachefs (loop2): check_root... done [ 221.645688][ T7116] bcachefs (loop2): check_unreachable_inodes... done [ 221.646712][ T7116] bcachefs (loop2): check_subvolume_structure... done [ 221.647564][ T7116] bcachefs (loop2): check_directory_structure... done [ 221.648707][ T7116] bcachefs (loop2): check_nlinks... [ 221.650643][ T7116] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 221.653468][ T7116] done [ 221.654521][ T7116] bcachefs (loop2): check_rebalance_work... done [ 221.656656][ T7116] bcachefs (loop2): resume_logged_ops... done [ 221.657786][ T7116] bcachefs (loop2): delete_dead_inodes... done [ 221.666752][ T7116] bcachefs (loop2): set_fs_needs_rebalance... [ 221.675334][ T7125] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 5839] umount2("./94/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./94/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./94/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./94/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./94/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 221.675360][ T7125] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 221.678302][ T7116] done [ 221.680666][ T7116] bcachefs (loop2): check_extents_to_backpointers... [ 221.681657][ T7116] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 221.687246][ T7116] done [ 221.697139][ T7116] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 221.697165][ T7116] bcachefs (loop2): check_alloc_info... done [ 221.702652][ T7116] bcachefs (loop2): check_lrus... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./94/file1") = 0 [pid 5839] umount2("./94/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 221.703836][ T7116] bcachefs (loop2): check_btree_backpointers... done [ 221.705112][ T7116] bcachefs (loop2): check_backpointers_to_extents... done [ 221.706523][ T7116] bcachefs (loop2): check_extents_to_backpointers... done [ 221.708140][ T7116] bcachefs (loop2): check_alloc_to_lru_refs... done [ 221.711243][ T7116] bcachefs (loop2): bucket_gens_init... done [ 221.713651][ T7116] bcachefs (loop2): check_snapshot_trees... done [ 221.714891][ T7116] bcachefs (loop2): check_snapshots... done [ 221.715754][ T7116] bcachefs (loop2): check_subvols... done [pid 5839] newfstatat(AT_FDCWD, "./94/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./94/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./94") = 0 [ 221.716614][ T7116] bcachefs (loop2): check_subvol_children... done [ 221.717361][ T7116] bcachefs (loop2): delete_dead_snapshots... done [ 221.718108][ T7116] bcachefs (loop2): check_inodes... done [ 221.719696][ T7116] bcachefs (loop2): check_extents... done [ 221.721904][ T7116] bcachefs (loop2): check_indirect_extents... done [ 221.723210][ T7116] bcachefs (loop2): check_dirents... done [ 221.724819][ T7116] bcachefs (loop2): check_xattrs... done [ 221.725711][ T7116] bcachefs (loop2): check_root... done [pid 5839] mkdir("./95", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7320 ./strace-static-x86_64: Process 7320 attached [ 221.726427][ T7116] bcachefs (loop2): check_unreachable_inodes... done [ 221.727261][ T7116] bcachefs (loop2): check_subvolume_structure... done [ 221.728012][ T7116] bcachefs (loop2): check_directory_structure... done [ 221.728786][ T7116] bcachefs (loop2): check_nlinks... done [ 221.730976][ T7116] bcachefs (loop2): check_rebalance_work... done [ 221.731884][ T7116] bcachefs (loop2): resume_logged_ops... done [ 221.733014][ T7116] bcachefs (loop2): delete_dead_inodes... done [ 221.733833][ T7116] bcachefs (loop2): set_fs_needs_rebalance... done [pid 7320] set_robust_list(0x5555901c6760, 24) = 0 [pid 7320] chdir("./95") = 0 [pid 7320] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7320] setpgid(0, 0) = 0 [pid 7320] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 221.737456][ T7116] bcachefs (loop2): done starting filesystem [ 221.801263][ T5839] bcachefs (loop2): shutting down [ 221.801284][ T5839] bcachefs (loop2): going read-only [ 221.801314][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 221.844580][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 221.847274][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 221.848192][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 221.852224][ T5839] bcachefs (loop2): marking filesystem clean [pid 7320] write(3, "1000", 4) = 4 [pid 7320] close(3) = 0 [pid 7320] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7320] write(1, "executing program\n", 18executing program ) = 18 [ 221.893288][ T5839] bcachefs (loop2): shutdown complete [ 222.606218][ T7127] loop2: detected capacity change from 0 to 32768 [ 222.752749][ T7127] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 222.752778][ T7127] allowing incompatible features above 0.0: (unknown version) [ 222.752793][ T7127] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [pid 7320] memfd_create("syzkaller", 0) = 3 [pid 7320] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 222.752818][ T7127] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 222.752956][ T7127] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 222.753197][ T7127] bcachefs (loop2): Version upgrade required: [ 222.753197][ T7127] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 222.753197][ T7127] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 222.753197][ T7127] 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,check_rebalance_work,set_fs_needs_rebalance [ 222.772972][ T7127] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 222.773001][ T7127] size != 0, deleting [ 222.774060][ T7127] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 222.777387][ T7127] bcachefs (loop2): check_topology... done [ 222.778866][ T7127] bcachefs (loop2): accounting_read... done [ 222.807702][ T7127] bcachefs (loop2): alloc_read... done [ 222.808628][ T7127] bcachefs (loop2): snapshots_read... done [ 222.810260][ T7127] bcachefs (loop2): check_allocations... [ 222.812310][ T7127] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 222.812329][ T7127] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 222.814834][ T7127] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 222.814852][ T7127] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 222.816313][ T7127] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 222.816331][ T7127] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 222.817901][ T7127] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 222.817919][ T7127] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 222.822638][ T7127] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 7320] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 222.822657][ T7127] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 222.823617][ T7127] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.823743][ T7127] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.825258][ T7127] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7320] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7320] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7320] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7320] close(3) = 0 [pid 7320] close(4) = 0 [pid 7320] mkdir("./file1", 0777) = 0 [ 222.825401][ T7127] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.825810][ T7127] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.825917][ T7127] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.826122][ T7127] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.826226][ T7127] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.826450][ T7127] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.826557][ T7127] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.826759][ T7127] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.826864][ T7127] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.827065][ T7127] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.827178][ T7127] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 222.827420][ T7127] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 222.827524][ T7127] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 222.827731][ T7127] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 222.827840][ T7127] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 222.828040][ T7127] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 222.828145][ T7127] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 222.828382][ T7127] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 222.828399][ T7127] Ratelimiting new instances of previous error [ 222.828526][ T7127] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 222.828542][ T7127] Ratelimiting new instances of previous error [ 222.842049][ T7127] done [ 222.844273][ T7127] bcachefs (loop2): going read-write [ 222.850014][ T7127] bcachefs (loop2): journal_replay... done [ 222.877282][ T7127] bcachefs (loop2): check_alloc_info... [ 222.879931][ T7127] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 222.879950][ T7127] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 222.879961][ T7127] gen 0 oldest_gen 0 data_type need_discard [ 222.879972][ T7127] journal_seq_nonempty 6 [ 222.879982][ T7127] journal_seq_empty 0 [ 222.879991][ T7127] need_discard 1 [ 222.880001][ T7127] need_inc_gen 1 [ 222.880012][ T7127] dirty_sectors 0 [ 222.880022][ T7127] stripe_sectors 0 [ 222.880032][ T7127] cached_sectors 0 [ 222.880039][ T7127] stripe 0 [ 222.880049][ T7127] stripe_redundancy 0 [ 222.880059][ T7127] io_time[READ] 1 [ 222.880070][ T7127] io_time[WRITE] 768 [ 222.880080][ T7127] fragmentation 0 [ 222.880090][ T7127] bp_start 8 [ 222.880100][ T7127] , fixing [ 222.895983][ T7127] done [ 222.898907][ T7127] bcachefs (loop2): check_lrus... done [ 222.904687][ T7127] bcachefs (loop2): check_btree_backpointers... done [ 222.906086][ T7127] bcachefs (loop2): check_backpointers_to_extents... done [ 222.908897][ T7127] bcachefs (loop2): check_extents_to_backpointers... [ 222.910362][ T7127] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 222.912617][ T7127] done [ 222.913606][ T7127] bcachefs (loop2): check_alloc_to_lru_refs... [ 222.915160][ T7127] bcachefs (loop2): missing fragmentation lru entry [ 222.915177][ T7127] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 222.915188][ T7127] gen 0 oldest_gen 0 data_type user [ 222.915199][ T7127] journal_seq_nonempty 5 [ 222.915209][ T7127] journal_seq_empty 134217728 [ 222.915219][ T7127] need_discard 1 [ 222.915230][ T7127] need_inc_gen 1 [ 222.915241][ T7127] dirty_sectors 16 [ 222.915251][ T7127] stripe_sectors 1802251 [ 222.915261][ T7127] cached_sectors 0 [ 222.915271][ T7127] stripe 0 [ 222.915280][ T7127] stripe_redundancy 0 [ 222.915304][ T7127] io_time[READ] 1 [ 222.915314][ T7127] io_time[WRITE] 512 [ 222.915324][ T7127] fragmentation 0 [ 222.915334][ T7127] bp_start 7 [ 222.915344][ T7127] , fixing [ 222.917702][ T7127] done [ 222.919142][ T7127] bcachefs (loop2): bucket_gens_init... done [pid 7320] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7320] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7320] chdir("./file1") = 0 [pid 7320] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7320] ioctl(4, LOOP_CLR_FD) = 0 [pid 7320] close(4) = 0 [pid 7320] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 222.924072][ T7127] bcachefs (loop2): check_snapshot_trees... done [ 222.924908][ T7127] bcachefs (loop2): check_snapshots... [ 222.925510][ T7127] bcachefs (loop2): snapshot points to missing/incorrect tree: ** 4 printk messages dropped ** [ 222.940695][ T7127] bcachefs (loop2): delete_dead_snapshots... done ** 10 printk messages dropped ** [ 222.942594][ T7127] bi_version=0 ** 3 printk messages dropped ** [ 222.942633][ T7127] bi_otime=2770562249 [ 222.942645][ T7127] bi_uid=0 [ 222.942654][ T7127] bi_gid=0 [pid 7320] exit_group(0) = ? [pid 7320] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7320, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./95", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./95", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 222.942663][ T7127] bi_nlink=0 [ 222.942672][ T7127] bi_generation=0 [ 222.942683][ T7127] bi_dev=0 [ 222.942692][ T7127] bi_data_checksum=0 [ 222.942702][ T7127] bi_compression=0 [ 222.942712][ T7127] bi_project=0 [ 222.942722][ T7127] bi_background_compression=0 [ 222.942732][ T7127] bi_data_replicas=0 [ 222.942742][ T7127] bi_promote_target=0 [ 222.942752][ T7127] bi_foreground_target=64 [ 222.942761][ T7127] bi_background_target=1 [ 222.942772][ T7127] bi_erasure_code=0 [ 222.942781][ T7127] bi_fields_set=0 [ 222.942790][ T7127] bi_dir=0 [ 222.942799][ T7127] bi_dir_offset=32 [ 222.942809][ T7127] bi_subvol=0 [ 222.942818][ T7127] bi_parent_subvol=0 [ 222.942828][ T7127] bi_nocow=0 [ 222.942837][ T7127] bi_depth=0 [ 222.942846][ T7127] bi_inodes_32bit=0 [ 222.942855][ T7127] bi_casefold=0, fixing [ 222.945029][ T7127] done [ 222.945707][ T7127] bcachefs (loop2): check_extents... done [ 222.947176][ T7127] bcachefs (loop2): check_indirect_extents... done [ 222.948006][ T7127] bcachefs (loop2): check_dirents... [ 222.950136][ T7127] bcachefs (loop2): directory with missing backpointer [ 222.950154][ T7127] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 222.950168][ T7127] inum: 4098:4294967295 [ 222.950178][ T7127] mode=40755 [ 222.950187][ T7127] flags=(11300000) [ 222.950197][ T7127] journal_seq=22 [ 222.950206][ T7127] hash_seed=ece93825deac2443 [ 222.950218][ T7127] hash_type=siphash [ 222.950227][ T7127] bi_size=0 [ 222.950236][ T7127] bi_sectors=0 [ 222.950246][ T7127] bi_version=0 [ 222.950255][ T7127] bi_atime=2770562249 [ 222.950265][ T7127] bi_ctime=2780562352 [ 222.950275][ T7127] bi_mtime=2780562352 [ 222.950293][ T7127] bi_otime=2770562249 [ 222.950302][ T7127] bi_uid=0 [ 222.950312][ T7127] bi_gid=0 [ 222.950321][ T7127] bi_nlink=0 [ 222.950330][ T7127] bi_generation=0 [ 222.950339][ T7127] bi_dev=0 [ 222.950349][ T7127] bi_data_checksum=0 [ 222.950358][ T7127] bi_compression=0 [ 222.950368][ T7127] bi_project=0 [ 222.950377][ T7127] bi_background_compression=0 [ 222.950387][ T7127] bi_data_replicas=0 [ 222.950397][ T7127] bi_promote_target=0 [ 222.950407][ T7127] bi_foreground_target=64 [ 222.950418][ T7127] bi_background_target=1 [ 222.950429][ T7127] bi_erasure_code=0 [ 222.950438][ T7127] bi_fields_set=0 [ 222.950448][ T7127] bi_dir=0 [ 222.950457][ T7127] bi_dir_offset=0 [ 222.950466][ T7127] bi_subvol=0 [ 222.950475][ T7127] bi_parent_subvol=0 [ 222.950485][ T7127] bi_nocow=0 [ 222.950494][ T7127] bi_depth=0 [ 222.950503][ T7127] bi_inodes_32bit=0 [ 222.950513][ T7127] bi_casefold=0, fixing [ 222.956721][ T7127] done [ 222.957597][ T7127] bcachefs (loop2): check_xattrs... done [ 222.960746][ T7127] bcachefs (loop2): check_root... done [ 222.961695][ T7127] bcachefs (loop2): check_unreachable_inodes... done [ 222.962593][ T7127] bcachefs (loop2): check_subvolume_structure... done [ 222.964316][ T7127] bcachefs (loop2): check_directory_structure... done [ 222.966323][ T7127] bcachefs (loop2): check_nlinks... [ 222.967032][ T7127] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 222.968062][ T7127] done [ 222.968737][ T7127] bcachefs (loop2): check_rebalance_work... done [ 222.970545][ T7127] bcachefs (loop2): resume_logged_ops... done [ 222.971372][ T7127] bcachefs (loop2): delete_dead_inodes... done [ 222.980552][ T7127] bcachefs (loop2): set_fs_needs_rebalance... done [ 222.989884][ T7136] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 222.989905][ T7136] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 222.992740][ T7127] bcachefs (loop2): check_extents_to_backpointers... [ 222.993694][ T7127] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 222.995700][ T7127] done [ 223.021183][ T7127] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 223.021209][ T7127] bcachefs (loop2): check_alloc_info... done [pid 5839] umount2("./95/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./95/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./95/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./95/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./95/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 223.026236][ T7127] bcachefs (loop2): check_lrus... done [ 223.027213][ T7127] bcachefs (loop2): check_btree_backpointers... done [ 223.028374][ T7127] bcachefs (loop2): check_backpointers_to_extents... done [ 223.030673][ T7127] bcachefs (loop2): check_extents_to_backpointers... done [ 223.036750][ T7127] bcachefs (loop2): check_alloc_to_lru_refs... done [ 223.038864][ T7127] bcachefs (loop2): bucket_gens_init... done [ 223.041522][ T7127] bcachefs (loop2): check_snapshot_trees... done [ 223.042710][ T7127] bcachefs (loop2): check_snapshots... done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./95/file1") = 0 [pid 5839] umount2("./95/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./95/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./95/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 223.047209][ T7127] bcachefs (loop2): check_subvols... done [ 223.048004][ T7127] bcachefs (loop2): check_subvol_children... done [ 223.048740][ T7127] bcachefs (loop2): delete_dead_snapshots... done [ 223.049950][ T7127] bcachefs (loop2): check_inodes... done [ 223.051836][ T7127] bcachefs (loop2): check_extents... done [ 223.054607][ T7127] bcachefs (loop2): check_indirect_extents... done [ 223.055326][ T7127] bcachefs (loop2): check_dirents... done [ 223.060421][ T7127] bcachefs (loop2): check_xattrs... done [pid 5839] close(3) = 0 [pid 5839] rmdir("./95") = 0 [pid 5839] mkdir("./96", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 223.061578][ T7127] bcachefs (loop2): check_root... done [ 223.062210][ T7127] bcachefs (loop2): check_unreachable_inodes... done [ 223.068151][ T7127] bcachefs (loop2): check_subvolume_structure... done [ 223.068907][ T7127] bcachefs (loop2): check_directory_structure... done [ 223.069883][ T7127] bcachefs (loop2): check_nlinks... done [ 223.071606][ T7127] bcachefs (loop2): check_rebalance_work... done [ 223.072393][ T7127] bcachefs (loop2): resume_logged_ops... done [ 223.073197][ T7127] bcachefs (loop2): delete_dead_inodes... done [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7331 attached , child_tidptr=0x5555901c6750) = 7331 [pid 7331] set_robust_list(0x5555901c6760, 24) = 0 [ 223.078716][ T7127] bcachefs (loop2): set_fs_needs_rebalance... done [ 223.082262][ T7127] bcachefs (loop2): done starting filesystem [ 223.170195][ T5839] bcachefs (loop2): shutting down [ 223.170217][ T5839] bcachefs (loop2): going read-only [ 223.170257][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 223.172100][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [pid 7331] chdir("./96") = 0 [pid 7331] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7331] setpgid(0, 0) = 0 [pid 7331] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 223.172100][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 223.172290][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 223.172307][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 223.172329][ T12] loop2 checksum error [ 223.217014][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 223.223085][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [pid 7331] write(3, "1000", 4) = 4 [pid 7331] close(3) = 0 [pid 7331] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7331] write(1, "executing program\n", 18executing program ) = 18 [pid 7331] memfd_create("syzkaller", 0) = 3 [pid 7331] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 223.223998][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 223.225800][ T5839] bcachefs (loop2): marking filesystem clean [ 223.273154][ T5839] bcachefs (loop2): shutdown complete [ 224.028098][ T7138] loop2: detected capacity change from 0 to 32768 [ 224.163611][ T7138] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 224.163639][ T7138] allowing incompatible features above 0.0: (unknown version) [ 224.163652][ T7138] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 224.163680][ T7138] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 224.163824][ T7138] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 224.164524][ T7138] bcachefs (loop2): Version upgrade required: [ 224.164524][ T7138] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 224.164524][ T7138] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 224.164524][ T7138] 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,check_rebalance_work,set_fs_needs_rebalance [ 224.183171][ T7138] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 224.183197][ T7138] size != 0, deleting [ 224.184448][ T7138] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 224.188202][ T7138] bcachefs (loop2): check_topology... done [ 224.190128][ T7138] bcachefs (loop2): accounting_read... done [ 224.217750][ T7138] bcachefs (loop2): alloc_read... done [ 224.218706][ T7138] bcachefs (loop2): snapshots_read... done [ 224.220338][ T7138] bcachefs (loop2): check_allocations... [ 224.222392][ T7138] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 224.222414][ T7138] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 224.224442][ T7138] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 224.224460][ T7138] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 224.225880][ T7138] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 224.225899][ T7138] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 224.227670][ T7138] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 7331] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7331] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7331] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7331] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7331] close(3) = 0 [pid 7331] close(4) = 0 [ 224.227688][ T7138] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 224.231283][ T7138] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 224.231302][ T7138] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 224.232262][ T7138] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.232389][ T7138] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7331] mkdir("./file1", 0777) = 0 [ 224.232956][ T7138] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.233063][ T7138] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 224.233474][ T7138] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.233579][ T7138] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 224.233780][ T7138] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.233882][ T7138] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 224.234101][ T7138] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.234206][ T7138] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 224.234412][ T7138] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.234517][ T7138] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 224.234730][ T7138] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.234841][ T7138] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 224.235051][ T7138] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 224.235155][ T7138] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 224.235356][ T7138] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 224.235488][ T7138] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 224.235690][ T7138] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 224.235797][ T7138] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 224.236031][ T7138] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 224.236046][ T7138] Ratelimiting new instances of previous error [ 224.236200][ T7138] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 224.236216][ T7138] Ratelimiting new instances of previous error [ 224.254335][ T7138] done [ 224.256773][ T7138] bcachefs (loop2): going read-write [ 224.262509][ T7138] bcachefs (loop2): journal_replay... done [ 224.291131][ T7138] bcachefs (loop2): check_alloc_info... [ 224.293407][ T7138] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 224.293426][ T7138] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 224.293438][ T7138] gen 0 oldest_gen 0 data_type need_discard [ 224.293449][ T7138] journal_seq_nonempty 6 [ 224.293459][ T7138] journal_seq_empty 0 [ 224.293470][ T7138] need_discard 1 [ 224.293480][ T7138] need_inc_gen 1 [ 224.293490][ T7138] dirty_sectors 0 [ 224.293499][ T7138] stripe_sectors 0 [ 224.293509][ T7138] cached_sectors 0 [ 224.293519][ T7138] stripe 0 [ 224.293529][ T7138] stripe_redundancy 0 [ 224.293538][ T7138] io_time[READ] 1 [ 224.293548][ T7138] io_time[WRITE] 768 [ 224.293558][ T7138] fragmentation 0 [ 224.293567][ T7138] bp_start 8 [ 224.293579][ T7138] , fixing [ 224.309746][ T7138] done [ 224.314761][ T7138] bcachefs (loop2): check_lrus... done [ 224.315636][ T7138] bcachefs (loop2): check_btree_backpointers... done [ 224.316869][ T7138] bcachefs (loop2): check_backpointers_to_extents... done [ 224.323455][ T7138] bcachefs (loop2): check_extents_to_backpointers... [ 224.325444][ T7138] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 224.326882][ T7138] done [ 224.327532][ T7138] bcachefs (loop2): check_alloc_to_lru_refs... [ 224.330204][ T7138] bcachefs (loop2): missing fragmentation lru entry [ 224.330223][ T7138] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 224.330234][ T7138] gen 0 oldest_gen 0 data_type user [ 224.330245][ T7138] journal_seq_nonempty 5 [ 224.330255][ T7138] journal_seq_empty 134217728 [ 224.330266][ T7138] need_discard 1 [ 224.330276][ T7138] need_inc_gen 1 [ 224.330287][ T7138] dirty_sectors 16 [ 224.330297][ T7138] stripe_sectors 1802251 [ 224.330308][ T7138] cached_sectors 0 [ 224.330317][ T7138] stripe 0 [ 224.330327][ T7138] stripe_redundancy 0 [ 224.330337][ T7138] io_time[READ] 1 [ 224.330347][ T7138] io_time[WRITE] 512 [ 224.330357][ T7138] fragmentation 0 [ 224.330368][ T7138] bp_start 7 [ 224.330378][ T7138] , fixing [ 224.331916][ T7138] done [ 224.333427][ T7138] bcachefs (loop2): bucket_gens_init... done [ 224.336007][ T7138] bcachefs (loop2): check_snapshot_trees... done ** 3 printk messages dropped ** [ 224.350858][ T7138] done [ 224.351593][ T7138] bcachefs (loop2): check_subvols... done ** 2 printk messages dropped ** [ 224.354569][ T7138] bcachefs (loop2): check_inodes... [ 224.355662][ T7138] bcachefs (loop2): inode points to missing dirent [ 224.355676][ T7138] inum: 4098:4294967295 [pid 7331] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7331] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7331] chdir("./file1") = 0 [pid 7331] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7331] ioctl(4, LOOP_CLR_FD) = 0 [pid 7331] close(4) = 0 [pid 7331] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7331] exit_group(0) = ? [pid 7331] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7331, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=33 /* 0.33 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./96", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./96", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 224.355689][ T7138] mode=40755 [ 224.355698][ T7138] flags=(15300000) [ 224.355706][ T7138] journal_seq=4 [ 224.355715][ T7138] hash_seed=ece93825deac2443 [ 224.355725][ T7138] hash_type=siphash [ 224.355735][ T7138] bi_size=0 [ 224.355746][ T7138] bi_sectors=0 [ 224.355755][ T7138] bi_version=0 [ 224.355764][ T7138] bi_atime=2770562249 [ 224.355774][ T7138] bi_ctime=2780562352 [ 224.355784][ T7138] bi_mtime=2780562352 [ 224.355793][ T7138] bi_otime=2770562249 [ 224.355803][ T7138] bi_uid=0 [ 224.355812][ T7138] bi_gid=0 [ 224.355821][ T7138] bi_nlink=0 [ 224.355830][ T7138] bi_generation=0 [ 224.355840][ T7138] bi_dev=0 [ 224.355849][ T7138] bi_data_checksum=0 [ 224.355858][ T7138] bi_compression=0 [ 224.355868][ T7138] bi_project=0 [ 224.355878][ T7138] bi_background_compression=0 [ 224.355886][ T7138] bi_data_replicas=0 [ 224.355895][ T7138] bi_promote_target=0 [ 224.355905][ T7138] bi_foreground_target=64 [ 224.355917][ T7138] bi_background_target=1 [ 224.355927][ T7138] bi_erasure_code=0 [ 224.355936][ T7138] bi_fields_set=0 [ 224.355946][ T7138] bi_dir=0 [ 224.355954][ T7138] bi_dir_offset=32 [ 224.355964][ T7138] bi_subvol=0 [ 224.355973][ T7138] bi_parent_subvol=0 [ 224.355982][ T7138] bi_nocow=0 [ 224.355992][ T7138] bi_depth=0 [ 224.356001][ T7138] bi_inodes_32bit=0 [ 224.356010][ T7138] bi_casefold=0, fixing [ 224.358138][ T7138] done [ 224.358825][ T7138] bcachefs (loop2): check_extents... done [ 224.362413][ T7138] bcachefs (loop2): check_indirect_extents... done [ 224.364308][ T7138] bcachefs (loop2): check_dirents... [ 224.366024][ T7138] bcachefs (loop2): directory with missing backpointer [ 224.366042][ T7138] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 224.366058][ T7138] inum: 4098:4294967295 [ 224.366067][ T7138] mode=40755 [ 224.366077][ T7138] flags=(11300000) [ 224.366087][ T7138] journal_seq=22 [ 224.366096][ T7138] hash_seed=ece93825deac2443 [ 224.366107][ T7138] hash_type=siphash [ 224.366116][ T7138] bi_size=0 [ 224.366125][ T7138] bi_sectors=0 [ 224.366143][ T7138] bi_version=0 [ 224.366153][ T7138] bi_atime=2770562249 [ 224.366162][ T7138] bi_ctime=2780562352 [ 224.366172][ T7138] bi_mtime=2780562352 [ 224.366182][ T7138] bi_otime=2770562249 [ 224.366191][ T7138] bi_uid=0 [ 224.366200][ T7138] bi_gid=0 [ 224.366210][ T7138] bi_nlink=0 [ 224.366219][ T7138] bi_generation=0 [ 224.366228][ T7138] bi_dev=0 [ 224.366237][ T7138] bi_data_checksum=0 [ 224.366249][ T7138] bi_compression=0 [ 224.366258][ T7138] bi_project=0 [ 224.366268][ T7138] bi_background_compression=0 [ 224.366278][ T7138] bi_data_replicas=0 [ 224.366288][ T7138] bi_promote_target=0 [ 224.366297][ T7138] bi_foreground_target=64 [ 224.366307][ T7138] bi_background_target=1 [ 224.366317][ T7138] bi_erasure_code=0 [ 224.366327][ T7138] bi_fields_set=0 [ 224.366338][ T7138] bi_dir=0 [ 224.366346][ T7138] bi_dir_offset=0 [ 224.366357][ T7138] bi_subvol=0 [ 224.366366][ T7138] bi_parent_subvol=0 [ 224.366376][ T7138] bi_nocow=0 [ 224.366385][ T7138] bi_depth=0 [ 224.366395][ T7138] bi_inodes_32bit=0 [ 224.366404][ T7138] bi_casefold=0, fixing [ 224.374011][ T7138] done [ 224.374727][ T7138] bcachefs (loop2): check_xattrs... done [ 224.375981][ T7138] bcachefs (loop2): check_root... done [ 224.377156][ T7138] bcachefs (loop2): check_unreachable_inodes... done [ 224.378678][ T7138] bcachefs (loop2): check_subvolume_structure... done [ 224.379972][ T7138] bcachefs (loop2): check_directory_structure... done [ 224.380836][ T7138] bcachefs (loop2): check_nlinks... [ 224.381550][ T7138] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 224.382659][ T7138] done [ 224.383334][ T7138] bcachefs (loop2): check_rebalance_work... done [ 224.384566][ T7138] bcachefs (loop2): resume_logged_ops... done [ 224.385384][ T7138] bcachefs (loop2): delete_dead_inodes... done [ 224.394883][ T7138] bcachefs (loop2): set_fs_needs_rebalance... [pid 5839] umount2("./96/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./96/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./96/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./96/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 224.403089][ T7147] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 224.403112][ T7147] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 224.406018][ T7138] done [ 224.406942][ T7138] bcachefs (loop2): check_extents_to_backpointers... [ 224.407916][ T7138] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 224.411996][ T7147] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 5839] openat(AT_FDCWD, "./96/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./96/file1") = 0 [pid 5839] umount2("./96/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./96/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./96/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [ 224.414884][ T7138] done [ 224.425436][ T7138] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 224.425461][ T7138] bcachefs (loop2): check_alloc_info... done [ 224.430878][ T7138] bcachefs (loop2): check_lrus... done [ 224.432590][ T7138] bcachefs (loop2): check_btree_backpointers... done [ 224.433896][ T7138] bcachefs (loop2): check_backpointers_to_extents... done [ 224.435427][ T7138] bcachefs (loop2): check_extents_to_backpointers... [ 224.436351][ T7138] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [pid 5839] rmdir("./96") = 0 [pid 5839] mkdir("./97", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7342 ./strace-static-x86_64: Process 7342 attached [ 224.437696][ T7138] done [ 224.437708][ T7138] bcachefs (loop2): check_alloc_to_lru_refs... done [ 224.440997][ T7138] bcachefs (loop2): bucket_gens_init... done [ 224.443633][ T7138] bcachefs (loop2): check_snapshot_trees... done [ 224.444860][ T7138] bcachefs (loop2): check_snapshots... done [ 224.445640][ T7138] bcachefs (loop2): check_subvols... done [ 224.446415][ T7138] bcachefs (loop2): check_subvol_children... done [ 224.447214][ T7138] bcachefs (loop2): delete_dead_snapshots... done [pid 7342] set_robust_list(0x5555901c6760, 24) = 0 [pid 7342] chdir("./97") = 0 [pid 7342] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 224.447997][ T7138] bcachefs (loop2): check_inodes... done [ 224.450311][ T7138] bcachefs (loop2): check_extents... done [ 224.451804][ T7138] bcachefs (loop2): check_indirect_extents... done [ 224.453049][ T7138] bcachefs (loop2): check_dirents... done [ 224.454628][ T7138] bcachefs (loop2): check_xattrs... done [ 224.455423][ T7138] bcachefs (loop2): check_root... done [ 224.456292][ T7138] bcachefs (loop2): check_unreachable_inodes... done [ 224.457241][ T7138] bcachefs (loop2): check_subvolume_structure... done [ 224.458051][ T7138] bcachefs (loop2): check_directory_structure... done [pid 7342] setpgid(0, 0) = 0 [pid 7342] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7342] write(3, "1000", 4) = 4 [pid 7342] close(3) = 0 [pid 7342] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7342] write(1, "executing program\n", 18executing program ) = 18 [ 224.458820][ T7138] bcachefs (loop2): check_nlinks... done [ 224.461696][ T7138] bcachefs (loop2): check_rebalance_work... done [ 224.463017][ T7138] bcachefs (loop2): resume_logged_ops... done [ 224.464028][ T7138] bcachefs (loop2): delete_dead_inodes... done [ 224.464894][ T7138] bcachefs (loop2): set_fs_needs_rebalance... done [ 224.468502][ T7138] bcachefs (loop2): done starting filesystem [ 224.542996][ T5839] bcachefs (loop2): shutting down [ 224.543017][ T5839] bcachefs (loop2): going read-only [pid 7342] memfd_create("syzkaller", 0) = 3 [pid 7342] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 224.543047][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 224.585202][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 224.586719][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 224.587602][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 224.591641][ T5839] bcachefs (loop2): marking filesystem clean [ 224.632617][ T5839] bcachefs (loop2): shutdown complete [ 225.517727][ T7149] loop2: detected capacity change from 0 to 32768 [ 225.655472][ T7149] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 225.655499][ T7149] allowing incompatible features above 0.0: (unknown version) [ 225.655514][ T7149] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 225.655542][ T7149] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 225.655670][ T7149] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 225.655913][ T7149] bcachefs (loop2): Version upgrade required: [ 225.655913][ T7149] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 225.655913][ T7149] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 225.655913][ T7149] 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,check_rebalance_work,set_fs_needs_rebalance [ 225.675580][ T7149] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 225.675609][ T7149] size != 0, deleting [ 225.676735][ T7149] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 225.680976][ T7149] bcachefs (loop2): check_topology... done [ 225.682329][ T7149] bcachefs (loop2): accounting_read... done [ 225.714071][ T7149] bcachefs (loop2): alloc_read... done [ 225.714910][ T7149] bcachefs (loop2): snapshots_read... done [ 225.715782][ T7149] bcachefs (loop2): check_allocations... [ 225.718259][ T7149] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7342] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 225.718280][ T7149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 225.721609][ T7149] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 225.721631][ T7149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 225.723055][ T7149] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7342] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7342] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7342] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7342] close(3) = 0 [pid 7342] close(4) = 0 [pid 7342] mkdir("./file1", 0777) = 0 [ 225.723073][ T7149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 225.724676][ T7149] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 225.724694][ T7149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 225.727253][ T7149] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 225.727271][ T7149] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 225.728782][ T7149] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.728909][ T7149] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.729820][ T7149] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.729934][ T7149] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.730357][ T7149] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.730463][ T7149] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.730666][ T7149] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.730770][ T7149] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.730970][ T7149] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.731085][ T7149] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.731293][ T7149] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.731403][ T7149] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.731605][ T7149] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.731730][ T7149] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 225.731930][ T7149] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 225.732040][ T7149] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 225.732242][ T7149] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.732350][ T7149] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.732552][ T7149] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.732658][ T7149] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.732891][ T7149] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 225.732908][ T7149] Ratelimiting new instances of previous error [ 225.733044][ T7149] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 225.733059][ T7149] Ratelimiting new instances of previous error [ 225.748237][ T7149] done [ 225.750845][ T7149] bcachefs (loop2): going read-write [ 225.756738][ T7149] bcachefs (loop2): journal_replay... done [ 225.784190][ T7149] bcachefs (loop2): check_alloc_info... [ 225.785992][ T7149] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 225.786014][ T7149] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 225.786026][ T7149] gen 0 oldest_gen 0 data_type need_discard [ 225.786036][ T7149] journal_seq_nonempty 6 [ 225.786048][ T7149] journal_seq_empty 0 [ 225.786058][ T7149] need_discard 1 [ 225.786067][ T7149] need_inc_gen 1 [ 225.786079][ T7149] dirty_sectors 0 [ 225.786089][ T7149] stripe_sectors 0 [ 225.786098][ T7149] cached_sectors 0 [ 225.786108][ T7149] stripe 0 [ 225.786119][ T7149] stripe_redundancy 0 [ 225.786127][ T7149] io_time[READ] 1 [ 225.786139][ T7149] io_time[WRITE] 768 [ 225.786149][ T7149] fragmentation 0 [ 225.786158][ T7149] bp_start 8 [ 225.786168][ T7149] , fixing [ 225.802272][ T7149] done [ 225.804723][ T7149] bcachefs (loop2): check_lrus... done [ 225.810036][ T7149] bcachefs (loop2): check_btree_backpointers... done [ 225.813588][ T7149] bcachefs (loop2): check_backpointers_to_extents... done [ 225.817239][ T7149] bcachefs (loop2): check_extents_to_backpointers... ** 3 printk messages dropped ** [ 225.823298][ T7149] bcachefs (loop2): missing fragmentation lru entry ** 9 printk messages dropped ** [ 225.823409][ T7149] stripe 0 ** 8 printk messages dropped ** [pid 7342] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7342] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7342] chdir("./file1") = 0 [pid 7342] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7342] ioctl(4, LOOP_CLR_FD) = 0 [pid 7342] close(4) = 0 [pid 7342] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7342] exit_group(0) = ? [pid 7342] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7342, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] umount2("./97", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./97", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [ 225.829063][ T7149] bcachefs (loop2): check_snapshot_trees... done ** 4 printk messages dropped ** [ 225.845906][ T7149] bcachefs (loop2): check_subvols... done [ 225.847943][ T7149] bcachefs (loop2): check_subvol_children... done [ 225.848891][ T7149] bcachefs (loop2): delete_dead_snapshots... done [ 225.850358][ T7149] bcachefs (loop2): check_inodes... [ 225.851478][ T7149] bcachefs (loop2): inode points to missing dirent [ 225.851492][ T7149] inum: 4098:4294967295 [ 225.851502][ T7149] mode=40755 [ 225.851514][ T7149] flags=(15300000) [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 225.851523][ T7149] journal_seq=4 [ 225.851533][ T7149] hash_seed=ece93825deac2443 [ 225.851543][ T7149] hash_type=siphash [ 225.851553][ T7149] bi_size=0 [ 225.851562][ T7149] bi_sectors=0 [ 225.851572][ T7149] bi_version=0 [ 225.851581][ T7149] bi_atime=2770562249 [ 225.851591][ T7149] bi_ctime=2780562352 [ 225.851601][ T7149] bi_mtime=2780562352 [ 225.851610][ T7149] bi_otime=2770562249 [ 225.851620][ T7149] bi_uid=0 [ 225.851629][ T7149] bi_gid=0 [ 225.851638][ T7149] bi_nlink=0 [ 225.851647][ T7149] bi_generation=0 [ 225.851656][ T7149] bi_dev=0 [ 225.851666][ T7149] bi_data_checksum=0 [ 225.851675][ T7149] bi_compression=0 [ 225.851684][ T7149] bi_project=0 [ 225.851694][ T7149] bi_background_compression=0 [ 225.851704][ T7149] bi_data_replicas=0 [ 225.851715][ T7149] bi_promote_target=0 [ 225.851725][ T7149] bi_foreground_target=64 [ 225.851735][ T7149] bi_background_target=1 [ 225.851743][ T7149] bi_erasure_code=0 [ 225.851753][ T7149] bi_fields_set=0 [ 225.851762][ T7149] bi_dir=0 [ 225.851771][ T7149] bi_dir_offset=32 [ 225.851781][ T7149] bi_subvol=0 [ 225.851790][ T7149] bi_parent_subvol=0 [ 225.851800][ T7149] bi_nocow=0 [ 225.851809][ T7149] bi_depth=0 [ 225.851819][ T7149] bi_inodes_32bit=0 [ 225.851829][ T7149] bi_casefold=0, fixing [ 225.853508][ T7149] done [ 225.854200][ T7149] bcachefs (loop2): check_extents... done [ 225.855687][ T7149] bcachefs (loop2): check_indirect_extents... done [ 225.856430][ T7149] bcachefs (loop2): check_dirents... [ 225.858674][ T7149] bcachefs (loop2): directory with missing backpointer [ 225.858692][ T7149] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 225.858707][ T7149] inum: 4098:4294967295 [ 225.858718][ T7149] mode=40755 [ 225.858727][ T7149] flags=(11300000) [ 225.858737][ T7149] journal_seq=23 [ 225.858745][ T7149] hash_seed=ece93825deac2443 [ 225.858755][ T7149] hash_type=siphash [ 225.858765][ T7149] bi_size=0 [ 225.858775][ T7149] bi_sectors=0 [ 225.858784][ T7149] bi_version=0 [ 225.858794][ T7149] bi_atime=2770562249 [ 225.858803][ T7149] bi_ctime=2780562352 [ 225.858813][ T7149] bi_mtime=2780562352 [ 225.858824][ T7149] bi_otime=2770562249 [ 225.858834][ T7149] bi_uid=0 [ 225.858843][ T7149] bi_gid=0 [ 225.858851][ T7149] bi_nlink=0 [ 225.858861][ T7149] bi_generation=0 [ 225.858870][ T7149] bi_dev=0 [ 225.858880][ T7149] bi_data_checksum=0 [ 225.858889][ T7149] bi_compression=0 [ 225.858898][ T7149] bi_project=0 [ 225.858908][ T7149] bi_background_compression=0 [ 225.858918][ T7149] bi_data_replicas=0 [ 225.858928][ T7149] bi_promote_target=0 [ 225.858938][ T7149] bi_foreground_target=64 [ 225.858948][ T7149] bi_background_target=1 [ 225.858960][ T7149] bi_erasure_code=0 [ 225.858970][ T7149] bi_fields_set=0 [ 225.858979][ T7149] bi_dir=0 [ 225.858996][ T7149] bi_dir_offset=0 [ 225.859006][ T7149] bi_subvol=0 [ 225.859015][ T7149] bi_parent_subvol=0 [ 225.859025][ T7149] bi_nocow=0 [ 225.859035][ T7149] bi_depth=0 [ 225.859044][ T7149] bi_inodes_32bit=0 [ 225.859053][ T7149] bi_casefold=0, fixing [ 225.864676][ T7149] done [ 225.865521][ T7149] bcachefs (loop2): check_xattrs... done [ 225.869258][ T7149] bcachefs (loop2): check_root... done [ 225.872514][ T7149] bcachefs (loop2): check_unreachable_inodes... done [ 225.873505][ T7149] bcachefs (loop2): check_subvolume_structure... done [ 225.874320][ T7149] bcachefs (loop2): check_directory_structure... done [ 225.875914][ T7149] bcachefs (loop2): check_nlinks... [ 225.876631][ T7149] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 225.878199][ T7149] done [ 225.878880][ T7149] bcachefs (loop2): check_rebalance_work... done [ 225.880884][ T7149] bcachefs (loop2): resume_logged_ops... done [ 225.881603][ T7149] bcachefs (loop2): delete_dead_inodes... done [ 225.890933][ T7149] bcachefs (loop2): set_fs_needs_rebalance... [pid 5839] umount2("./97/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./97/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./97/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./97/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./97/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./97/file1") = 0 [pid 5839] umount2("./97/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 225.899648][ T7158] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 225.899672][ T7158] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 225.902070][ T7149] done [ 225.903026][ T7149] bcachefs (loop2): check_extents_to_backpointers... [ 225.904061][ T7149] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 225.912199][ T7149] done [ 225.927947][ T7149] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 225.927974][ T7149] bcachefs (loop2): check_alloc_info... done [pid 5839] newfstatat(AT_FDCWD, "./97/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./97/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./97") = 0 [pid 5839] mkdir("./98", 0777) = 0 [ 225.937062][ T7149] bcachefs (loop2): check_lrus... done [ 225.938180][ T7149] bcachefs (loop2): check_btree_backpointers... done [ 225.940109][ T7149] bcachefs (loop2): check_backpointers_to_extents... done [ 225.943068][ T7149] bcachefs (loop2): check_extents_to_backpointers... done [ 225.947531][ T7149] bcachefs (loop2): check_alloc_to_lru_refs... done [ 225.951187][ T7149] bcachefs (loop2): bucket_gens_init... done [ 225.953154][ T7149] bcachefs (loop2): check_snapshot_trees... done [ 225.958031][ T7149] bcachefs (loop2): check_snapshots... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7353 ./strace-static-x86_64: Process 7353 attached [pid 7353] set_robust_list(0x5555901c6760, 24) = 0 [ 225.958837][ T7149] bcachefs (loop2): check_subvols... done [ 225.959655][ T7149] bcachefs (loop2): check_subvol_children... done [ 225.961284][ T7149] bcachefs (loop2): delete_dead_snapshots... done [ 225.961946][ T7149] bcachefs (loop2): check_inodes... done [ 225.968639][ T7149] bcachefs (loop2): check_extents... done [ 225.970629][ T7149] bcachefs (loop2): check_indirect_extents... done [ 225.971315][ T7149] bcachefs (loop2): check_dirents... done [ 225.973692][ T7149] bcachefs (loop2): check_xattrs... done [pid 7353] chdir("./98") = 0 [pid 7353] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7353] setpgid(0, 0) = 0 [pid 7353] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7353] write(3, "1000", 4) = 4 [pid 7353] close(3) = 0 [pid 7353] symlink("/dev/binderfs", "./binderfs") = 0 [ 225.979144][ T7149] bcachefs (loop2): check_root... done [ 225.979975][ T7149] bcachefs (loop2): check_unreachable_inodes... done [ 225.981457][ T7149] bcachefs (loop2): check_subvolume_structure... done [ 225.982211][ T7149] bcachefs (loop2): check_directory_structure... done [ 225.982895][ T7149] bcachefs (loop2): check_nlinks... done [ 225.984073][ T7149] bcachefs (loop2): check_rebalance_work... done [ 225.990367][ T7149] bcachefs (loop2): resume_logged_ops... done [ 225.991113][ T7149] bcachefs (loop2): delete_dead_inodes... done [pid 7353] write(1, "executing program\n", 18executing program ) = 18 [pid 7353] memfd_create("syzkaller", 0) = 3 [ 225.991856][ T7149] bcachefs (loop2): set_fs_needs_rebalance... done [ 226.000857][ T7149] bcachefs (loop2): done starting filesystem [ 226.100118][ T5839] bcachefs (loop2): shutting down [ 226.100140][ T5839] bcachefs (loop2): going read-only [ 226.100406][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 226.141417][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 226.141792][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [pid 7353] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 226.142706][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 226.144539][ T5839] bcachefs (loop2): marking filesystem clean [ 226.205385][ T5839] bcachefs (loop2): shutdown complete [ 227.038940][ T7160] loop2: detected capacity change from 0 to 32768 [ 227.175937][ T7160] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 227.175966][ T7160] allowing incompatible features above 0.0: (unknown version) [ 227.175979][ T7160] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 227.176006][ T7160] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 227.176136][ T7160] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 227.176372][ T7160] bcachefs (loop2): Version upgrade required: [ 227.176372][ T7160] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 227.176372][ T7160] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 227.176372][ T7160] 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,check_rebalance_work,set_fs_needs_rebalance [ 227.195608][ T7160] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 227.195635][ T7160] size != 0, deleting [ 227.196796][ T7160] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 227.201608][ T7160] bcachefs (loop2): check_topology... done [ 227.202987][ T7160] bcachefs (loop2): accounting_read... done [ 227.235601][ T7160] bcachefs (loop2): alloc_read... done [ 227.236547][ T7160] bcachefs (loop2): snapshots_read... done [ 227.237356][ T7160] bcachefs (loop2): check_allocations... [ 227.241592][ T7160] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 227.241613][ T7160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 227.244362][ T7160] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 227.244381][ T7160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [pid 7353] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7353] munmap(0x7fbbeb93a000, 138412032) = 0 [ 227.245859][ T7160] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 227.245878][ T7160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 227.247381][ T7160] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 227.247399][ T7160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [pid 7353] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7353] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7353] close(3) = 0 [pid 7353] close(4) = 0 [pid 7353] mkdir("./file1", 0777) = 0 [ 227.251441][ T7160] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 227.251460][ T7160] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 227.252420][ T7160] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.252543][ T7160] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.253103][ T7160] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.253212][ T7160] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.253612][ T7160] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.254207][ T7160] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.254436][ T7160] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.254542][ T7160] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.254745][ T7160] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.254862][ T7160] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.255074][ T7160] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.255179][ T7160] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.255376][ T7160] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.255479][ T7160] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 227.255689][ T7160] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 227.255808][ T7160] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 227.256030][ T7160] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.256138][ T7160] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.256341][ T7160] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.256449][ T7160] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.256676][ T7160] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 227.256692][ T7160] Ratelimiting new instances of previous error [ 227.256821][ T7160] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 227.256837][ T7160] Ratelimiting new instances of previous error [ 227.270539][ T7160] done [ 227.272709][ T7160] bcachefs (loop2): going read-write [ 227.278067][ T7160] bcachefs (loop2): journal_replay... done [ 227.305488][ T7160] bcachefs (loop2): check_alloc_info... [ 227.307302][ T7160] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 227.307319][ T7160] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 227.307332][ T7160] gen 0 oldest_gen 0 data_type need_discard [ 227.307343][ T7160] journal_seq_nonempty 6 [ 227.307352][ T7160] journal_seq_empty 0 [ 227.307362][ T7160] need_discard 1 [ 227.307372][ T7160] need_inc_gen 1 [ 227.307381][ T7160] dirty_sectors 0 [ 227.307391][ T7160] stripe_sectors 0 [ 227.307402][ T7160] cached_sectors 0 [ 227.307412][ T7160] stripe 0 [ 227.307421][ T7160] stripe_redundancy 0 [ 227.307431][ T7160] io_time[READ] 1 [ 227.307441][ T7160] io_time[WRITE] 768 [ 227.307451][ T7160] fragmentation 0 [ 227.307460][ T7160] bp_start 8 [ 227.307470][ T7160] , fixing [ 227.323906][ T7160] done [ 227.329485][ T7160] bcachefs (loop2): check_lrus... done [ 227.330417][ T7160] bcachefs (loop2): check_btree_backpointers... done [ 227.332266][ T7160] bcachefs (loop2): check_backpointers_to_extents... done [ 227.336478][ T7160] bcachefs (loop2): check_extents_to_backpointers... [ 227.337880][ T7160] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 227.340575][ T7160] done [ 227.341269][ T7160] bcachefs (loop2): check_alloc_to_lru_refs... [ 227.343605][ T7160] bcachefs (loop2): missing fragmentation lru entry [ 227.343624][ T7160] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 227.343635][ T7160] gen 0 oldest_gen 0 data_type user [ 227.343646][ T7160] journal_seq_nonempty 5 [ 227.343656][ T7160] journal_seq_empty 134217728 [ 227.343666][ T7160] need_discard 1 [ 227.343678][ T7160] need_inc_gen 1 [ 227.343688][ T7160] dirty_sectors 16 [ 227.343698][ T7160] stripe_sectors 1802251 [ 227.343708][ T7160] cached_sectors 0 [ 227.343718][ T7160] stripe 0 [ 227.343727][ T7160] stripe_redundancy 0 ** 3 printk messages dropped ** [ 227.343768][ T7160] bp_start 7 ** 1 printk messages dropped ** [ 227.345324][ T7160] done ** 5 printk messages dropped ** [ 227.365228][ T7160] done [pid 7353] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7353] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7353] chdir("./file1") = 0 [pid 7353] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7353] ioctl(4, LOOP_CLR_FD) = 0 [pid 7353] close(4) = 0 [pid 7353] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7353] exit_group(0) = ? [pid 7353] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7353, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=35 /* 0.35 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./98", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./98", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 227.365970][ T7160] bcachefs (loop2): check_subvols... done [ 227.367486][ T7160] bcachefs (loop2): check_subvol_children... done [ 227.368320][ T7160] bcachefs (loop2): delete_dead_snapshots... done [ 227.369122][ T7160] bcachefs (loop2): check_inodes... [ 227.370932][ T7160] bcachefs (loop2): inode points to missing dirent [ 227.370950][ T7160] inum: 4098:4294967295 [ 227.370960][ T7160] mode=40755 [ 227.370969][ T7160] flags=(15300000) [ 227.370978][ T7160] journal_seq=4 [ 227.370987][ T7160] hash_seed=ece93825deac2443 [ 227.370997][ T7160] hash_type=siphash [ 227.371006][ T7160] bi_size=0 [ 227.371015][ T7160] bi_sectors=0 [ 227.371024][ T7160] bi_version=0 [ 227.371033][ T7160] bi_atime=2770562249 [ 227.371044][ T7160] bi_ctime=2780562352 [ 227.371053][ T7160] bi_mtime=2780562352 [ 227.371062][ T7160] bi_otime=2770562249 [ 227.371072][ T7160] bi_uid=0 [ 227.371082][ T7160] bi_gid=0 [ 227.371091][ T7160] bi_nlink=0 [ 227.371099][ T7160] bi_generation=0 [ 227.371109][ T7160] bi_dev=0 [ 227.371118][ T7160] bi_data_checksum=0 [ 227.371128][ T7160] bi_compression=0 [ 227.371137][ T7160] bi_project=0 [ 227.371147][ T7160] bi_background_compression=0 [ 227.371157][ T7160] bi_data_replicas=0 [ 227.371167][ T7160] bi_promote_target=0 [ 227.371177][ T7160] bi_foreground_target=64 [ 227.371186][ T7160] bi_background_target=1 [ 227.371652][ T7160] bi_erasure_code=0 [ 227.371663][ T7160] bi_fields_set=0 [ 227.371673][ T7160] bi_dir=0 [ 227.371682][ T7160] bi_dir_offset=32 [ 227.371692][ T7160] bi_subvol=0 [ 227.371701][ T7160] bi_parent_subvol=0 [ 227.371710][ T7160] bi_nocow=0 [ 227.371720][ T7160] bi_depth=0 [ 227.371729][ T7160] bi_inodes_32bit=0 [ 227.371738][ T7160] bi_casefold=0, fixing [ 227.373333][ T7160] done [ 227.374060][ T7160] bcachefs (loop2): check_extents... done [ 227.375529][ T7160] bcachefs (loop2): check_indirect_extents... done [ 227.376347][ T7160] bcachefs (loop2): check_dirents... [ 227.378046][ T7160] bcachefs (loop2): directory with missing backpointer [ 227.378062][ T7160] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 227.378077][ T7160] inum: 4098:4294967295 [ 227.378085][ T7160] mode=40755 [ 227.378095][ T7160] flags=(11300000) [ 227.378103][ T7160] journal_seq=22 [ 227.378112][ T7160] hash_seed=ece93825deac2443 [ 227.378123][ T7160] hash_type=siphash [ 227.378132][ T7160] bi_size=0 [ 227.378141][ T7160] bi_sectors=0 [ 227.378150][ T7160] bi_version=0 [ 227.378161][ T7160] bi_atime=2770562249 [ 227.378170][ T7160] bi_ctime=2780562352 [ 227.378179][ T7160] bi_mtime=2780562352 [ 227.378190][ T7160] bi_otime=2770562249 [ 227.378200][ T7160] bi_uid=0 [ 227.378208][ T7160] bi_gid=0 [ 227.378217][ T7160] bi_nlink=0 [ 227.378226][ T7160] bi_generation=0 [ 227.378235][ T7160] bi_dev=0 [ 227.378244][ T7160] bi_data_checksum=0 [ 227.378253][ T7160] bi_compression=0 [ 227.378264][ T7160] bi_project=0 [ 227.378272][ T7160] bi_background_compression=0 [ 227.378283][ T7160] bi_data_replicas=0 [ 227.378292][ T7160] bi_promote_target=0 [ 227.378302][ T7160] bi_foreground_target=64 [ 227.378311][ T7160] bi_background_target=1 [ 227.378321][ T7160] bi_erasure_code=0 [ 227.378330][ T7160] bi_fields_set=0 [ 227.378339][ T7160] bi_dir=0 [ 227.378348][ T7160] bi_dir_offset=0 [ 227.378358][ T7160] bi_subvol=0 [ 227.378366][ T7160] bi_parent_subvol=0 [ 227.378376][ T7160] bi_nocow=0 [ 227.378386][ T7160] bi_depth=0 [ 227.378394][ T7160] bi_inodes_32bit=0 [ 227.378403][ T7160] bi_casefold=0, fixing [ 227.386615][ T7160] done [ 227.387407][ T7160] bcachefs (loop2): check_xattrs... done [ 227.390840][ T7160] bcachefs (loop2): check_root... done [ 227.393209][ T7160] bcachefs (loop2): check_unreachable_inodes... done [ 227.394520][ T7160] bcachefs (loop2): check_subvolume_structure... done [ 227.395311][ T7160] bcachefs (loop2): check_directory_structure... done [ 227.396095][ T7160] bcachefs (loop2): check_nlinks... [pid 5839] umount2("./98/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./98/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 227.396802][ T7160] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 227.397823][ T7160] done [ 227.398514][ T7160] bcachefs (loop2): check_rebalance_work... done [ 227.400500][ T7160] bcachefs (loop2): resume_logged_ops... done [ 227.401332][ T7160] bcachefs (loop2): delete_dead_inodes... done [ 227.410433][ T7160] bcachefs (loop2): set_fs_needs_rebalance... done [ 227.420380][ T7160] bcachefs (loop2): check_extents_to_backpointers... [ 227.421421][ T7160] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [pid 5839] newfstatat(AT_FDCWD, "./98/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./98/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./98/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./98/file1") = 0 [pid 5839] umount2("./98/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./98/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./98/binderfs") = 0 [ 227.421777][ T7169] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 227.421798][ T7169] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 227.426396][ T7160] done [ 227.443778][ T7160] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 227.443807][ T7160] bcachefs (loop2): check_alloc_info... done [ 227.452840][ T7160] bcachefs (loop2): check_lrus... done [ 227.454036][ T7160] bcachefs (loop2): check_btree_backpointers... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./98") = 0 [pid 5839] mkdir("./99", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7364 ./strace-static-x86_64: Process 7364 attached [ 227.457084][ T7160] bcachefs (loop2): check_backpointers_to_extents... done [ 227.458447][ T7160] bcachefs (loop2): check_extents_to_backpointers... done [ 227.467667][ T7160] bcachefs (loop2): check_alloc_to_lru_refs... done [ 227.470917][ T7160] bcachefs (loop2): bucket_gens_init... done [ 227.473019][ T7160] bcachefs (loop2): check_snapshot_trees... done [ 227.474216][ T7160] bcachefs (loop2): check_snapshots... done [ 227.478177][ T7160] bcachefs (loop2): check_subvols... done [pid 7364] set_robust_list(0x5555901c6760, 24) = 0 [pid 7364] chdir("./99") = 0 [pid 7364] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7364] setpgid(0, 0) = 0 [ 227.478979][ T7160] bcachefs (loop2): check_subvol_children... done [ 227.480439][ T7160] bcachefs (loop2): delete_dead_snapshots... done [ 227.488724][ T7160] bcachefs (loop2): check_inodes... done [ 227.489953][ T7160] bcachefs (loop2): check_extents... done [ 227.491633][ T7160] bcachefs (loop2): check_indirect_extents... done [ 227.492812][ T7160] bcachefs (loop2): check_dirents... done [ 227.499430][ T7160] bcachefs (loop2): check_xattrs... done [ 227.500584][ T7160] bcachefs (loop2): check_root... done [ 227.501385][ T7160] bcachefs (loop2): check_unreachable_inodes... done [pid 7364] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7364] write(3, "1000", 4) = 4 [pid 7364] close(3) = 0 [pid 7364] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7364] write(1, "executing program\n", 18executing program ) = 18 [pid 7364] memfd_create("syzkaller", 0) = 3 [pid 7364] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 227.502558][ T7160] bcachefs (loop2): check_subvolume_structure... done [ 227.503502][ T7160] bcachefs (loop2): check_directory_structure... done [ 227.504232][ T7160] bcachefs (loop2): check_nlinks... done [ 227.505440][ T7160] bcachefs (loop2): check_rebalance_work... done [ 227.510384][ T7160] bcachefs (loop2): resume_logged_ops... done [ 227.511114][ T7160] bcachefs (loop2): delete_dead_inodes... done [ 227.511928][ T7160] bcachefs (loop2): set_fs_needs_rebalance... done [ 227.522667][ T7160] bcachefs (loop2): done starting filesystem [ 227.580542][ T5839] bcachefs (loop2): shutting down [ 227.580566][ T5839] bcachefs (loop2): going read-only [ 227.580862][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 227.622249][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 227.623069][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 227.623992][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 227.625845][ T5839] bcachefs (loop2): marking filesystem clean [ 227.626414][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 227.626414][ T5900] rw journal devs: [ 227.688302][ T5839] bcachefs (loop2): shutdown complete [ 228.438966][ T7171] loop2: detected capacity change from 0 to 32768 [ 228.565951][ T7171] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 228.565982][ T7171] allowing incompatible features above 0.0: (unknown version) [ 228.565997][ T7171] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 228.566027][ T7171] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 228.566158][ T7171] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 228.566405][ T7171] bcachefs (loop2): Version upgrade required: [ 228.566405][ T7171] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 228.566405][ T7171] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 228.566405][ T7171] 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,check_rebalance_work,set_fs_needs_rebalance [ 228.585640][ T7171] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 228.585666][ T7171] size != 0, deleting [ 228.587406][ T7171] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 228.591831][ T7171] bcachefs (loop2): check_topology... done [ 228.593340][ T7171] bcachefs (loop2): accounting_read... done [ 228.630725][ T7171] bcachefs (loop2): alloc_read... done [ 228.631635][ T7171] bcachefs (loop2): snapshots_read... done [pid 7364] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 228.632652][ T7171] bcachefs (loop2): check_allocations... [ 228.634976][ T7171] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 228.634996][ T7171] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 228.636988][ T7171] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 7364] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7364] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7364] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7364] close(3) = 0 [pid 7364] close(4) = 0 [pid 7364] mkdir("./file1", 0777) = 0 [ 228.637007][ T7171] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 228.638395][ T7171] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 228.638413][ T7171] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 228.641735][ T7171] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 228.641754][ T7171] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 228.644115][ T7171] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 228.644134][ T7171] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 228.645734][ T7171] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.645862][ T7171] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.646409][ T7171] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.646516][ T7171] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.646929][ T7171] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.647036][ T7171] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.647236][ T7171] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.647342][ T7171] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.647543][ T7171] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.647655][ T7171] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.647857][ T7171] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.647962][ T7171] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.648161][ T7171] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.648266][ T7171] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 228.648470][ T7171] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 228.648582][ T7171] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 228.648780][ T7171] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 228.648883][ T7171] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 228.649097][ T7171] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 228.649299][ T7171] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 228.649535][ T7171] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 228.649550][ T7171] Ratelimiting new instances of previous error [ 228.649703][ T7171] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 228.649719][ T7171] Ratelimiting new instances of previous error [ 228.663547][ T7171] done [ 228.665623][ T7171] bcachefs (loop2): going read-write [ 228.671871][ T7171] bcachefs (loop2): journal_replay... done [ 228.698469][ T7171] bcachefs (loop2): check_alloc_info... [ 228.701161][ T7171] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 228.701181][ T7171] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 228.701194][ T7171] gen 0 oldest_gen 0 data_type need_discard [ 228.701204][ T7171] journal_seq_nonempty 6 [ 228.701216][ T7171] journal_seq_empty 0 [ 228.701226][ T7171] need_discard 1 [ 228.701236][ T7171] need_inc_gen 1 [ 228.701247][ T7171] dirty_sectors 0 [ 228.701257][ T7171] stripe_sectors 0 [ 228.701267][ T7171] cached_sectors 0 [ 228.701278][ T7171] stripe 0 [ 228.701288][ T7171] stripe_redundancy 0 [ 228.701297][ T7171] io_time[READ] 1 [ 228.701307][ T7171] io_time[WRITE] 768 [ 228.701319][ T7171] fragmentation 0 [ 228.701328][ T7171] bp_start 8 [ 228.701338][ T7171] , fixing [ 228.717399][ T7171] done [ 228.719271][ T7171] bcachefs (loop2): check_lrus... done ** 1 printk messages dropped ** [ 228.723292][ T7171] bcachefs (loop2): check_backpointers_to_extents... done ** 4 printk messages dropped ** [pid 7364] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7364] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7364] chdir("./file1") = 0 [pid 7364] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7364] ioctl(4, LOOP_CLR_FD) = 0 [pid 7364] close(4) = 0 [pid 7364] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 228.737021][ T7171] bcachefs (loop2): missing fragmentation lru entry ** 9 printk messages dropped ** [ 228.737137][ T7171] stripe 0 ** 9 printk messages dropped ** [ 228.746825][ T7171] bcachefs (loop2): check_snapshots... ** 2 printk messages dropped ** [ 228.758302][ T7171] done [ 228.758995][ T7171] bcachefs (loop2): check_subvols... done [ 228.761055][ T7171] bcachefs (loop2): check_subvol_children... done [ 228.761909][ T7171] bcachefs (loop2): delete_dead_snapshots... done [ 228.762683][ T7171] bcachefs (loop2): check_inodes... [pid 7364] exit_group(0) = ? [pid 7364] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7364, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=39 /* 0.39 s */} --- [pid 5839] umount2("./99", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./99", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 228.764242][ T7171] bcachefs (loop2): inode points to missing dirent [ 228.764259][ T7171] inum: 4098:4294967295 [ 228.764269][ T7171] mode=40755 [ 228.764279][ T7171] flags=(15300000) [ 228.764288][ T7171] journal_seq=4 [ 228.764298][ T7171] hash_seed=ece93825deac2443 [ 228.764308][ T7171] hash_type=siphash [ 228.764318][ T7171] bi_size=0 [ 228.764327][ T7171] bi_sectors=0 [ 228.764338][ T7171] bi_version=0 [ 228.764347][ T7171] bi_atime=2770562249 [ 228.764356][ T7171] bi_ctime=2780562352 [ 228.764367][ T7171] bi_mtime=2780562352 [ 228.764376][ T7171] bi_otime=2770562249 [ 228.764386][ T7171] bi_uid=0 [ 228.764396][ T7171] bi_gid=0 [ 228.764405][ T7171] bi_nlink=0 [ 228.764414][ T7171] bi_generation=0 [ 228.764423][ T7171] bi_dev=0 [ 228.764432][ T7171] bi_data_checksum=0 [ 228.764442][ T7171] bi_compression=0 [ 228.764451][ T7171] bi_project=0 [ 228.764461][ T7171] bi_background_compression=0 [ 228.764471][ T7171] bi_data_replicas=0 [ 228.764480][ T7171] bi_promote_target=0 [ 228.764490][ T7171] bi_foreground_target=64 [ 228.764502][ T7171] bi_background_target=1 [ 228.764511][ T7171] bi_erasure_code=0 [ 228.764521][ T7171] bi_fields_set=0 [ 228.764531][ T7171] bi_dir=0 [ 228.764540][ T7171] bi_dir_offset=32 [ 228.764562][ T7171] bi_subvol=0 [ 228.764571][ T7171] bi_parent_subvol=0 [ 228.764581][ T7171] bi_nocow=0 [ 228.764590][ T7171] bi_depth=0 [ 228.764599][ T7171] bi_inodes_32bit=0 [ 228.764610][ T7171] bi_casefold=0, fixing [ 228.766108][ T7171] done [ 228.766754][ T7171] bcachefs (loop2): check_extents... done [ 228.768198][ T7171] bcachefs (loop2): check_indirect_extents... done [ 228.769025][ T7171] bcachefs (loop2): check_dirents... [ 228.771518][ T7171] bcachefs (loop2): directory with missing backpointer [ 228.771537][ T7171] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 228.771559][ T7171] inum: 4098:4294967295 [ 228.771568][ T7171] mode=40755 [ 228.771575][ T7171] flags=(11300000) [ 228.771585][ T7171] journal_seq=22 [ 228.771595][ T7171] hash_seed=ece93825deac2443 [ 228.771605][ T7171] hash_type=siphash [ 228.771616][ T7171] bi_size=0 [ 228.771625][ T7171] bi_sectors=0 [ 228.771635][ T7171] bi_version=0 [ 228.771644][ T7171] bi_atime=2770562249 [ 228.771654][ T7171] bi_ctime=2780562352 [ 228.771663][ T7171] bi_mtime=2780562352 [ 228.771674][ T7171] bi_otime=2770562249 [ 228.771683][ T7171] bi_uid=0 [ 228.771692][ T7171] bi_gid=0 [ 228.771701][ T7171] bi_nlink=0 [ 228.771710][ T7171] bi_generation=0 [ 228.771720][ T7171] bi_dev=0 [ 228.771729][ T7171] bi_data_checksum=0 [ 228.771740][ T7171] bi_compression=0 [ 228.771749][ T7171] bi_project=0 [ 228.771758][ T7171] bi_background_compression=0 [ 228.771768][ T7171] bi_data_replicas=0 [ 228.771779][ T7171] bi_promote_target=0 [ 228.771789][ T7171] bi_foreground_target=64 [ 228.771798][ T7171] bi_background_target=1 [ 228.771808][ T7171] bi_erasure_code=0 [ 228.771817][ T7171] bi_fields_set=0 [ 228.771827][ T7171] bi_dir=0 [ 228.771838][ T7171] bi_dir_offset=0 [ 228.771848][ T7171] bi_subvol=0 [ 228.771857][ T7171] bi_parent_subvol=0 [ 228.771867][ T7171] bi_nocow=0 [ 228.771876][ T7171] bi_depth=0 [ 228.771886][ T7171] bi_inodes_32bit=0 [ 228.771895][ T7171] bi_casefold=0, fixing [ 228.780187][ T7171] done [ 228.780838][ T7171] bcachefs (loop2): check_xattrs... done [ 228.783251][ T7171] bcachefs (loop2): check_root... done [ 228.785204][ T7171] bcachefs (loop2): check_unreachable_inodes... done [ 228.787302][ T7171] bcachefs (loop2): check_subvolume_structure... done [ 228.788148][ T7171] bcachefs (loop2): check_directory_structure... done [ 228.788933][ T7171] bcachefs (loop2): check_nlinks... [ 228.790119][ T7171] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 228.791125][ T7171] done [ 228.791810][ T7171] bcachefs (loop2): check_rebalance_work... done [ 228.793025][ T7171] bcachefs (loop2): resume_logged_ops... done [pid 5839] umount2("./99/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./99/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 228.794066][ T7171] bcachefs (loop2): delete_dead_inodes... done [ 228.803492][ T7171] bcachefs (loop2): set_fs_needs_rebalance... done [ 228.813697][ T7171] bcachefs (loop2): check_extents_to_backpointers... [ 228.814714][ T7171] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 228.815264][ T7180] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 228.815282][ T7180] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 228.820955][ T7171] done [pid 5839] newfstatat(AT_FDCWD, "./99/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./99/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./99/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./99/file1") = 0 [pid 5839] umount2("./99/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./99/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./99/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./99") = 0 [ 228.838140][ T7171] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 228.838166][ T7171] bcachefs (loop2): check_alloc_info... done [ 228.850209][ T7171] bcachefs (loop2): check_lrus... done [ 228.851851][ T7171] bcachefs (loop2): check_btree_backpointers... done [ 228.853034][ T7171] bcachefs (loop2): check_backpointers_to_extents... done [ 228.854576][ T7171] bcachefs (loop2): check_extents_to_backpointers... done [ 228.860405][ T7171] bcachefs (loop2): check_alloc_to_lru_refs... done [pid 5839] mkdir("./100", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7375 ./strace-static-x86_64: Process 7375 attached [ 228.863036][ T7171] bcachefs (loop2): bucket_gens_init... done [ 228.865066][ T7171] bcachefs (loop2): check_snapshot_trees... done [ 228.870345][ T7171] bcachefs (loop2): check_snapshots... done [ 228.871138][ T7171] bcachefs (loop2): check_subvols... done [ 228.871902][ T7171] bcachefs (loop2): check_subvol_children... done [ 228.873196][ T7171] bcachefs (loop2): delete_dead_snapshots... done [ 228.880198][ T7171] bcachefs (loop2): check_inodes... done [ 228.881326][ T7171] bcachefs (loop2): check_extents... done [pid 7375] set_robust_list(0x5555901c6760, 24) = 0 [pid 7375] chdir("./100") = 0 [pid 7375] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7375] setpgid(0, 0) = 0 [pid 7375] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 228.883447][ T7171] bcachefs (loop2): check_indirect_extents... done [ 228.884189][ T7171] bcachefs (loop2): check_dirents... done [ 228.885704][ T7171] bcachefs (loop2): check_xattrs... done [ 228.886754][ T7171] bcachefs (loop2): check_root... done [ 228.890443][ T7171] bcachefs (loop2): check_unreachable_inodes... done [ 228.893681][ T7171] bcachefs (loop2): check_subvolume_structure... done [ 228.894440][ T7171] bcachefs (loop2): check_directory_structure... done [ 228.895166][ T7171] bcachefs (loop2): check_nlinks... done [pid 7375] write(3, "1000", 4) = 4 [pid 7375] close(3) = 0 [pid 7375] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7375] write(1, "executing program\n", 18executing program ) = 18 [ 228.900344][ T7171] bcachefs (loop2): check_rebalance_work... done [ 228.901244][ T7171] bcachefs (loop2): resume_logged_ops... done [ 228.901923][ T7171] bcachefs (loop2): delete_dead_inodes... done [ 228.902708][ T7171] bcachefs (loop2): set_fs_needs_rebalance... done [ 228.911728][ T7171] bcachefs (loop2): done starting filesystem [ 228.980906][ T5839] bcachefs (loop2): shutting down [ 228.980927][ T5839] bcachefs (loop2): going read-only [ 228.980957][ T5839] bcachefs (loop2): finished waiting for writes to stop [pid 7375] memfd_create("syzkaller", 0) = 3 [pid 7375] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 229.020640][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 229.021421][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 229.022266][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 229.024263][ T5839] bcachefs (loop2): marking filesystem clean [ 229.094788][ T5839] bcachefs (loop2): shutdown complete [ 229.914530][ T7182] loop2: detected capacity change from 0 to 32768 [ 230.046325][ T7182] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 230.046354][ T7182] allowing incompatible features above 0.0: (unknown version) [ 230.046368][ T7182] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 230.046396][ T7182] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 230.046554][ T7182] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 230.046802][ T7182] bcachefs (loop2): Version upgrade required: [ 230.046802][ T7182] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 230.046802][ T7182] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 230.046802][ T7182] 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,check_rebalance_work,set_fs_needs_rebalance [ 230.067240][ T7182] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 230.067267][ T7182] size != 0, deleting [ 230.068437][ T7182] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 230.072404][ T7182] bcachefs (loop2): check_topology... done [ 230.073814][ T7182] bcachefs (loop2): accounting_read... done [ 230.100530][ T7182] bcachefs (loop2): alloc_read... done [ 230.101476][ T7182] bcachefs (loop2): snapshots_read... done [ 230.102325][ T7182] bcachefs (loop2): check_allocations... [ 230.104281][ T7182] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 230.104303][ T7182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [pid 7375] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 230.106245][ T7182] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 230.106264][ T7182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 230.107950][ T7182] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 230.107968][ T7182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 230.111757][ T7182] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 7375] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7375] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7375] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7375] close(3) = 0 [pid 7375] close(4) = 0 [pid 7375] mkdir("./file1", 0777) = 0 [ 230.111778][ T7182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 230.114306][ T7182] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 230.114325][ T7182] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 230.115267][ T7182] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.115390][ T7182] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.115945][ T7182] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.116056][ T7182] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.116463][ T7182] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.116567][ T7182] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.116780][ T7182] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.116886][ T7182] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.117085][ T7182] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.117191][ T7182] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.117390][ T7182] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.117493][ T7182] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.117699][ T7182] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.117804][ T7182] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 230.118003][ T7182] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 230.118106][ T7182] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 230.118312][ T7182] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 230.118416][ T7182] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 230.118627][ T7182] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 230.118733][ T7182] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 230.118960][ T7182] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 230.118978][ T7182] Ratelimiting new instances of previous error [ 230.119111][ T7182] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 230.119127][ T7182] Ratelimiting new instances of previous error [ 230.133912][ T7182] done [ 230.136061][ T7182] bcachefs (loop2): going read-write [ 230.141979][ T7182] bcachefs (loop2): journal_replay... done [ 230.168825][ T7182] bcachefs (loop2): check_alloc_info... [ 230.171062][ T7182] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 230.171081][ T7182] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 230.171092][ T7182] gen 0 oldest_gen 0 data_type need_discard [ 230.171105][ T7182] journal_seq_nonempty 6 [ 230.171115][ T7182] journal_seq_empty 0 [ 230.171125][ T7182] need_discard 1 [ 230.171134][ T7182] need_inc_gen 1 [ 230.171144][ T7182] dirty_sectors 0 [ 230.171154][ T7182] stripe_sectors 0 [ 230.171163][ T7182] cached_sectors 0 [ 230.171173][ T7182] stripe 0 [ 230.171182][ T7182] stripe_redundancy 0 [ 230.171190][ T7182] io_time[READ] 1 [ 230.171199][ T7182] io_time[WRITE] 768 [ 230.171242][ T7182] fragmentation 0 [ 230.171252][ T7182] bp_start 8 [ 230.171263][ T7182] , fixing [ 230.188209][ T7182] done [ 230.194392][ T7182] bcachefs (loop2): check_lrus... done [ 230.195244][ T7182] bcachefs (loop2): check_btree_backpointers... done [ 230.199126][ T7182] bcachefs (loop2): check_backpointers_to_extents... done [ 230.202825][ T7182] bcachefs (loop2): check_extents_to_backpointers... [ 230.204229][ T7182] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 230.205633][ T7182] done [ 230.206339][ T7182] bcachefs (loop2): check_alloc_to_lru_refs... [ 230.208318][ T7182] bcachefs (loop2): missing fragmentation lru entry [ 230.208335][ T7182] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 230.208346][ T7182] gen 0 oldest_gen 0 data_type user [ 230.208356][ T7182] journal_seq_nonempty 5 [ 230.208366][ T7182] journal_seq_empty 134217728 [ 230.208375][ T7182] need_discard 1 [ 230.208386][ T7182] need_inc_gen 1 [ 230.208396][ T7182] dirty_sectors 16 [ 230.208405][ T7182] stripe_sectors 1802251 [ 230.208415][ T7182] cached_sectors 0 [ 230.208425][ T7182] stripe 0 [pid 7375] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7375] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7375] chdir("./file1") = 0 [pid 7375] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7375] ioctl(4, LOOP_CLR_FD) = 0 [ 230.208434][ T7182] stripe_redundancy 0 [ 230.208444][ T7182] io_time[READ] 1 ** 6 printk messages dropped ** [ 230.217631][ T7182] bcachefs (loop2): check_snapshot_trees... done ** 3 printk messages dropped ** [ 230.230508][ T7182] done [ 230.231255][ T7182] bcachefs (loop2): check_subvols... done [ 230.232794][ T7182] bcachefs (loop2): check_subvol_children... done [ 230.233717][ T7182] bcachefs (loop2): delete_dead_snapshots... done [ 230.234500][ T7182] bcachefs (loop2): check_inodes... [pid 7375] close(4) = 0 [pid 7375] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7375] exit_group(0) = ? [pid 7375] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7375, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=42 /* 0.42 s */} --- [pid 5839] umount2("./100", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./100", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 230.235630][ T7182] bcachefs (loop2): inode points to missing dirent [ 230.235647][ T7182] inum: 4098:4294967295 [ 230.235657][ T7182] mode=40755 [ 230.235667][ T7182] flags=(15300000) [ 230.235676][ T7182] journal_seq=4 [ 230.235685][ T7182] hash_seed=ece93825deac2443 [ 230.235696][ T7182] hash_type=siphash [ 230.235705][ T7182] bi_size=0 [ 230.235714][ T7182] bi_sectors=0 [ 230.235724][ T7182] bi_version=0 [ 230.235733][ T7182] bi_atime=2770562249 [ 230.235743][ T7182] bi_ctime=2780562352 [ 230.235754][ T7182] bi_mtime=2780562352 [ 230.235764][ T7182] bi_otime=2770562249 [ 230.235774][ T7182] bi_uid=0 [ 230.235782][ T7182] bi_gid=0 [ 230.235792][ T7182] bi_nlink=0 [ 230.235801][ T7182] bi_generation=0 [ 230.235810][ T7182] bi_dev=0 [ 230.235820][ T7182] bi_data_checksum=0 [ 230.235829][ T7182] bi_compression=0 [ 230.235838][ T7182] bi_project=0 [ 230.235847][ T7182] bi_background_compression=0 [ 230.235858][ T7182] bi_data_replicas=0 [ 230.235867][ T7182] bi_promote_target=0 [ 230.235877][ T7182] bi_foreground_target=64 [ 230.235887][ T7182] bi_background_target=1 [ 230.235898][ T7182] bi_erasure_code=0 [ 230.235908][ T7182] bi_fields_set=0 [ 230.235917][ T7182] bi_dir=0 [ 230.235926][ T7182] bi_dir_offset=32 [ 230.235936][ T7182] bi_subvol=0 [ 230.235945][ T7182] bi_parent_subvol=0 [ 230.235955][ T7182] bi_nocow=0 [ 230.235964][ T7182] bi_depth=0 [ 230.235973][ T7182] bi_inodes_32bit=0 [ 230.235983][ T7182] bi_casefold=0, fixing [ 230.237616][ T7182] done [ 230.243201][ T7182] bcachefs (loop2): check_extents... done [ 230.245500][ T7182] bcachefs (loop2): check_indirect_extents... done [ 230.246337][ T7182] bcachefs (loop2): check_dirents... [ 230.248088][ T7182] bcachefs (loop2): directory with missing backpointer [ 230.248104][ T7182] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 230.248119][ T7182] inum: 4098:4294967295 [ 230.248129][ T7182] mode=40755 [ 230.248138][ T7182] flags=(11300000) [ 230.248147][ T7182] journal_seq=23 [ 230.248157][ T7182] hash_seed=ece93825deac2443 [ 230.248166][ T7182] hash_type=siphash [ 230.248176][ T7182] bi_size=0 [ 230.248184][ T7182] bi_sectors=0 [ 230.248194][ T7182] bi_version=0 [ 230.248220][ T7182] bi_atime=2770562249 [ 230.248229][ T7182] bi_ctime=2780562352 [ 230.248239][ T7182] bi_mtime=2780562352 [ 230.248249][ T7182] bi_otime=2770562249 [ 230.248259][ T7182] bi_uid=0 [ 230.248267][ T7182] bi_gid=0 [ 230.248276][ T7182] bi_nlink=0 [ 230.248286][ T7182] bi_generation=0 [ 230.248295][ T7182] bi_dev=0 [ 230.248304][ T7182] bi_data_checksum=0 [ 230.248313][ T7182] bi_compression=0 [ 230.248323][ T7182] bi_project=0 [ 230.248332][ T7182] bi_background_compression=0 [ 230.248342][ T7182] bi_data_replicas=0 [ 230.248349][ T7182] bi_promote_target=0 [ 230.248357][ T7182] bi_foreground_target=64 [ 230.248365][ T7182] bi_background_target=1 [ 230.248372][ T7182] bi_erasure_code=0 [ 230.248382][ T7182] bi_fields_set=0 [ 230.248396][ T7182] bi_dir=0 [ 230.248406][ T7182] bi_dir_offset=0 [ 230.248416][ T7182] bi_subvol=0 [ 230.248425][ T7182] bi_parent_subvol=0 [ 230.248434][ T7182] bi_nocow=0 [ 230.248444][ T7182] bi_depth=0 [ 230.248453][ T7182] bi_inodes_32bit=0 [ 230.248462][ T7182] bi_casefold=0, fixing [ 230.255531][ T7182] done [ 230.256250][ T7182] bcachefs (loop2): check_xattrs... done [ 230.257565][ T7182] bcachefs (loop2): check_root... done [ 230.258745][ T7182] bcachefs (loop2): check_unreachable_inodes... done [ 230.260811][ T7182] bcachefs (loop2): check_subvolume_structure... done [ 230.261684][ T7182] bcachefs (loop2): check_directory_structure... done [ 230.262483][ T7182] bcachefs (loop2): check_nlinks... [ 230.263227][ T7182] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 230.264323][ T7182] done [ 230.265036][ T7182] bcachefs (loop2): check_rebalance_work... done [ 230.266238][ T7182] bcachefs (loop2): resume_logged_ops... done [ 230.267083][ T7182] bcachefs (loop2): delete_dead_inodes... done [pid 5839] umount2("./100/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 230.276620][ T7182] bcachefs (loop2): set_fs_needs_rebalance... done [ 230.286625][ T7182] bcachefs (loop2): check_extents_to_backpointers... [ 230.287580][ T7182] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 230.289905][ T7191] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 230.289925][ T7191] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 230.291437][ T7182] done [pid 5839] umount2("./100/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./100/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./100/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./100/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./100/file1") = 0 [pid 5839] umount2("./100/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./100/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./100/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [ 230.313252][ T7182] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 230.313278][ T7182] bcachefs (loop2): check_alloc_info... done [ 230.318358][ T7182] bcachefs (loop2): check_lrus... done [ 230.319549][ T7182] bcachefs (loop2): check_btree_backpointers... done [ 230.321290][ T7182] bcachefs (loop2): check_backpointers_to_extents... done [ 230.328909][ T7182] bcachefs (loop2): check_extents_to_backpointers... done [ 230.330826][ T7182] bcachefs (loop2): check_alloc_to_lru_refs... done [ 230.333433][ T7182] bcachefs (loop2): bucket_gens_init... done [pid 5839] close(3) = 0 [pid 5839] rmdir("./100") = 0 [pid 5839] mkdir("./101", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 230.335806][ T7182] bcachefs (loop2): check_snapshot_trees... done [ 230.339674][ T7182] bcachefs (loop2): check_snapshots... done [ 230.341231][ T7182] bcachefs (loop2): check_subvols... done [ 230.349704][ T7182] bcachefs (loop2): check_subvol_children... done [ 230.350451][ T7182] bcachefs (loop2): delete_dead_snapshots... done [ 230.351151][ T7182] bcachefs (loop2): check_inodes... done [ 230.352617][ T7182] bcachefs (loop2): check_extents... done [ 230.354429][ T7182] bcachefs (loop2): check_indirect_extents... done [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7386 ./strace-static-x86_64: Process 7386 attached [pid 7386] set_robust_list(0x5555901c6760, 24) = 0 [pid 7386] chdir("./101") = 0 [pid 7386] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7386] setpgid(0, 0) = 0 [ 230.355146][ T7182] bcachefs (loop2): check_dirents... done [ 230.356647][ T7182] bcachefs (loop2): check_xattrs... done [ 230.357767][ T7182] bcachefs (loop2): check_root... done [ 230.358529][ T7182] bcachefs (loop2): check_unreachable_inodes... done [ 230.361139][ T7182] bcachefs (loop2): check_subvolume_structure... done [ 230.369885][ T7182] bcachefs (loop2): check_directory_structure... done [ 230.371108][ T7182] bcachefs (loop2): check_nlinks... done [ 230.372256][ T7182] bcachefs (loop2): check_rebalance_work... done [pid 7386] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7386] write(3, "1000", 4) = 4 [pid 7386] close(3) = 0 [pid 7386] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7386] write(1, "executing program\n", 18executing program ) = 18 [pid 7386] memfd_create("syzkaller", 0) = 3 [ 230.373083][ T7182] bcachefs (loop2): resume_logged_ops... done [ 230.373824][ T7182] bcachefs (loop2): delete_dead_inodes... done [ 230.374503][ T7182] bcachefs (loop2): set_fs_needs_rebalance... done [ 230.380361][ T7182] bcachefs (loop2): done starting filesystem [ 230.443713][ T5839] bcachefs (loop2): shutting down [ 230.443738][ T5839] bcachefs (loop2): going read-only [ 230.443768][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 230.480307][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [pid 7386] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 230.481185][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 230.482225][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 230.484080][ T5839] bcachefs (loop2): marking filesystem clean [ 230.537506][ T5839] bcachefs (loop2): shutdown complete [ 231.416049][ T7193] loop2: detected capacity change from 0 to 32768 [ 231.559294][ T7193] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 231.559325][ T7193] allowing incompatible features above 0.0: (unknown version) [ 231.559338][ T7193] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 231.559366][ T7193] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 231.559511][ T7193] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 231.559749][ T7193] bcachefs (loop2): Version upgrade required: [ 231.559749][ T7193] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 231.559749][ T7193] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 231.559749][ T7193] 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,check_rebalance_work,set_fs_needs_rebalance [ 231.578597][ T7193] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 231.578624][ T7193] size != 0, deleting [ 231.580282][ T7193] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 231.583634][ T7193] bcachefs (loop2): check_topology... done [ 231.585573][ T7193] bcachefs (loop2): accounting_read... done [ 231.612526][ T7193] bcachefs (loop2): alloc_read... done [ 231.613537][ T7193] bcachefs (loop2): snapshots_read... done [ 231.614406][ T7193] bcachefs (loop2): check_allocations... [ 231.616656][ T7193] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 231.616677][ T7193] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 231.618710][ T7193] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [pid 7386] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 231.618728][ T7193] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 231.621320][ T7193] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 231.621339][ T7193] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 231.622925][ T7193] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [pid 7386] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7386] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7386] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7386] close(3) = 0 [pid 7386] close(4) = 0 [pid 7386] mkdir("./file1", 0777) = 0 [ 231.622944][ T7193] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 231.625538][ T7193] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 231.625557][ T7193] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 231.627045][ T7193] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.627174][ T7193] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.627749][ T7193] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.627857][ T7193] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.628259][ T7193] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.628364][ T7193] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.628573][ T7193] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.628679][ T7193] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.628881][ T7193] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.628987][ T7193] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.631716][ T7193] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.631833][ T7193] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.632066][ T7193] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.632174][ T7193] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 231.632375][ T7193] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 231.632501][ T7193] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 231.632704][ T7193] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.632812][ T7193] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.633013][ T7193] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.633120][ T7193] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.633349][ T7193] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 231.633365][ T7193] Ratelimiting new instances of previous error [ 231.633503][ T7193] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 231.633520][ T7193] Ratelimiting new instances of previous error [ 231.646977][ T7193] done [ 231.649130][ T7193] bcachefs (loop2): going read-write [ 231.654522][ T7193] bcachefs (loop2): journal_replay... done [ 231.680698][ T7193] bcachefs (loop2): check_alloc_info... [ 231.682494][ T7193] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 231.682512][ T7193] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 231.682523][ T7193] gen 0 oldest_gen 0 data_type need_discard [ 231.682534][ T7193] journal_seq_nonempty 6 [ 231.682544][ T7193] journal_seq_empty 0 [ 231.682554][ T7193] need_discard 1 [ 231.682566][ T7193] need_inc_gen 1 [ 231.682576][ T7193] dirty_sectors 0 [ 231.682586][ T7193] stripe_sectors 0 [ 231.682596][ T7193] cached_sectors 0 [ 231.682606][ T7193] stripe 0 [ 231.682615][ T7193] stripe_redundancy 0 [ 231.682625][ T7193] io_time[READ] 1 [ 231.682635][ T7193] io_time[WRITE] 768 [ 231.682645][ T7193] fragmentation 0 [ 231.682654][ T7193] bp_start 8 [ 231.682664][ T7193] , fixing [ 231.698350][ T7193] done [ 231.704681][ T7193] bcachefs (loop2): check_lrus... done [ 231.705500][ T7193] bcachefs (loop2): check_btree_backpointers... done [ 231.706810][ T7193] bcachefs (loop2): check_backpointers_to_extents... done [ 231.711663][ T7193] bcachefs (loop2): check_extents_to_backpointers... [ 231.713020][ T7193] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 231.714423][ T7193] done [ 231.715076][ T7193] bcachefs (loop2): check_alloc_to_lru_refs... [ 231.716950][ T7193] bcachefs (loop2): missing fragmentation lru entry [ 231.716968][ T7193] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 231.716979][ T7193] gen 0 oldest_gen 0 data_type user [ 231.716991][ T7193] journal_seq_nonempty 5 [ 231.717002][ T7193] journal_seq_empty 134217728 [ 231.717012][ T7193] need_discard 1 [ 231.717022][ T7193] need_inc_gen 1 [ 231.717032][ T7193] dirty_sectors 16 [ 231.717043][ T7193] stripe_sectors 1802251 [ 231.717053][ T7193] cached_sectors 0 [ 231.717063][ T7193] stripe 0 [ 231.717073][ T7193] stripe_redundancy 0 [pid 7386] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 231.717083][ T7193] io_time[READ] 1 [ 231.717106][ T7193] io_time[WRITE] 512 [ 231.717114][ T7193] fragmentation 0 [ 231.717124][ T7193] bp_start 7 [ 231.717134][ T7193] , fixing [ 231.718648][ T7193] done [ 231.723478][ T7193] bcachefs (loop2): bucket_gens_init... done [ 231.726013][ T7193] bcachefs (loop2): check_snapshot_trees... done ** 3 printk messages dropped ** [ 231.737821][ T7193] done [ 231.738588][ T7193] bcachefs (loop2): check_subvols... done [pid 7386] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7386] chdir("./file1") = 0 [pid 7386] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7386] ioctl(4, LOOP_CLR_FD) = 0 [pid 7386] close(4) = 0 [pid 7386] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7386] exit_group(0) = ? [pid 7386] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7386, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./101", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./101", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 231.740621][ T7193] bcachefs (loop2): check_subvol_children... done [ 231.741503][ T7193] bcachefs (loop2): delete_dead_snapshots... done [ 231.742281][ T7193] bcachefs (loop2): check_inodes... [ 231.743405][ T7193] bcachefs (loop2): inode points to missing dirent [ 231.743422][ T7193] inum: 4098:4294967295 [ 231.743433][ T7193] mode=40755 [ 231.743442][ T7193] flags=(15300000) [ 231.743452][ T7193] journal_seq=4 [ 231.743462][ T7193] hash_seed=ece93825deac2443 [ 231.743472][ T7193] hash_type=siphash [ 231.743481][ T7193] bi_size=0 [ 231.743490][ T7193] bi_sectors=0 [ 231.743500][ T7193] bi_version=0 [ 231.743509][ T7193] bi_atime=2770562249 [ 231.743519][ T7193] bi_ctime=2780562352 [ 231.743529][ T7193] bi_mtime=2780562352 [ 231.743539][ T7193] bi_otime=2770562249 [ 231.743548][ T7193] bi_uid=0 [ 231.743557][ T7193] bi_gid=0 [ 231.743565][ T7193] bi_nlink=0 [ 231.743573][ T7193] bi_generation=0 [ 231.743581][ T7193] bi_dev=0 [ 231.743588][ T7193] bi_data_checksum=0 [ 231.743597][ T7193] bi_compression=0 [ 231.743605][ T7193] bi_project=0 [ 231.743612][ T7193] bi_background_compression=0 [ 231.743621][ T7193] bi_data_replicas=0 [ 231.743629][ T7193] bi_promote_target=0 [ 231.743638][ T7193] bi_foreground_target=64 [ 231.743647][ T7193] bi_background_target=1 [ 231.743656][ T7193] bi_erasure_code=0 [ 231.743673][ T7193] bi_fields_set=0 [ 231.743681][ T7193] bi_dir=0 [ 231.743691][ T7193] bi_dir_offset=32 [ 231.743701][ T7193] bi_subvol=0 [ 231.743711][ T7193] bi_parent_subvol=0 [ 231.743720][ T7193] bi_nocow=0 [ 231.743729][ T7193] bi_depth=0 [ 231.743740][ T7193] bi_inodes_32bit=0 [ 231.743750][ T7193] bi_casefold=0, fixing [ 231.745642][ T7193] done [ 231.746345][ T7193] bcachefs (loop2): check_extents... done [ 231.747873][ T7193] bcachefs (loop2): check_indirect_extents... done [ 231.748717][ T7193] bcachefs (loop2): check_dirents... [ 231.752455][ T7193] bcachefs (loop2): directory with missing backpointer [ 231.752475][ T7193] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 231.752490][ T7193] inum: 4098:4294967295 [ 231.752500][ T7193] mode=40755 [ 231.752510][ T7193] flags=(11300000) [ 231.752520][ T7193] journal_seq=22 [ 231.752529][ T7193] hash_seed=ece93825deac2443 [ 231.752539][ T7193] hash_type=siphash [ 231.752549][ T7193] bi_size=0 [ 231.752557][ T7193] bi_sectors=0 [ 231.752567][ T7193] bi_version=0 [ 231.752576][ T7193] bi_atime=2770562249 [ 231.752586][ T7193] bi_ctime=2780562352 [ 231.752596][ T7193] bi_mtime=2780562352 [ 231.752606][ T7193] bi_otime=2770562249 [ 231.752615][ T7193] bi_uid=0 [ 231.752624][ T7193] bi_gid=0 [ 231.752633][ T7193] bi_nlink=0 [ 231.752642][ T7193] bi_generation=0 [ 231.752652][ T7193] bi_dev=0 [ 231.752660][ T7193] bi_data_checksum=0 [ 231.752670][ T7193] bi_compression=0 [ 231.752680][ T7193] bi_project=0 [ 231.752689][ T7193] bi_background_compression=0 [ 231.752699][ T7193] bi_data_replicas=0 [ 231.752709][ T7193] bi_promote_target=0 [ 231.752718][ T7193] bi_foreground_target=64 [ 231.752729][ T7193] bi_background_target=1 [ 231.752738][ T7193] bi_erasure_code=0 [ 231.752748][ T7193] bi_fields_set=0 [ 231.752758][ T7193] bi_dir=0 [ 231.752767][ T7193] bi_dir_offset=0 [ 231.752777][ T7193] bi_subvol=0 [ 231.752786][ T7193] bi_parent_subvol=0 [ 231.752796][ T7193] bi_nocow=0 [ 231.752804][ T7193] bi_depth=0 [ 231.752814][ T7193] bi_inodes_32bit=0 [ 231.752824][ T7193] bi_casefold=0, fixing [ 231.759891][ T7193] done [ 231.760793][ T7193] bcachefs (loop2): check_xattrs... done [ 231.764208][ T7193] bcachefs (loop2): check_root... done [ 231.765382][ T7193] bcachefs (loop2): check_unreachable_inodes... done [ 231.766440][ T7193] bcachefs (loop2): check_subvolume_structure... done [ 231.767234][ T7193] bcachefs (loop2): check_directory_structure... done [ 231.767927][ T7193] bcachefs (loop2): check_nlinks... [ 231.768638][ T7193] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [pid 5839] umount2("./101/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./101/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./101/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./101/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 231.770963][ T7193] done [ 231.771668][ T7193] bcachefs (loop2): check_rebalance_work... done [ 231.772880][ T7193] bcachefs (loop2): resume_logged_ops... done [ 231.773654][ T7193] bcachefs (loop2): delete_dead_inodes... done [ 231.783044][ T7193] bcachefs (loop2): set_fs_needs_rebalance... [ 231.790596][ T7202] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 231.790621][ T7202] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 231.794378][ T7193] done [pid 5839] openat(AT_FDCWD, "./101/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./101/file1") = 0 [pid 5839] umount2("./101/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./101/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./101/binderfs") = 0 [ 231.795386][ T7193] bcachefs (loop2): check_extents_to_backpointers... [ 231.797059][ T7193] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 231.803744][ T7193] done [ 231.813523][ T7193] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 231.813548][ T7193] bcachefs (loop2): check_alloc_info... done [ 231.818086][ T7193] bcachefs (loop2): check_lrus... done [ 231.819641][ T7193] bcachefs (loop2): check_btree_backpointers... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./101") = 0 [pid 5839] mkdir("./102", 0777) = 0 [ 231.821306][ T7193] bcachefs (loop2): check_backpointers_to_extents... done [ 231.822902][ T7193] bcachefs (loop2): check_extents_to_backpointers... done [ 231.825205][ T7193] bcachefs (loop2): check_alloc_to_lru_refs... done [ 231.827483][ T7193] bcachefs (loop2): bucket_gens_init... done [ 231.831054][ T7193] bcachefs (loop2): check_snapshot_trees... done [ 231.832394][ T7193] bcachefs (loop2): check_snapshots... done [ 231.833283][ T7193] bcachefs (loop2): check_subvols... done [ 231.834132][ T7193] bcachefs (loop2): check_subvol_children... done [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7397 attached , child_tidptr=0x5555901c6750) = 7397 [pid 7397] set_robust_list(0x5555901c6760, 24) = 0 [ 231.835322][ T7193] bcachefs (loop2): delete_dead_snapshots... done [ 231.836077][ T7193] bcachefs (loop2): check_inodes... done [ 231.837325][ T7193] bcachefs (loop2): check_extents... done [ 231.838812][ T7193] bcachefs (loop2): check_indirect_extents... done [ 231.840549][ T7193] bcachefs (loop2): check_dirents... done [ 231.842168][ T7193] bcachefs (loop2): check_xattrs... done [ 231.843104][ T7193] bcachefs (loop2): check_root... done [ 231.843952][ T7193] bcachefs (loop2): check_unreachable_inodes... done [pid 7397] chdir("./102") = 0 [pid 7397] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7397] setpgid(0, 0) = 0 [pid 7397] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXECexecuting program ) = 3 [pid 7397] write(3, "1000", 4) = 4 [pid 7397] close(3) = 0 [pid 7397] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7397] write(1, "executing program\n", 18) = 18 [pid 7397] memfd_create("syzkaller", 0) = 3 [pid 7397] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 231.844847][ T7193] bcachefs (loop2): check_subvolume_structure... done [ 231.846135][ T7193] bcachefs (loop2): check_directory_structure... done [ 231.846920][ T7193] bcachefs (loop2): check_nlinks... done [ 231.848147][ T7193] bcachefs (loop2): check_rebalance_work... done [ 231.848933][ T7193] bcachefs (loop2): resume_logged_ops... done [ 231.850917][ T7193] bcachefs (loop2): delete_dead_inodes... done [ 231.851780][ T7193] bcachefs (loop2): set_fs_needs_rebalance... done [ 231.855469][ T7193] bcachefs (loop2): done starting filesystem [ 231.951490][ T5839] bcachefs (loop2): shutting down [ 231.951510][ T5839] bcachefs (loop2): going read-only [ 231.951541][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 231.972379][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 231.974002][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 231.974927][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 231.976732][ T5839] bcachefs (loop2): marking filesystem clean [ 232.036723][ T5839] bcachefs (loop2): shutdown complete [ 232.840549][ T7204] loop2: detected capacity change from 0 to 32768 [ 232.984190][ T7204] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 232.984218][ T7204] allowing incompatible features above 0.0: (unknown version) [ 232.984232][ T7204] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 232.984261][ T7204] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 232.984404][ T7204] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 232.984653][ T7204] bcachefs (loop2): Version upgrade required: [ 232.984653][ T7204] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 232.984653][ T7204] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 232.984653][ T7204] 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,check_rebalance_work,set_fs_needs_rebalance [ 233.003838][ T7204] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 233.003864][ T7204] size != 0, deleting [ 233.005027][ T7204] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 233.008353][ T7204] bcachefs (loop2): check_topology... done [ 233.010490][ T7204] bcachefs (loop2): accounting_read... done [ 233.060417][ T7204] bcachefs (loop2): alloc_read... done [ 233.061374][ T7204] bcachefs (loop2): snapshots_read... done [ 233.062180][ T7204] bcachefs (loop2): check_allocations... [ 233.064222][ T7204] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7397] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7397] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7397] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7397] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7397] close(3) = 0 [ 233.064244][ T7204] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 233.066489][ T7204] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 233.066507][ T7204] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 233.067854][ T7204] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7397] close(4) = 0 [pid 7397] mkdir("./file1", 0777) = 0 [ 233.067871][ T7204] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 233.071007][ T7204] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 233.071025][ T7204] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 233.073485][ T7204] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 233.073502][ T7204] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 233.074439][ T7204] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.074566][ T7204] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.075125][ T7204] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.075233][ T7204] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.075647][ T7204] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.075753][ T7204] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.076200][ T7204] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.076326][ T7204] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.076531][ T7204] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.076635][ T7204] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.076831][ T7204] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.076950][ T7204] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.077152][ T7204] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.077256][ T7204] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 233.077465][ T7204] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 233.077568][ T7204] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 233.077769][ T7204] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.077876][ T7204] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.078080][ T7204] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.078185][ T7204] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.078419][ T7204] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 233.078433][ T7204] Ratelimiting new instances of previous error [ 233.078561][ T7204] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 233.078577][ T7204] Ratelimiting new instances of previous error [ 233.092781][ T7204] done [ 233.094650][ T7204] bcachefs (loop2): going read-write [ 233.100691][ T7204] bcachefs (loop2): journal_replay... done [ 233.126886][ T7204] bcachefs (loop2): check_alloc_info... [ 233.128749][ T7204] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 233.128768][ T7204] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 233.128779][ T7204] gen 0 oldest_gen 0 data_type need_discard [ 233.128792][ T7204] journal_seq_nonempty 6 [ 233.128801][ T7204] journal_seq_empty 0 [ 233.128812][ T7204] need_discard 1 [ 233.128822][ T7204] need_inc_gen 1 [ 233.128832][ T7204] dirty_sectors 0 [ 233.128842][ T7204] stripe_sectors 0 [ 233.128851][ T7204] cached_sectors 0 [ 233.128861][ T7204] stripe 0 [ 233.128871][ T7204] stripe_redundancy 0 [ 233.128881][ T7204] io_time[READ] 1 [ 233.128890][ T7204] io_time[WRITE] 768 [ 233.128899][ T7204] fragmentation 0 [ 233.128909][ T7204] bp_start 8 [ 233.128919][ T7204] , fixing [ 233.145226][ T7204] done [ 233.151979][ T7204] bcachefs (loop2): check_lrus... done [ 233.153715][ T7204] bcachefs (loop2): check_btree_backpointers... done [ 233.157032][ T7204] bcachefs (loop2): check_backpointers_to_extents... done [ 233.160560][ T7204] bcachefs (loop2): check_extents_to_backpointers... [ 233.161940][ T7204] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 233.163862][ T7204] done [ 233.164544][ T7204] bcachefs (loop2): check_alloc_to_lru_refs... [ 233.166078][ T7204] bcachefs (loop2): missing fragmentation lru entry [ 233.166094][ T7204] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 233.166106][ T7204] gen 0 oldest_gen 0 data_type user [ 233.166117][ T7204] journal_seq_nonempty 5 [ 233.166127][ T7204] journal_seq_empty 134217728 [ 233.166137][ T7204] need_discard 1 [ 233.166147][ T7204] need_inc_gen 1 [ 233.166157][ T7204] dirty_sectors 16 [ 233.166166][ T7204] stripe_sectors 1802251 [ 233.166177][ T7204] cached_sectors 0 [ 233.166188][ T7204] stripe 0 [ 233.166198][ T7204] stripe_redundancy 0 [ 233.166208][ T7204] io_time[READ] 1 [ 233.166218][ T7204] io_time[WRITE] 512 [ 233.166228][ T7204] fragmentation 0 [ 233.166238][ T7204] bp_start 7 [ 233.166247][ T7204] , fixing [ 233.167803][ T7204] done [ 233.171216][ T7204] bcachefs (loop2): bucket_gens_init... done [ 233.175413][ T7204] bcachefs (loop2): check_snapshot_trees... done [ 233.176236][ T7204] bcachefs (loop2): check_snapshots... [ 233.176840][ T7204] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 233.176858][ T7204] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 233.188649][ T7204] done [ 233.190256][ T7204] bcachefs (loop2): check_subvols... done [ 233.191794][ T7204] bcachefs (loop2): check_subvol_children... done [ 233.192699][ T7204] bcachefs (loop2): delete_dead_snapshots... done [ 233.193439][ T7204] bcachefs (loop2): check_inodes... [ 233.195002][ T7204] bcachefs (loop2): inode points to missing dirent [ 233.195017][ T7204] inum: 4098:4294967295 [ 233.195029][ T7204] mode=40755 [ 233.195039][ T7204] flags=(15300000) [ 233.195048][ T7204] journal_seq=4 [ 233.195058][ T7204] hash_seed=ece93825deac2443 [ 233.195069][ T7204] hash_type=siphash [ 233.195078][ T7204] bi_size=0 [ 233.195086][ T7204] bi_sectors=0 [ 233.195095][ T7204] bi_version=0 [ 233.195105][ T7204] bi_atime=2770562249 [ 233.195114][ T7204] bi_ctime=2780562352 [ 233.195125][ T7204] bi_mtime=2780562352 [ 233.195135][ T7204] bi_otime=2770562249 [ 233.195145][ T7204] bi_uid=0 [ 233.195154][ T7204] bi_gid=0 [ 233.195162][ T7204] bi_nlink=0 [ 233.195172][ T7204] bi_generation=0 [ 233.195181][ T7204] bi_dev=0 [ 233.195190][ T7204] bi_data_checksum=0 [ 233.195200][ T7204] bi_compression=0 [ 233.195210][ T7204] bi_project=0 [ 233.195219][ T7204] bi_background_compression=0 [ 233.195229][ T7204] bi_data_replicas=0 [ 233.195239][ T7204] bi_promote_target=0 [ 233.195249][ T7204] bi_foreground_target=64 [ 233.195259][ T7204] bi_background_target=1 [ 233.195268][ T7204] bi_erasure_code=0 [ 233.195278][ T7204] bi_fields_set=0 [ 233.195289][ T7204] bi_dir=0 [ 233.195298][ T7204] bi_dir_offset=32 [ 233.195308][ T7204] bi_subvol=0 [ 233.195317][ T7204] bi_parent_subvol=0 [ 233.195328][ T7204] bi_nocow=0 [ 233.195346][ T7204] bi_depth=0 [ 233.195355][ T7204] bi_inodes_32bit=0 [ 233.195365][ T7204] bi_casefold=0, fixing [ 233.196987][ T7204] done [ 233.197661][ T7204] bcachefs (loop2): check_extents... done [ 233.199125][ T7204] bcachefs (loop2): check_indirect_extents... done [ 233.203549][ T7204] bcachefs (loop2): check_dirents... [ 233.207314][ T7204] bcachefs (loop2): directory with missing backpointer [ 233.207339][ T7204] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 233.207353][ T7204] inum: 4098:4294967295 [ 233.207362][ T7204] mode=40755 [ 233.207372][ T7204] flags=(11300000) [ 233.207381][ T7204] journal_seq=24 [ 233.207391][ T7204] hash_seed=ece93825deac2443 [ 233.207402][ T7204] hash_type=siphash [ 233.207412][ T7204] bi_size=0 [ 233.207421][ T7204] bi_sectors=0 [ 233.207431][ T7204] bi_version=0 [ 233.207440][ T7204] bi_atime=2770562249 [ 233.207450][ T7204] bi_ctime=2780562352 [ 233.207460][ T7204] bi_mtime=2780562352 [ 233.207470][ T7204] bi_otime=2770562249 [ 233.207479][ T7204] bi_uid=0 [ 233.207488][ T7204] bi_gid=0 [ 233.207497][ T7204] bi_nlink=0 [ 233.207507][ T7204] bi_generation=0 [ 233.207516][ T7204] bi_dev=0 [ 233.207525][ T7204] bi_data_checksum=0 [ 233.207535][ T7204] bi_compression=0 [ 233.207546][ T7204] bi_project=0 [ 233.207555][ T7204] bi_background_compression=0 [ 233.207565][ T7204] bi_data_replicas=0 [ 233.207575][ T7204] bi_promote_target=0 [ 233.207585][ T7204] bi_foreground_target=64 [ 233.207595][ T7204] bi_background_target=1 [ 233.207604][ T7204] bi_erasure_code=0 [ 233.207613][ T7204] bi_fields_set=0 [ 233.207621][ T7204] bi_dir=0 [ 233.207630][ T7204] bi_dir_offset=0 [ 233.207640][ T7204] bi_subvol=0 [ 233.207649][ T7204] bi_parent_subvol=0 [ 233.207659][ T7204] bi_nocow=0 [ 233.207670][ T7204] bi_depth=0 [ 233.207679][ T7204] bi_inodes_32bit=0 [ 233.207689][ T7204] bi_casefold=0, fixing [ 233.213512][ T7204] done [ 233.214208][ T7204] bcachefs (loop2): check_xattrs... done [ 233.215899][ T7204] bcachefs (loop2): check_root... done [ 233.217010][ T7204] bcachefs (loop2): check_unreachable_inodes... done [ 233.217935][ T7204] bcachefs (loop2): check_subvolume_structure... done [ 233.218589][ T7204] bcachefs (loop2): check_directory_structure... done [ 233.219966][ T7204] bcachefs (loop2): check_nlinks... [ 233.220679][ T7204] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 233.221782][ T7204] done [pid 7397] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7397] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7397] chdir("./file1") = 0 [pid 7397] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7397] ioctl(4, LOOP_CLR_FD) = 0 [ 233.222481][ T7204] bcachefs (loop2): check_rebalance_work... done [ 233.223723][ T7204] bcachefs (loop2): resume_logged_ops... done [ 233.224540][ T7204] bcachefs (loop2): delete_dead_inodes... done [ 233.234014][ T7204] bcachefs (loop2): set_fs_needs_rebalance... done [ 233.244795][ T7204] bcachefs (loop2): check_extents_to_backpointers... [ 233.245798][ T7204] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 233.246864][ T7213] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [pid 7397] close(4) = 0 [pid 7397] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7397] exit_group(0) = ? [pid 7397] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7397, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=45 /* 0.45 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./102", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./102", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 233.246884][ T7213] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 233.251852][ T7204] done [ 233.267153][ T7204] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 233.267181][ T7204] bcachefs (loop2): check_alloc_info... done [ 233.281823][ T7204] bcachefs (loop2): check_lrus... done [ 233.282958][ T7204] bcachefs (loop2): check_btree_backpointers... done [ 233.284177][ T7204] bcachefs (loop2): check_backpointers_to_extents... done [ 233.285648][ T7204] bcachefs (loop2): check_extents_to_backpointers... done [ 233.287279][ T7204] bcachefs (loop2): check_alloc_to_lru_refs... done [ 233.292549][ T7204] bcachefs (loop2): bucket_gens_init... done [ 233.300829][ T7204] bcachefs (loop2): check_snapshot_trees... done [ 233.301990][ T7204] bcachefs (loop2): check_snapshots... done [ 233.303357][ T7204] bcachefs (loop2): check_subvols... done [ 233.304153][ T7204] bcachefs (loop2): check_subvol_children... done [ 233.304845][ T7204] bcachefs (loop2): delete_dead_snapshots... done [ 233.305564][ T7204] bcachefs (loop2): check_inodes... done [ 233.310279][ T7204] bcachefs (loop2): check_extents... done [ 233.312017][ T7204] bcachefs (loop2): check_indirect_extents... done [ 233.313685][ T7204] bcachefs (loop2): check_dirents... done [ 233.320148][ T7204] bcachefs (loop2): check_xattrs... done [ 233.321292][ T7204] bcachefs (loop2): check_root... done [ 233.322042][ T7204] bcachefs (loop2): check_unreachable_inodes... done [ 233.322935][ T7204] bcachefs (loop2): check_subvolume_structure... done [ 233.324195][ T7204] bcachefs (loop2): check_directory_structure... done [ 233.324931][ T7204] bcachefs (loop2): check_nlinks... done [ 233.330748][ T7204] bcachefs (loop2): check_rebalance_work... done [ 233.331499][ T7204] bcachefs (loop2): resume_logged_ops... done [ 233.332219][ T7204] bcachefs (loop2): delete_dead_inodes... done [ 233.333013][ T7204] bcachefs (loop2): set_fs_needs_rebalance... done [ 233.336499][ T7204] bcachefs (loop2): done starting filesystem [ 233.441921][ T5839] bcachefs (loop2): shutting down [ 233.441944][ T5839] bcachefs (loop2): going read-only [ 233.441974][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 233.443687][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 233.443687][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 233.443871][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 233.443889][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 233.443909][ T12] loop2 checksum error [ 233.479883][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 36 [ 233.483357][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 36 [ 233.484203][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 37 [ 233.485987][ T5839] bcachefs (loop2): marking filesystem clean [ 233.545504][ T5839] bcachefs (loop2): shutdown complete [ 234.341742][ T7215] loop2: detected capacity change from 0 to 32768 [ 234.472346][ T7215] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 234.472373][ T7215] allowing incompatible features above 0.0: (unknown version) [ 234.472388][ T7215] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 234.472417][ T7215] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [pid 5839] umount2("./102/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [ 234.472557][ T7215] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 234.472796][ T7215] bcachefs (loop2): Version upgrade required: [ 234.472796][ T7215] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 234.472796][ T7215] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] umount2("./102/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./102/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./102/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./102/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./102/file1") = 0 [ 234.472796][ T7215] 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,check_rebalance_work,set_fs_needs_rebalance [ 234.492068][ T7215] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 234.492095][ T7215] size != 0, deleting [pid 5839] umount2("./102/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./102/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./102/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./102") = 0 [ 234.493257][ T7215] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 234.496548][ T7215] bcachefs (loop2): check_topology... done [ 234.498021][ T7215] bcachefs (loop2): accounting_read... done [ 234.526601][ T7215] bcachefs (loop2): alloc_read... done [ 234.527547][ T7215] bcachefs (loop2): snapshots_read... done [ 234.528413][ T7215] bcachefs (loop2): check_allocations... [ 234.531638][ T7215] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 5839] mkdir("./103", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7408 attached , child_tidptr=0x5555901c6750) = 7408 [ 234.531660][ T7215] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 234.533896][ T7215] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 234.533915][ T7215] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 234.535341][ T7215] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7408] set_robust_list(0x5555901c6760, 24) = 0 [pid 7408] chdir("./103") = 0 [pid 7408] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7408] setpgid(0, 0) = 0 [pid 7408] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7408] write(3, "1000", 4) = 4 [pid 7408] close(3) = 0 [pid 7408] symlink("/dev/binderfs", "./binderfs") = 0 [ 234.535356][ T7215] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 234.536883][ T7215] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 234.536902][ T7215] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 234.539750][ T7215] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 7408] write(1, "executing program\n", 18executing program ) = 18 [pid 7408] memfd_create("syzkaller", 0) = 3 [pid 7408] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 234.539769][ T7215] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 234.540719][ T7215] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.540845][ T7215] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.541403][ T7215] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.541509][ T7215] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.541920][ T7215] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.542025][ T7215] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.542232][ T7215] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.542360][ T7215] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.542567][ T7215] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.542672][ T7215] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.542899][ T7215] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.543003][ T7215] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.543213][ T7215] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.545816][ T7215] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 234.546034][ T7215] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 234.546142][ T7215] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 234.546347][ T7215] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 234.546457][ T7215] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 234.546666][ T7215] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 234.546782][ T7215] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 234.547011][ T7215] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 234.547028][ T7215] Ratelimiting new instances of previous error [ 234.547157][ T7215] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 234.547174][ T7215] Ratelimiting new instances of previous error [ 234.559468][ T7215] done [ 234.561521][ T7215] bcachefs (loop2): going read-write [ 234.567360][ T7215] bcachefs (loop2): journal_replay... done [ 234.595690][ T7215] bcachefs (loop2): check_alloc_info... [ 234.597472][ T7215] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 234.597490][ T7215] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 234.597503][ T7215] gen 0 oldest_gen 0 data_type need_discard [ 234.597514][ T7215] journal_seq_nonempty 6 [ 234.597525][ T7215] journal_seq_empty 0 [pid 7408] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7408] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7408] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7408] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7408] close(3) = 0 [pid 7408] close(4) = 0 [pid 7408] mkdir("./file1", 0777) = 0 [ 234.597534][ T7215] need_discard 1 [ 234.597545][ T7215] need_inc_gen 1 [ 234.597555][ T7215] dirty_sectors 0 [ 234.597564][ T7215] stripe_sectors 0 [ 234.597576][ T7215] cached_sectors 0 [ 234.597585][ T7215] stripe 0 [ 234.597595][ T7215] stripe_redundancy 0 [ 234.597605][ T7215] io_time[READ] 1 [ 234.597615][ T7215] io_time[WRITE] 768 [ 234.597625][ T7215] fragmentation 0 [ 234.597634][ T7215] bp_start 8 [ 234.597644][ T7215] , fixing [ 234.615837][ T7215] done [ 234.622550][ T7215] bcachefs (loop2): check_lrus... done [ 234.623640][ T7215] bcachefs (loop2): check_btree_backpointers... done [ 234.626365][ T7215] bcachefs (loop2): check_backpointers_to_extents... done [ 234.631122][ T7215] bcachefs (loop2): check_extents_to_backpointers... [ 234.632508][ T7215] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 234.634409][ T7215] done [ 234.635183][ T7215] bcachefs (loop2): check_alloc_to_lru_refs... [ 234.637091][ T7215] bcachefs (loop2): missing fragmentation lru entry [ 234.637109][ T7215] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 234.637120][ T7215] gen 0 oldest_gen 0 data_type user [ 234.637131][ T7215] journal_seq_nonempty 5 [ 234.637141][ T7215] journal_seq_empty 134217728 [ 234.637151][ T7215] need_discard 1 [ 234.637162][ T7215] need_inc_gen 1 [ 234.637173][ T7215] dirty_sectors 16 [ 234.637183][ T7215] stripe_sectors 1802251 [ 234.637192][ T7215] cached_sectors 0 [ 234.637203][ T7215] stripe 0 [ 234.637212][ T7215] stripe_redundancy 0 [ 234.637224][ T7215] io_time[READ] 1 [ 234.637234][ T7215] io_time[WRITE] 512 [ 234.637244][ T7215] fragmentation 0 [ 234.637254][ T7215] bp_start 7 [ 234.637264][ T7215] , fixing [ 234.638804][ T7215] done [ 234.642212][ T7215] bcachefs (loop2): bucket_gens_init... done [ 234.645911][ T7215] bcachefs (loop2): check_snapshot_trees... done [ 234.646699][ T7215] bcachefs (loop2): check_snapshots... [ 234.647330][ T7215] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 234.647348][ T7215] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 234.658391][ T7215] done [ 234.659089][ T7215] bcachefs (loop2): check_subvols... done [ 234.661069][ T7215] bcachefs (loop2): check_subvol_children... done [ 234.661942][ T7215] bcachefs (loop2): delete_dead_snapshots... done [ 234.662719][ T7215] bcachefs (loop2): check_inodes... [ 234.663853][ T7215] bcachefs (loop2): inode points to missing dirent [ 234.663868][ T7215] inum: 4098:4294967295 [ 234.663880][ T7215] mode=40755 [ 234.663888][ T7215] flags=(15300000) [ 234.663897][ T7215] journal_seq=4 [ 234.663908][ T7215] hash_seed=ece93825deac2443 [ 234.663918][ T7215] hash_type=siphash [ 234.663941][ T7215] bi_size=0 [ 234.663950][ T7215] bi_sectors=0 [ 234.663959][ T7215] bi_version=0 [ 234.663969][ T7215] bi_atime=2770562249 [ 234.663978][ T7215] bi_ctime=2780562352 [ 234.663988][ T7215] bi_mtime=2780562352 [ 234.663997][ T7215] bi_otime=2770562249 [ 234.664007][ T7215] bi_uid=0 [ 234.664016][ T7215] bi_gid=0 [ 234.664025][ T7215] bi_nlink=0 [ 234.664034][ T7215] bi_generation=0 [ 234.664044][ T7215] bi_dev=0 [ 234.664051][ T7215] bi_data_checksum=0 [ 234.664061][ T7215] bi_compression=0 [ 234.664070][ T7215] bi_project=0 [ 234.664079][ T7215] bi_background_compression=0 [ 234.664090][ T7215] bi_data_replicas=0 [ 234.664099][ T7215] bi_promote_target=0 [ 234.664110][ T7215] bi_foreground_target=64 [ 234.664119][ T7215] bi_background_target=1 [ 234.664128][ T7215] bi_erasure_code=0 [ 234.664140][ T7215] bi_fields_set=0 [ 234.664149][ T7215] bi_dir=0 [ 234.664156][ T7215] bi_dir_offset=32 [ 234.664166][ T7215] bi_subvol=0 [ 234.664175][ T7215] bi_parent_subvol=0 [ 234.664196][ T7215] bi_nocow=0 [ 234.664205][ T7215] bi_depth=0 [ 234.664215][ T7215] bi_inodes_32bit=0 [ 234.664223][ T7215] bi_casefold=0, fixing [ 234.666364][ T7215] done [ 234.667040][ T7215] bcachefs (loop2): check_extents... done [ 234.668478][ T7215] bcachefs (loop2): check_indirect_extents... done [ 234.670480][ T7215] bcachefs (loop2): check_dirents... [ 234.672216][ T7215] bcachefs (loop2): directory with missing backpointer [ 234.672231][ T7215] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 234.672246][ T7215] inum: 4098:4294967295 [ 234.672256][ T7215] mode=40755 [ 234.672266][ T7215] flags=(11300000) [pid 7408] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7408] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 234.672275][ T7215] journal_seq=23 [ 234.672285][ T7215] hash_seed=ece93825deac2443 [ 234.672295][ T7215] hash_type=siphash [ 234.672306][ T7215] bi_size=0 [ 234.672316][ T7215] bi_sectors=0 [ 234.672325][ T7215] bi_version=0 [ 234.672335][ T7215] bi_atime=2770562249 [ 234.672344][ T7215] bi_ctime=2780562352 [ 234.672354][ T7215] bi_mtime=2780562352 [ 234.672363][ T7215] bi_otime=2770562249 [ 234.672374][ T7215] bi_uid=0 [ 234.672383][ T7215] bi_gid=0 [ 234.672392][ T7215] bi_nlink=0 [pid 7408] chdir("./file1") = 0 [pid 7408] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7408] ioctl(4, LOOP_CLR_FD) = 0 [pid 7408] close(4) = 0 [pid 7408] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7408] exit_group(0) = ? [pid 7408] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7408, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=43 /* 0.43 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./103", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./103", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 234.672401][ T7215] bi_generation=0 [ 234.672411][ T7215] bi_dev=0 [ 234.672420][ T7215] bi_data_checksum=0 [ 234.672429][ T7215] bi_compression=0 [ 234.672439][ T7215] bi_project=0 [ 234.672448][ T7215] bi_background_compression=0 [ 234.672458][ T7215] bi_data_replicas=0 [ 234.672468][ T7215] bi_promote_target=0 [ 234.672478][ T7215] bi_foreground_target=64 [ 234.672488][ T7215] bi_background_target=1 [ 234.672498][ T7215] bi_erasure_code=0 [ 234.672509][ T7215] bi_fields_set=0 [ 234.672518][ T7215] bi_dir=0 [ 234.672527][ T7215] bi_dir_offset=0 [ 234.672536][ T7215] bi_subvol=0 [ 234.672546][ T7215] bi_parent_subvol=0 [ 234.672555][ T7215] bi_nocow=0 [ 234.672565][ T7215] bi_depth=0 [ 234.672574][ T7215] bi_inodes_32bit=0 [ 234.672584][ T7215] bi_casefold=0, fixing [ 234.681544][ T7215] done [ 234.682621][ T7215] bcachefs (loop2): check_xattrs... done [ 234.684362][ T7215] bcachefs (loop2): check_root... done [ 234.685535][ T7215] bcachefs (loop2): check_unreachable_inodes... done [ 234.686586][ T7215] bcachefs (loop2): check_subvolume_structure... done [ 234.687367][ T7215] bcachefs (loop2): check_directory_structure... done [ 234.688646][ T7215] bcachefs (loop2): check_nlinks... [ 234.690015][ T7215] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 234.691140][ T7215] done [ 234.691860][ T7215] bcachefs (loop2): check_rebalance_work... done [ 234.693063][ T7215] bcachefs (loop2): resume_logged_ops... done [ 234.693867][ T7215] bcachefs (loop2): delete_dead_inodes... done [ 234.703319][ T7215] bcachefs (loop2): set_fs_needs_rebalance... done [ 234.714108][ T7224] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 234.714131][ T7224] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 234.717652][ T7215] bcachefs (loop2): check_extents_to_backpointers... [ 234.718654][ T7215] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 234.721951][ T7224] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 234.724708][ T7215] done [ 234.733658][ T7215] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 234.733685][ T7215] bcachefs (loop2): check_alloc_info... done [ 234.738336][ T7215] bcachefs (loop2): check_lrus... done [ 234.740077][ T7215] bcachefs (loop2): check_btree_backpointers... done [ 234.741801][ T7215] bcachefs (loop2): check_backpointers_to_extents... done [ 234.743348][ T7215] bcachefs (loop2): check_extents_to_backpointers... [ 234.744266][ T7215] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 234.745581][ T7215] done [ 234.745595][ T7215] bcachefs (loop2): check_alloc_to_lru_refs... done [ 234.747835][ T7215] bcachefs (loop2): bucket_gens_init... done [ 234.750964][ T7215] bcachefs (loop2): check_snapshot_trees... done [ 234.752731][ T7215] bcachefs (loop2): check_snapshots... done [ 234.753487][ T7215] bcachefs (loop2): check_subvols... done [ 234.754295][ T7215] bcachefs (loop2): check_subvol_children... done [ 234.755059][ T7215] bcachefs (loop2): delete_dead_snapshots... done [ 234.755778][ T7215] bcachefs (loop2): check_inodes... done [ 234.756993][ T7215] bcachefs (loop2): check_extents... done [ 234.758346][ T7215] bcachefs (loop2): check_indirect_extents... done [ 234.759134][ T7215] bcachefs (loop2): check_dirents... done [ 234.763031][ T7215] bcachefs (loop2): check_xattrs... done [ 234.763963][ T7215] bcachefs (loop2): check_root... done [ 234.764787][ T7215] bcachefs (loop2): check_unreachable_inodes... done [ 234.765887][ T7215] bcachefs (loop2): check_subvolume_structure... done [ 234.766779][ T7215] bcachefs (loop2): check_directory_structure... done [ 234.767575][ T7215] bcachefs (loop2): check_nlinks... done [ 234.768793][ T7215] bcachefs (loop2): check_rebalance_work... done [ 234.770577][ T7215] bcachefs (loop2): resume_logged_ops... done [ 234.771408][ T7215] bcachefs (loop2): delete_dead_inodes... done [ 234.772194][ T7215] bcachefs (loop2): set_fs_needs_rebalance... done [ 234.776395][ T7215] bcachefs (loop2): done starting filesystem [ 234.870966][ T5839] bcachefs (loop2): shutting down [ 234.870986][ T5839] bcachefs (loop2): going read-only [ 234.871016][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 234.914002][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 234.914972][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 234.915834][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 234.917628][ T5839] bcachefs (loop2): marking filesystem clean [pid 5839] umount2("./103/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./103/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./103/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./103/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./103/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [ 234.918137][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 234.918137][ T5152] rw journal devs: [ 234.955204][ T5839] bcachefs (loop2): shutdown complete [ 235.803371][ T7226] loop2: detected capacity change from 0 to 32768 [ 235.933197][ T7226] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 235.933229][ T7226] allowing incompatible features above 0.0: (unknown version) [pid 5839] close(4) = 0 [pid 5839] rmdir("./103/file1") = 0 [pid 5839] umount2("./103/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./103/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./103/binderfs") = 0 [ 235.933242][ T7226] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 235.933270][ T7226] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 235.933444][ T7226] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 235.933687][ T7226] bcachefs (loop2): Version upgrade required: [ 235.933687][ T7226] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 235.933687][ T7226] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./103") = 0 [pid 5839] mkdir("./104", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 235.933687][ T7226] 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,check_rebalance_work,set_fs_needs_rebalance [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7419 ./strace-static-x86_64: Process 7419 attached [pid 7419] set_robust_list(0x5555901c6760, 24) = 0 [pid 7419] chdir("./104") = 0 [pid 7419] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7419] setpgid(0, 0) = 0 [pid 7419] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7419] write(3, "1000", 4) = 4 [pid 7419] close(3) = 0 [pid 7419] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7419] write(1, "executing program\n", 18) = 18 [pid 7419] memfd_create("syzkaller", 0) = 3 [pid 7419] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 235.952899][ T7226] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 235.952928][ T7226] size != 0, deleting [ 235.954074][ T7226] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 235.957836][ T7226] bcachefs (loop2): check_topology... done [ 235.959825][ T7226] bcachefs (loop2): accounting_read... done [ 236.003003][ T7226] bcachefs (loop2): alloc_read... done [ 236.003985][ T7226] bcachefs (loop2): snapshots_read... done [ 236.004897][ T7226] bcachefs (loop2): check_allocations... [ 236.006880][ T7226] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 236.006900][ T7226] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 236.009053][ T7226] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 236.009072][ T7226] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 236.012462][ T7226] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 236.012481][ T7226] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 236.014075][ T7226] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 236.014093][ T7226] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 236.016715][ T7226] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 236.016734][ T7226] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 236.017675][ T7226] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.017800][ T7226] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.018348][ T7226] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.018939][ T7226] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.020974][ T7226] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.021096][ T7226] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.021302][ T7226] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.021410][ T7226] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.021613][ T7226] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.021719][ T7226] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.021918][ T7226] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.022032][ T7226] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7419] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7419] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7419] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 236.022237][ T7226] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.022342][ T7226] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 236.022542][ T7226] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 236.022688][ T7226] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 236.022888][ T7226] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [pid 7419] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7419] close(3) = 0 [pid 7419] close(4) = 0 [pid 7419] mkdir("./file1", 0777) = 0 [ 236.023004][ T7226] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.023204][ T7226] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.023310][ T7226] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.023543][ T7226] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 236.023558][ T7226] Ratelimiting new instances of previous error [ 236.023688][ T7226] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 236.023704][ T7226] Ratelimiting new instances of previous error [ 236.037304][ T7226] done [ 236.040334][ T7226] bcachefs (loop2): going read-write [ 236.045845][ T7226] bcachefs (loop2): journal_replay... done [ 236.073891][ T7226] bcachefs (loop2): check_alloc_info... [ 236.075846][ T7226] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 236.075870][ T7226] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 236.075883][ T7226] gen 0 oldest_gen 0 data_type need_discard [ 236.075893][ T7226] journal_seq_nonempty 6 [ 236.075903][ T7226] journal_seq_empty 0 [ 236.075914][ T7226] need_discard 1 [ 236.075924][ T7226] need_inc_gen 1 [ 236.075934][ T7226] dirty_sectors 0 [ 236.075945][ T7226] stripe_sectors 0 [ 236.075955][ T7226] cached_sectors 0 [ 236.075964][ T7226] stripe 0 [ 236.075974][ T7226] stripe_redundancy 0 [ 236.075994][ T7226] io_time[READ] 1 [ 236.076004][ T7226] io_time[WRITE] 768 [ 236.076014][ T7226] fragmentation 0 [ 236.076023][ T7226] bp_start 8 [ 236.076032][ T7226] , fixing [ 236.094086][ T7226] done [ 236.099268][ T7226] bcachefs (loop2): check_lrus... done [ 236.100530][ T7226] bcachefs (loop2): check_btree_backpointers... done [ 236.101790][ T7226] bcachefs (loop2): check_backpointers_to_extents... done [ 236.107329][ T7226] bcachefs (loop2): check_extents_to_backpointers... [ 236.108716][ T7226] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 236.110777][ T7226] done [ 236.111438][ T7226] bcachefs (loop2): check_alloc_to_lru_refs... [ 236.113329][ T7226] bcachefs (loop2): missing fragmentation lru entry [ 236.113347][ T7226] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 236.113358][ T7226] gen 0 oldest_gen 0 data_type user [ 236.113369][ T7226] journal_seq_nonempty 5 [ 236.113379][ T7226] journal_seq_empty 134217728 [ 236.113391][ T7226] need_discard 1 [ 236.113401][ T7226] need_inc_gen 1 [ 236.113410][ T7226] dirty_sectors 16 [ 236.113420][ T7226] stripe_sectors 1802251 [ 236.113431][ T7226] cached_sectors 0 [ 236.113440][ T7226] stripe 0 [ 236.113451][ T7226] stripe_redundancy 0 [ 236.113460][ T7226] io_time[READ] 1 [ 236.113470][ T7226] io_time[WRITE] 512 [ 236.113482][ T7226] fragmentation 0 [ 236.113491][ T7226] bp_start 7 [ 236.113501][ T7226] , fixing [ 236.115078][ T7226] done [ 236.116997][ T7226] bcachefs (loop2): bucket_gens_init... done [ 236.119095][ T7226] bcachefs (loop2): check_snapshot_trees... done [ 236.123256][ T7226] bcachefs (loop2): check_snapshots... [ 236.123872][ T7226] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 236.123890][ T7226] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 236.135033][ T7226] done [ 236.135736][ T7226] bcachefs (loop2): check_subvols... done [ 236.137778][ T7226] bcachefs (loop2): check_subvol_children... done [ 236.138744][ T7226] bcachefs (loop2): delete_dead_snapshots... done [ 236.140120][ T7226] bcachefs (loop2): check_inodes... [ 236.141211][ T7226] bcachefs (loop2): inode points to missing dirent [ 236.141229][ T7226] inum: 4098:4294967295 [ 236.141239][ T7226] mode=40755 [ 236.141248][ T7226] flags=(15300000) [ 236.141258][ T7226] journal_seq=4 [ 236.141268][ T7226] hash_seed=ece93825deac2443 [ 236.141278][ T7226] hash_type=siphash [ 236.141288][ T7226] bi_size=0 [ 236.141297][ T7226] bi_sectors=0 [ 236.141306][ T7226] bi_version=0 [ 236.141315][ T7226] bi_atime=2770562249 [ 236.141325][ T7226] bi_ctime=2780562352 [ 236.141335][ T7226] bi_mtime=2780562352 [ 236.141346][ T7226] bi_otime=2770562249 [ 236.141356][ T7226] bi_uid=0 [ 236.141365][ T7226] bi_gid=0 [ 236.141374][ T7226] bi_nlink=0 [ 236.141384][ T7226] bi_generation=0 [ 236.141393][ T7226] bi_dev=0 [ 236.141402][ T7226] bi_data_checksum=0 [ 236.141412][ T7226] bi_compression=0 [ 236.141423][ T7226] bi_project=0 [ 236.141432][ T7226] bi_background_compression=0 [ 236.141442][ T7226] bi_data_replicas=0 [ 236.141452][ T7226] bi_promote_target=0 [ 236.141462][ T7226] bi_foreground_target=64 [ 236.141472][ T7226] bi_background_target=1 [ 236.141482][ T7226] bi_erasure_code=0 [ 236.141491][ T7226] bi_fields_set=0 [ 236.141501][ T7226] bi_dir=0 [ 236.141510][ T7226] bi_dir_offset=32 [ 236.141519][ T7226] bi_subvol=0 [pid 7419] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7419] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7419] chdir("./file1") = 0 [pid 7419] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7419] ioctl(4, LOOP_CLR_FD) = 0 [pid 7419] close(4) = 0 [pid 7419] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 236.141528][ T7226] bi_parent_subvol=0 [ 236.141538][ T7226] bi_nocow=0 [ 236.141547][ T7226] bi_depth=0 [ 236.141556][ T7226] bi_inodes_32bit=0 [ 236.141566][ T7226] bi_casefold=0, fixing [ 236.143253][ T7226] done [ 236.143942][ T7226] bcachefs (loop2): check_extents... done [ 236.145434][ T7226] bcachefs (loop2): check_indirect_extents... done [ 236.146258][ T7226] bcachefs (loop2): check_dirents... [ 236.148264][ T7226] bcachefs (loop2): directory with missing backpointer [pid 7419] exit_group(0) = ? [pid 7419] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7419, si_uid=0, si_status=0, si_utime=11 /* 0.11 s */, si_stime=34 /* 0.34 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./104", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./104", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 236.148281][ T7226] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 236.148296][ T7226] inum: 4098:4294967295 [ 236.148307][ T7226] mode=40755 [ 236.148316][ T7226] flags=(11300000) [ 236.148325][ T7226] journal_seq=22 [ 236.148335][ T7226] hash_seed=ece93825deac2443 [ 236.148345][ T7226] hash_type=siphash [ 236.148355][ T7226] bi_size=0 [ 236.148365][ T7226] bi_sectors=0 [ 236.148374][ T7226] bi_version=0 [ 236.148383][ T7226] bi_atime=2770562249 [ 236.148393][ T7226] bi_ctime=2780562352 [ 236.148404][ T7226] bi_mtime=2780562352 [ 236.148414][ T7226] bi_otime=2770562249 [ 236.148424][ T7226] bi_uid=0 [ 236.148441][ T7226] bi_gid=0 [ 236.148450][ T7226] bi_nlink=0 [ 236.148457][ T7226] bi_generation=0 [ 236.148467][ T7226] bi_dev=0 [ 236.148476][ T7226] bi_data_checksum=0 [ 236.148484][ T7226] bi_compression=0 [ 236.148493][ T7226] bi_project=0 [ 236.148504][ T7226] bi_background_compression=0 [ 236.148527][ T7226] bi_data_replicas=0 [ 236.148536][ T7226] bi_promote_target=0 [ 236.148545][ T7226] bi_foreground_target=64 [ 236.148556][ T7226] bi_background_target=1 [ 236.148566][ T7226] bi_erasure_code=0 [ 236.148576][ T7226] bi_fields_set=0 [ 236.148586][ T7226] bi_dir=0 [ 236.148596][ T7226] bi_dir_offset=0 [ 236.148605][ T7226] bi_subvol=0 [ 236.148614][ T7226] bi_parent_subvol=0 [ 236.148624][ T7226] bi_nocow=0 [ 236.148633][ T7226] bi_depth=0 [ 236.148660][ T7226] bi_inodes_32bit=0 [ 236.148670][ T7226] bi_casefold=0, fixing [ 236.155972][ T7226] done [ 236.156567][ T7226] bcachefs (loop2): check_xattrs... done [ 236.158663][ T7226] bcachefs (loop2): check_root... done [ 236.161537][ T7226] bcachefs (loop2): check_unreachable_inodes... done [ 236.164427][ T7226] bcachefs (loop2): check_subvolume_structure... done [ 236.165287][ T7226] bcachefs (loop2): check_directory_structure... done [ 236.166104][ T7226] bcachefs (loop2): check_nlinks... [ 236.166821][ T7226] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 236.167906][ T7226] done [ 236.168594][ T7226] bcachefs (loop2): check_rebalance_work... done [ 236.170530][ T7226] bcachefs (loop2): resume_logged_ops... done [ 236.171700][ T7226] bcachefs (loop2): delete_dead_inodes... done [ 236.180417][ T7226] bcachefs (loop2): set_fs_needs_rebalance... [ 236.188713][ T7235] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 236.188738][ T7235] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 236.190031][ T7226] done [ 236.191037][ T7226] bcachefs (loop2): check_extents_to_backpointers... [ 236.191987][ T7226] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 236.197673][ T7226] done [ 236.214580][ T7226] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 236.214609][ T7226] bcachefs (loop2): check_alloc_info... done [ 236.231249][ T7226] bcachefs (loop2): check_lrus... done [ 236.232389][ T7226] bcachefs (loop2): check_btree_backpointers... done [ 236.233555][ T7226] bcachefs (loop2): check_backpointers_to_extents... done [ 236.234991][ T7226] bcachefs (loop2): check_extents_to_backpointers... done [ 236.236581][ T7226] bcachefs (loop2): check_alloc_to_lru_refs... done [ 236.239083][ T7226] bcachefs (loop2): bucket_gens_init... done [ 236.250352][ T7226] bcachefs (loop2): check_snapshot_trees... done [ 236.252174][ T7226] bcachefs (loop2): check_snapshots... done [ 236.253047][ T7226] bcachefs (loop2): check_subvols... done [ 236.253884][ T7226] bcachefs (loop2): check_subvol_children... done [ 236.254627][ T7226] bcachefs (loop2): delete_dead_snapshots... done [ 236.255406][ T7226] bcachefs (loop2): check_inodes... done [ 236.256591][ T7226] bcachefs (loop2): check_extents... done [ 236.258160][ T7226] bcachefs (loop2): check_indirect_extents... done [ 236.258870][ T7226] bcachefs (loop2): check_dirents... done [ 236.261603][ T7226] bcachefs (loop2): check_xattrs... done [ 236.270206][ T7226] bcachefs (loop2): check_root... done [ 236.271084][ T7226] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] umount2("./104/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./104/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./104/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./104/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./104/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [ 236.272011][ T7226] bcachefs (loop2): check_subvolume_structure... done [ 236.272796][ T7226] bcachefs (loop2): check_directory_structure... done [ 236.274088][ T7226] bcachefs (loop2): check_nlinks... done [ 236.275271][ T7226] bcachefs (loop2): check_rebalance_work... done [ 236.276091][ T7226] bcachefs (loop2): resume_logged_ops... done [ 236.280702][ T7226] bcachefs (loop2): delete_dead_inodes... done [ 236.281536][ T7226] bcachefs (loop2): set_fs_needs_rebalance... done [ 236.290294][ T7226] bcachefs (loop2): done starting filesystem [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./104/file1") = 0 [pid 5839] umount2("./104/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 236.390951][ T5839] bcachefs (loop2): shutting down [ 236.390970][ T5839] bcachefs (loop2): going read-only [ 236.390999][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 236.431520][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 236.432352][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 236.433209][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 236.435036][ T5839] bcachefs (loop2): marking filesystem clean [pid 5839] newfstatat(AT_FDCWD, "./104/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./104/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./104") = 0 [pid 5839] mkdir("./105", 0777) = 0 [ 236.435553][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 236.435553][ T5900] rw journal devs: [ 236.494669][ T5839] bcachefs (loop2): shutdown complete [ 237.291932][ T7237] loop2: detected capacity change from 0 to 32768 [ 237.433831][ T7237] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 237.433859][ T7237] allowing incompatible features above 0.0: (unknown version) [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7430 ./strace-static-x86_64: Process 7430 attached [pid 7430] set_robust_list(0x5555901c6760, 24) = 0 [ 237.433873][ T7237] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 237.433901][ T7237] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 237.434028][ T7237] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 237.434263][ T7237] bcachefs (loop2): Version upgrade required: [ 237.434263][ T7237] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 237.434263][ T7237] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7430] chdir("./105") = 0 [pid 7430] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7430] setpgid(0, 0) = 0 [pid 7430] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7430] write(3, "1000", 4) = 4 [pid 7430] close(3) = 0 [pid 7430] symlink("/dev/binderfs", "./binderfs") = 0 [ 237.434263][ T7237] 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,check_rebalance_work,set_fs_needs_rebalance [pid 7430] write(1, "executing program\n", 18executing program ) = 18 [pid 7430] memfd_create("syzkaller", 0) = 3 [pid 7430] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 237.453994][ T7237] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 237.454020][ T7237] size != 0, deleting [ 237.455128][ T7237] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 237.458377][ T7237] bcachefs (loop2): check_topology... done [ 237.466025][ T7237] bcachefs (loop2): accounting_read... done [ 237.501075][ T7237] bcachefs (loop2): alloc_read... done [ 237.502022][ T7237] bcachefs (loop2): snapshots_read... done [ 237.503452][ T7237] bcachefs (loop2): check_allocations... [ 237.505434][ T7237] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 237.505454][ T7237] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 237.507433][ T7237] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 237.507452][ T7237] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 237.508865][ T7237] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 237.508883][ T7237] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 237.513027][ T7237] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 237.513046][ T7237] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 237.516084][ T7237] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 237.516103][ T7237] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 237.517052][ T7237] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.517179][ T7237] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.517735][ T7237] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.517844][ T7237] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.518249][ T7237] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.518364][ T7237] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.518564][ T7237] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.518668][ T7237] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.518877][ T7237] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.518982][ T7237] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.520750][ T7237] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.520866][ T7237] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7430] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7430] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7430] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7430] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7430] close(3) = 0 [pid 7430] close(4) = 0 [pid 7430] mkdir("./file1", 0777) = 0 [ 237.521091][ T7237] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.521199][ T7237] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 237.521404][ T7237] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 237.521508][ T7237] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 237.521732][ T7237] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 237.521837][ T7237] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 237.522042][ T7237] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 237.522149][ T7237] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 237.522391][ T7237] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 237.522407][ T7237] Ratelimiting new instances of previous error [ 237.522562][ T7237] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 237.522577][ T7237] Ratelimiting new instances of previous error [ 237.536841][ T7237] done [ 237.538987][ T7237] bcachefs (loop2): going read-write [ 237.545596][ T7237] bcachefs (loop2): journal_replay... done [ 237.573916][ T7237] bcachefs (loop2): check_alloc_info... [ 237.575713][ T7237] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 237.575731][ T7237] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 237.575743][ T7237] gen 0 oldest_gen 0 data_type need_discard [ 237.575755][ T7237] journal_seq_nonempty 6 [ 237.575765][ T7237] journal_seq_empty 0 [ 237.575774][ T7237] need_discard 1 [ 237.575784][ T7237] need_inc_gen 1 [ 237.575794][ T7237] dirty_sectors 0 [ 237.575804][ T7237] stripe_sectors 0 [ 237.575814][ T7237] cached_sectors 0 [ 237.575823][ T7237] stripe 0 [ 237.575833][ T7237] stripe_redundancy 0 [ 237.575843][ T7237] io_time[READ] 1 [ 237.575852][ T7237] io_time[WRITE] 768 [ 237.575862][ T7237] fragmentation 0 [ 237.575872][ T7237] bp_start 8 [ 237.575890][ T7237] , fixing [ 237.593318][ T7237] done [ 237.599060][ T7237] bcachefs (loop2): check_lrus... done [ 237.600741][ T7237] bcachefs (loop2): check_btree_backpointers... done [ 237.604237][ T7237] bcachefs (loop2): check_backpointers_to_extents... done [ 237.608287][ T7237] bcachefs (loop2): check_extents_to_backpointers... [ 237.609770][ T7237] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 237.611918][ T7237] done [ 237.612700][ T7237] bcachefs (loop2): check_alloc_to_lru_refs... [ 237.615076][ T7237] bcachefs (loop2): missing fragmentation lru entry [ 237.615096][ T7237] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 237.615107][ T7237] gen 0 oldest_gen 0 data_type user [ 237.615120][ T7237] journal_seq_nonempty 5 [ 237.615130][ T7237] journal_seq_empty 134217728 [ 237.615140][ T7237] need_discard 1 [ 237.615150][ T7237] need_inc_gen 1 [ 237.615160][ T7237] dirty_sectors 16 [ 237.615170][ T7237] stripe_sectors 1802251 [ 237.615180][ T7237] cached_sectors 0 [ 237.615190][ T7237] stripe 0 [ 237.615200][ T7237] stripe_redundancy 0 [ 237.615210][ T7237] io_time[READ] 1 [ 237.615219][ T7237] io_time[WRITE] 512 [ 237.615229][ T7237] fragmentation 0 [ 237.615240][ T7237] bp_start 7 [ 237.615250][ T7237] , fixing [ 237.616820][ T7237] done [ 237.618259][ T7237] bcachefs (loop2): bucket_gens_init... done [ 237.622515][ T7237] bcachefs (loop2): check_snapshot_trees... done [ 237.623362][ T7237] bcachefs (loop2): check_snapshots... [ 237.623950][ T7237] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 237.623967][ T7237] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 237.635470][ T7237] done [ 237.636210][ T7237] bcachefs (loop2): check_subvols... done [ 237.638071][ T7237] bcachefs (loop2): check_subvol_children... done [ 237.638927][ T7237] bcachefs (loop2): delete_dead_snapshots... done [ 237.640910][ T7237] bcachefs (loop2): check_inodes... [ 237.642017][ T7237] bcachefs (loop2): inode points to missing dirent [ 237.642034][ T7237] inum: 4098:4294967295 [ 237.642044][ T7237] mode=40755 [ 237.642053][ T7237] flags=(15300000) [ 237.642063][ T7237] journal_seq=4 [ 237.642073][ T7237] hash_seed=ece93825deac2443 [ 237.642083][ T7237] hash_type=siphash [ 237.642093][ T7237] bi_size=0 [ 237.642102][ T7237] bi_sectors=0 [ 237.642111][ T7237] bi_version=0 [ 237.642120][ T7237] bi_atime=2770562249 [ 237.642130][ T7237] bi_ctime=2780562352 [ 237.642140][ T7237] bi_mtime=2780562352 [ 237.642149][ T7237] bi_otime=2770562249 [ 237.642160][ T7237] bi_uid=0 [ 237.642169][ T7237] bi_gid=0 [ 237.642177][ T7237] bi_nlink=0 [ 237.642187][ T7237] bi_generation=0 [ 237.642196][ T7237] bi_dev=0 [ 237.642205][ T7237] bi_data_checksum=0 [pid 7430] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7430] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7430] chdir("./file1") = 0 [pid 7430] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 237.642215][ T7237] bi_compression=0 [ 237.642225][ T7237] bi_project=0 [ 237.642234][ T7237] bi_background_compression=0 [ 237.642244][ T7237] bi_data_replicas=0 [ 237.642256][ T7237] bi_promote_target=0 [ 237.642265][ T7237] bi_foreground_target=64 [ 237.642275][ T7237] bi_background_target=1 [ 237.642285][ T7237] bi_erasure_code=0 [ 237.642295][ T7237] bi_fields_set=0 [ 237.642305][ T7237] bi_dir=0 [ 237.642314][ T7237] bi_dir_offset=32 [ 237.642323][ T7237] bi_subvol=0 [pid 7430] ioctl(4, LOOP_CLR_FD) = 0 [pid 7430] close(4) = 0 [pid 7430] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7430] exit_group(0) = ? [pid 7430] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7430, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=32 /* 0.32 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./105", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./105", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 237.642332][ T7237] bi_parent_subvol=0 [ 237.642342][ T7237] bi_nocow=0 [ 237.642351][ T7237] bi_depth=0 [ 237.642360][ T7237] bi_inodes_32bit=0 [ 237.642370][ T7237] bi_casefold=0, fixing [ 237.643988][ T7237] done [ 237.644665][ T7237] bcachefs (loop2): check_extents... done [ 237.646696][ T7237] bcachefs (loop2): check_indirect_extents... done [ 237.647524][ T7237] bcachefs (loop2): check_dirents... [ 237.650567][ T7237] bcachefs (loop2): directory with missing backpointer [ 237.650585][ T7237] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 237.650601][ T7237] inum: 4098:4294967295 [ 237.650611][ T7237] mode=40755 [ 237.650619][ T7237] flags=(11300000) [ 237.650628][ T7237] journal_seq=23 [ 237.650637][ T7237] hash_seed=ece93825deac2443 [ 237.650649][ T7237] hash_type=siphash [ 237.650659][ T7237] bi_size=0 [ 237.650668][ T7237] bi_sectors=0 [ 237.650677][ T7237] bi_version=0 [ 237.650686][ T7237] bi_atime=2770562249 [ 237.650696][ T7237] bi_ctime=2780562352 [ 237.650706][ T7237] bi_mtime=2780562352 [ 237.650715][ T7237] bi_otime=2770562249 [ 237.650725][ T7237] bi_uid=0 [ 237.650734][ T7237] bi_gid=0 [ 237.650743][ T7237] bi_nlink=0 [ 237.650752][ T7237] bi_generation=0 [ 237.650761][ T7237] bi_dev=0 [ 237.650771][ T7237] bi_data_checksum=0 [ 237.650780][ T7237] bi_compression=0 [ 237.650790][ T7237] bi_project=0 [ 237.650799][ T7237] bi_background_compression=0 [ 237.650810][ T7237] bi_data_replicas=0 [ 237.650819][ T7237] bi_promote_target=0 [ 237.650829][ T7237] bi_foreground_target=64 [ 237.650839][ T7237] bi_background_target=1 [ 237.650848][ T7237] bi_erasure_code=0 [ 237.650858][ T7237] bi_fields_set=0 [ 237.650876][ T7237] bi_dir=0 [ 237.650886][ T7237] bi_dir_offset=0 [ 237.650895][ T7237] bi_subvol=0 [ 237.650905][ T7237] bi_parent_subvol=0 [ 237.650915][ T7237] bi_nocow=0 [ 237.650924][ T7237] bi_depth=0 [ 237.650933][ T7237] bi_inodes_32bit=0 [ 237.650943][ T7237] bi_casefold=0, fixing [ 237.656938][ T7237] done [ 237.657796][ T7237] bcachefs (loop2): check_xattrs... done [ 237.661105][ T7237] bcachefs (loop2): check_root... done [ 237.663600][ T7237] bcachefs (loop2): check_unreachable_inodes... done [ 237.664667][ T7237] bcachefs (loop2): check_subvolume_structure... done [ 237.665414][ T7237] bcachefs (loop2): check_directory_structure... done [ 237.666248][ T7237] bcachefs (loop2): check_nlinks... [ 237.667441][ T7237] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 237.668551][ T7237] done [ 237.669730][ T7237] bcachefs (loop2): check_rebalance_work... done [ 237.671241][ T7237] bcachefs (loop2): resume_logged_ops... done [ 237.672003][ T7237] bcachefs (loop2): delete_dead_inodes... done [ 237.682652][ T7237] bcachefs (loop2): set_fs_needs_rebalance... [ 237.691167][ T7247] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 237.691190][ T7247] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 237.694171][ T7237] done [ 237.695232][ T7237] bcachefs (loop2): check_extents_to_backpointers... [ 237.696217][ T7237] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 237.700226][ T7247] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 237.702357][ T7237] done [ 237.714456][ T7237] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 237.714479][ T7237] bcachefs (loop2): check_alloc_info... done [ 237.719346][ T7237] bcachefs (loop2): check_lrus... done [ 237.720931][ T7237] bcachefs (loop2): check_btree_backpointers... done [ 237.722884][ T7237] bcachefs (loop2): check_backpointers_to_extents... done [ 237.724472][ T7237] bcachefs (loop2): check_extents_to_backpointers... [ 237.725397][ T7237] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 237.726718][ T7237] done [ 237.726731][ T7237] bcachefs (loop2): check_alloc_to_lru_refs... done [ 237.730094][ T7237] bcachefs (loop2): bucket_gens_init... done [pid 5839] umount2("./105/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./105/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 237.732305][ T7237] bcachefs (loop2): check_snapshot_trees... done [ 237.734216][ T7237] bcachefs (loop2): check_snapshots... done [ 237.735148][ T7237] bcachefs (loop2): check_subvols... done [ 237.736282][ T7237] bcachefs (loop2): check_subvol_children... done [ 237.737176][ T7237] bcachefs (loop2): delete_dead_snapshots... done [ 237.738021][ T7237] bcachefs (loop2): check_inodes... done [ 237.740019][ T7237] bcachefs (loop2): check_extents... done [ 237.741911][ T7237] bcachefs (loop2): check_indirect_extents... done [pid 5839] newfstatat(AT_FDCWD, "./105/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./105/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./105/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./105/file1") = 0 [pid 5839] umount2("./105/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 237.742774][ T7237] bcachefs (loop2): check_dirents... done [ 237.744954][ T7237] bcachefs (loop2): check_xattrs... done [ 237.745826][ T7237] bcachefs (loop2): check_root... done [ 237.746658][ T7237] bcachefs (loop2): check_unreachable_inodes... done [ 237.747645][ T7237] bcachefs (loop2): check_subvolume_structure... done [ 237.748444][ T7237] bcachefs (loop2): check_directory_structure... done [ 237.750814][ T7237] bcachefs (loop2): check_nlinks... done [ 237.752080][ T7237] bcachefs (loop2): check_rebalance_work... done [ 237.752970][ T7237] bcachefs (loop2): resume_logged_ops... done [pid 5839] newfstatat(AT_FDCWD, "./105/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./105/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./105") = 0 [pid 5839] mkdir("./106", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 237.753716][ T7237] bcachefs (loop2): delete_dead_inodes... done [ 237.754524][ T7237] bcachefs (loop2): set_fs_needs_rebalance... done [ 237.758737][ T7237] bcachefs (loop2): done starting filesystem [ 237.831857][ T5839] bcachefs (loop2): shutting down [ 237.831878][ T5839] bcachefs (loop2): going read-only [ 237.831907][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 237.878466][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7441 attached , child_tidptr=0x5555901c6750) = 7441 [pid 7441] set_robust_list(0x5555901c6760, 24) = 0 [pid 7441] chdir("./106") = 0 [pid 7441] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 237.880312][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 237.881238][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 237.883022][ T5839] bcachefs (loop2): marking filesystem clean [ 237.883533][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 237.883533][ T5152] rw journal devs: [ 237.924611][ T5839] bcachefs (loop2): shutdown complete [ 238.703767][ T7249] loop2: detected capacity change from 0 to 32768 [pid 7441] setpgid(0, 0) = 0 [pid 7441] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7441] write(3, "1000", 4) = 4 [pid 7441] close(3) = 0 [pid 7441] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7441] write(1, "executing program\n", 18executing program ) = 18 [ 238.916131][ T7249] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 238.916160][ T7249] allowing incompatible features above 0.0: (unknown version) [ 238.916174][ T7249] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 238.916203][ T7249] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 238.916330][ T7249] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [pid 7441] memfd_create("syzkaller", 0) = 3 [pid 7441] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 238.916569][ T7249] bcachefs (loop2): Version upgrade required: [ 238.916569][ T7249] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 238.916569][ T7249] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 238.916569][ T7249] 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,check_rebalance_work,set_fs_needs_rebalance [ 238.936050][ T7249] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 238.936077][ T7249] size != 0, deleting [ 238.937219][ T7249] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 238.943523][ T7249] bcachefs (loop2): check_topology... done [ 238.945012][ T7249] bcachefs (loop2): accounting_read... done [ 238.972571][ T7249] bcachefs (loop2): alloc_read... done [ 238.973519][ T7249] bcachefs (loop2): snapshots_read... done [ 238.974386][ T7249] bcachefs (loop2): check_allocations... [ 238.976360][ T7249] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 238.976382][ T7249] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 238.978399][ T7249] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 238.978417][ T7249] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 238.980962][ T7249] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 238.980981][ T7249] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 238.983997][ T7249] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 238.984015][ T7249] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 238.986568][ T7249] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 238.986586][ T7249] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 238.987534][ T7249] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.987659][ T7249] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.988238][ T7249] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.988345][ T7249] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.988744][ T7249] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7441] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7441] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7441] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7441] ioctl(4, LOOP_SET_FD, 3) = 0 [ 238.988860][ T7249] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.989057][ T7249] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.991533][ T7249] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.991814][ T7249] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7441] close(3) = 0 [pid 7441] close(4) = 0 [pid 7441] mkdir("./file1", 0777) = 0 [ 238.991924][ T7249] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.992133][ T7249] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.992240][ T7249] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.992446][ T7249] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.992548][ T7249] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 238.992772][ T7249] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 238.992878][ T7249] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 238.993079][ T7249] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 238.993185][ T7249] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 238.993921][ T7249] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 238.994033][ T7249] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 238.994286][ T7249] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 238.994302][ T7249] Ratelimiting new instances of previous error [ 238.994435][ T7249] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 238.994449][ T7249] Ratelimiting new instances of previous error [ 239.007656][ T7249] done [ 239.010142][ T7249] bcachefs (loop2): going read-write [ 239.015143][ T7249] bcachefs (loop2): journal_replay... done [ 239.043179][ T7249] bcachefs (loop2): check_alloc_info... [ 239.044982][ T7249] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 239.045001][ T7249] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 239.045012][ T7249] gen 0 oldest_gen 0 data_type need_discard [ 239.045025][ T7249] journal_seq_nonempty 6 [ 239.045035][ T7249] journal_seq_empty 0 [ 239.045044][ T7249] need_discard 1 [ 239.045054][ T7249] need_inc_gen 1 [ 239.045064][ T7249] dirty_sectors 0 [ 239.045074][ T7249] stripe_sectors 0 [ 239.045083][ T7249] cached_sectors 0 [ 239.045093][ T7249] stripe 0 [ 239.045103][ T7249] stripe_redundancy 0 [ 239.045112][ T7249] io_time[READ] 1 [ 239.045122][ T7249] io_time[WRITE] 768 [ 239.045132][ T7249] fragmentation 0 [ 239.045142][ T7249] bp_start 8 [ 239.045151][ T7249] , fixing [ 239.061501][ T7249] done [ 239.067095][ T7249] bcachefs (loop2): check_lrus... done [ 239.068122][ T7249] bcachefs (loop2): check_btree_backpointers... done [ 239.069985][ T7249] bcachefs (loop2): check_backpointers_to_extents... done [ 239.073133][ T7249] bcachefs (loop2): check_extents_to_backpointers... [ 239.074515][ T7249] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 239.075962][ T7249] done [ 239.076529][ T7249] bcachefs (loop2): check_alloc_to_lru_refs... [ 239.078049][ T7249] bcachefs (loop2): missing fragmentation lru entry [ 239.078065][ T7249] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 239.078077][ T7249] gen 0 oldest_gen 0 data_type user [ 239.078088][ T7249] journal_seq_nonempty 5 [ 239.078098][ T7249] journal_seq_empty 134217728 [ 239.078108][ T7249] need_discard 1 [ 239.078119][ T7249] need_inc_gen 1 [ 239.078128][ T7249] dirty_sectors 16 [ 239.078138][ T7249] stripe_sectors 1802251 [ 239.078149][ T7249] cached_sectors 0 [ 239.078160][ T7249] stripe 0 [ 239.078170][ T7249] stripe_redundancy 0 [ 239.078180][ T7249] io_time[READ] 1 [ 239.078190][ T7249] io_time[WRITE] 512 [ 239.078200][ T7249] fragmentation 0 [ 239.078210][ T7249] bp_start 7 [ 239.078219][ T7249] , fixing [ 239.084186][ T7249] done [ 239.085823][ T7249] bcachefs (loop2): bucket_gens_init... done [ 239.087892][ T7249] bcachefs (loop2): check_snapshot_trees... done [ 239.088694][ T7249] bcachefs (loop2): check_snapshots... [ 239.089573][ T7249] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 239.089591][ T7249] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 239.101194][ T7249] done [ 239.101914][ T7249] bcachefs (loop2): check_subvols... done [ 239.103466][ T7249] bcachefs (loop2): check_subvol_children... done [ 239.104875][ T7249] bcachefs (loop2): delete_dead_snapshots... done [ 239.105665][ T7249] bcachefs (loop2): check_inodes... [ 239.106751][ T7249] bcachefs (loop2): inode points to missing dirent [pid 7441] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7441] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7441] chdir("./file1") = 0 [pid 7441] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7441] ioctl(4, LOOP_CLR_FD) = 0 [pid 7441] close(4) = 0 [ 239.106768][ T7249] inum: 4098:4294967295 [ 239.106779][ T7249] mode=40755 [ 239.106788][ T7249] flags=(15300000) [ 239.106799][ T7249] journal_seq=4 [ 239.106809][ T7249] hash_seed=ece93825deac2443 [ 239.106819][ T7249] hash_type=siphash [ 239.106829][ T7249] bi_size=0 [ 239.106836][ T7249] bi_sectors=0 [ 239.106859][ T7249] bi_version=0 [ 239.106868][ T7249] bi_atime=2770562249 [ 239.106878][ T7249] bi_ctime=2780562352 [ 239.106887][ T7249] bi_mtime=2780562352 [pid 7441] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7441] exit_group(0) = ? [pid 7441] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7441, si_uid=0, si_status=0, si_utime=7 /* 0.07 s */, si_stime=41 /* 0.41 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./106", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./106", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 239.106897][ T7249] bi_otime=2770562249 [ 239.106906][ T7249] bi_uid=0 [ 239.106915][ T7249] bi_gid=0 [ 239.106921][ T7249] bi_nlink=0 [ 239.106931][ T7249] bi_generation=0 [ 239.106940][ T7249] bi_dev=0 [ 239.106948][ T7249] bi_data_checksum=0 [ 239.106957][ T7249] bi_compression=0 [ 239.106967][ T7249] bi_project=0 [ 239.106976][ T7249] bi_background_compression=0 [ 239.106987][ T7249] bi_data_replicas=0 [ 239.106997][ T7249] bi_promote_target=0 [ 239.107006][ T7249] bi_foreground_target=64 [ 239.107016][ T7249] bi_background_target=1 [ 239.107025][ T7249] bi_erasure_code=0 [ 239.107034][ T7249] bi_fields_set=0 [ 239.107043][ T7249] bi_dir=0 [ 239.107052][ T7249] bi_dir_offset=32 [ 239.107061][ T7249] bi_subvol=0 [ 239.107070][ T7249] bi_parent_subvol=0 [ 239.107098][ T7249] bi_nocow=0 [ 239.107107][ T7249] bi_depth=0 [ 239.107116][ T7249] bi_inodes_32bit=0 [ 239.107126][ T7249] bi_casefold=0, fixing [ 239.108766][ T7249] done [ 239.112534][ T7249] bcachefs (loop2): check_extents... done [ 239.115522][ T7249] bcachefs (loop2): check_indirect_extents... done [ 239.116351][ T7249] bcachefs (loop2): check_dirents... [ 239.118098][ T7249] bcachefs (loop2): directory with missing backpointer [ 239.118113][ T7249] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 239.118128][ T7249] inum: 4098:4294967295 [ 239.118138][ T7249] mode=40755 [ 239.118147][ T7249] flags=(11300000) [ 239.118157][ T7249] journal_seq=22 [ 239.118166][ T7249] hash_seed=ece93825deac2443 [ 239.118177][ T7249] hash_type=siphash [ 239.118186][ T7249] bi_size=0 [ 239.118195][ T7249] bi_sectors=0 [ 239.118205][ T7249] bi_version=0 [ 239.118214][ T7249] bi_atime=2770562249 [ 239.118225][ T7249] bi_ctime=2780562352 [ 239.118235][ T7249] bi_mtime=2780562352 [ 239.118244][ T7249] bi_otime=2770562249 [ 239.118254][ T7249] bi_uid=0 [ 239.118265][ T7249] bi_gid=0 [ 239.118273][ T7249] bi_nlink=0 [ 239.118282][ T7249] bi_generation=0 [ 239.118293][ T7249] bi_dev=0 [ 239.118300][ T7249] bi_data_checksum=0 [ 239.118312][ T7249] bi_compression=0 [ 239.118321][ T7249] bi_project=0 [ 239.118330][ T7249] bi_background_compression=0 [ 239.118340][ T7249] bi_data_replicas=0 [ 239.118350][ T7249] bi_promote_target=0 [ 239.118360][ T7249] bi_foreground_target=64 [ 239.118370][ T7249] bi_background_target=1 [ 239.118381][ T7249] bi_erasure_code=0 [ 239.118390][ T7249] bi_fields_set=0 [ 239.118400][ T7249] bi_dir=0 [ 239.118409][ T7249] bi_dir_offset=0 [ 239.118418][ T7249] bi_subvol=0 [ 239.118427][ T7249] bi_parent_subvol=0 [ 239.118437][ T7249] bi_nocow=0 [ 239.118447][ T7249] bi_depth=0 [ 239.118456][ T7249] bi_inodes_32bit=0 [ 239.118466][ T7249] bi_casefold=0, fixing [ 239.122804][ T7249] done [ 239.123362][ T7249] bcachefs (loop2): check_xattrs... done [ 239.126124][ T7249] bcachefs (loop2): check_root... done [ 239.128035][ T7249] bcachefs (loop2): check_unreachable_inodes... done [ 239.129093][ T7249] bcachefs (loop2): check_subvolume_structure... done [ 239.130159][ T7249] bcachefs (loop2): check_directory_structure... done [ 239.130935][ T7249] bcachefs (loop2): check_nlinks... [ 239.131639][ T7249] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 239.132700][ T7249] done [ 239.133364][ T7249] bcachefs (loop2): check_rebalance_work... done [ 239.134557][ T7249] bcachefs (loop2): resume_logged_ops... done [ 239.135895][ T7249] bcachefs (loop2): delete_dead_inodes... done [ 239.144926][ T7249] bcachefs (loop2): set_fs_needs_rebalance... [ 239.152779][ T7261] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 239.152814][ T7261] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 239.156022][ T7249] done [ 239.157609][ T7249] bcachefs (loop2): check_extents_to_backpointers... [ 239.158571][ T7249] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 239.164548][ T7249] done [pid 5839] umount2("./106/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./106/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 239.175209][ T7249] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 239.175233][ T7249] bcachefs (loop2): check_alloc_info... done [ 239.180306][ T7249] bcachefs (loop2): check_lrus... done [ 239.182015][ T7249] bcachefs (loop2): check_btree_backpointers... done [ 239.183280][ T7249] bcachefs (loop2): check_backpointers_to_extents... done [ 239.184768][ T7249] bcachefs (loop2): check_extents_to_backpointers... done [ 239.186391][ T7249] bcachefs (loop2): check_alloc_to_lru_refs... done [ 239.188613][ T7249] bcachefs (loop2): bucket_gens_init... done [pid 5839] newfstatat(AT_FDCWD, "./106/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./106/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./106/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./106/file1") = 0 [pid 5839] umount2("./106/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./106/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./106/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./106") = 0 [pid 5839] mkdir("./107", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7452 ./strace-static-x86_64: Process 7452 attached [ 239.191922][ T7249] bcachefs (loop2): check_snapshot_trees... done [ 239.193130][ T7249] bcachefs (loop2): check_snapshots... done [ 239.194019][ T7249] bcachefs (loop2): check_subvols... done [ 239.194768][ T7249] bcachefs (loop2): check_subvol_children... done [ 239.195387][ T7249] bcachefs (loop2): delete_dead_snapshots... done [ 239.196129][ T7249] bcachefs (loop2): check_inodes... done [ 239.197321][ T7249] bcachefs (loop2): check_extents... done [ 239.198755][ T7249] bcachefs (loop2): check_indirect_extents... done [pid 7452] set_robust_list(0x5555901c6760, 24) = 0 [pid 7452] chdir("./107") = 0 [pid 7452] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 239.200440][ T7249] bcachefs (loop2): check_dirents... done [ 239.202953][ T7249] bcachefs (loop2): check_xattrs... done [ 239.203858][ T7249] bcachefs (loop2): check_root... done [ 239.204656][ T7249] bcachefs (loop2): check_unreachable_inodes... done [ 239.205628][ T7249] bcachefs (loop2): check_subvolume_structure... done [ 239.206394][ T7249] bcachefs (loop2): check_directory_structure... done [ 239.207231][ T7249] bcachefs (loop2): check_nlinks... done [ 239.208431][ T7249] bcachefs (loop2): check_rebalance_work... done [pid 7452] setpgid(0, 0) = 0 [pid 7452] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7452] write(3, "1000", 4) = 4 [pid 7452] close(3) = 0 [pid 7452] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7452] write(1, "executing program\n", 18executing program ) = 18 [ 239.210535][ T7249] bcachefs (loop2): resume_logged_ops... done [ 239.211887][ T7249] bcachefs (loop2): delete_dead_inodes... done [ 239.213220][ T7249] bcachefs (loop2): set_fs_needs_rebalance... done [ 239.216737][ T7249] bcachefs (loop2): done starting filesystem [ 239.299555][ T5839] bcachefs (loop2): shutting down [ 239.299577][ T5839] bcachefs (loop2): going read-only [ 239.299606][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 239.343333][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [pid 7452] memfd_create("syzkaller", 0) = 3 [pid 7452] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 239.344240][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 239.345112][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 239.346894][ T5839] bcachefs (loop2): marking filesystem clean [ 239.347407][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 239.347407][ T5152] rw journal devs: [ 239.395565][ T5839] bcachefs (loop2): shutdown complete [ 240.330416][ T7265] loop2: detected capacity change from 0 to 32768 [ 240.484478][ T7265] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 240.484510][ T7265] allowing incompatible features above 0.0: (unknown version) [ 240.484525][ T7265] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 240.484553][ T7265] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 240.484708][ T7265] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 240.484985][ T7265] bcachefs (loop2): Version upgrade required: [ 240.484985][ T7265] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 240.484985][ T7265] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 240.484985][ T7265] 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,check_rebalance_work,set_fs_needs_rebalance [ 240.507283][ T7265] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 240.507312][ T7265] size != 0, deleting [ 240.508611][ T7265] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 240.513388][ T7265] bcachefs (loop2): check_topology... done [ 240.515068][ T7265] bcachefs (loop2): accounting_read... done [ 240.550417][ T7265] bcachefs (loop2): alloc_read... done [ 240.551427][ T7265] bcachefs (loop2): snapshots_read... done [ 240.552387][ T7265] bcachefs (loop2): check_allocations... [ 240.555211][ T7265] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7452] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 240.555235][ T7265] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 240.557488][ T7265] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 240.557508][ T7265] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 240.559097][ T7265] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 240.559119][ T7265] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [pid 7452] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7452] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7452] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7452] close(3) = 0 [pid 7452] close(4) = 0 [pid 7452] mkdir("./file1", 0777) = 0 [ 240.562280][ T7265] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 240.562302][ T7265] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 240.565807][ T7265] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 240.565828][ T7265] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 240.566899][ T7265] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.567040][ T7265] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.567661][ T7265] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.567782][ T7265] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.568240][ T7265] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.568358][ T7265] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.568608][ T7265] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.568730][ T7265] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.568958][ T7265] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.569076][ T7265] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.570210][ T7265] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.570333][ T7265] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.570583][ T7265] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.570703][ T7265] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 240.570938][ T7265] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 240.571071][ T7265] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 240.571306][ T7265] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 240.571427][ T7265] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 240.571666][ T7265] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 240.571787][ T7265] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 240.572054][ T7265] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 240.572072][ T7265] Ratelimiting new instances of previous error [ 240.572219][ T7265] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 240.572237][ T7265] Ratelimiting new instances of previous error [ 240.587147][ T7265] done [ 240.590549][ T7265] bcachefs (loop2): going read-write [ 240.596479][ T7265] bcachefs (loop2): journal_replay... done [ 240.627099][ T7265] bcachefs (loop2): check_alloc_info... [ 240.628921][ T7265] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 240.628939][ T7265] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 240.628950][ T7265] gen 0 oldest_gen 0 data_type need_discard [ 240.628962][ T7265] journal_seq_nonempty 6 [ 240.628972][ T7265] journal_seq_empty 0 [ 240.628982][ T7265] need_discard 1 [ 240.628991][ T7265] need_inc_gen 1 [ 240.629001][ T7265] dirty_sectors 0 [ 240.629011][ T7265] stripe_sectors 0 [ 240.629021][ T7265] cached_sectors 0 [ 240.629030][ T7265] stripe 0 [ 240.629040][ T7265] stripe_redundancy 0 [ 240.629050][ T7265] io_time[READ] 1 [ 240.629061][ T7265] io_time[WRITE] 768 [ 240.629071][ T7265] fragmentation 0 [ 240.629081][ T7265] bp_start 8 [ 240.629091][ T7265] , fixing [ 240.645159][ T7265] done [ 240.648159][ T7265] bcachefs (loop2): check_lrus... done [ 240.650103][ T7265] bcachefs (loop2): check_btree_backpointers... done [ 240.654244][ T7265] bcachefs (loop2): check_backpointers_to_extents... done [ 240.657895][ T7265] bcachefs (loop2): check_extents_to_backpointers... [ 240.660518][ T7265] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets ** 3 printk messages dropped ** [pid 7452] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7452] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7452] chdir("./file1") = 0 [pid 7452] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 240.665331][ T7265] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: ** 7 printk messages dropped ** [ 240.665414][ T7265] cached_sectors 0 ** 10 printk messages dropped ** [ 240.675644][ T7265] bcachefs (loop2): check_snapshots... [ 240.676225][ T7265] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 240.676242][ T7265] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 240.687681][ T7265] done [ 240.688433][ T7265] bcachefs (loop2): check_subvols... done [pid 7452] ioctl(4, LOOP_CLR_FD) = 0 [pid 7452] close(4) = 0 [pid 7452] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7452] exit_group(0) = ? [pid 7452] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7452, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=32 /* 0.32 s */} --- [pid 5839] umount2("./107", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./107", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 240.690458][ T7265] bcachefs (loop2): check_subvol_children... done [ 240.691883][ T7265] bcachefs (loop2): delete_dead_snapshots... done [ 240.692651][ T7265] bcachefs (loop2): check_inodes... [ 240.693764][ T7265] bcachefs (loop2): inode points to missing dirent [ 240.693782][ T7265] inum: 4098:4294967295 [ 240.693792][ T7265] mode=40755 [ 240.693801][ T7265] flags=(15300000) [ 240.693811][ T7265] journal_seq=4 [ 240.693821][ T7265] hash_seed=ece93825deac2443 [ 240.693831][ T7265] hash_type=siphash [ 240.693841][ T7265] bi_size=0 [ 240.693850][ T7265] bi_sectors=0 [ 240.693859][ T7265] bi_version=0 [ 240.693869][ T7265] bi_atime=2770562249 [ 240.693879][ T7265] bi_ctime=2780562352 [ 240.693888][ T7265] bi_mtime=2780562352 [ 240.693898][ T7265] bi_otime=2770562249 [ 240.693908][ T7265] bi_uid=0 [ 240.693917][ T7265] bi_gid=0 [ 240.693926][ T7265] bi_nlink=0 [ 240.693935][ T7265] bi_generation=0 [ 240.693945][ T7265] bi_dev=0 [ 240.693954][ T7265] bi_data_checksum=0 [ 240.693963][ T7265] bi_compression=0 [ 240.693975][ T7265] bi_project=0 [ 240.693984][ T7265] bi_background_compression=0 [ 240.693994][ T7265] bi_data_replicas=0 [ 240.694004][ T7265] bi_promote_target=0 [ 240.694013][ T7265] bi_foreground_target=64 [ 240.694023][ T7265] bi_background_target=1 [ 240.694033][ T7265] bi_erasure_code=0 [ 240.694043][ T7265] bi_fields_set=0 [ 240.694052][ T7265] bi_dir=0 [ 240.694061][ T7265] bi_dir_offset=32 [ 240.694071][ T7265] bi_subvol=0 [ 240.694080][ T7265] bi_parent_subvol=0 [ 240.694090][ T7265] bi_nocow=0 [ 240.694099][ T7265] bi_depth=0 [ 240.694108][ T7265] bi_inodes_32bit=0 [ 240.694118][ T7265] bi_casefold=0, fixing [ 240.695785][ T7265] done [ 240.696497][ T7265] bcachefs (loop2): check_extents... done [ 240.698762][ T7265] bcachefs (loop2): check_indirect_extents... done [ 240.700722][ T7265] bcachefs (loop2): check_dirents... [ 240.703973][ T7265] bcachefs (loop2): directory with missing backpointer [ 240.703990][ T7265] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 240.704004][ T7265] inum: 4098:4294967295 [ 240.704015][ T7265] mode=40755 [ 240.704024][ T7265] flags=(11300000) [ 240.704033][ T7265] journal_seq=22 [ 240.704043][ T7265] hash_seed=ece93825deac2443 [ 240.704055][ T7265] hash_type=siphash [ 240.704064][ T7265] bi_size=0 [ 240.704073][ T7265] bi_sectors=0 [ 240.704082][ T7265] bi_version=0 [ 240.704092][ T7265] bi_atime=2770562249 [ 240.704101][ T7265] bi_ctime=2780562352 [ 240.704111][ T7265] bi_mtime=2780562352 [ 240.704121][ T7265] bi_otime=2770562249 [ 240.704130][ T7265] bi_uid=0 [ 240.704140][ T7265] bi_gid=0 [ 240.704149][ T7265] bi_nlink=0 [ 240.704158][ T7265] bi_generation=0 [ 240.704168][ T7265] bi_dev=0 [ 240.704177][ T7265] bi_data_checksum=0 [ 240.704186][ T7265] bi_compression=0 [ 240.704196][ T7265] bi_project=0 [ 240.704205][ T7265] bi_background_compression=0 [ 240.704215][ T7265] bi_data_replicas=0 [ 240.704225][ T7265] bi_promote_target=0 [ 240.704235][ T7265] bi_foreground_target=64 [ 240.704245][ T7265] bi_background_target=1 [ 240.704255][ T7265] bi_erasure_code=0 [ 240.704265][ T7265] bi_fields_set=0 [ 240.704275][ T7265] bi_dir=0 [ 240.704285][ T7265] bi_dir_offset=0 [ 240.704295][ T7265] bi_subvol=0 [ 240.704304][ T7265] bi_parent_subvol=0 [ 240.704313][ T7265] bi_nocow=0 [ 240.704323][ T7265] bi_depth=0 [ 240.704332][ T7265] bi_inodes_32bit=0 [ 240.704350][ T7265] bi_casefold=0, fixing [ 240.711614][ T7265] done [ 240.712961][ T7265] bcachefs (loop2): check_xattrs... done [ 240.715617][ T7265] bcachefs (loop2): check_root... done [ 240.716729][ T7265] bcachefs (loop2): check_unreachable_inodes... done [ 240.717781][ T7265] bcachefs (loop2): check_subvolume_structure... done [ 240.718584][ T7265] bcachefs (loop2): check_directory_structure... done [ 240.720574][ T7265] bcachefs (loop2): check_nlinks... [ 240.721280][ T7265] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 240.722359][ T7265] done [ 240.723063][ T7265] bcachefs (loop2): check_rebalance_work... done [ 240.724683][ T7265] bcachefs (loop2): resume_logged_ops... done [ 240.725525][ T7265] bcachefs (loop2): delete_dead_inodes... done [ 240.734376][ T7265] bcachefs (loop2): set_fs_needs_rebalance... done [ 240.744365][ T7265] bcachefs (loop2): check_extents_to_backpointers... [ 240.745901][ T7274] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 240.745924][ T7274] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 240.748183][ T7265] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 240.756193][ T7265] done [ 240.770491][ T7265] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 240.770519][ T7265] bcachefs (loop2): check_alloc_info... done [ 240.779858][ T7265] bcachefs (loop2): check_lrus... done [ 240.781266][ T7265] bcachefs (loop2): check_btree_backpointers... done [ 240.782468][ T7265] bcachefs (loop2): check_backpointers_to_extents... done [ 240.786098][ T7265] bcachefs (loop2): check_extents_to_backpointers... done [ 240.791090][ T7265] bcachefs (loop2): check_alloc_to_lru_refs... done [ 240.797379][ T7265] bcachefs (loop2): bucket_gens_init... done [ 240.799529][ T7265] bcachefs (loop2): check_snapshot_trees... done [ 240.807207][ T7265] bcachefs (loop2): check_snapshots... done [ 240.808034][ T7265] bcachefs (loop2): check_subvols... done [ 240.808806][ T7265] bcachefs (loop2): check_subvol_children... done [ 240.810163][ T7265] bcachefs (loop2): delete_dead_snapshots... done [ 240.810861][ T7265] bcachefs (loop2): check_inodes... done [ 240.812172][ T7265] bcachefs (loop2): check_extents... done [ 240.813835][ T7265] bcachefs (loop2): check_indirect_extents... done [ 240.814472][ T7265] bcachefs (loop2): check_dirents... done [ 240.817726][ T7265] bcachefs (loop2): check_xattrs... done [ 240.820303][ T7265] bcachefs (loop2): check_root... done [ 240.821050][ T7265] bcachefs (loop2): check_unreachable_inodes... done [ 240.828241][ T7265] bcachefs (loop2): check_subvolume_structure... done [ 240.828986][ T7265] bcachefs (loop2): check_directory_structure... done [ 240.830915][ T7265] bcachefs (loop2): check_nlinks... done [ 240.832153][ T7265] bcachefs (loop2): check_rebalance_work... done [ 240.832886][ T7265] bcachefs (loop2): resume_logged_ops... done [ 240.833569][ T7265] bcachefs (loop2): delete_dead_inodes... done [ 240.838754][ T7265] bcachefs (loop2): set_fs_needs_rebalance... done [ 240.849548][ T7265] bcachefs (loop2): done starting filesystem [ 240.930897][ T5839] bcachefs (loop2): shutting down [ 240.930920][ T5839] bcachefs (loop2): going read-only [ 240.931167][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 240.941457][ T1275] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 240.941457][ T1275] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 240.941636][ T1275] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 240.941654][ T1275] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 240.941675][ T1275] loop2 checksum error [ 240.972948][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 240.976650][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 240.977466][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 240.979369][ T5839] bcachefs (loop2): marking filesystem clean [ 241.056933][ T5839] bcachefs (loop2): shutdown complete [ 241.877990][ T7276] loop2: detected capacity change from 0 to 32768 [ 242.014998][ T7276] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 242.015027][ T7276] allowing incompatible features above 0.0: (unknown version) [ 242.015040][ T7276] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 242.015068][ T7276] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 242.015204][ T7276] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 242.015441][ T7276] bcachefs (loop2): Version upgrade required: [ 242.015441][ T7276] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 242.015441][ T7276] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 242.015441][ T7276] 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,check_rebalance_work,set_fs_needs_rebalance [ 242.034416][ T7276] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 242.034442][ T7276] size != 0, deleting [ 242.035575][ T7276] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 242.038826][ T7276] bcachefs (loop2): check_topology... done [ 242.041455][ T7276] bcachefs (loop2): accounting_read... done [ 242.063086][ T7276] bcachefs (loop2): alloc_read... done [ 242.064017][ T7276] bcachefs (loop2): snapshots_read... done [ 242.064874][ T7276] bcachefs (loop2): check_allocations... [ 242.066847][ T7276] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 242.066866][ T7276] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 242.068834][ T7276] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 242.068852][ T7276] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 242.071396][ T7276] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 242.071414][ T7276] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 242.073259][ T7276] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 242.073278][ T7276] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 242.075815][ T7276] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 242.075832][ T7276] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 242.076791][ T7276] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.076918][ T7276] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.077493][ T7276] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.077602][ T7276] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.078013][ T7276] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.078119][ T7276] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.078340][ T7276] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.078453][ T7276] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.078660][ T7276] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.078766][ T7276] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.078963][ T7276] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.079070][ T7276] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.082814][ T7276] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.082928][ T7276] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 242.083150][ T7276] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 242.083267][ T7276] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 242.083476][ T7276] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 242.083583][ T7276] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 242.083788][ T7276] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 242.083895][ T7276] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 242.084124][ T7276] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 242.084138][ T7276] Ratelimiting new instances of previous error [ 242.084286][ T7276] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 242.084302][ T7276] Ratelimiting new instances of previous error [ 242.096971][ T7276] done [ 242.099113][ T7276] bcachefs (loop2): going read-write [ 242.106274][ T7276] bcachefs (loop2): journal_replay... done [ 242.132549][ T7276] bcachefs (loop2): check_alloc_info... [ 242.134341][ T7276] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 242.134359][ T7276] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 242.134370][ T7276] gen 0 oldest_gen 0 data_type need_discard [ 242.134381][ T7276] journal_seq_nonempty 6 [ 242.134391][ T7276] journal_seq_empty 0 [ 242.134401][ T7276] need_discard 1 [ 242.134411][ T7276] need_inc_gen 1 [ 242.134421][ T7276] dirty_sectors 0 [ 242.134431][ T7276] stripe_sectors 0 [ 242.134441][ T7276] cached_sectors 0 [ 242.134451][ T7276] stripe 0 [ 242.134462][ T7276] stripe_redundancy 0 [ 242.134473][ T7276] io_time[READ] 1 [ 242.134482][ T7276] io_time[WRITE] 768 [ 242.134491][ T7276] fragmentation 0 [ 242.134501][ T7276] bp_start 8 [ 242.134511][ T7276] , fixing [ 242.150760][ T7276] done [ 242.156920][ T7276] bcachefs (loop2): check_lrus... done [ 242.157914][ T7276] bcachefs (loop2): check_btree_backpointers... done [ 242.161292][ T7276] bcachefs (loop2): check_backpointers_to_extents... done [ 242.165112][ T7276] bcachefs (loop2): check_extents_to_backpointers... [ 242.166483][ T7276] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 242.168366][ T7276] done [ 242.169101][ T7276] bcachefs (loop2): check_alloc_to_lru_refs... [ 242.171973][ T7276] bcachefs (loop2): missing fragmentation lru entry [ 242.171990][ T7276] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 242.172003][ T7276] gen 0 oldest_gen 0 data_type user [ 242.172014][ T7276] journal_seq_nonempty 5 [ 242.172024][ T7276] journal_seq_empty 134217728 [ 242.172034][ T7276] need_discard 1 [ 242.172046][ T7276] need_inc_gen 1 [ 242.172055][ T7276] dirty_sectors 16 [ 242.172066][ T7276] stripe_sectors 1802251 [ 242.172076][ T7276] cached_sectors 0 [ 242.172085][ T7276] stripe 0 [ 242.172093][ T7276] stripe_redundancy 0 [ 242.172103][ T7276] io_time[READ] 1 [ 242.172111][ T7276] io_time[WRITE] 512 [ 242.172119][ T7276] fragmentation 0 [ 242.173542][ T7276] bp_start 7 [ 242.173554][ T7276] , fixing [ 242.175095][ T7276] done [ 242.176576][ T7276] bcachefs (loop2): bucket_gens_init... done [ 242.179132][ T7276] bcachefs (loop2): check_snapshot_trees... done [ 242.180759][ T7276] bcachefs (loop2): check_snapshots... [ 242.181351][ T7276] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 242.181365][ T7276] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 242.193351][ T7276] done [ 242.194073][ T7276] bcachefs (loop2): check_subvols... done [ 242.195727][ T7276] bcachefs (loop2): check_subvol_children... done [ 242.196577][ T7276] bcachefs (loop2): delete_dead_snapshots... done [ 242.197351][ T7276] bcachefs (loop2): check_inodes... [ 242.198423][ T7276] bcachefs (loop2): inode points to missing dirent [ 242.198440][ T7276] inum: 4098:4294967295 [ 242.198449][ T7276] mode=40755 [ 242.198459][ T7276] flags=(15300000) [ 242.198937][ T7276] journal_seq=4 [ 242.198949][ T7276] hash_seed=ece93825deac2443 [ 242.198960][ T7276] hash_type=siphash [ 242.198970][ T7276] bi_size=0 [ 242.198979][ T7276] bi_sectors=0 [ 242.198988][ T7276] bi_version=0 [ 242.198997][ T7276] bi_atime=2770562249 [ 242.199007][ T7276] bi_ctime=2780562352 [ 242.199017][ T7276] bi_mtime=2780562352 [ 242.199026][ T7276] bi_otime=2770562249 [ 242.199037][ T7276] bi_uid=0 [ 242.199045][ T7276] bi_gid=0 [ 242.199054][ T7276] bi_nlink=0 [ 242.199063][ T7276] bi_generation=0 [ 242.199073][ T7276] bi_dev=0 [ 242.199082][ T7276] bi_data_checksum=0 [ 242.199091][ T7276] bi_compression=0 [ 242.199101][ T7276] bi_project=0 [ 242.199110][ T7276] bi_background_compression=0 [ 242.199120][ T7276] bi_data_replicas=0 [ 242.199130][ T7276] bi_promote_target=0 [ 242.199147][ T7276] bi_foreground_target=64 [ 242.199157][ T7276] bi_background_target=1 [ 242.200040][ T7276] bi_erasure_code=0 [ 242.200052][ T7276] bi_fields_set=0 [ 242.200061][ T7276] bi_dir=0 [ 242.200071][ T7276] bi_dir_offset=32 [ 242.200081][ T7276] bi_subvol=0 [ 242.200090][ T7276] bi_parent_subvol=0 [ 242.200100][ T7276] bi_nocow=0 [ 242.200109][ T7276] bi_depth=0 [ 242.200118][ T7276] bi_inodes_32bit=0 [ 242.200128][ T7276] bi_casefold=0, fixing [ 242.204333][ T7276] done [ 242.204877][ T7276] bcachefs (loop2): check_extents... done [ 242.206946][ T7276] bcachefs (loop2): check_indirect_extents... done [ 242.207743][ T7276] bcachefs (loop2): check_dirents... [ 242.210302][ T7276] bcachefs (loop2): directory with missing backpointer [ 242.210318][ T7276] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 242.210333][ T7276] inum: 4098:4294967295 [ 242.210343][ T7276] mode=40755 [ 242.210353][ T7276] flags=(11300000) [ 242.210362][ T7276] journal_seq=23 [ 242.210371][ T7276] hash_seed=ece93825deac2443 [ 242.210382][ T7276] hash_type=siphash [ 242.210392][ T7276] bi_size=0 [ 242.210401][ T7276] bi_sectors=0 [ 242.210410][ T7276] bi_version=0 [ 242.210418][ T7276] bi_atime=2770562249 [ 242.210429][ T7276] bi_ctime=2780562352 [ 242.210439][ T7276] bi_mtime=2780562352 [ 242.210449][ T7276] bi_otime=2770562249 [ 242.210459][ T7276] bi_uid=0 [ 242.210468][ T7276] bi_gid=0 [ 242.210477][ T7276] bi_nlink=0 [ 242.210486][ T7276] bi_generation=0 [ 242.210496][ T7276] bi_dev=0 [ 242.210505][ T7276] bi_data_checksum=0 [ 242.210514][ T7276] bi_compression=0 [ 242.210524][ T7276] bi_project=0 [ 242.210533][ T7276] bi_background_compression=0 [ 242.210543][ T7276] bi_data_replicas=0 [ 242.210553][ T7276] bi_promote_target=0 [ 242.210563][ T7276] bi_foreground_target=64 [ 242.210575][ T7276] bi_background_target=1 [ 242.210585][ T7276] bi_erasure_code=0 [ 242.210595][ T7276] bi_fields_set=0 [ 242.210605][ T7276] bi_dir=0 [ 242.210614][ T7276] bi_dir_offset=0 [ 242.210624][ T7276] bi_subvol=0 [ 242.210633][ T7276] bi_parent_subvol=0 [ 242.210643][ T7276] bi_nocow=0 [ 242.210652][ T7276] bi_depth=0 [ 242.210662][ T7276] bi_inodes_32bit=0 [ 242.210671][ T7276] bi_casefold=0, fixing [ 242.212778][ T7276] done [ 242.213478][ T7276] bcachefs (loop2): check_xattrs... done [ 242.214725][ T7276] bcachefs (loop2): check_root... done [ 242.215796][ T7276] bcachefs (loop2): check_unreachable_inodes... done [ 242.216821][ T7276] bcachefs (loop2): check_subvolume_structure... done [ 242.217640][ T7276] bcachefs (loop2): check_directory_structure... done [ 242.218416][ T7276] bcachefs (loop2): check_nlinks... [ 242.219077][ T7276] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 242.224019][ T7276] done [ 242.225013][ T7276] bcachefs (loop2): check_rebalance_work... done [ 242.227069][ T7276] bcachefs (loop2): resume_logged_ops... done [ 242.227891][ T7276] bcachefs (loop2): delete_dead_inodes... done [ 242.236858][ T7276] bcachefs (loop2): set_fs_needs_rebalance... [ 242.247744][ T7285] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 242.247774][ T7285] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 242.251748][ T7276] done [ 242.252688][ T7276] bcachefs (loop2): check_extents_to_backpointers... [ 242.253797][ T7276] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 242.261851][ T7276] done [ 242.280738][ T7276] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 242.280770][ T7276] bcachefs (loop2): check_alloc_info... done [ 242.290148][ T7276] bcachefs (loop2): check_lrus... done [ 242.291228][ T7276] bcachefs (loop2): check_btree_backpointers... done [ 242.292392][ T7276] bcachefs (loop2): check_backpointers_to_extents... done [ 242.293851][ T7276] bcachefs (loop2): check_extents_to_backpointers... done [ 242.300557][ T7276] bcachefs (loop2): check_alloc_to_lru_refs... done [ 242.302843][ T7276] bcachefs (loop2): bucket_gens_init... done [ 242.308347][ T7276] bcachefs (loop2): check_snapshot_trees... done [ 242.317955][ T7276] bcachefs (loop2): check_snapshots... done [ 242.318808][ T7276] bcachefs (loop2): check_subvols... done [ 242.319702][ T7276] bcachefs (loop2): check_subvol_children... done [ 242.320418][ T7276] bcachefs (loop2): delete_dead_snapshots... done [ 242.321177][ T7276] bcachefs (loop2): check_inodes... done [ 242.322271][ T7276] bcachefs (loop2): check_extents... done [ 242.325376][ T7276] bcachefs (loop2): check_indirect_extents... done [ 242.326329][ T7276] bcachefs (loop2): check_dirents... done [ 242.328843][ T7276] bcachefs (loop2): check_xattrs... done [ 242.341702][ T7276] bcachefs (loop2): check_root... done [ 242.342525][ T7276] bcachefs (loop2): check_unreachable_inodes... done [ 242.343386][ T7276] bcachefs (loop2): check_subvolume_structure... done [ 242.344147][ T7276] bcachefs (loop2): check_directory_structure... done [ 242.344877][ T7276] bcachefs (loop2): check_nlinks... done [ 242.346015][ T7276] bcachefs (loop2): check_rebalance_work... done [ 242.346781][ T7276] bcachefs (loop2): resume_logged_ops... done [ 242.347487][ T7276] bcachefs (loop2): delete_dead_inodes... done [ 242.348253][ T7276] bcachefs (loop2): set_fs_needs_rebalance... done [ 242.352781][ T7276] bcachefs (loop2): done starting filesystem [ 242.433738][ T5839] bcachefs (loop2): shutting down [ 242.433760][ T5839] bcachefs (loop2): going read-only [ 242.433791][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 242.473688][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 35 [ 242.474502][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 35 [ 242.475355][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 36 [ 242.477144][ T5839] bcachefs (loop2): marking filesystem clean [ 242.535779][ T5839] bcachefs (loop2): shutdown complete [ 243.309758][ T7287] loop2: detected capacity change from 0 to 32768 [ 243.460216][ T7287] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 243.460242][ T7287] allowing incompatible features above 0.0: (unknown version) [ 243.460273][ T7287] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 243.460302][ T7287] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 243.460436][ T7287] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 243.460854][ T7287] bcachefs (loop2): Version upgrade required: [ 243.460854][ T7287] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 243.460854][ T7287] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 243.460854][ T7287] 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,check_rebalance_work,set_fs_needs_rebalance [ 243.479891][ T7287] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 243.479919][ T7287] size != 0, deleting [ 243.480995][ T7287] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 243.484542][ T7287] bcachefs (loop2): check_topology... done [ 243.485977][ T7287] bcachefs (loop2): accounting_read... done [ 243.517939][ T7287] bcachefs (loop2): alloc_read... done [ 243.518884][ T7287] bcachefs (loop2): snapshots_read... done [ 243.520370][ T7287] bcachefs (loop2): check_allocations... [ 243.522334][ T7287] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 243.522356][ T7287] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 243.524575][ T7287] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 243.524594][ T7287] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 243.526001][ T7287] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 243.526019][ T7287] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 243.527606][ T7287] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 243.527624][ T7287] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 243.531235][ T7287] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 243.531254][ T7287] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 243.532208][ T7287] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.532345][ T7287] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.532900][ T7287] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.533009][ T7287] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.533437][ T7287] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.533541][ T7287] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.533744][ T7287] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.533850][ T7287] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.534050][ T7287] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.534722][ T7287] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.534943][ T7287] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.535051][ T7287] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.535251][ T7287] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.535364][ T7287] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 243.535567][ T7287] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 243.535671][ T7287] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 243.535882][ T7287] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.535988][ T7287] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.536192][ T7287] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.536310][ T7287] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.536574][ T7287] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 243.536588][ T7287] Ratelimiting new instances of previous error [ 243.536730][ T7287] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 243.536746][ T7287] Ratelimiting new instances of previous error [ 243.550195][ T7287] done [ 243.552366][ T7287] bcachefs (loop2): going read-write [ 243.558537][ T7287] bcachefs (loop2): journal_replay... done [ 243.586962][ T7287] bcachefs (loop2): check_alloc_info... [ 243.589687][ T7287] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 243.589706][ T7287] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 243.589717][ T7287] gen 0 oldest_gen 0 data_type need_discard [ 243.589727][ T7287] journal_seq_nonempty 6 [ 243.589737][ T7287] journal_seq_empty 0 [ 243.589746][ T7287] need_discard 1 [ 243.589756][ T7287] need_inc_gen 1 [ 243.589765][ T7287] dirty_sectors 0 [ 243.589774][ T7287] stripe_sectors 0 [ 243.589784][ T7287] cached_sectors 0 [ 243.589795][ T7287] stripe 0 [ 243.589804][ T7287] stripe_redundancy 0 [ 243.589813][ T7287] io_time[READ] 1 [ 243.589823][ T7287] io_time[WRITE] 768 [ 243.589833][ T7287] fragmentation 0 [ 243.589842][ T7287] bp_start 8 [ 243.589851][ T7287] , fixing [ 243.605727][ T7287] done [ 243.612734][ T7287] bcachefs (loop2): check_lrus... done [ 243.615628][ T7287] bcachefs (loop2): check_btree_backpointers... done [ 243.617052][ T7287] bcachefs (loop2): check_backpointers_to_extents... done [ 243.621064][ T7287] bcachefs (loop2): check_extents_to_backpointers... [ 243.623051][ T7287] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 243.624510][ T7287] done [ 243.625224][ T7287] bcachefs (loop2): check_alloc_to_lru_refs... [ 243.626756][ T7287] bcachefs (loop2): missing fragmentation lru entry [ 243.626773][ T7287] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 243.626785][ T7287] gen 0 oldest_gen 0 data_type user [ 243.626796][ T7287] journal_seq_nonempty 5 [ 243.626808][ T7287] journal_seq_empty 134217728 [ 243.626818][ T7287] need_discard 1 [ 243.626828][ T7287] need_inc_gen 1 [ 243.626838][ T7287] dirty_sectors 16 [ 243.626848][ T7287] stripe_sectors 1802251 [ 243.626858][ T7287] cached_sectors 0 [ 243.626868][ T7287] stripe 0 [ 243.626879][ T7287] stripe_redundancy 0 [ 243.626890][ T7287] io_time[READ] 1 [ 243.626899][ T7287] io_time[WRITE] 512 [ 243.626909][ T7287] fragmentation 0 [ 243.626919][ T7287] bp_start 7 [ 243.626929][ T7287] , fixing [ 243.628513][ T7287] done [ 243.632231][ T7287] bcachefs (loop2): bucket_gens_init... done [ 243.635736][ T7287] bcachefs (loop2): check_snapshot_trees... done [ 243.636545][ T7287] bcachefs (loop2): check_snapshots... [ 243.637129][ T7287] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 243.637144][ T7287] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 243.648287][ T7287] done [ 243.649044][ T7287] bcachefs (loop2): check_subvols... done [ 243.651061][ T7287] bcachefs (loop2): check_subvol_children... done [ 243.651942][ T7287] bcachefs (loop2): delete_dead_snapshots... done [ 243.652961][ T7287] bcachefs (loop2): check_inodes... [ 243.654100][ T7287] bcachefs (loop2): inode points to missing dirent [ 243.654118][ T7287] inum: 4098:4294967295 [ 243.654128][ T7287] mode=40755 [ 243.654137][ T7287] flags=(15300000) [ 243.654148][ T7287] journal_seq=4 [ 243.654157][ T7287] hash_seed=ece93825deac2443 [ 243.654168][ T7287] hash_type=siphash [ 243.654178][ T7287] bi_size=0 [ 243.654193][ T7287] bi_sectors=0 [ 243.654202][ T7287] bi_version=0 [ 243.654212][ T7287] bi_atime=2770562249 [ 243.654223][ T7287] bi_ctime=2780562352 [ 243.654233][ T7287] bi_mtime=2780562352 [ 243.654242][ T7287] bi_otime=2770562249 [ 243.654252][ T7287] bi_uid=0 [ 243.654262][ T7287] bi_gid=0 [ 243.654270][ T7287] bi_nlink=0 [ 243.654280][ T7287] bi_generation=0 [ 243.654298][ T7287] bi_dev=0 [ 243.654307][ T7287] bi_data_checksum=0 [ 243.654317][ T7287] bi_compression=0 [ 243.654326][ T7287] bi_project=0 [ 243.654336][ T7287] bi_background_compression=0 [ 243.654346][ T7287] bi_data_replicas=0 [ 243.654356][ T7287] bi_promote_target=0 [ 243.654365][ T7287] bi_foreground_target=64 [ 243.654375][ T7287] bi_background_target=1 [ 243.654385][ T7287] bi_erasure_code=0 [ 243.654395][ T7287] bi_fields_set=0 [ 243.654404][ T7287] bi_dir=0 [ 243.654413][ T7287] bi_dir_offset=32 [ 243.654423][ T7287] bi_subvol=0 [ 243.654432][ T7287] bi_parent_subvol=0 [ 243.654442][ T7287] bi_nocow=0 [ 243.654451][ T7287] bi_depth=0 [ 243.654460][ T7287] bi_inodes_32bit=0 [ 243.654470][ T7287] bi_casefold=0, fixing [ 243.656716][ T7287] done [ 243.657448][ T7287] bcachefs (loop2): check_extents... done [ 243.658943][ T7287] bcachefs (loop2): check_indirect_extents... done [ 243.662825][ T7287] bcachefs (loop2): check_dirents... [ 243.664753][ T7287] bcachefs (loop2): directory with missing backpointer [ 243.664773][ T7287] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 243.664789][ T7287] inum: 4098:4294967295 [ 243.664800][ T7287] mode=40755 [ 243.664809][ T7287] flags=(11300000) [ 243.664818][ T7287] journal_seq=23 [ 243.664828][ T7287] hash_seed=ece93825deac2443 [ 243.664838][ T7287] hash_type=siphash [ 243.664847][ T7287] bi_size=0 [ 243.664857][ T7287] bi_sectors=0 [ 243.664866][ T7287] bi_version=0 [ 243.664876][ T7287] bi_atime=2770562249 [ 243.664885][ T7287] bi_ctime=2780562352 [ 243.664895][ T7287] bi_mtime=2780562352 [ 243.664906][ T7287] bi_otime=2770562249 [ 243.664916][ T7287] bi_uid=0 [ 243.664926][ T7287] bi_gid=0 [ 243.664934][ T7287] bi_nlink=0 [ 243.664944][ T7287] bi_generation=0 [ 243.664953][ T7287] bi_dev=0 [ 243.664962][ T7287] bi_data_checksum=0 [ 243.664972][ T7287] bi_compression=0 [ 243.664981][ T7287] bi_project=0 [ 243.664991][ T7287] bi_background_compression=0 [ 243.665010][ T7287] bi_data_replicas=0 [ 243.668661][ T7287] bi_promote_target=0 [ 243.668674][ T7287] bi_foreground_target=64 [ 243.668684][ T7287] bi_background_target=1 [ 243.668695][ T7287] bi_erasure_code=0 [ 243.668705][ T7287] bi_fields_set=0 [ 243.668714][ T7287] bi_dir=0 [ 243.668723][ T7287] bi_dir_offset=0 [ 243.668733][ T7287] bi_subvol=0 [ 243.668742][ T7287] bi_parent_subvol=0 [ 243.668751][ T7287] bi_nocow=0 [ 243.668761][ T7287] bi_depth=0 [ 243.668769][ T7287] bi_inodes_32bit=0 [ 243.668779][ T7287] bi_casefold=0, fixing [ 243.673277][ T7287] done [ 243.674067][ T7287] bcachefs (loop2): check_xattrs... done [ 243.675351][ T7287] bcachefs (loop2): check_root... done [ 243.676524][ T7287] bcachefs (loop2): check_unreachable_inodes... done [ 243.678020][ T7287] bcachefs (loop2): check_subvolume_structure... done [ 243.678806][ T7287] bcachefs (loop2): check_directory_structure... done [ 243.680267][ T7287] bcachefs (loop2): check_nlinks... [ 243.681321][ T7287] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 243.682466][ T7287] done [ 243.683204][ T7287] bcachefs (loop2): check_rebalance_work... done [ 243.684394][ T7287] bcachefs (loop2): resume_logged_ops... done [ 243.685201][ T7287] bcachefs (loop2): delete_dead_inodes... done [ 243.695309][ T7287] bcachefs (loop2): set_fs_needs_rebalance... [ 243.703176][ T7296] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 243.703200][ T7296] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 243.706617][ T7287] done [ 243.707754][ T7287] bcachefs (loop2): check_extents_to_backpointers... [ 243.710530][ T7287] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 243.714996][ T7287] done [ 243.725005][ T7287] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 243.725030][ T7287] bcachefs (loop2): check_alloc_info... done [ 243.729948][ T7287] bcachefs (loop2): check_lrus... done [ 243.731560][ T7287] bcachefs (loop2): check_btree_backpointers... done [ 243.732801][ T7287] bcachefs (loop2): check_backpointers_to_extents... done [ 243.734328][ T7287] bcachefs (loop2): check_extents_to_backpointers... done [ 243.736031][ T7287] bcachefs (loop2): check_alloc_to_lru_refs... done [ 243.738232][ T7287] bcachefs (loop2): bucket_gens_init... done [ 243.741738][ T7287] bcachefs (loop2): check_snapshot_trees... done [ 243.743056][ T7287] bcachefs (loop2): check_snapshots... done [ 243.743942][ T7287] bcachefs (loop2): check_subvols... done [ 243.744758][ T7287] bcachefs (loop2): check_subvol_children... done [ 243.745647][ T7287] bcachefs (loop2): delete_dead_snapshots... done [ 243.746461][ T7287] bcachefs (loop2): check_inodes... done [ 243.747639][ T7287] bcachefs (loop2): check_extents... done [ 243.749076][ T7287] bcachefs (loop2): check_indirect_extents... done [ 243.751018][ T7287] bcachefs (loop2): check_dirents... done [ 243.753152][ T7287] bcachefs (loop2): check_xattrs... done [ 243.754041][ T7287] bcachefs (loop2): check_root... done [ 243.754875][ T7287] bcachefs (loop2): check_unreachable_inodes... done [ 243.755823][ T7287] bcachefs (loop2): check_subvolume_structure... done [ 243.756679][ T7287] bcachefs (loop2): check_directory_structure... done [ 243.757539][ T7287] bcachefs (loop2): check_nlinks... done [ 243.758699][ T7287] bcachefs (loop2): check_rebalance_work... done [ 243.760591][ T7287] bcachefs (loop2): resume_logged_ops... done [ 243.761355][ T7287] bcachefs (loop2): delete_dead_inodes... done [ 243.762164][ T7287] bcachefs (loop2): set_fs_needs_rebalance... done [ 243.766212][ T7287] bcachefs (loop2): done starting filesystem [ 243.822629][ T5839] bcachefs (loop2): shutting down [ 243.822650][ T5839] bcachefs (loop2): going read-only [ 243.822679][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 243.860118][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 243.862529][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 243.863457][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 243.865263][ T5839] bcachefs (loop2): marking filesystem clean [ 243.924096][ T5839] bcachefs (loop2): shutdown complete [ 244.644844][ T7298] loop2: detected capacity change from 0 to 32768 [ 244.786547][ T7298] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 244.786576][ T7298] allowing incompatible features above 0.0: (unknown version) [ 244.786591][ T7298] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 244.786618][ T7298] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 244.786746][ T7298] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 244.786978][ T7298] bcachefs (loop2): Version upgrade required: [ 244.786978][ T7298] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 244.786978][ T7298] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 244.786978][ T7298] 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,check_rebalance_work,set_fs_needs_rebalance [ 244.806706][ T7298] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 244.806741][ T7298] size != 0, deleting [ 244.808434][ T7298] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 244.812322][ T7298] bcachefs (loop2): check_topology... done [ 244.813730][ T7298] bcachefs (loop2): accounting_read... done [ 244.857341][ T7298] bcachefs (loop2): alloc_read... done [ 244.858216][ T7298] bcachefs (loop2): snapshots_read... done [ 244.859034][ T7298] bcachefs (loop2): check_allocations... [ 244.862385][ T7298] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 244.862407][ T7298] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 244.864601][ T7298] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 244.864621][ T7298] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 244.866198][ T7298] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 244.866217][ T7298] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 244.867963][ T7298] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 244.867982][ T7298] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 244.873282][ T7298] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 244.873305][ T7298] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 244.874326][ T7298] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.874455][ T7298] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.875032][ T7298] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.875142][ T7298] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.875548][ T7298] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.875655][ T7298] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.875859][ T7298] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.875974][ T7298] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.876176][ T7298] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.876283][ T7298] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.876491][ T7298] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.876596][ T7298] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.876800][ T7298] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.876907][ T7298] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 244.877116][ T7298] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 244.877233][ T7298] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 244.877448][ T7298] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 244.877558][ T7298] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 244.877750][ T7298] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 244.877860][ T7298] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 244.878107][ T7298] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 244.878124][ T7298] Ratelimiting new instances of previous error [ 244.878265][ T7298] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 244.878282][ T7298] Ratelimiting new instances of previous error [ 244.893675][ T7298] done [ 244.895987][ T7298] bcachefs (loop2): going read-write [ 244.902266][ T7298] bcachefs (loop2): journal_replay... done [ 244.931504][ T7298] bcachefs (loop2): check_alloc_info... [ 244.933439][ T7298] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 244.933459][ T7298] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 244.933471][ T7298] gen 0 oldest_gen 0 data_type need_discard [ 244.933484][ T7298] journal_seq_nonempty 6 [ 244.933495][ T7298] journal_seq_empty 0 [ 244.933505][ T7298] need_discard 1 [ 244.933515][ T7298] need_inc_gen 1 [ 244.933525][ T7298] dirty_sectors 0 [ 244.933535][ T7298] stripe_sectors 0 [ 244.933545][ T7298] cached_sectors 0 [ 244.933555][ T7298] stripe 0 [ 244.933565][ T7298] stripe_redundancy 0 [ 244.933575][ T7298] io_time[READ] 1 [ 244.933586][ T7298] io_time[WRITE] 768 [ 244.933597][ T7298] fragmentation 0 [ 244.933607][ T7298] bp_start 8 [ 244.933616][ T7298] , fixing [ 244.950293][ T7298] done [ 244.955943][ T7298] bcachefs (loop2): check_lrus... done [ 244.957373][ T7298] bcachefs (loop2): check_btree_backpointers... done [ 244.958692][ T7298] bcachefs (loop2): check_backpointers_to_extents... done [ 244.962980][ T7298] bcachefs (loop2): check_extents_to_backpointers... [ 244.965237][ T7298] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 244.966684][ T7298] done [ 244.967992][ T7298] bcachefs (loop2): check_alloc_to_lru_refs... [ 244.970600][ T7298] bcachefs (loop2): missing fragmentation lru entry [ 244.970617][ T7298] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 244.970628][ T7298] gen 0 oldest_gen 0 data_type user [ 244.970639][ T7298] journal_seq_nonempty 5 [ 244.970650][ T7298] journal_seq_empty 134217728 [ 244.970662][ T7298] need_discard 1 [ 244.970672][ T7298] need_inc_gen 1 [ 244.970682][ T7298] dirty_sectors 16 [ 244.970692][ T7298] stripe_sectors 1802251 [ 244.970702][ T7298] cached_sectors 0 [ 244.970712][ T7298] stripe 0 [ 244.970722][ T7298] stripe_redundancy 0 [ 244.970731][ T7298] io_time[READ] 1 [ 244.970741][ T7298] io_time[WRITE] 512 [ 244.970753][ T7298] fragmentation 0 [ 244.970762][ T7298] bp_start 7 [ 244.970772][ T7298] , fixing [ 244.972347][ T7298] done [ 244.973781][ T7298] bcachefs (loop2): bucket_gens_init... done [ 244.975867][ T7298] bcachefs (loop2): check_snapshot_trees... done [ 244.976687][ T7298] bcachefs (loop2): check_snapshots... [ 244.977272][ T7298] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 244.977290][ T7298] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 244.991039][ T7298] done [ 244.991759][ T7298] bcachefs (loop2): check_subvols... done [ 244.993374][ T7298] bcachefs (loop2): check_subvol_children... done [ 244.994248][ T7298] bcachefs (loop2): delete_dead_snapshots... done [ 244.995054][ T7298] bcachefs (loop2): check_inodes... [ 244.996155][ T7298] bcachefs (loop2): inode points to missing dirent [ 244.996171][ T7298] inum: 4098:4294967295 [ 244.996184][ T7298] mode=40755 [ 244.996193][ T7298] flags=(15300000) [ 244.996202][ T7298] journal_seq=4 [ 244.996210][ T7298] hash_seed=ece93825deac2443 [ 244.996220][ T7298] hash_type=siphash [ 244.996230][ T7298] bi_size=0 [ 244.996239][ T7298] bi_sectors=0 [ 244.996248][ T7298] bi_version=0 [ 244.996258][ T7298] bi_atime=2770562249 [ 244.996267][ T7298] bi_ctime=2780562352 [ 244.996277][ T7298] bi_mtime=2780562352 [ 244.996288][ T7298] bi_otime=2770562249 [ 244.996298][ T7298] bi_uid=0 [ 244.996307][ T7298] bi_gid=0 [ 244.996316][ T7298] bi_nlink=0 [ 244.996326][ T7298] bi_generation=0 [ 244.996335][ T7298] bi_dev=0 [ 244.996344][ T7298] bi_data_checksum=0 [ 244.996354][ T7298] bi_compression=0 [ 244.996363][ T7298] bi_project=0 [ 244.996372][ T7298] bi_background_compression=0 [ 244.996383][ T7298] bi_data_replicas=0 [ 244.996392][ T7298] bi_promote_target=0 [ 244.996402][ T7298] bi_foreground_target=64 [ 244.996412][ T7298] bi_background_target=1 [ 244.996422][ T7298] bi_erasure_code=0 [ 244.996431][ T7298] bi_fields_set=0 [ 244.996441][ T7298] bi_dir=0 [ 244.996450][ T7298] bi_dir_offset=32 [ 244.996459][ T7298] bi_subvol=0 [ 244.996468][ T7298] bi_parent_subvol=0 [ 244.996478][ T7298] bi_nocow=0 [ 244.996487][ T7298] bi_depth=0 [ 244.996496][ T7298] bi_inodes_32bit=0 [ 244.996508][ T7298] bi_casefold=0, fixing [ 244.998141][ T7298] done [ 245.003033][ T7298] bcachefs (loop2): check_extents... done [ 245.005003][ T7298] bcachefs (loop2): check_indirect_extents... done [ 245.005816][ T7298] bcachefs (loop2): check_dirents... [ 245.007549][ T7298] bcachefs (loop2): directory with missing backpointer [ 245.007566][ T7298] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 245.007580][ T7298] inum: 4098:4294967295 [ 245.007591][ T7298] mode=40755 [ 245.007601][ T7298] flags=(11300000) [ 245.007611][ T7298] journal_seq=22 [ 245.007620][ T7298] hash_seed=ece93825deac2443 [ 245.007630][ T7298] hash_type=siphash [ 245.007640][ T7298] bi_size=0 [ 245.007649][ T7298] bi_sectors=0 [ 245.007659][ T7298] bi_version=0 [ 245.007668][ T7298] bi_atime=2770562249 [ 245.007678][ T7298] bi_ctime=2780562352 [ 245.007687][ T7298] bi_mtime=2780562352 [ 245.007697][ T7298] bi_otime=2770562249 [ 245.007707][ T7298] bi_uid=0 [ 245.007716][ T7298] bi_gid=0 [ 245.007725][ T7298] bi_nlink=0 [ 245.007734][ T7298] bi_generation=0 [ 245.007744][ T7298] bi_dev=0 [ 245.007753][ T7298] bi_data_checksum=0 [ 245.007762][ T7298] bi_compression=0 [ 245.007774][ T7298] bi_project=0 [ 245.007783][ T7298] bi_background_compression=0 [ 245.007793][ T7298] bi_data_replicas=0 [ 245.007803][ T7298] bi_promote_target=0 [ 245.007813][ T7298] bi_foreground_target=64 [ 245.007822][ T7298] bi_background_target=1 [ 245.007832][ T7298] bi_erasure_code=0 [ 245.007842][ T7298] bi_fields_set=0 [ 245.007852][ T7298] bi_dir=0 [ 245.007860][ T7298] bi_dir_offset=0 [ 245.007870][ T7298] bi_subvol=0 [ 245.007879][ T7298] bi_parent_subvol=0 [ 245.007889][ T7298] bi_nocow=0 [ 245.007899][ T7298] bi_depth=0 [ 245.007908][ T7298] bi_inodes_32bit=0 [ 245.007920][ T7298] bi_casefold=0, fixing [ 245.013212][ T7298] done [ 245.013802][ T7298] bcachefs (loop2): check_xattrs... done [ 245.015495][ T7298] bcachefs (loop2): check_root... done [ 245.017449][ T7298] bcachefs (loop2): check_unreachable_inodes... done [ 245.018933][ T7298] bcachefs (loop2): check_subvolume_structure... done [ 245.020522][ T7298] bcachefs (loop2): check_directory_structure... done [ 245.021308][ T7298] bcachefs (loop2): check_nlinks... [ 245.022043][ T7298] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 245.023163][ T7298] done [ 245.023859][ T7298] bcachefs (loop2): check_rebalance_work... done [ 245.025063][ T7298] bcachefs (loop2): resume_logged_ops... done [ 245.025820][ T7298] bcachefs (loop2): delete_dead_inodes... done [ 245.035120][ T7298] bcachefs (loop2): set_fs_needs_rebalance... [ 245.043617][ T7307] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 245.043642][ T7307] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 245.047079][ T7298] done [ 245.048092][ T7298] bcachefs (loop2): check_extents_to_backpointers... [ 245.049055][ T7298] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 245.055001][ T7298] done [ 245.065325][ T7298] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 245.065353][ T7298] bcachefs (loop2): check_alloc_info... done [ 245.070388][ T7298] bcachefs (loop2): check_lrus... done [ 245.071585][ T7298] bcachefs (loop2): check_btree_backpointers... done [ 245.072899][ T7298] bcachefs (loop2): check_backpointers_to_extents... done [ 245.074897][ T7298] bcachefs (loop2): check_extents_to_backpointers... done [ 245.076639][ T7298] bcachefs (loop2): check_alloc_to_lru_refs... done [ 245.078893][ T7298] bcachefs (loop2): bucket_gens_init... done [ 245.081810][ T7298] bcachefs (loop2): check_snapshot_trees... done [ 245.083040][ T7298] bcachefs (loop2): check_snapshots... done [ 245.083944][ T7298] bcachefs (loop2): check_subvols... done [ 245.085333][ T7298] bcachefs (loop2): check_subvol_children... done [ 245.086150][ T7298] bcachefs (loop2): delete_dead_snapshots... done [ 245.086886][ T7298] bcachefs (loop2): check_inodes... done [ 245.088121][ T7298] bcachefs (loop2): check_extents... done [ 245.090462][ T7298] bcachefs (loop2): check_indirect_extents... done [ 245.091281][ T7298] bcachefs (loop2): check_dirents... done [ 245.092859][ T7298] bcachefs (loop2): check_xattrs... done [ 245.093745][ T7298] bcachefs (loop2): check_root... done [ 245.094546][ T7298] bcachefs (loop2): check_unreachable_inodes... done [ 245.096034][ T7298] bcachefs (loop2): check_subvolume_structure... done [ 245.096808][ T7298] bcachefs (loop2): check_directory_structure... done [ 245.097505][ T7298] bcachefs (loop2): check_nlinks... done [ 245.098690][ T7298] bcachefs (loop2): check_rebalance_work... done [ 245.100317][ T7298] bcachefs (loop2): resume_logged_ops... done [ 245.101043][ T7298] bcachefs (loop2): delete_dead_inodes... done [ 245.102763][ T7298] bcachefs (loop2): set_fs_needs_rebalance... done [ 245.106882][ T7298] bcachefs (loop2): done starting filesystem [ 245.201635][ T5839] bcachefs (loop2): shutting down [ 245.201655][ T5839] bcachefs (loop2): going read-only [ 245.201686][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 245.242201][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 245.243347][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 245.244253][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 245.246079][ T5839] bcachefs (loop2): marking filesystem clean [ 245.246635][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 245.246635][ T5900] rw journal devs: [ 245.303147][ T5839] bcachefs (loop2): shutdown complete [ 246.134656][ T7309] loop2: detected capacity change from 0 to 32768 [ 246.275632][ T7309] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 246.275662][ T7309] allowing incompatible features above 0.0: (unknown version) [ 246.275677][ T7309] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 246.275705][ T7309] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 246.275844][ T7309] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 246.276078][ T7309] bcachefs (loop2): Version upgrade required: [ 246.276078][ T7309] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 246.276078][ T7309] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 246.276078][ T7309] 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,check_rebalance_work,set_fs_needs_rebalance [ 246.295984][ T7309] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 246.296011][ T7309] size != 0, deleting [ 246.297170][ T7309] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 246.301224][ T7309] bcachefs (loop2): check_topology... done [ 246.302753][ T7309] bcachefs (loop2): accounting_read... done [ 246.343787][ T7309] bcachefs (loop2): alloc_read... done [ 246.345052][ T7309] bcachefs (loop2): snapshots_read... done [ 246.345954][ T7309] bcachefs (loop2): check_allocations... [ 246.348260][ T7309] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 246.348281][ T7309] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 246.351684][ T7309] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 246.351706][ T7309] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 246.353211][ T7309] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 246.353229][ T7309] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 246.354831][ T7309] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 246.354849][ T7309] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 246.357454][ T7309] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 246.357474][ T7309] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 246.358990][ T7309] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.359119][ T7309] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.361461][ T7309] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.361573][ T7309] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.362014][ T7309] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.362126][ T7309] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.362344][ T7309] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.362455][ T7309] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.362661][ T7309] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.362765][ T7309] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.362969][ T7309] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.363087][ T7309] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.363304][ T7309] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.363411][ T7309] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 246.363622][ T7309] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 246.363726][ T7309] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 246.363927][ T7309] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 246.364046][ T7309] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 246.364262][ T7309] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 246.364372][ T7309] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 246.364636][ T7309] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 246.364652][ T7309] Ratelimiting new instances of previous error [ 246.364782][ T7309] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 246.364798][ T7309] Ratelimiting new instances of previous error [ 246.379424][ T7309] done [ 246.381596][ T7309] bcachefs (loop2): going read-write [ 246.387385][ T7309] bcachefs (loop2): journal_replay... done [ 246.415574][ T7309] bcachefs (loop2): check_alloc_info... [ 246.417383][ T7309] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 246.417402][ T7309] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 246.417414][ T7309] gen 0 oldest_gen 0 data_type need_discard [ 246.417427][ T7309] journal_seq_nonempty 6 [ 246.417436][ T7309] journal_seq_empty 0 [ 246.417446][ T7309] need_discard 1 [ 246.417456][ T7309] need_inc_gen 1 [pid 5839] umount2("./107/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./107/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./107/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./107/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./107/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 246.417466][ T7309] dirty_sectors 0 [ 246.417475][ T7309] stripe_sectors 0 [ 246.417485][ T7309] cached_sectors 0 [ 246.417495][ T7309] stripe 0 [ 246.417506][ T7309] stripe_redundancy 0 [ 246.417516][ T7309] io_time[READ] 1 [ 246.417525][ T7309] io_time[WRITE] 768 [ 246.417537][ T7309] fragmentation 0 [ 246.417546][ T7309] bp_start 8 [ 246.417556][ T7309] , fixing [ 246.434644][ T7309] done [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./107/file1") = 0 [pid 5839] umount2("./107/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 246.439790][ T7309] bcachefs (loop2): check_lrus... done [ 246.440727][ T7309] bcachefs (loop2): check_btree_backpointers... done [ 246.443811][ T7309] bcachefs (loop2): check_backpointers_to_extents... done [ 246.448289][ T7309] bcachefs (loop2): check_extents_to_backpointers... [ 246.450318][ T7309] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 246.451732][ T7309] done [ 246.452892][ T7309] bcachefs (loop2): check_alloc_to_lru_refs... [ 246.454748][ T7309] bcachefs (loop2): missing fragmentation lru entry [pid 5839] newfstatat(AT_FDCWD, "./107/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./107/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./107") = 0 [pid 5839] mkdir("./108", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 246.454765][ T7309] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 246.454777][ T7309] gen 0 oldest_gen 0 data_type user [ 246.454788][ T7309] journal_seq_nonempty 5 [ 246.454851][ T7309] journal_seq_empty 134217728 [ 246.454861][ T7309] need_discard 1 [ 246.454871][ T7309] need_inc_gen 1 [ 246.454881][ T7309] dirty_sectors 16 [ 246.454891][ T7309] stripe_sectors 1802251 [ 246.454901][ T7309] cached_sectors 0 [ 246.454911][ T7309] stripe 0 [ 246.454922][ T7309] stripe_redundancy 0 [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7464 attached [pid 7464] set_robust_list(0x5555901c6760, 24) = 0 [pid 7464] chdir("./108") = 0 [pid 7464] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7464] setpgid(0, 0) = 0 [pid 7464] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7464] write(3, "1000", 4) = 4 [pid 7464] close(3) = 0 [pid 7464] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7464] write(1, "executing program\n", 18) = 18 [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 7464 [pid 7464] memfd_create("syzkaller", 0) = 3 [pid 7464] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 246.454932][ T7309] io_time[READ] 1 [ 246.454942][ T7309] io_time[WRITE] 512 [ 246.454952][ T7309] fragmentation 0 [ 246.454962][ T7309] bp_start 7 [ 246.454971][ T7309] , fixing [ 246.456507][ T7309] done [ 246.458029][ T7309] bcachefs (loop2): bucket_gens_init... done [ 246.463621][ T7309] bcachefs (loop2): check_snapshot_trees... done [ 246.465083][ T7309] bcachefs (loop2): check_snapshots... [ 246.465668][ T7309] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 246.465684][ T7309] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 246.477447][ T7309] done [ 246.478216][ T7309] bcachefs (loop2): check_subvols... done [ 246.480301][ T7309] bcachefs (loop2): check_subvol_children... done [ 246.481275][ T7309] bcachefs (loop2): delete_dead_snapshots... done [ 246.481993][ T7309] bcachefs (loop2): check_inodes... [ 246.483097][ T7309] bcachefs (loop2): inode points to missing dirent [ 246.483114][ T7309] inum: 4098:4294967295 [ 246.483123][ T7309] mode=40755 [ 246.483132][ T7309] flags=(15300000) [ 246.483143][ T7309] journal_seq=4 [ 246.483152][ T7309] hash_seed=ece93825deac2443 [ 246.483162][ T7309] hash_type=siphash [ 246.483172][ T7309] bi_size=0 [ 246.483181][ T7309] bi_sectors=0 [ 246.483191][ T7309] bi_version=0 [ 246.483201][ T7309] bi_atime=2770562249 [ 246.483211][ T7309] bi_ctime=2780562352 [ 246.483221][ T7309] bi_mtime=2780562352 [ 246.483231][ T7309] bi_otime=2770562249 [ 246.483241][ T7309] bi_uid=0 [ 246.483250][ T7309] bi_gid=0 [ 246.483259][ T7309] bi_nlink=0 [ 246.483269][ T7309] bi_generation=0 [ 246.483278][ T7309] bi_dev=0 [ 246.483287][ T7309] bi_data_checksum=0 [ 246.483295][ T7309] bi_compression=0 [ 246.483304][ T7309] bi_project=0 [ 246.483311][ T7309] bi_background_compression=0 [ 246.483320][ T7309] bi_data_replicas=0 [ 246.483328][ T7309] bi_promote_target=0 [ 246.483337][ T7309] bi_foreground_target=64 [ 246.483345][ T7309] bi_background_target=1 [ 246.483355][ T7309] bi_erasure_code=0 [ 246.483364][ T7309] bi_fields_set=0 [ 246.483374][ T7309] bi_dir=0 [ 246.483383][ T7309] bi_dir_offset=32 [ 246.483394][ T7309] bi_subvol=0 [ 246.483403][ T7309] bi_parent_subvol=0 [ 246.483413][ T7309] bi_nocow=0 [ 246.483422][ T7309] bi_depth=0 [ 246.483433][ T7309] bi_inodes_32bit=0 [ 246.483443][ T7309] bi_casefold=0, fixing [ 246.485610][ T7309] done [ 246.486293][ T7309] bcachefs (loop2): check_extents... done [ 246.487779][ T7309] bcachefs (loop2): check_indirect_extents... done [ 246.488497][ T7309] bcachefs (loop2): check_dirents... [ 246.491371][ T7309] bcachefs (loop2): directory with missing backpointer [ 246.491389][ T7309] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 246.491404][ T7309] inum: 4098:4294967295 [ 246.491415][ T7309] mode=40755 [ 246.491424][ T7309] flags=(11300000) [pid 7464] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7464] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7464] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7464] ioctl(4, LOOP_SET_FD, 3) = 0 [ 246.491434][ T7309] journal_seq=22 [ 246.491444][ T7309] hash_seed=ece93825deac2443 [ 246.491454][ T7309] hash_type=siphash [ 246.491464][ T7309] bi_size=0 [ 246.491473][ T7309] bi_sectors=0 [ 246.491482][ T7309] bi_version=0 [ 246.491492][ T7309] bi_atime=2770562249 [ 246.491502][ T7309] bi_ctime=2780562352 [ 246.491512][ T7309] bi_mtime=2780562352 [ 246.491523][ T7309] bi_otime=2770562249 [ 246.491533][ T7309] bi_uid=0 [ 246.491542][ T7309] bi_gid=0 [ 246.491550][ T7309] bi_nlink=0 [pid 7464] close(3) = 0 [pid 7464] close(4) = 0 [pid 7464] mkdir("./file1", 0777) = 0 [ 246.491560][ T7309] bi_generation=0 [ 246.491571][ T7309] bi_dev=0 [ 246.491580][ T7309] bi_data_checksum=0 [ 246.491589][ T7309] bi_compression=0 [ 246.491599][ T7309] bi_project=0 [ 246.491610][ T7309] bi_background_compression=0 [ 246.491620][ T7309] bi_data_replicas=0 [ 246.491630][ T7309] bi_promote_target=0 [ 246.491639][ T7309] bi_foreground_target=64 [ 246.491651][ T7309] bi_background_target=1 [ 246.491661][ T7309] bi_erasure_code=0 [ 246.491670][ T7309] bi_fields_set=0 [ 246.491680][ T7309] bi_dir=0 [ 246.491689][ T7309] bi_dir_offset=0 [ 246.491699][ T7309] bi_subvol=0 [ 246.491708][ T7309] bi_parent_subvol=0 [ 246.491718][ T7309] bi_nocow=0 [ 246.491737][ T7309] bi_depth=0 [ 246.491746][ T7309] bi_inodes_32bit=0 [ 246.491756][ T7309] bi_casefold=0, fixing [ 246.500685][ T7309] done [ 246.501662][ T7309] bcachefs (loop2): check_xattrs... done [ 246.504455][ T7309] bcachefs (loop2): check_root... done [ 246.505650][ T7309] bcachefs (loop2): check_unreachable_inodes... done [ 246.506739][ T7309] bcachefs (loop2): check_subvolume_structure... done [ 246.508061][ T7309] bcachefs (loop2): check_directory_structure... done [ 246.508760][ T7309] bcachefs (loop2): check_nlinks... [ 246.509563][ T7309] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 246.511414][ T7309] done [ 246.512168][ T7309] bcachefs (loop2): check_rebalance_work... done [ 246.513374][ T7309] bcachefs (loop2): resume_logged_ops... done [ 246.514174][ T7309] bcachefs (loop2): delete_dead_inodes... done [ 246.523531][ T7309] bcachefs (loop2): set_fs_needs_rebalance... done [ 246.533823][ T7309] bcachefs (loop2): check_extents_to_backpointers... [ 246.534821][ T7309] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 246.535438][ T7318] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 246.535457][ T7318] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 246.540252][ T7309] done [ 246.554965][ T7309] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 246.554990][ T7309] bcachefs (loop2): check_alloc_info... done [ 246.563758][ T7309] bcachefs (loop2): check_lrus... done [ 246.564873][ T7309] bcachefs (loop2): check_btree_backpointers... done [ 246.566067][ T7309] bcachefs (loop2): check_backpointers_to_extents... done [ 246.570850][ T7309] bcachefs (loop2): check_extents_to_backpointers... done [ 246.574227][ T7309] bcachefs (loop2): check_alloc_to_lru_refs... done [ 246.580729][ T7309] bcachefs (loop2): bucket_gens_init... done [ 246.582626][ T7309] bcachefs (loop2): check_snapshot_trees... done [ 246.584397][ T7309] bcachefs (loop2): check_snapshots... done [ 246.590192][ T7309] bcachefs (loop2): check_subvols... done [ 246.590999][ T7309] bcachefs (loop2): check_subvol_children... done [ 246.591720][ T7309] bcachefs (loop2): delete_dead_snapshots... done [ 246.592433][ T7309] bcachefs (loop2): check_inodes... done [ 246.593517][ T7309] bcachefs (loop2): check_extents... done [ 246.600264][ T7309] bcachefs (loop2): check_indirect_extents... done [ 246.601031][ T7309] bcachefs (loop2): check_dirents... done [ 246.602491][ T7309] bcachefs (loop2): check_xattrs... done [ 246.603630][ T7309] bcachefs (loop2): check_root... done [ 246.605531][ T7309] bcachefs (loop2): check_unreachable_inodes... done [ 246.610215][ T7309] bcachefs (loop2): check_subvolume_structure... done [ 246.611177][ T7309] bcachefs (loop2): check_directory_structure... done [ 246.612068][ T7309] bcachefs (loop2): check_nlinks... done [ 246.616470][ T7309] bcachefs (loop2): check_rebalance_work... done [ 246.617318][ T7309] bcachefs (loop2): resume_logged_ops... done [ 246.618145][ T7309] bcachefs (loop2): delete_dead_inodes... done [ 246.618815][ T7309] bcachefs (loop2): set_fs_needs_rebalance... done [ 246.628769][ T7309] bcachefs (loop2): done starting filesystem [ 246.702843][ T5839] bcachefs (loop2): shutting down [ 246.702865][ T5839] bcachefs (loop2): going read-only [ 246.702895][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 246.742659][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 246.746630][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 246.747537][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 246.750754][ T5839] bcachefs (loop2): marking filesystem clean [ 246.804777][ T5839] bcachefs (loop2): shutdown complete [ 247.655340][ T7320] loop2: detected capacity change from 0 to 32768 [ 247.794738][ T7320] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 247.794767][ T7320] allowing incompatible features above 0.0: (unknown version) [ 247.794782][ T7320] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 247.794812][ T7320] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 247.794952][ T7320] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 247.795194][ T7320] bcachefs (loop2): Version upgrade required: [ 247.795194][ T7320] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 247.795194][ T7320] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 247.795194][ T7320] 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,check_rebalance_work,set_fs_needs_rebalance [ 247.814770][ T7320] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 247.814798][ T7320] size != 0, deleting [ 247.815996][ T7320] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 247.820394][ T7320] bcachefs (loop2): check_topology... done [ 247.821813][ T7320] bcachefs (loop2): accounting_read... done [ 247.866971][ T7320] bcachefs (loop2): alloc_read... done [ 247.867929][ T7320] bcachefs (loop2): snapshots_read... done [ 247.868760][ T7320] bcachefs (loop2): check_allocations... [ 247.871822][ T7320] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 247.871843][ T7320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 247.873863][ T7320] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 247.873882][ T7320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 247.875302][ T7320] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 247.875320][ T7320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 247.876873][ T7320] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 247.876891][ T7320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 247.879718][ T7320] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 247.879736][ T7320] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 247.880700][ T7320] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.880837][ T7320] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.883705][ T7320] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.883817][ T7320] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.884239][ T7320] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.884345][ T7320] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.884562][ T7320] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.884667][ T7320] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.884867][ T7320] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.884980][ T7320] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.885181][ T7320] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.885289][ T7320] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.885490][ T7320] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.885597][ T7320] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 247.885799][ T7320] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 247.885905][ T7320] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 247.886113][ T7320] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 247.886219][ T7320] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 247.886421][ T7320] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 247.886535][ T7320] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 247.886773][ T7320] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 247.886789][ T7320] Ratelimiting new instances of previous error [ 247.886928][ T7320] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 247.886945][ T7320] Ratelimiting new instances of previous error [ 247.900780][ T7320] done [ 247.902960][ T7320] bcachefs (loop2): going read-write [ 247.908592][ T7320] bcachefs (loop2): journal_replay... done [ 247.935529][ T7320] bcachefs (loop2): check_alloc_info... [ 247.937786][ T7320] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 247.937804][ T7320] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 247.937817][ T7320] gen 0 oldest_gen 0 data_type need_discard [ 247.937828][ T7320] journal_seq_nonempty 6 [ 247.937837][ T7320] journal_seq_empty 0 [ 247.937847][ T7320] need_discard 1 [ 247.937856][ T7320] need_inc_gen 1 [ 247.937865][ T7320] dirty_sectors 0 [ 247.937875][ T7320] stripe_sectors 0 [ 247.937884][ T7320] cached_sectors 0 [ 247.937893][ T7320] stripe 0 [ 247.937903][ T7320] stripe_redundancy 0 [ 247.937922][ T7320] io_time[READ] 1 [ 247.937931][ T7320] io_time[WRITE] 768 [ 247.937941][ T7320] fragmentation 0 [ 247.937950][ T7320] bp_start 8 [ 247.937960][ T7320] , fixing [ 247.954359][ T7320] done [ 247.958353][ T7320] bcachefs (loop2): check_lrus... done [ 247.959997][ T7320] bcachefs (loop2): check_btree_backpointers... done [ 247.963278][ T7320] bcachefs (loop2): check_backpointers_to_extents... done [ 247.967503][ T7320] bcachefs (loop2): check_extents_to_backpointers... [ 247.968862][ T7320] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 247.971718][ T7320] done [ 247.972405][ T7320] bcachefs (loop2): check_alloc_to_lru_refs... [ 247.974319][ T7320] bcachefs (loop2): missing fragmentation lru entry [ 247.974336][ T7320] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 247.974348][ T7320] gen 0 oldest_gen 0 data_type user [ 247.974359][ T7320] journal_seq_nonempty 5 [ 247.974370][ T7320] journal_seq_empty 134217728 [ 247.974382][ T7320] need_discard 1 [ 247.974391][ T7320] need_inc_gen 1 [ 247.974401][ T7320] dirty_sectors 16 [ 247.974412][ T7320] stripe_sectors 1802251 [ 247.974422][ T7320] cached_sectors 0 [ 247.974431][ T7320] stripe 0 [ 247.974441][ T7320] stripe_redundancy 0 [ 247.974451][ T7320] io_time[READ] 1 [ 247.974461][ T7320] io_time[WRITE] 512 [ 247.974471][ T7320] fragmentation 0 [ 247.974512][ T7320] bp_start 7 [ 247.974522][ T7320] , fixing [ 247.975963][ T7320] done [ 247.977473][ T7320] bcachefs (loop2): bucket_gens_init... done [ 247.980212][ T7320] bcachefs (loop2): check_snapshot_trees... done [ 247.982575][ T7320] bcachefs (loop2): check_snapshots... [ 247.983178][ T7320] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 247.983195][ T7320] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 247.995848][ T7320] done [ 247.996606][ T7320] bcachefs (loop2): check_subvols... done [ 247.998231][ T7320] bcachefs (loop2): check_subvol_children... done [ 247.999123][ T7320] bcachefs (loop2): delete_dead_snapshots... done [ 248.000425][ T7320] bcachefs (loop2): check_inodes... [ 248.001540][ T7320] bcachefs (loop2): inode points to missing dirent [ 248.001558][ T7320] inum: 4098:4294967295 [ 248.001568][ T7320] mode=40755 [ 248.001577][ T7320] flags=(15300000) [ 248.001587][ T7320] journal_seq=4 [ 248.001597][ T7320] hash_seed=ece93825deac2443 [ 248.001607][ T7320] hash_type=siphash [ 248.001617][ T7320] bi_size=0 [ 248.001626][ T7320] bi_sectors=0 [ 248.001635][ T7320] bi_version=0 [ 248.001644][ T7320] bi_atime=2770562249 [ 248.001654][ T7320] bi_ctime=2780562352 [ 248.001661][ T7320] bi_mtime=2780562352 [ 248.001671][ T7320] bi_otime=2770562249 [ 248.001681][ T7320] bi_uid=0 [ 248.001690][ T7320] bi_gid=0 [ 248.001699][ T7320] bi_nlink=0 [ 248.001708][ T7320] bi_generation=0 [ 248.001717][ T7320] bi_dev=0 [ 248.001726][ T7320] bi_data_checksum=0 [ 248.001736][ T7320] bi_compression=0 [ 248.001746][ T7320] bi_project=0 [ 248.001755][ T7320] bi_background_compression=0 [ 248.001766][ T7320] bi_data_replicas=0 [ 248.001776][ T7320] bi_promote_target=0 [ 248.001786][ T7320] bi_foreground_target=64 [ 248.001798][ T7320] bi_background_target=1 [ 248.001807][ T7320] bi_erasure_code=0 [ 248.001817][ T7320] bi_fields_set=0 [ 248.001826][ T7320] bi_dir=0 [ 248.001835][ T7320] bi_dir_offset=32 [ 248.001846][ T7320] bi_subvol=0 [ 248.001856][ T7320] bi_parent_subvol=0 [ 248.001866][ T7320] bi_nocow=0 [ 248.001875][ T7320] bi_depth=0 [ 248.001884][ T7320] bi_inodes_32bit=0 [ 248.001893][ T7320] bi_casefold=0, fixing [ 248.004076][ T7320] done [ 248.004766][ T7320] bcachefs (loop2): check_extents... done [ 248.006144][ T7320] bcachefs (loop2): check_indirect_extents... done [ 248.006928][ T7320] bcachefs (loop2): check_dirents... [ 248.008618][ T7320] bcachefs (loop2): directory with missing backpointer [ 248.008635][ T7320] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 248.008651][ T7320] inum: 4098:4294967295 [ 248.008658][ T7320] mode=40755 [ 248.008668][ T7320] flags=(11300000) [ 248.008678][ T7320] journal_seq=22 [ 248.008687][ T7320] hash_seed=ece93825deac2443 [ 248.008697][ T7320] hash_type=siphash [ 248.008707][ T7320] bi_size=0 [ 248.008717][ T7320] bi_sectors=0 [ 248.008727][ T7320] bi_version=0 [ 248.008736][ T7320] bi_atime=2770562249 [ 248.008746][ T7320] bi_ctime=2780562352 [ 248.008756][ T7320] bi_mtime=2780562352 [ 248.008765][ T7320] bi_otime=2770562249 [ 248.008776][ T7320] bi_uid=0 [ 248.008786][ T7320] bi_gid=0 [ 248.008795][ T7320] bi_nlink=0 [ 248.008804][ T7320] bi_generation=0 [ 248.008814][ T7320] bi_dev=0 [ 248.008824][ T7320] bi_data_checksum=0 [ 248.008834][ T7320] bi_compression=0 [ 248.008843][ T7320] bi_project=0 [ 248.008853][ T7320] bi_background_compression=0 [ 248.008863][ T7320] bi_data_replicas=0 [ 248.008873][ T7320] bi_promote_target=0 [ 248.008884][ T7320] bi_foreground_target=64 [ 248.008894][ T7320] bi_background_target=1 [ 248.008912][ T7320] bi_erasure_code=0 [ 248.008922][ T7320] bi_fields_set=0 [ 248.008932][ T7320] bi_dir=0 [ 248.008940][ T7320] bi_dir_offset=0 [ 248.008950][ T7320] bi_subvol=0 [ 248.008960][ T7320] bi_parent_subvol=0 [ 248.008969][ T7320] bi_nocow=0 [ 248.008979][ T7320] bi_depth=0 [ 248.008988][ T7320] bi_inodes_32bit=0 [ 248.008998][ T7320] bi_casefold=0, fixing [ 248.016938][ T7320] done [ 248.017825][ T7320] bcachefs (loop2): check_xattrs... done [ 248.020754][ T7320] bcachefs (loop2): check_root... done [ 248.024356][ T7320] bcachefs (loop2): check_unreachable_inodes... done [ 248.025851][ T7320] bcachefs (loop2): check_subvolume_structure... done [ 248.027977][ T7320] bcachefs (loop2): check_directory_structure... done [ 248.028748][ T7320] bcachefs (loop2): check_nlinks... [ 248.029885][ T7320] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 248.030997][ T7320] done [ 248.031713][ T7320] bcachefs (loop2): check_rebalance_work... done [ 248.032922][ T7320] bcachefs (loop2): resume_logged_ops... done [ 248.033742][ T7320] bcachefs (loop2): delete_dead_inodes... done [ 248.042988][ T7320] bcachefs (loop2): set_fs_needs_rebalance... done [ 248.053582][ T7329] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 248.053604][ T7329] running recovery pass check_extents_to_backpointers (17), currently at lookup_root_inode (43) [ 248.057693][ T7320] bcachefs (loop2): check_extents_to_backpointers... [ 248.058704][ T7320] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 248.062520][ T7329] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 248.064222][ T7320] done [ 248.072737][ T7320] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 248.072760][ T7320] bcachefs (loop2): check_alloc_info... done [ 248.077922][ T7320] bcachefs (loop2): check_lrus... done [ 248.079058][ T7320] bcachefs (loop2): check_btree_backpointers... done [ 248.080916][ T7320] bcachefs (loop2): check_backpointers_to_extents... done [ 248.082326][ T7320] bcachefs (loop2): check_extents_to_backpointers... [ 248.083224][ T7320] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 248.084491][ T7320] done [ 248.084504][ T7320] bcachefs (loop2): check_alloc_to_lru_refs... done [ 248.086832][ T7320] bcachefs (loop2): bucket_gens_init... done [ 248.090331][ T7320] bcachefs (loop2): check_snapshot_trees... done [ 248.091522][ T7320] bcachefs (loop2): check_snapshots... done [ 248.092421][ T7320] bcachefs (loop2): check_subvols... done [ 248.093241][ T7320] bcachefs (loop2): check_subvol_children... done [ 248.094017][ T7320] bcachefs (loop2): delete_dead_snapshots... done [ 248.094680][ T7320] bcachefs (loop2): check_inodes... done [ 248.095867][ T7320] bcachefs (loop2): check_extents... done [ 248.097344][ T7320] bcachefs (loop2): check_indirect_extents... done [ 248.098149][ T7320] bcachefs (loop2): check_dirents... done [ 248.101183][ T7320] bcachefs (loop2): check_xattrs... done [ 248.101984][ T7320] bcachefs (loop2): check_root... done [ 248.102786][ T7320] bcachefs (loop2): check_unreachable_inodes... done [ 248.103674][ T7320] bcachefs (loop2): check_subvolume_structure... done [ 248.104432][ T7320] bcachefs (loop2): check_directory_structure... done [ 248.105205][ T7320] bcachefs (loop2): check_nlinks... done [ 248.106376][ T7320] bcachefs (loop2): check_rebalance_work... done [ 248.107224][ T7320] bcachefs (loop2): resume_logged_ops... done [ 248.107944][ T7320] bcachefs (loop2): delete_dead_inodes... done [ 248.108744][ T7320] bcachefs (loop2): set_fs_needs_rebalance... done [ 248.114108][ T7320] bcachefs (loop2): done starting filesystem [ 248.190317][ T5839] bcachefs (loop2): shutting down [pid 7464] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7464] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7464] chdir("./file1") = 0 [pid 7464] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7464] ioctl(4, LOOP_CLR_FD) = 0 [pid 7464] close(4) = 0 [pid 7464] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7464] exit_group(0) = ? [pid 7464] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7464, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=42 /* 0.42 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./108", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./108", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 248.190337][ T5839] bcachefs (loop2): going read-only [ 248.190369][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 248.230605][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 248.231914][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 248.232720][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 248.234505][ T5839] bcachefs (loop2): marking filesystem clean [ 248.296138][ T5839] bcachefs (loop2): shutdown complete [ 249.122024][ T7331] loop2: detected capacity change from 0 to 32768 [ 249.268259][ T7331] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 249.268286][ T7331] allowing incompatible features above 0.0: (unknown version) [ 249.268300][ T7331] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 249.268326][ T7331] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 249.268450][ T7331] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 249.268694][ T7331] bcachefs (loop2): Version upgrade required: [ 249.268694][ T7331] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 249.268694][ T7331] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 249.268694][ T7331] 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,check_rebalance_work,set_fs_needs_rebalance [ 249.288189][ T7331] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 249.288217][ T7331] size != 0, deleting [ 249.290305][ T7331] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 249.293634][ T7331] bcachefs (loop2): check_topology... done [ 249.295094][ T7331] bcachefs (loop2): accounting_read... done [ 249.336085][ T7331] bcachefs (loop2): alloc_read... done [ 249.337025][ T7331] bcachefs (loop2): snapshots_read... done [ 249.337814][ T7331] bcachefs (loop2): check_allocations... [ 249.340384][ T7331] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 249.340405][ T7331] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 249.342728][ T7331] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 249.342746][ T7331] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 249.344163][ T7331] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 249.344178][ T7331] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 249.345766][ T7331] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 249.345784][ T7331] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 249.348241][ T7331] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 249.348259][ T7331] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 249.350417][ T7331] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.350560][ T7331] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.351115][ T7331] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.351219][ T7331] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.351618][ T7331] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.351728][ T7331] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.351923][ T7331] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.352023][ T7331] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.353948][ T7331] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.354060][ T7331] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.354267][ T7331] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.354371][ T7331] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.354585][ T7331] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.354691][ T7331] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 249.354889][ T7331] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 249.354994][ T7331] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 249.355205][ T7331] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 249.355309][ T7331] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 249.355524][ T7331] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 249.355627][ T7331] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 249.355856][ T7331] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 249.355874][ T7331] Ratelimiting new instances of previous error [ 249.356019][ T7331] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 249.356034][ T7331] Ratelimiting new instances of previous error [ 249.368880][ T7331] done [ 249.371479][ T7331] bcachefs (loop2): going read-write [ 249.376506][ T7331] bcachefs (loop2): journal_replay... done [ 249.404720][ T7331] bcachefs (loop2): check_alloc_info... [ 249.406545][ T7331] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 249.406563][ T7331] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 249.406575][ T7331] gen 0 oldest_gen 0 data_type need_discard [ 249.406588][ T7331] journal_seq_nonempty 6 [ 249.406597][ T7331] journal_seq_empty 0 [ 249.406608][ T7331] need_discard 1 [ 249.406619][ T7331] need_inc_gen 1 [ 249.406629][ T7331] dirty_sectors 0 [ 249.406638][ T7331] stripe_sectors 0 [ 249.406650][ T7331] cached_sectors 0 [ 249.406660][ T7331] stripe 0 [ 249.406670][ T7331] stripe_redundancy 0 [ 249.406679][ T7331] io_time[READ] 1 [ 249.406689][ T7331] io_time[WRITE] 768 [ 249.406697][ T7331] fragmentation 0 [ 249.406707][ T7331] bp_start 8 [ 249.406716][ T7331] , fixing [ 249.423123][ T7331] done [ 249.428752][ T7331] bcachefs (loop2): check_lrus... done [ 249.429955][ T7331] bcachefs (loop2): check_btree_backpointers... done [ 249.431716][ T7331] bcachefs (loop2): check_backpointers_to_extents... done [ 249.434813][ T7331] bcachefs (loop2): check_extents_to_backpointers... [ 249.436165][ T7331] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 249.437612][ T7331] done [ 249.438185][ T7331] bcachefs (loop2): check_alloc_to_lru_refs... [ 249.442217][ T7331] bcachefs (loop2): missing fragmentation lru entry [ 249.442236][ T7331] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 249.442250][ T7331] gen 0 oldest_gen 0 data_type user [ 249.442260][ T7331] journal_seq_nonempty 5 [ 249.442270][ T7331] journal_seq_empty 134217728 [ 249.442281][ T7331] need_discard 1 [ 249.442291][ T7331] need_inc_gen 1 [ 249.442300][ T7331] dirty_sectors 16 [ 249.442310][ T7331] stripe_sectors 1802251 [ 249.442320][ T7331] cached_sectors 0 [ 249.442331][ T7331] stripe 0 [ 249.442341][ T7331] stripe_redundancy 0 [ 249.442350][ T7331] io_time[READ] 1 [ 249.442360][ T7331] io_time[WRITE] 512 [ 249.442370][ T7331] fragmentation 0 [ 249.442380][ T7331] bp_start 7 [ 249.442389][ T7331] , fixing [ 249.443916][ T7331] done [ 249.445957][ T7331] bcachefs (loop2): bucket_gens_init... done [ 249.448341][ T7331] bcachefs (loop2): check_snapshot_trees... done [ 249.449947][ T7331] bcachefs (loop2): check_snapshots... [ 249.450521][ T7331] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 249.450538][ T7331] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 249.463249][ T7331] done [ 249.464026][ T7331] bcachefs (loop2): check_subvols... done [ 249.465630][ T7331] bcachefs (loop2): check_subvol_children... done [ 249.466622][ T7331] bcachefs (loop2): delete_dead_snapshots... done [ 249.467995][ T7331] bcachefs (loop2): check_inodes... [ 249.469085][ T7331] bcachefs (loop2): inode points to missing dirent [ 249.469101][ T7331] inum: 4098:4294967295 [ 249.469111][ T7331] mode=40755 [ 249.469121][ T7331] flags=(15300000) [ 249.469130][ T7331] journal_seq=4 [ 249.469139][ T7331] hash_seed=ece93825deac2443 [ 249.469149][ T7331] hash_type=siphash [ 249.469159][ T7331] bi_size=0 [ 249.470775][ T7331] bi_sectors=0 [ 249.470787][ T7331] bi_version=0 [ 249.470797][ T7331] bi_atime=2770562249 [ 249.470806][ T7331] bi_ctime=2780562352 [ 249.470816][ T7331] bi_mtime=2780562352 [ 249.470825][ T7331] bi_otime=2770562249 [ 249.470835][ T7331] bi_uid=0 [ 249.470844][ T7331] bi_gid=0 [ 249.470853][ T7331] bi_nlink=0 [ 249.470862][ T7331] bi_generation=0 [ 249.470872][ T7331] bi_dev=0 [ 249.470881][ T7331] bi_data_checksum=0 [ 249.470890][ T7331] bi_compression=0 [ 249.470900][ T7331] bi_project=0 [ 249.470910][ T7331] bi_background_compression=0 [ 249.470920][ T7331] bi_data_replicas=0 [ 249.470929][ T7331] bi_promote_target=0 [ 249.470939][ T7331] bi_foreground_target=64 [ 249.470949][ T7331] bi_background_target=1 [ 249.470960][ T7331] bi_erasure_code=0 [ 249.470970][ T7331] bi_fields_set=0 [ 249.470979][ T7331] bi_dir=0 [ 249.470987][ T7331] bi_dir_offset=32 [ 249.470998][ T7331] bi_subvol=0 [ 249.471006][ T7331] bi_parent_subvol=0 [ 249.471016][ T7331] bi_nocow=0 [ 249.471026][ T7331] bi_depth=0 [ 249.471034][ T7331] bi_inodes_32bit=0 [ 249.471043][ T7331] bi_casefold=0, fixing [ 249.472827][ T7331] done [ 249.473577][ T7331] bcachefs (loop2): check_extents... done [ 249.475092][ T7331] bcachefs (loop2): check_indirect_extents... done [ 249.475962][ T7331] bcachefs (loop2): check_dirents... [ 249.478231][ T7331] bcachefs (loop2): directory with missing backpointer [ 249.478249][ T7331] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 249.478264][ T7331] inum: 4098:4294967295 [ 249.478274][ T7331] mode=40755 [ 249.478284][ T7331] flags=(11300000) [ 249.478293][ T7331] journal_seq=22 [ 249.478302][ T7331] hash_seed=ece93825deac2443 [ 249.478312][ T7331] hash_type=siphash [ 249.478323][ T7331] bi_size=0 [ 249.478332][ T7331] bi_sectors=0 [ 249.478341][ T7331] bi_version=0 [ 249.478351][ T7331] bi_atime=2770562249 [ 249.478361][ T7331] bi_ctime=2780562352 [ 249.478370][ T7331] bi_mtime=2780562352 [ 249.478380][ T7331] bi_otime=2770562249 [ 249.478390][ T7331] bi_uid=0 [ 249.478398][ T7331] bi_gid=0 [ 249.478408][ T7331] bi_nlink=0 [ 249.478415][ T7331] bi_generation=0 [ 249.478424][ T7331] bi_dev=0 [ 249.478433][ T7331] bi_data_checksum=0 [ 249.478443][ T7331] bi_compression=0 [ 249.478452][ T7331] bi_project=0 [ 249.478461][ T7331] bi_background_compression=0 [ 249.478472][ T7331] bi_data_replicas=0 [ 249.478481][ T7331] bi_promote_target=0 [ 249.478491][ T7331] bi_foreground_target=64 [ 249.478501][ T7331] bi_background_target=1 [ 249.478511][ T7331] bi_erasure_code=0 [ 249.478520][ T7331] bi_fields_set=0 [ 249.478530][ T7331] bi_dir=0 [ 249.478538][ T7331] bi_dir_offset=0 [ 249.478547][ T7331] bi_subvol=0 [ 249.478557][ T7331] bi_parent_subvol=0 [ 249.478567][ T7331] bi_nocow=0 [ 249.478576][ T7331] bi_depth=0 [ 249.478585][ T7331] bi_inodes_32bit=0 [ 249.478594][ T7331] bi_casefold=0, fixing [ 249.483837][ T7331] done [ 249.484504][ T7331] bcachefs (loop2): check_xattrs... done [ 249.485914][ T7331] bcachefs (loop2): check_root... done [ 249.488858][ T7331] bcachefs (loop2): check_unreachable_inodes... done [ 249.491713][ T7331] bcachefs (loop2): check_subvolume_structure... done [ 249.494167][ T7331] bcachefs (loop2): check_directory_structure... done [ 249.495930][ T7331] bcachefs (loop2): check_nlinks... [ 249.496661][ T7331] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 249.497729][ T7331] done [pid 5839] umount2("./108/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./108/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./108/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./108/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 249.498468][ T7331] bcachefs (loop2): check_rebalance_work... done [ 249.500828][ T7331] bcachefs (loop2): resume_logged_ops... done [ 249.501619][ T7331] bcachefs (loop2): delete_dead_inodes... done [ 249.511132][ T7331] bcachefs (loop2): set_fs_needs_rebalance... [ 249.518782][ T7340] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 249.518806][ T7340] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 249.520628][ T7331] done [ 249.524051][ T7331] bcachefs (loop2): check_extents_to_backpointers... [pid 5839] openat(AT_FDCWD, "./108/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./108/file1") = 0 [pid 5839] umount2("./108/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./108/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./108/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./108") = 0 [ 249.525015][ T7331] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 249.530116][ T7331] done [ 249.546919][ T7331] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 249.546946][ T7331] bcachefs (loop2): check_alloc_info... done [ 249.559891][ T7331] bcachefs (loop2): check_lrus... done [ 249.561035][ T7331] bcachefs (loop2): check_btree_backpointers... done [ 249.562237][ T7331] bcachefs (loop2): check_backpointers_to_extents... done [pid 5839] mkdir("./109", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7475 ./strace-static-x86_64: Process 7475 attached [ 249.563668][ T7331] bcachefs (loop2): check_extents_to_backpointers... done [ 249.565316][ T7331] bcachefs (loop2): check_alloc_to_lru_refs... done [ 249.571511][ T7331] bcachefs (loop2): bucket_gens_init... done [ 249.574328][ T7331] bcachefs (loop2): check_snapshot_trees... done [ 249.579715][ T7331] bcachefs (loop2): check_snapshots... done [ 249.581463][ T7331] bcachefs (loop2): check_subvols... done [ 249.582264][ T7331] bcachefs (loop2): check_subvol_children... done [ 249.583020][ T7331] bcachefs (loop2): delete_dead_snapshots... done [pid 7475] set_robust_list(0x5555901c6760, 24) = 0 [pid 7475] chdir("./109") = 0 [pid 7475] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7475] setpgid(0, 0) = 0 [pid 7475] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7475] write(3, "1000", 4) = 4 [pid 7475] close(3) = 0 [pid 7475] symlink("/dev/binderfs", "./binderfs") = 0 [ 249.583707][ T7331] bcachefs (loop2): check_inodes... done [ 249.589910][ T7331] bcachefs (loop2): check_extents... done [ 249.592714][ T7331] bcachefs (loop2): check_indirect_extents... done [ 249.593459][ T7331] bcachefs (loop2): check_dirents... done [ 249.600497][ T7331] bcachefs (loop2): check_xattrs... done [ 249.601610][ T7331] bcachefs (loop2): check_root... done [ 249.602349][ T7331] bcachefs (loop2): check_unreachable_inodes... done [ 249.603634][ T7331] bcachefs (loop2): check_subvolume_structure... done [pid 7475] write(1, "executing program\n", 18executing program ) = 18 [pid 7475] memfd_create("syzkaller", 0) = 3 [pid 7475] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 249.604347][ T7331] bcachefs (loop2): check_directory_structure... done [ 249.605084][ T7331] bcachefs (loop2): check_nlinks... done [ 249.610382][ T7331] bcachefs (loop2): check_rebalance_work... done [ 249.611200][ T7331] bcachefs (loop2): resume_logged_ops... done [ 249.611922][ T7331] bcachefs (loop2): delete_dead_inodes... done [ 249.612738][ T7331] bcachefs (loop2): set_fs_needs_rebalance... done [ 249.620283][ T7331] bcachefs (loop2): done starting filesystem [ 249.692553][ T5839] bcachefs (loop2): shutting down [ 249.692573][ T5839] bcachefs (loop2): going read-only [ 249.692825][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 249.733636][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 249.734452][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 249.735329][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 249.737126][ T5839] bcachefs (loop2): marking filesystem clean [ 249.795439][ T5839] bcachefs (loop2): shutdown complete [ 250.610333][ T7342] loop2: detected capacity change from 0 to 32768 [ 250.742682][ T7342] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 250.742712][ T7342] allowing incompatible features above 0.0: (unknown version) [ 250.742726][ T7342] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 250.742754][ T7342] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 250.742879][ T7342] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 250.743119][ T7342] bcachefs (loop2): Version upgrade required: [ 250.743119][ T7342] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 250.743119][ T7342] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 250.743119][ T7342] 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,check_rebalance_work,set_fs_needs_rebalance [ 250.761763][ T7342] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 250.761789][ T7342] size != 0, deleting [ 250.762759][ T7342] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 250.766596][ T7342] bcachefs (loop2): check_topology... done [ 250.768125][ T7342] bcachefs (loop2): accounting_read... done [ 250.799814][ T7342] bcachefs (loop2): alloc_read... done [ 250.800690][ T7342] bcachefs (loop2): snapshots_read... done [ 250.801585][ T7342] bcachefs (loop2): check_allocations... [ 250.803506][ T7342] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [pid 7475] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7475] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7475] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 250.803526][ T7342] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 250.805547][ T7342] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 250.805568][ T7342] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 250.807492][ T7342] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7475] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7475] close(3) = 0 [pid 7475] close(4) = 0 [pid 7475] mkdir("./file1", 0777) = 0 [ 250.807510][ T7342] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 250.810244][ T7342] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 250.810263][ T7342] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 250.813509][ T7342] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 250.813527][ T7342] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 250.814478][ T7342] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.814601][ T7342] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.815158][ T7342] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.815275][ T7342] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.815689][ T7342] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.815793][ T7342] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.815996][ T7342] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.816102][ T7342] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.816312][ T7342] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.816428][ T7342] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.816632][ T7342] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.816746][ T7342] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.816946][ T7342] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.817055][ T7342] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 250.817252][ T7342] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 250.817364][ T7342] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 250.817577][ T7342] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 250.817699][ T7342] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 250.817905][ T7342] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 250.818011][ T7342] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 250.818251][ T7342] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 250.818267][ T7342] Ratelimiting new instances of previous error [ 250.818396][ T7342] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 250.818408][ T7342] Ratelimiting new instances of previous error [ 250.832678][ T7342] done [ 250.834828][ T7342] bcachefs (loop2): going read-write [ 250.840677][ T7342] bcachefs (loop2): journal_replay... done [ 250.868364][ T7342] bcachefs (loop2): check_alloc_info... [ 250.870569][ T7342] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 250.870589][ T7342] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 250.870600][ T7342] gen 0 oldest_gen 0 data_type need_discard [ 250.870612][ T7342] journal_seq_nonempty 6 [ 250.870630][ T7342] journal_seq_empty 0 [ 250.870640][ T7342] need_discard 1 [ 250.870652][ T7342] need_inc_gen 1 [ 250.870661][ T7342] dirty_sectors 0 [ 250.870672][ T7342] stripe_sectors 0 [ 250.870681][ T7342] cached_sectors 0 [ 250.870691][ T7342] stripe 0 [ 250.870701][ T7342] stripe_redundancy 0 [ 250.870711][ T7342] io_time[READ] 1 [ 250.870720][ T7342] io_time[WRITE] 768 [ 250.870731][ T7342] fragmentation 0 [ 250.870741][ T7342] bp_start 8 [ 250.870751][ T7342] , fixing [ 250.886866][ T7342] done [ 250.893080][ T7342] bcachefs (loop2): check_lrus... done [ 250.894481][ T7342] bcachefs (loop2): check_btree_backpointers... done [ 250.895801][ T7342] bcachefs (loop2): check_backpointers_to_extents... done [ 250.900821][ T7342] bcachefs (loop2): check_extents_to_backpointers... [ 250.903279][ T7342] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 250.905046][ T7342] done [ 250.905761][ T7342] bcachefs (loop2): check_alloc_to_lru_refs... [ 250.907634][ T7342] bcachefs (loop2): missing fragmentation lru entry [ 250.907650][ T7342] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 250.907662][ T7342] gen 0 oldest_gen 0 data_type user [ 250.907673][ T7342] journal_seq_nonempty 5 [ 250.907683][ T7342] journal_seq_empty 134217728 [ 250.907693][ T7342] need_discard 1 [ 250.907704][ T7342] need_inc_gen 1 [ 250.907714][ T7342] dirty_sectors 16 [ 250.907724][ T7342] stripe_sectors 1802251 [ 250.907735][ T7342] cached_sectors 0 [pid 7475] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7475] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7475] chdir("./file1") = 0 [pid 7475] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7475] ioctl(4, LOOP_CLR_FD) = 0 [pid 7475] close(4) = 0 [pid 7475] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [ 250.907746][ T7342] stripe 0 [ 250.907756][ T7342] stripe_redundancy 0 [ 250.907766][ T7342] io_time[READ] 1 [ 250.907776][ T7342] io_time[WRITE] 512 [ 250.907786][ T7342] fragmentation 0 [ 250.907796][ T7342] bp_start 7 [ 250.907806][ T7342] , fixing [ 250.911056][ T7342] done [ 250.913548][ T7342] bcachefs (loop2): bucket_gens_init... done [ 250.916922][ T7342] bcachefs (loop2): check_snapshot_trees... done [ 250.917772][ T7342] bcachefs (loop2): check_snapshots... [pid 7475] exit_group(0) = ? [pid 7475] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7475, si_uid=0, si_status=0, si_utime=8 /* 0.08 s */, si_stime=40 /* 0.40 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./109", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./109", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 250.918357][ T7342] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 250.918372][ T7342] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 250.929664][ T7342] done [ 250.930374][ T7342] bcachefs (loop2): check_subvols... done [ 250.931970][ T7342] bcachefs (loop2): check_subvol_children... done [ 250.932853][ T7342] bcachefs (loop2): delete_dead_snapshots... done [ 250.933633][ T7342] bcachefs (loop2): check_inodes... [ 250.934713][ T7342] bcachefs (loop2): inode points to missing dirent [ 250.934730][ T7342] inum: 4098:4294967295 [ 250.934740][ T7342] mode=40755 [ 250.934749][ T7342] flags=(15300000) [ 250.934759][ T7342] journal_seq=4 [ 250.934768][ T7342] hash_seed=ece93825deac2443 [ 250.934779][ T7342] hash_type=siphash [ 250.934788][ T7342] bi_size=0 [ 250.934798][ T7342] bi_sectors=0 [ 250.934807][ T7342] bi_version=0 [ 250.934816][ T7342] bi_atime=2770562249 [ 250.934825][ T7342] bi_ctime=2780562352 [ 250.934835][ T7342] bi_mtime=2780562352 [ 250.934845][ T7342] bi_otime=2770562249 [ 250.934854][ T7342] bi_uid=0 [ 250.934863][ T7342] bi_gid=0 [ 250.934873][ T7342] bi_nlink=0 [ 250.934882][ T7342] bi_generation=0 [ 250.934891][ T7342] bi_dev=0 [ 250.934900][ T7342] bi_data_checksum=0 [ 250.934909][ T7342] bi_compression=0 [ 250.934919][ T7342] bi_project=0 [ 250.934928][ T7342] bi_background_compression=0 [ 250.934938][ T7342] bi_data_replicas=0 [ 250.934950][ T7342] bi_promote_target=0 [ 250.934959][ T7342] bi_foreground_target=64 [ 250.934969][ T7342] bi_background_target=1 [ 250.934979][ T7342] bi_erasure_code=0 [ 250.934989][ T7342] bi_fields_set=0 [ 250.934998][ T7342] bi_dir=0 [ 250.935008][ T7342] bi_dir_offset=32 [ 250.935017][ T7342] bi_subvol=0 [ 250.935026][ T7342] bi_parent_subvol=0 [ 250.935036][ T7342] bi_nocow=0 [ 250.935045][ T7342] bi_depth=0 [ 250.935054][ T7342] bi_inodes_32bit=0 [ 250.935064][ T7342] bi_casefold=0, fixing [ 250.937161][ T7342] done [ 250.937801][ T7342] bcachefs (loop2): check_extents... done [ 250.940665][ T7342] bcachefs (loop2): check_indirect_extents... done [ 250.942778][ T7342] bcachefs (loop2): check_dirents... [ 250.944493][ T7342] bcachefs (loop2): directory with missing backpointer [ 250.944510][ T7342] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 250.944526][ T7342] inum: 4098:4294967295 [ 250.944536][ T7342] mode=40755 [ 250.944545][ T7342] flags=(11300000) [ 250.944555][ T7342] journal_seq=22 [ 250.944564][ T7342] hash_seed=ece93825deac2443 [ 250.944575][ T7342] hash_type=siphash [ 250.944584][ T7342] bi_size=0 [ 250.944593][ T7342] bi_sectors=0 [ 250.944603][ T7342] bi_version=0 [ 250.944620][ T7342] bi_atime=2770562249 [ 250.944630][ T7342] bi_ctime=2780562352 [ 250.944640][ T7342] bi_mtime=2780562352 [ 250.944649][ T7342] bi_otime=2770562249 [ 250.944659][ T7342] bi_uid=0 [ 250.944668][ T7342] bi_gid=0 [ 250.944677][ T7342] bi_nlink=0 [ 250.944687][ T7342] bi_generation=0 [ 250.944696][ T7342] bi_dev=0 [ 250.944705][ T7342] bi_data_checksum=0 [ 250.944715][ T7342] bi_compression=0 [ 250.944724][ T7342] bi_project=0 [ 250.944734][ T7342] bi_background_compression=0 [ 250.944744][ T7342] bi_data_replicas=0 [ 250.944753][ T7342] bi_promote_target=0 [ 250.944764][ T7342] bi_foreground_target=64 [ 250.944774][ T7342] bi_background_target=1 [ 250.944784][ T7342] bi_erasure_code=0 [ 250.944794][ T7342] bi_fields_set=0 [ 250.944803][ T7342] bi_dir=0 [ 250.944812][ T7342] bi_dir_offset=0 [ 250.944822][ T7342] bi_subvol=0 [ 250.944831][ T7342] bi_parent_subvol=0 [ 250.944841][ T7342] bi_nocow=0 [ 250.944850][ T7342] bi_depth=0 [ 250.944859][ T7342] bi_inodes_32bit=0 [ 250.944868][ T7342] bi_casefold=0, fixing [ 250.952272][ T7342] done [ 250.952993][ T7342] bcachefs (loop2): check_xattrs... done [ 250.955316][ T7342] bcachefs (loop2): check_root... done [ 250.958238][ T7342] bcachefs (loop2): check_unreachable_inodes... done [pid 5839] umount2("./109/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./109/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./109/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./109/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./109/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [ 250.959692][ T7342] bcachefs (loop2): check_subvolume_structure... done [ 250.960957][ T7342] bcachefs (loop2): check_directory_structure... done [ 250.961855][ T7342] bcachefs (loop2): check_nlinks... [ 250.962555][ T7342] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 250.963631][ T7342] done [ 250.964323][ T7342] bcachefs (loop2): check_rebalance_work... done [ 250.965554][ T7342] bcachefs (loop2): resume_logged_ops... done [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./109/file1") = 0 [pid 5839] umount2("./109/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./109/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./109/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./109") = 0 [pid 5839] mkdir("./110", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [ 250.966361][ T7342] bcachefs (loop2): delete_dead_inodes... done [ 250.975684][ T7342] bcachefs (loop2): set_fs_needs_rebalance... [ 250.983463][ T7351] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 250.983486][ T7351] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 250.986684][ T7342] done [ 250.987682][ T7342] bcachefs (loop2): check_extents_to_backpointers... [ 250.988640][ T7342] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 250.994869][ T7342] done [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7486 ./strace-static-x86_64: Process 7486 attached [pid 7486] set_robust_list(0x5555901c6760, 24) = 0 [pid 7486] chdir("./110") = 0 [pid 7486] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7486] setpgid(0, 0) = 0 [ 251.004355][ T7342] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 251.004380][ T7342] bcachefs (loop2): check_alloc_info... done [ 251.009018][ T7342] bcachefs (loop2): check_lrus... done [ 251.011727][ T7342] bcachefs (loop2): check_btree_backpointers... done [ 251.013051][ T7342] bcachefs (loop2): check_backpointers_to_extents... done [ 251.014443][ T7342] bcachefs (loop2): check_extents_to_backpointers... done [ 251.016091][ T7342] bcachefs (loop2): check_alloc_to_lru_refs... done [pid 7486] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7486] write(3, "1000", 4) = 4 [pid 7486] close(3) = 0 [pid 7486] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7486] write(1, "executing program\n", 18executing program ) = 18 [pid 7486] memfd_create("syzkaller", 0) = 3 [pid 7486] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 251.018419][ T7342] bcachefs (loop2): bucket_gens_init... done [ 251.021594][ T7342] bcachefs (loop2): check_snapshot_trees... done [ 251.022738][ T7342] bcachefs (loop2): check_snapshots... done [ 251.023582][ T7342] bcachefs (loop2): check_subvols... done [ 251.024394][ T7342] bcachefs (loop2): check_subvol_children... done [ 251.025173][ T7342] bcachefs (loop2): delete_dead_snapshots... done [ 251.025962][ T7342] bcachefs (loop2): check_inodes... done [ 251.027052][ T7342] bcachefs (loop2): check_extents... done [ 251.028448][ T7342] bcachefs (loop2): check_indirect_extents... done [ 251.029182][ T7342] bcachefs (loop2): check_dirents... done [ 251.032261][ T7342] bcachefs (loop2): check_xattrs... done [ 251.033164][ T7342] bcachefs (loop2): check_root... done [ 251.033944][ T7342] bcachefs (loop2): check_unreachable_inodes... done [ 251.034878][ T7342] bcachefs (loop2): check_subvolume_structure... done [ 251.035651][ T7342] bcachefs (loop2): check_directory_structure... done [ 251.036395][ T7342] bcachefs (loop2): check_nlinks... done [ 251.037569][ T7342] bcachefs (loop2): check_rebalance_work... done [ 251.038408][ T7342] bcachefs (loop2): resume_logged_ops... done [ 251.039735][ T7342] bcachefs (loop2): delete_dead_inodes... done [ 251.041245][ T7342] bcachefs (loop2): set_fs_needs_rebalance... done [ 251.045378][ T7342] bcachefs (loop2): done starting filesystem [ 251.142881][ T5839] bcachefs (loop2): shutting down [ 251.142902][ T5839] bcachefs (loop2): going read-only [ 251.142932][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 251.180551][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 251.181715][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 251.182608][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 251.184395][ T5839] bcachefs (loop2): marking filesystem clean [ 251.237430][ T5839] bcachefs (loop2): shutdown complete [ 252.069329][ T7353] loop2: detected capacity change from 0 to 32768 [ 252.205753][ T7353] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 252.205783][ T7353] allowing incompatible features above 0.0: (unknown version) [ 252.205797][ T7353] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 252.205830][ T7353] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 252.205956][ T7353] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 252.206193][ T7353] bcachefs (loop2): Version upgrade required: [ 252.206193][ T7353] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 252.206193][ T7353] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7486] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7486] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7486] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [ 252.206193][ T7353] 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,check_rebalance_work,set_fs_needs_rebalance [ 252.225660][ T7353] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 252.225687][ T7353] size != 0, deleting [ 252.226548][ T7353] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 252.230000][ T7353] bcachefs (loop2): check_topology... done [ 252.231825][ T7353] bcachefs (loop2): accounting_read... done [pid 7486] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7486] close(3) = 0 [pid 7486] close(4) = 0 [pid 7486] mkdir("./file1", 0777) = 0 [ 252.262746][ T7353] bcachefs (loop2): alloc_read... done [ 252.263713][ T7353] bcachefs (loop2): snapshots_read... done [ 252.264572][ T7353] bcachefs (loop2): check_allocations... [ 252.267042][ T7353] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 252.267064][ T7353] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 252.270502][ T7353] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 252.270522][ T7353] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 252.271972][ T7353] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 252.271991][ T7353] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 252.273573][ T7353] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 252.273591][ T7353] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 252.276185][ T7353] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 252.276212][ T7353] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 252.277144][ T7353] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.277280][ T7353] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.277844][ T7353] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.277951][ T7353] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.278356][ T7353] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.278462][ T7353] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.279127][ T7353] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.279782][ T7353] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.280006][ T7353] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.280112][ T7353] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.280324][ T7353] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.280429][ T7353] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.280629][ T7353] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.280740][ T7353] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 252.280939][ T7353] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 252.281062][ T7353] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 252.281271][ T7353] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 252.281386][ T7353] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 252.281591][ T7353] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 252.281705][ T7353] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 252.281946][ T7353] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 252.281963][ T7353] Ratelimiting new instances of previous error [ 252.282097][ T7353] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 252.282114][ T7353] Ratelimiting new instances of previous error [ 252.296399][ T7353] done [ 252.298643][ T7353] bcachefs (loop2): going read-write [ 252.303565][ T7353] bcachefs (loop2): journal_replay... done [pid 7486] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 252.331791][ T7353] bcachefs (loop2): check_alloc_info... [ 252.333613][ T7353] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 252.333633][ T7353] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 252.333644][ T7353] gen 0 oldest_gen 0 data_type need_discard [ 252.333655][ T7353] journal_seq_nonempty 6 [ 252.333667][ T7353] journal_seq_empty 0 [ 252.333677][ T7353] need_discard 1 [ 252.333687][ T7353] need_inc_gen 1 [ 252.333697][ T7353] dirty_sectors 0 [pid 7486] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7486] chdir("./file1") = 0 [pid 7486] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7486] ioctl(4, LOOP_CLR_FD) = 0 [pid 7486] close(4) = 0 [pid 7486] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7486] exit_group(0) = ? [pid 7486] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7486, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] umount2("./110", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./110", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 252.333707][ T7353] stripe_sectors 0 [ 252.333716][ T7353] cached_sectors 0 [ 252.333726][ T7353] stripe 0 [ 252.333736][ T7353] stripe_redundancy 0 [ 252.333746][ T7353] io_time[READ] 1 [ 252.333756][ T7353] io_time[WRITE] 768 [ 252.333766][ T7353] fragmentation 0 [ 252.333775][ T7353] bp_start 8 [ 252.333787][ T7353] , fixing [ 252.350095][ T7353] done [ 252.355475][ T7353] bcachefs (loop2): check_lrus... done [ 252.356806][ T7353] bcachefs (loop2): check_btree_backpointers... done [ 252.358029][ T7353] bcachefs (loop2): check_backpointers_to_extents... done [ 252.363917][ T7353] bcachefs (loop2): check_extents_to_backpointers... [ 252.365303][ T7353] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 252.367238][ T7353] done [ 252.367883][ T7353] bcachefs (loop2): check_alloc_to_lru_refs... [ 252.370522][ T7353] bcachefs (loop2): missing fragmentation lru entry [ 252.370558][ T7353] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 252.370569][ T7353] gen 0 oldest_gen 0 data_type user [ 252.370579][ T7353] journal_seq_nonempty 5 [ 252.370589][ T7353] journal_seq_empty 134217728 [ 252.370601][ T7353] need_discard 1 [ 252.370612][ T7353] need_inc_gen 1 [ 252.370622][ T7353] dirty_sectors 16 [ 252.370633][ T7353] stripe_sectors 1802251 [ 252.370644][ T7353] cached_sectors 0 [ 252.370654][ T7353] stripe 0 [ 252.370665][ T7353] stripe_redundancy 0 [ 252.370675][ T7353] io_time[READ] 1 [ 252.370685][ T7353] io_time[WRITE] 512 [ 252.370697][ T7353] fragmentation 0 [ 252.370707][ T7353] bp_start 7 [ 252.370717][ T7353] , fixing [ 252.372258][ T7353] done [ 252.373789][ T7353] bcachefs (loop2): bucket_gens_init... done [ 252.375834][ T7353] bcachefs (loop2): check_snapshot_trees... done [ 252.376652][ T7353] bcachefs (loop2): check_snapshots... [ 252.377724][ T7353] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 252.377741][ T7353] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 252.392963][ T7353] done [ 252.393723][ T7353] bcachefs (loop2): check_subvols... done [ 252.395414][ T7353] bcachefs (loop2): check_subvol_children... done [ 252.396291][ T7353] bcachefs (loop2): delete_dead_snapshots... done [ 252.397109][ T7353] bcachefs (loop2): check_inodes... [ 252.398204][ T7353] bcachefs (loop2): inode points to missing dirent [ 252.398219][ T7353] inum: 4098:4294967295 [ 252.398229][ T7353] mode=40755 [ 252.398238][ T7353] flags=(15300000) [ 252.398248][ T7353] journal_seq=4 [ 252.398257][ T7353] hash_seed=ece93825deac2443 [ 252.398268][ T7353] hash_type=siphash [ 252.398277][ T7353] bi_size=0 [ 252.398286][ T7353] bi_sectors=0 [ 252.398296][ T7353] bi_version=0 [ 252.398306][ T7353] bi_atime=2770562249 [ 252.398315][ T7353] bi_ctime=2780562352 [ 252.398325][ T7353] bi_mtime=2780562352 [ 252.398336][ T7353] bi_otime=2770562249 [ 252.398346][ T7353] bi_uid=0 [ 252.398355][ T7353] bi_gid=0 [ 252.398364][ T7353] bi_nlink=0 [ 252.398373][ T7353] bi_generation=0 [ 252.398383][ T7353] bi_dev=0 [ 252.398393][ T7353] bi_data_checksum=0 [ 252.398403][ T7353] bi_compression=0 [ 252.398413][ T7353] bi_project=0 [ 252.398422][ T7353] bi_background_compression=0 [ 252.398432][ T7353] bi_data_replicas=0 [ 252.398441][ T7353] bi_promote_target=0 [ 252.398451][ T7353] bi_foreground_target=64 [ 252.398468][ T7353] bi_background_target=1 [ 252.398969][ T7353] bi_erasure_code=0 [ 252.398980][ T7353] bi_fields_set=0 [ 252.398989][ T7353] bi_dir=0 [ 252.398999][ T7353] bi_dir_offset=32 [ 252.399008][ T7353] bi_subvol=0 [ 252.399018][ T7353] bi_parent_subvol=0 [ 252.399028][ T7353] bi_nocow=0 [ 252.399037][ T7353] bi_depth=0 [ 252.399046][ T7353] bi_inodes_32bit=0 [ 252.399056][ T7353] bi_casefold=0, fixing [ 252.405965][ T7353] done [ 252.406673][ T7353] bcachefs (loop2): check_extents... done [pid 5839] umount2("./110/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./110/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./110/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./110/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./110/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [ 252.408167][ T7353] bcachefs (loop2): check_indirect_extents... done [ 252.408930][ T7353] bcachefs (loop2): check_dirents... [ 252.411600][ T7353] bcachefs (loop2): directory with missing backpointer [ 252.411618][ T7353] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 252.411633][ T7353] inum: 4098:4294967295 [ 252.411643][ T7353] mode=40755 [ 252.411653][ T7353] flags=(11300000) [ 252.411663][ T7353] journal_seq=22 [ 252.411672][ T7353] hash_seed=ece93825deac2443 [ 252.411682][ T7353] hash_type=siphash [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./110/file1") = 0 [pid 5839] umount2("./110/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./110/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./110/binderfs") = 0 [ 252.411692][ T7353] bi_size=0 [ 252.411701][ T7353] bi_sectors=0 [ 252.411711][ T7353] bi_version=0 [ 252.411720][ T7353] bi_atime=2770562249 [ 252.411731][ T7353] bi_ctime=2780562352 [ 252.411741][ T7353] bi_mtime=2780562352 [ 252.411750][ T7353] bi_otime=2770562249 [ 252.411760][ T7353] bi_uid=0 [ 252.411769][ T7353] bi_gid=0 [ 252.411778][ T7353] bi_nlink=0 [ 252.411787][ T7353] bi_generation=0 [ 252.411796][ T7353] bi_dev=0 [ 252.411806][ T7353] bi_data_checksum=0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./110") = 0 [pid 5839] mkdir("./111", 0777) = 0 [ 252.411815][ T7353] bi_compression=0 [ 252.411825][ T7353] bi_project=0 [ 252.411834][ T7353] bi_background_compression=0 [ 252.411844][ T7353] bi_data_replicas=0 [ 252.411854][ T7353] bi_promote_target=0 [ 252.411864][ T7353] bi_foreground_target=64 [ 252.411873][ T7353] bi_background_target=1 [ 252.411883][ T7353] bi_erasure_code=0 [ 252.411894][ T7353] bi_fields_set=0 [ 252.411904][ T7353] bi_dir=0 [ 252.411913][ T7353] bi_dir_offset=0 [ 252.411922][ T7353] bi_subvol=0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7497 ./strace-static-x86_64: Process 7497 attached [pid 7497] set_robust_list(0x5555901c6760, 24) = 0 [pid 7497] chdir("./111") = 0 [pid 7497] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 252.411931][ T7353] bi_parent_subvol=0 [ 252.411941][ T7353] bi_nocow=0 [ 252.411950][ T7353] bi_depth=0 [ 252.411959][ T7353] bi_inodes_32bit=0 [ 252.411969][ T7353] bi_casefold=0, fixing [ 252.414070][ T7353] done [ 252.414772][ T7353] bcachefs (loop2): check_xattrs... done [ 252.416026][ T7353] bcachefs (loop2): check_root... done [ 252.417172][ T7353] bcachefs (loop2): check_unreachable_inodes... done [ 252.418171][ T7353] bcachefs (loop2): check_subvolume_structure... done [pid 7497] setpgid(0, 0) = 0 [pid 7497] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7497] write(3, "1000", 4) = 4 [pid 7497] close(3) = 0 [pid 7497] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7497] write(1, "executing program\n", 18executing program ) = 18 [pid 7497] memfd_create("syzkaller", 0) = 3 [ 252.419009][ T7353] bcachefs (loop2): check_directory_structure... done [ 252.423554][ T7353] bcachefs (loop2): check_nlinks... [ 252.424299][ T7353] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 252.426896][ T7353] done [ 252.427608][ T7353] bcachefs (loop2): check_rebalance_work... done [ 252.428778][ T7353] bcachefs (loop2): resume_logged_ops... done [ 252.430027][ T7353] bcachefs (loop2): delete_dead_inodes... done [ 252.438664][ T7353] bcachefs (loop2): set_fs_needs_rebalance... [pid 7497] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 252.447052][ T7362] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 252.447077][ T7362] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 252.450131][ T7353] done [ 252.450851][ T7353] bcachefs (loop2): check_extents_to_backpointers... [ 252.452243][ T7353] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 252.460538][ T7353] done [ 252.474650][ T7353] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 252.474677][ T7353] bcachefs (loop2): check_alloc_info... done [ 252.484023][ T7353] bcachefs (loop2): check_lrus... done [ 252.489961][ T7353] bcachefs (loop2): check_btree_backpointers... done [ 252.491213][ T7353] bcachefs (loop2): check_backpointers_to_extents... done [ 252.492672][ T7353] bcachefs (loop2): check_extents_to_backpointers... done [ 252.500338][ T7353] bcachefs (loop2): check_alloc_to_lru_refs... done [ 252.502546][ T7353] bcachefs (loop2): bucket_gens_init... done [ 252.504833][ T7353] bcachefs (loop2): check_snapshot_trees... done [ 252.506053][ T7353] bcachefs (loop2): check_snapshots... done [ 252.506843][ T7353] bcachefs (loop2): check_subvols... done [ 252.510520][ T7353] bcachefs (loop2): check_subvol_children... done [ 252.511418][ T7353] bcachefs (loop2): delete_dead_snapshots... done [ 252.515419][ T7353] bcachefs (loop2): check_inodes... done [ 252.516631][ T7353] bcachefs (loop2): check_extents... done [ 252.520654][ T7353] bcachefs (loop2): check_indirect_extents... done [ 252.521406][ T7353] bcachefs (loop2): check_dirents... done [ 252.525979][ T7353] bcachefs (loop2): check_xattrs... done [ 252.527206][ T7353] bcachefs (loop2): check_root... done [ 252.528032][ T7353] bcachefs (loop2): check_unreachable_inodes... done [ 252.530363][ T7353] bcachefs (loop2): check_subvolume_structure... done [ 252.536558][ T7353] bcachefs (loop2): check_directory_structure... done [ 252.537380][ T7353] bcachefs (loop2): check_nlinks... done [ 252.538454][ T7353] bcachefs (loop2): check_rebalance_work... done [ 252.539746][ T7353] bcachefs (loop2): resume_logged_ops... done [ 252.540506][ T7353] bcachefs (loop2): delete_dead_inodes... done [ 252.541305][ T7353] bcachefs (loop2): set_fs_needs_rebalance... done [ 252.547498][ T7353] bcachefs (loop2): done starting filesystem [ 252.623304][ T5839] bcachefs (loop2): shutting down [ 252.623327][ T5839] bcachefs (loop2): going read-only [ 252.630118][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 252.661117][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 252.661902][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [pid 7497] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7497] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7497] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7497] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7497] close(3) = 0 [pid 7497] close(4) = 0 [ 252.662751][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 252.664564][ T5839] bcachefs (loop2): marking filesystem clean [ 252.728355][ T5839] bcachefs (loop2): shutdown complete [ 253.518772][ T7364] loop2: detected capacity change from 0 to 32768 [ 253.667493][ T7364] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 253.667520][ T7364] allowing incompatible features above 0.0: (unknown version) [pid 7497] mkdir("./file1", 0777) = 0 [ 253.667534][ T7364] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 253.667562][ T7364] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 253.667690][ T7364] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 253.667937][ T7364] bcachefs (loop2): Version upgrade required: [ 253.667937][ T7364] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 253.667937][ T7364] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 253.667937][ T7364] 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,check_rebalance_work,set_fs_needs_rebalance [ 253.687301][ T7364] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 253.687328][ T7364] size != 0, deleting [ 253.688472][ T7364] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 253.693036][ T7364] bcachefs (loop2): check_topology... done [ 253.695004][ T7364] bcachefs (loop2): accounting_read... done [ 253.727885][ T7364] bcachefs (loop2): alloc_read... done [ 253.728804][ T7364] bcachefs (loop2): snapshots_read... done [ 253.730368][ T7364] bcachefs (loop2): check_allocations... [ 253.732320][ T7364] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 253.732339][ T7364] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 253.734355][ T7364] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 253.734376][ T7364] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 253.735965][ T7364] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 253.735984][ T7364] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 253.737859][ T7364] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 253.737877][ T7364] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 253.741911][ T7364] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 253.741930][ T7364] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 253.742891][ T7364] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.743019][ T7364] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.743592][ T7364] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.743708][ T7364] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.744133][ T7364] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.744238][ T7364] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.744440][ T7364] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.744547][ T7364] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.744745][ T7364] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.744850][ T7364] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.745047][ T7364] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.745164][ T7364] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.745366][ T7364] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.745470][ T7364] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 253.745670][ T7364] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 253.745776][ T7364] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 7497] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7497] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [ 253.745978][ T7364] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 253.746092][ T7364] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 253.746294][ T7364] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 253.746399][ T7364] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 253.746638][ T7364] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [pid 7497] chdir("./file1") = 0 [pid 7497] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7497] ioctl(4, LOOP_CLR_FD) = 0 [pid 7497] close(4) = 0 [pid 7497] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7497] exit_group(0) = ? [pid 7497] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7497, si_uid=0, si_status=0, si_utime=6 /* 0.06 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5839] umount2("./111", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./111", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 253.746655][ T7364] Ratelimiting new instances of previous error [ 253.746792][ T7364] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 253.746808][ T7364] Ratelimiting new instances of previous error [ 253.760930][ T7364] done [ 253.763250][ T7364] bcachefs (loop2): going read-write [ 253.768406][ T7364] bcachefs (loop2): journal_replay... done [ 253.796374][ T7364] bcachefs (loop2): check_alloc_info... [ 253.798176][ T7364] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 253.798194][ T7364] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 253.798206][ T7364] gen 0 oldest_gen 0 data_type need_discard [ 253.798217][ T7364] journal_seq_nonempty 6 [ 253.798228][ T7364] journal_seq_empty 0 [ 253.798238][ T7364] need_discard 1 [ 253.798249][ T7364] need_inc_gen 1 [ 253.798259][ T7364] dirty_sectors 0 [ 253.798269][ T7364] stripe_sectors 0 [ 253.798279][ T7364] cached_sectors 0 [ 253.798289][ T7364] stripe 0 [ 253.798299][ T7364] stripe_redundancy 0 [ 253.798308][ T7364] io_time[READ] 1 [ 253.798318][ T7364] io_time[WRITE] 768 [ 253.798328][ T7364] fragmentation 0 [ 253.798338][ T7364] bp_start 8 [ 253.798348][ T7364] , fixing [ 253.814504][ T7364] done [ 253.820723][ T7364] bcachefs (loop2): check_lrus... done [ 253.821661][ T7364] bcachefs (loop2): check_btree_backpointers... done [ 253.824029][ T7364] bcachefs (loop2): check_backpointers_to_extents... done [ 253.827636][ T7364] bcachefs (loop2): check_extents_to_backpointers... [ 253.829016][ T7364] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 253.832795][ T7364] done [ 253.833513][ T7364] bcachefs (loop2): check_alloc_to_lru_refs... [ 253.835423][ T7364] bcachefs (loop2): missing fragmentation lru entry [ 253.835439][ T7364] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 253.835451][ T7364] gen 0 oldest_gen 0 data_type user [ 253.835461][ T7364] journal_seq_nonempty 5 [ 253.835471][ T7364] journal_seq_empty 134217728 [ 253.835481][ T7364] need_discard 1 [ 253.835491][ T7364] need_inc_gen 1 [ 253.835501][ T7364] dirty_sectors 16 [ 253.835511][ T7364] stripe_sectors 1802251 [ 253.835523][ T7364] cached_sectors 0 [ 253.835536][ T7364] stripe 0 [ 253.835547][ T7364] stripe_redundancy 0 [ 253.835557][ T7364] io_time[READ] 1 [ 253.835567][ T7364] io_time[WRITE] 512 [ 253.835578][ T7364] fragmentation 0 [ 253.835587][ T7364] bp_start 7 [ 253.835598][ T7364] , fixing [ 253.837166][ T7364] done [ 253.838715][ T7364] bcachefs (loop2): bucket_gens_init... done [ 253.844530][ T7364] bcachefs (loop2): check_snapshot_trees... done [ 253.845468][ T7364] bcachefs (loop2): check_snapshots... [ 253.846043][ T7364] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 253.846058][ T7364] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 253.856893][ T7364] done [ 253.857582][ T7364] bcachefs (loop2): check_subvols... done [ 253.859227][ T7364] bcachefs (loop2): check_subvol_children... done [ 253.860485][ T7364] bcachefs (loop2): delete_dead_snapshots... done [ 253.861276][ T7364] bcachefs (loop2): check_inodes... [ 253.862827][ T7364] bcachefs (loop2): inode points to missing dirent [ 253.862845][ T7364] inum: 4098:4294967295 [ 253.862855][ T7364] mode=40755 [ 253.862864][ T7364] flags=(15300000) [ 253.862874][ T7364] journal_seq=4 [ 253.862884][ T7364] hash_seed=ece93825deac2443 [ 253.862894][ T7364] hash_type=siphash [ 253.862904][ T7364] bi_size=0 [ 253.862913][ T7364] bi_sectors=0 [ 253.862922][ T7364] bi_version=0 [ 253.862931][ T7364] bi_atime=2770562249 [ 253.862941][ T7364] bi_ctime=2780562352 [ 253.862951][ T7364] bi_mtime=2780562352 [ 253.862960][ T7364] bi_otime=2770562249 [ 253.862970][ T7364] bi_uid=0 [ 253.862979][ T7364] bi_gid=0 [ 253.862988][ T7364] bi_nlink=0 [ 253.862997][ T7364] bi_generation=0 [ 253.863007][ T7364] bi_dev=0 [pid 5839] umount2("./111/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./111/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./111/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./111/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./111/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./111/file1") = 0 [ 253.863016][ T7364] bi_data_checksum=0 [ 253.863026][ T7364] bi_compression=0 [ 253.863035][ T7364] bi_project=0 [ 253.863044][ T7364] bi_background_compression=0 [ 253.863054][ T7364] bi_data_replicas=0 [ 253.863075][ T7364] bi_promote_target=0 [ 253.863085][ T7364] bi_foreground_target=64 [ 253.863095][ T7364] bi_background_target=1 [ 253.863106][ T7364] bi_erasure_code=0 [ 253.863116][ T7364] bi_fields_set=0 [ 253.863126][ T7364] bi_dir=0 [ 253.863135][ T7364] bi_dir_offset=32 [pid 5839] umount2("./111/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./111/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./111/binderfs") = 0 [ 253.863144][ T7364] bi_subvol=0 [ 253.863154][ T7364] bi_parent_subvol=0 [ 253.863165][ T7364] bi_nocow=0 [ 253.863174][ T7364] bi_depth=0 [ 253.863183][ T7364] bi_inodes_32bit=0 [ 253.863194][ T7364] bi_casefold=0, fixing [ 253.864691][ T7364] done [ 253.865270][ T7364] bcachefs (loop2): check_extents... done [ 253.866808][ T7364] bcachefs (loop2): check_indirect_extents... done [ 253.867623][ T7364] bcachefs (loop2): check_dirents... [ 253.871900][ T7364] bcachefs (loop2): directory with missing backpointer [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./111") = 0 [pid 5839] mkdir("./112", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7508 ./strace-static-x86_64: Process 7508 attached [ 253.871918][ T7364] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 253.871933][ T7364] inum: 4098:4294967295 [ 253.871944][ T7364] mode=40755 [ 253.871953][ T7364] flags=(11300000) [ 253.871963][ T7364] journal_seq=22 [ 253.871972][ T7364] hash_seed=ece93825deac2443 [ 253.871983][ T7364] hash_type=siphash [ 253.871992][ T7364] bi_size=0 [ 253.872001][ T7364] bi_sectors=0 [ 253.872011][ T7364] bi_version=0 [ 253.872020][ T7364] bi_atime=2770562249 [pid 7508] set_robust_list(0x5555901c6760, 24) = 0 [pid 7508] chdir("./112") = 0 [pid 7508] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7508] setpgid(0, 0) = 0 [pid 7508] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7508] write(3, "1000", 4) = 4 [pid 7508] close(3) = 0 [pid 7508] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7508] write(1, "executing program\n", 18executing program ) = 18 [ 253.872030][ T7364] bi_ctime=2780562352 [ 253.872040][ T7364] bi_mtime=2780562352 [ 253.872049][ T7364] bi_otime=2770562249 [ 253.872071][ T7364] bi_uid=0 [ 253.872081][ T7364] bi_gid=0 [ 253.872090][ T7364] bi_nlink=0 [ 253.872099][ T7364] bi_generation=0 [ 253.872109][ T7364] bi_dev=0 [ 253.872118][ T7364] bi_data_checksum=0 [ 253.872127][ T7364] bi_compression=0 [ 253.872137][ T7364] bi_project=0 [ 253.872146][ T7364] bi_background_compression=0 [pid 7508] memfd_create("syzkaller", 0) = 3 [pid 7508] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 253.872156][ T7364] bi_data_replicas=0 [ 253.872166][ T7364] bi_promote_target=0 [ 253.872176][ T7364] bi_foreground_target=64 [ 253.872186][ T7364] bi_background_target=1 [ 253.872196][ T7364] bi_erasure_code=0 [ 253.872205][ T7364] bi_fields_set=0 [ 253.872214][ T7364] bi_dir=0 [ 253.872223][ T7364] bi_dir_offset=0 [ 253.872233][ T7364] bi_subvol=0 [ 253.872242][ T7364] bi_parent_subvol=0 [ 253.872252][ T7364] bi_nocow=0 [ 253.872261][ T7364] bi_depth=0 [ 253.872270][ T7364] bi_inodes_32bit=0 [ 253.872280][ T7364] bi_casefold=0, fixing [ 253.878705][ T7364] done [ 253.879802][ T7364] bcachefs (loop2): check_xattrs... done [ 253.881878][ T7364] bcachefs (loop2): check_root... done [ 253.883748][ T7364] bcachefs (loop2): check_unreachable_inodes... done [ 253.884699][ T7364] bcachefs (loop2): check_subvolume_structure... done [ 253.885483][ T7364] bcachefs (loop2): check_directory_structure... done [ 253.886300][ T7364] bcachefs (loop2): check_nlinks... [ 253.887008][ T7364] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 253.888094][ T7364] done [ 253.888757][ T7364] bcachefs (loop2): check_rebalance_work... done [ 253.891451][ T7364] bcachefs (loop2): resume_logged_ops... done [ 253.892285][ T7364] bcachefs (loop2): delete_dead_inodes... done [ 253.901388][ T7364] bcachefs (loop2): set_fs_needs_rebalance... [ 253.909472][ T7373] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 253.909495][ T7373] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 253.912467][ T7364] done [ 253.913356][ T7364] bcachefs (loop2): check_extents_to_backpointers... [ 253.914312][ T7364] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 253.920847][ T7364] done [ 253.930484][ T7364] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 253.930521][ T7364] bcachefs (loop2): check_alloc_info... done [ 253.935145][ T7364] bcachefs (loop2): check_lrus... done [ 253.936770][ T7364] bcachefs (loop2): check_btree_backpointers... done [ 253.938060][ T7364] bcachefs (loop2): check_backpointers_to_extents... done [ 253.939837][ T7364] bcachefs (loop2): check_extents_to_backpointers... done [ 253.942045][ T7364] bcachefs (loop2): check_alloc_to_lru_refs... done [ 253.944333][ T7364] bcachefs (loop2): bucket_gens_init... done [ 253.946400][ T7364] bcachefs (loop2): check_snapshot_trees... done [ 253.947989][ T7364] bcachefs (loop2): check_snapshots... done [ 253.948940][ T7364] bcachefs (loop2): check_subvols... done [ 253.950748][ T7364] bcachefs (loop2): check_subvol_children... done [ 253.951512][ T7364] bcachefs (loop2): delete_dead_snapshots... done [ 253.952267][ T7364] bcachefs (loop2): check_inodes... done [ 253.953469][ T7364] bcachefs (loop2): check_extents... done [ 253.954909][ T7364] bcachefs (loop2): check_indirect_extents... done [ 253.955708][ T7364] bcachefs (loop2): check_dirents... done [ 253.957789][ T7364] bcachefs (loop2): check_xattrs... done [ 253.958694][ T7364] bcachefs (loop2): check_root... done [ 253.960014][ T7364] bcachefs (loop2): check_unreachable_inodes... done [pid 7508] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7508] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7508] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7508] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7508] close(3) = 0 [pid 7508] close(4) = 0 [pid 7508] mkdir("./file1", 0777) = 0 [ 253.961268][ T7364] bcachefs (loop2): check_subvolume_structure... done [ 253.962773][ T7364] bcachefs (loop2): check_directory_structure... done [ 253.963637][ T7364] bcachefs (loop2): check_nlinks... done [ 253.964790][ T7364] bcachefs (loop2): check_rebalance_work... done [ 253.965646][ T7364] bcachefs (loop2): resume_logged_ops... done [ 253.966503][ T7364] bcachefs (loop2): delete_dead_inodes... done [ 253.967295][ T7364] bcachefs (loop2): set_fs_needs_rebalance... done [ 253.972358][ T7364] bcachefs (loop2): done starting filesystem [ 254.059715][ T5839] bcachefs (loop2): shutting down [ 254.059734][ T5839] bcachefs (loop2): going read-only [ 254.059781][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 254.103419][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 254.104455][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 254.105404][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 254.107213][ T5839] bcachefs (loop2): marking filesystem clean [ 254.167681][ T5839] bcachefs (loop2): shutdown complete [ 254.985233][ T7375] loop2: detected capacity change from 0 to 32768 [ 255.174463][ T7375] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 255.174492][ T7375] allowing incompatible features above 0.0: (unknown version) [ 255.174505][ T7375] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 255.174534][ T7375] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 255.174663][ T7375] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 255.174911][ T7375] bcachefs (loop2): Version upgrade required: [ 255.174911][ T7375] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 255.174911][ T7375] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 255.174911][ T7375] 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,check_rebalance_work,set_fs_needs_rebalance [ 255.196867][ T7375] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 255.196903][ T7375] size != 0, deleting [ 255.198067][ T7375] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 255.202139][ T7375] bcachefs (loop2): check_topology... done [ 255.203623][ T7375] bcachefs (loop2): accounting_read... done [ 255.235887][ T7375] bcachefs (loop2): alloc_read... done [ 255.237353][ T7375] bcachefs (loop2): snapshots_read... done [ 255.238311][ T7375] bcachefs (loop2): check_allocations... [ 255.241775][ T7375] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 255.241796][ T7375] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 255.243903][ T7375] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 255.243922][ T7375] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 255.245390][ T7375] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 255.245408][ T7375] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 255.247004][ T7375] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 255.247033][ T7375] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 255.250704][ T7375] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 255.250724][ T7375] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 255.251702][ T7375] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.251828][ T7375] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 255.252401][ T7375] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.252510][ T7375] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 255.252919][ T7375] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.253027][ T7375] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 255.253234][ T7375] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [pid 7508] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7508] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7508] chdir("./file1") = 0 [pid 7508] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7508] ioctl(4, LOOP_CLR_FD) = 0 [pid 7508] close(4) = 0 [ 255.253342][ T7375] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 255.253549][ T7375] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.253654][ T7375] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 255.253860][ T7375] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.253974][ T7375] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [pid 7508] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7508] exit_group(0) = ? [pid 7508] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7508, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=37 /* 0.37 s */} --- [pid 5839] umount2("./112", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./112", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 255.254175][ T7375] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.254288][ T7375] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 255.254492][ T7375] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 255.254599][ T7375] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 255.254802][ T7375] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 255.254918][ T7375] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 255.255128][ T7375] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 255.255236][ T7375] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 255.255469][ T7375] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 255.255486][ T7375] Ratelimiting new instances of previous error [ 255.255616][ T7375] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 255.255645][ T7375] Ratelimiting new instances of previous error [ 255.269924][ T7375] done [ 255.272158][ T7375] bcachefs (loop2): going read-write [ 255.277761][ T7375] bcachefs (loop2): journal_replay... done [ 255.305508][ T7375] bcachefs (loop2): check_alloc_info... [ 255.307325][ T7375] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 255.307343][ T7375] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 255.307355][ T7375] gen 0 oldest_gen 0 data_type need_discard [ 255.307368][ T7375] journal_seq_nonempty 6 [ 255.307378][ T7375] journal_seq_empty 0 [ 255.307388][ T7375] need_discard 1 [ 255.307397][ T7375] need_inc_gen 1 [ 255.307407][ T7375] dirty_sectors 0 [ 255.307417][ T7375] stripe_sectors 0 [ 255.307427][ T7375] cached_sectors 0 [ 255.307437][ T7375] stripe 0 [ 255.307447][ T7375] stripe_redundancy 0 [ 255.307456][ T7375] io_time[READ] 1 [ 255.307466][ T7375] io_time[WRITE] 768 [ 255.307476][ T7375] fragmentation 0 [ 255.307486][ T7375] bp_start 8 [ 255.307496][ T7375] , fixing [ 255.323835][ T7375] done [ 255.329577][ T7375] bcachefs (loop2): check_lrus... done [ 255.330650][ T7375] bcachefs (loop2): check_btree_backpointers... done [ 255.331951][ T7375] bcachefs (loop2): check_backpointers_to_extents... done [ 255.335719][ T7375] bcachefs (loop2): check_extents_to_backpointers... [ 255.337139][ T7375] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 255.339844][ T7375] done [ 255.340618][ T7375] bcachefs (loop2): check_alloc_to_lru_refs... [ 255.342504][ T7375] bcachefs (loop2): missing fragmentation lru entry [ 255.342521][ T7375] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 255.342533][ T7375] gen 0 oldest_gen 0 data_type user [ 255.342544][ T7375] journal_seq_nonempty 5 [ 255.342554][ T7375] journal_seq_empty 134217728 [ 255.342564][ T7375] need_discard 1 [ 255.342575][ T7375] need_inc_gen 1 [ 255.342585][ T7375] dirty_sectors 16 [ 255.342596][ T7375] stripe_sectors 1802251 [ 255.342608][ T7375] cached_sectors 0 [ 255.342617][ T7375] stripe 0 [ 255.342627][ T7375] stripe_redundancy 0 [ 255.342638][ T7375] io_time[READ] 1 [ 255.342649][ T7375] io_time[WRITE] 512 [ 255.342659][ T7375] fragmentation 0 [ 255.342669][ T7375] bp_start 7 [ 255.342679][ T7375] , fixing [ 255.345309][ T7375] done [ 255.346855][ T7375] bcachefs (loop2): bucket_gens_init... done [ 255.348938][ T7375] bcachefs (loop2): check_snapshot_trees... done [ 255.352525][ T7375] bcachefs (loop2): check_snapshots... [ 255.353132][ T7375] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 255.353147][ T7375] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 255.363676][ T7375] done [ 255.364395][ T7375] bcachefs (loop2): check_subvols... done [ 255.366119][ T7375] bcachefs (loop2): check_subvol_children... done [pid 5839] umount2("./112/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./112/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./112/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./112/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./112/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [ 255.367046][ T7375] bcachefs (loop2): delete_dead_snapshots... done [ 255.367838][ T7375] bcachefs (loop2): check_inodes... [ 255.368995][ T7375] bcachefs (loop2): inode points to missing dirent [ 255.369013][ T7375] inum: 4098:4294967295 [ 255.369023][ T7375] mode=40755 [ 255.369033][ T7375] flags=(15300000) [ 255.369042][ T7375] journal_seq=4 [ 255.369051][ T7375] hash_seed=ece93825deac2443 [ 255.369061][ T7375] hash_type=siphash [ 255.369071][ T7375] bi_size=0 [ 255.369081][ T7375] bi_sectors=0 [pid 5839] rmdir("./112/file1") = 0 [pid 5839] umount2("./112/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./112/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./112/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./112") = 0 [ 255.369090][ T7375] bi_version=0 [ 255.369100][ T7375] bi_atime=2770562249 [ 255.369110][ T7375] bi_ctime=2780562352 [ 255.369121][ T7375] bi_mtime=2780562352 [ 255.369130][ T7375] bi_otime=2770562249 [ 255.369140][ T7375] bi_uid=0 [ 255.369149][ T7375] bi_gid=0 [ 255.369157][ T7375] bi_nlink=0 [ 255.371250][ T7375] bi_generation=0 [ 255.371261][ T7375] bi_dev=0 [ 255.371269][ T7375] bi_data_checksum=0 [ 255.371278][ T7375] bi_compression=0 [ 255.371287][ T7375] bi_project=0 [pid 5839] mkdir("./113", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7519 ./strace-static-x86_64: Process 7519 attached [ 255.371295][ T7375] bi_background_compression=0 [ 255.371305][ T7375] bi_data_replicas=0 [ 255.371341][ T7375] bi_promote_target=0 [ 255.371352][ T7375] bi_foreground_target=64 [ 255.371363][ T7375] bi_background_target=1 [ 255.371373][ T7375] bi_erasure_code=0 [ 255.371382][ T7375] bi_fields_set=0 [ 255.371392][ T7375] bi_dir=0 [ 255.371401][ T7375] bi_dir_offset=32 [ 255.371412][ T7375] bi_subvol=0 [ 255.371422][ T7375] bi_parent_subvol=0 [pid 7519] set_robust_list(0x5555901c6760, 24) = 0 [pid 7519] chdir("./113") = 0 [pid 7519] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7519] setpgid(0, 0) = 0 [pid 7519] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7519] write(3, "1000", 4) = 4 [pid 7519] close(3) = 0 [pid 7519] symlink("/dev/binderfs", "./binderfs") = 0 [ 255.371431][ T7375] bi_nocow=0 [ 255.371440][ T7375] bi_depth=0 [ 255.371451][ T7375] bi_inodes_32bit=0 [ 255.371461][ T7375] bi_casefold=0, fixing [ 255.373197][ T7375] done [ 255.373900][ T7375] bcachefs (loop2): check_extents... done [ 255.375385][ T7375] bcachefs (loop2): check_indirect_extents... done [ 255.376212][ T7375] bcachefs (loop2): check_dirents... [ 255.377971][ T7375] bcachefs (loop2): directory with missing backpointer [ 255.377988][ T7375] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [pid 7519] write(1, "executing program\n", 18executing program ) = 18 [pid 7519] memfd_create("syzkaller", 0) = 3 [pid 7519] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 255.378002][ T7375] inum: 4098:4294967295 [ 255.378014][ T7375] mode=40755 [ 255.378023][ T7375] flags=(11300000) [ 255.378032][ T7375] journal_seq=22 [ 255.378042][ T7375] hash_seed=ece93825deac2443 [ 255.378052][ T7375] hash_type=siphash [ 255.378062][ T7375] bi_size=0 [ 255.378071][ T7375] bi_sectors=0 [ 255.378081][ T7375] bi_version=0 [ 255.378090][ T7375] bi_atime=2770562249 [ 255.378100][ T7375] bi_ctime=2780562352 [ 255.378109][ T7375] bi_mtime=2780562352 [ 255.378119][ T7375] bi_otime=2770562249 [ 255.378129][ T7375] bi_uid=0 [ 255.378138][ T7375] bi_gid=0 [ 255.378147][ T7375] bi_nlink=0 [ 255.378156][ T7375] bi_generation=0 [ 255.378166][ T7375] bi_dev=0 [ 255.378175][ T7375] bi_data_checksum=0 [ 255.378185][ T7375] bi_compression=0 [ 255.378194][ T7375] bi_project=0 [ 255.378204][ T7375] bi_background_compression=0 [ 255.378214][ T7375] bi_data_replicas=0 [ 255.378224][ T7375] bi_promote_target=0 [ 255.378233][ T7375] bi_foreground_target=64 [ 255.378243][ T7375] bi_background_target=1 [ 255.378253][ T7375] bi_erasure_code=0 [ 255.378262][ T7375] bi_fields_set=0 [ 255.378272][ T7375] bi_dir=0 [ 255.378281][ T7375] bi_dir_offset=0 [ 255.378290][ T7375] bi_subvol=0 [ 255.378300][ T7375] bi_parent_subvol=0 [ 255.378309][ T7375] bi_nocow=0 [ 255.378319][ T7375] bi_depth=0 [ 255.378328][ T7375] bi_inodes_32bit=0 [ 255.378337][ T7375] bi_casefold=0, fixing [ 255.385276][ T7375] done [ 255.386334][ T7375] bcachefs (loop2): check_xattrs... done [ 255.388711][ T7375] bcachefs (loop2): check_root... done [ 255.390368][ T7375] bcachefs (loop2): check_unreachable_inodes... done [ 255.391476][ T7375] bcachefs (loop2): check_subvolume_structure... done [ 255.392313][ T7375] bcachefs (loop2): check_directory_structure... done [ 255.393130][ T7375] bcachefs (loop2): check_nlinks... [ 255.393825][ T7375] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 255.394933][ T7375] done [ 255.395621][ T7375] bcachefs (loop2): check_rebalance_work... done [ 255.396889][ T7375] bcachefs (loop2): resume_logged_ops... done [ 255.397686][ T7375] bcachefs (loop2): delete_dead_inodes... done [ 255.407581][ T7375] bcachefs (loop2): set_fs_needs_rebalance... [ 255.415535][ T7384] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 255.415561][ T7384] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 255.418875][ T7375] done [ 255.421229][ T7375] bcachefs (loop2): check_extents_to_backpointers... [ 255.422202][ T7375] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 255.426734][ T7375] done [ 255.436610][ T7375] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 255.436635][ T7375] bcachefs (loop2): check_alloc_info... done [ 255.441737][ T7375] bcachefs (loop2): check_lrus... done [ 255.442946][ T7375] bcachefs (loop2): check_btree_backpointers... done [ 255.444258][ T7375] bcachefs (loop2): check_backpointers_to_extents... done [pid 7519] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7519] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7519] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7519] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7519] close(3) = 0 [pid 7519] close(4) = 0 [pid 7519] mkdir("./file1", 0777) = 0 [ 255.445773][ T7375] bcachefs (loop2): check_extents_to_backpointers... done [ 255.447500][ T7375] bcachefs (loop2): check_alloc_to_lru_refs... done [ 255.450925][ T7375] bcachefs (loop2): bucket_gens_init... done [ 255.453097][ T7375] bcachefs (loop2): check_snapshot_trees... done [ 255.454204][ T7375] bcachefs (loop2): check_snapshots... done [ 255.455073][ T7375] bcachefs (loop2): check_subvols... done [ 255.455948][ T7375] bcachefs (loop2): check_subvol_children... done [ 255.456698][ T7375] bcachefs (loop2): delete_dead_snapshots... done [ 255.457473][ T7375] bcachefs (loop2): check_inodes... done [ 255.458681][ T7375] bcachefs (loop2): check_extents... done [ 255.461263][ T7375] bcachefs (loop2): check_indirect_extents... done [ 255.462107][ T7375] bcachefs (loop2): check_dirents... done [ 255.463632][ T7375] bcachefs (loop2): check_xattrs... done [ 255.464605][ T7375] bcachefs (loop2): check_root... done [ 255.465464][ T7375] bcachefs (loop2): check_unreachable_inodes... done [ 255.466422][ T7375] bcachefs (loop2): check_subvolume_structure... done [ 255.467136][ T7375] bcachefs (loop2): check_directory_structure... done [ 255.467898][ T7375] bcachefs (loop2): check_nlinks... done [ 255.470381][ T7375] bcachefs (loop2): check_rebalance_work... done [ 255.471850][ T7375] bcachefs (loop2): resume_logged_ops... done [ 255.472646][ T7375] bcachefs (loop2): delete_dead_inodes... done [ 255.473440][ T7375] bcachefs (loop2): set_fs_needs_rebalance... done [ 255.476851][ T7375] bcachefs (loop2): done starting filesystem [ 255.582344][ T5839] bcachefs (loop2): shutting down [ 255.582362][ T5839] bcachefs (loop2): going read-only [ 255.582392][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 255.620887][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 255.621934][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 255.622790][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 255.624578][ T5839] bcachefs (loop2): marking filesystem clean [ 255.677880][ T5839] bcachefs (loop2): shutdown complete [ 256.496076][ T7386] loop2: detected capacity change from 0 to 32768 [ 256.676046][ T7386] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 256.676084][ T7386] allowing incompatible features above 0.0: (unknown version) [ 256.676099][ T7386] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 256.676128][ T7386] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 256.676258][ T7386] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 256.676506][ T7386] bcachefs (loop2): Version upgrade required: [ 256.676506][ T7386] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 256.676506][ T7386] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 256.676506][ T7386] 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,check_rebalance_work,set_fs_needs_rebalance [ 256.696344][ T7386] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 256.696372][ T7386] size != 0, deleting [ 256.697519][ T7386] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 256.704567][ T7386] bcachefs (loop2): check_topology... done [ 256.707747][ T7386] bcachefs (loop2): accounting_read... done [ 256.734930][ T7386] bcachefs (loop2): alloc_read... done [ 256.735910][ T7386] bcachefs (loop2): snapshots_read... done [ 256.736780][ T7386] bcachefs (loop2): check_allocations... [ 256.738770][ T7386] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 256.738790][ T7386] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 256.742339][ T7386] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 256.742360][ T7386] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 256.743769][ T7386] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [pid 7519] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7519] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7519] chdir("./file1") = 0 [pid 7519] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7519] ioctl(4, LOOP_CLR_FD) = 0 [ 256.743787][ T7386] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 256.745868][ T7386] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 256.745887][ T7386] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 256.748372][ T7386] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [pid 7519] close(4) = 0 [pid 7519] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7519] exit_group(0) = ? [pid 7519] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7519, si_uid=0, si_status=0, si_utime=10 /* 0.10 s */, si_stime=36 /* 0.36 s */} --- [pid 5839] umount2("./113", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./113", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 256.748390][ T7386] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 256.750123][ T7386] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.750255][ T7386] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.750800][ T7386] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.750907][ T7386] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.751319][ T7386] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.751424][ T7386] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.751627][ T7386] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.751723][ T7386] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.751930][ T7386] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.752075][ T7386] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.752285][ T7386] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.752390][ T7386] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.752592][ T7386] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.752697][ T7386] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 256.752896][ T7386] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 256.753000][ T7386] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 256.753219][ T7386] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 256.753320][ T7386] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 256.753536][ T7386] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 256.753653][ T7386] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 256.753891][ T7386] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 256.753907][ T7386] Ratelimiting new instances of previous error [ 256.754035][ T7386] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 256.754060][ T7386] Ratelimiting new instances of previous error [ 256.767714][ T7386] done [ 256.770706][ T7386] bcachefs (loop2): going read-write [ 256.776589][ T7386] bcachefs (loop2): journal_replay... done [ 256.804988][ T7386] bcachefs (loop2): check_alloc_info... [ 256.806779][ T7386] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 256.806796][ T7386] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 256.806809][ T7386] gen 0 oldest_gen 0 data_type need_discard [ 256.806821][ T7386] journal_seq_nonempty 6 [ 256.806831][ T7386] journal_seq_empty 0 [ 256.806841][ T7386] need_discard 1 [ 256.806850][ T7386] need_inc_gen 1 [ 256.806862][ T7386] dirty_sectors 0 [ 256.806872][ T7386] stripe_sectors 0 [ 256.806882][ T7386] cached_sectors 0 [ 256.806892][ T7386] stripe 0 [ 256.806902][ T7386] stripe_redundancy 0 [ 256.806911][ T7386] io_time[READ] 1 [ 256.806921][ T7386] io_time[WRITE] 768 [ 256.806931][ T7386] fragmentation 0 [ 256.806941][ T7386] bp_start 8 [ 256.806950][ T7386] , fixing [ 256.822867][ T7386] done [ 256.828835][ T7386] bcachefs (loop2): check_lrus... done [ 256.830567][ T7386] bcachefs (loop2): check_btree_backpointers... done [ 256.831891][ T7386] bcachefs (loop2): check_backpointers_to_extents... done [ 256.834754][ T7386] bcachefs (loop2): check_extents_to_backpointers... [ 256.836084][ T7386] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 256.838779][ T7386] done [pid 5839] umount2("./113/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./113/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./113/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 256.840872][ T7386] bcachefs (loop2): check_alloc_to_lru_refs... [ 256.842777][ T7386] bcachefs (loop2): missing fragmentation lru entry [ 256.842793][ T7386] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 256.842804][ T7386] gen 0 oldest_gen 0 data_type user [ 256.842814][ T7386] journal_seq_nonempty 5 [ 256.842824][ T7386] journal_seq_empty 134217728 [ 256.842834][ T7386] need_discard 1 [ 256.842844][ T7386] need_inc_gen 1 [ 256.842854][ T7386] dirty_sectors 16 [ 256.842863][ T7386] stripe_sectors 1802251 [pid 5839] umount2("./113/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./113/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./113/file1") = 0 [pid 5839] umount2("./113/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./113/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./113/binderfs") = 0 [ 256.842875][ T7386] cached_sectors 0 [ 256.842885][ T7386] stripe 0 [ 256.842895][ T7386] stripe_redundancy 0 [ 256.842905][ T7386] io_time[READ] 1 [ 256.842915][ T7386] io_time[WRITE] 512 [ 256.842925][ T7386] fragmentation 0 [ 256.842935][ T7386] bp_start 7 [ 256.842944][ T7386] , fixing [ 256.844519][ T7386] done [ 256.845917][ T7386] bcachefs (loop2): bucket_gens_init... done [ 256.847996][ T7386] bcachefs (loop2): check_snapshot_trees... done [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./113") = 0 [pid 5839] mkdir("./114", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7530 ./strace-static-x86_64: Process 7530 attached [ 256.848815][ T7386] bcachefs (loop2): check_snapshots... [ 256.850763][ T7386] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 256.850781][ T7386] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 256.863446][ T7386] done [ 256.864155][ T7386] bcachefs (loop2): check_subvols... done [ 256.865778][ T7386] bcachefs (loop2): check_subvol_children... done [ 256.866646][ T7386] bcachefs (loop2): delete_dead_snapshots... done [pid 7530] set_robust_list(0x5555901c6760, 24) = 0 [pid 7530] chdir("./114") = 0 [pid 7530] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7530] setpgid(0, 0) = 0 [pid 7530] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [ 256.867434][ T7386] bcachefs (loop2): check_inodes... [ 256.868509][ T7386] bcachefs (loop2): inode points to missing dirent [ 256.868526][ T7386] inum: 4098:4294967295 [ 256.868536][ T7386] mode=40755 [ 256.868546][ T7386] flags=(15300000) [ 256.868555][ T7386] journal_seq=4 [ 256.868564][ T7386] hash_seed=ece93825deac2443 [ 256.868576][ T7386] hash_type=siphash [ 256.868586][ T7386] bi_size=0 [ 256.868595][ T7386] bi_sectors=0 [ 256.868604][ T7386] bi_version=0 [ 256.868614][ T7386] bi_atime=2770562249 [pid 7530] write(3, "1000", 4) = 4 [pid 7530] close(3) = 0 [pid 7530] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7530] write(1, "executing program\n", 18executing program ) = 18 [pid 7530] memfd_create("syzkaller", 0) = 3 [pid 7530] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 256.868623][ T7386] bi_ctime=2780562352 [ 256.868633][ T7386] bi_mtime=2780562352 [ 256.868642][ T7386] bi_otime=2770562249 [ 256.868652][ T7386] bi_uid=0 [ 256.868661][ T7386] bi_gid=0 [ 256.868670][ T7386] bi_nlink=0 [ 256.868679][ T7386] bi_generation=0 [ 256.868689][ T7386] bi_dev=0 [ 256.868698][ T7386] bi_data_checksum=0 [ 256.868707][ T7386] bi_compression=0 [ 256.868716][ T7386] bi_project=0 [ 256.868725][ T7386] bi_background_compression=0 [ 256.868736][ T7386] bi_data_replicas=0 [ 256.868745][ T7386] bi_promote_target=0 [ 256.868755][ T7386] bi_foreground_target=64 [ 256.868765][ T7386] bi_background_target=1 [ 256.868775][ T7386] bi_erasure_code=0 [ 256.868785][ T7386] bi_fields_set=0 [ 256.868794][ T7386] bi_dir=0 [ 256.868803][ T7386] bi_dir_offset=32 [ 256.868812][ T7386] bi_subvol=0 [ 256.868822][ T7386] bi_parent_subvol=0 [ 256.868831][ T7386] bi_nocow=0 [ 256.868840][ T7386] bi_depth=0 [ 256.868850][ T7386] bi_inodes_32bit=0 [ 256.868859][ T7386] bi_casefold=0, fixing [ 256.874815][ T7386] done [ 256.875540][ T7386] bcachefs (loop2): check_extents... done [ 256.877346][ T7386] bcachefs (loop2): check_indirect_extents... done [ 256.878272][ T7386] bcachefs (loop2): check_dirents... [ 256.880565][ T7386] bcachefs (loop2): directory with missing backpointer [ 256.880609][ T7386] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 256.880624][ T7386] inum: 4098:4294967295 [ 256.880635][ T7386] mode=40755 [ 256.880644][ T7386] flags=(11300000) [ 256.880654][ T7386] journal_seq=22 [ 256.880664][ T7386] hash_seed=ece93825deac2443 [ 256.880674][ T7386] hash_type=siphash [ 256.880684][ T7386] bi_size=0 [ 256.880693][ T7386] bi_sectors=0 [ 256.880702][ T7386] bi_version=0 [ 256.880711][ T7386] bi_atime=2770562249 [ 256.880721][ T7386] bi_ctime=2780562352 [ 256.880731][ T7386] bi_mtime=2780562352 [ 256.880740][ T7386] bi_otime=2770562249 [ 256.880752][ T7386] bi_uid=0 [ 256.880767][ T7386] bi_gid=0 [ 256.880776][ T7386] bi_nlink=0 [ 256.880786][ T7386] bi_generation=0 [ 256.880795][ T7386] bi_dev=0 [ 256.880804][ T7386] bi_data_checksum=0 [ 256.880814][ T7386] bi_compression=0 [ 256.880823][ T7386] bi_project=0 [ 256.880833][ T7386] bi_background_compression=0 [ 256.880843][ T7386] bi_data_replicas=0 [ 256.880854][ T7386] bi_promote_target=0 [ 256.880864][ T7386] bi_foreground_target=64 [ 256.880873][ T7386] bi_background_target=1 [ 256.880884][ T7386] bi_erasure_code=0 [ 256.880893][ T7386] bi_fields_set=0 [ 256.880903][ T7386] bi_dir=0 [ 256.880913][ T7386] bi_dir_offset=0 [ 256.880922][ T7386] bi_subvol=0 [ 256.880931][ T7386] bi_parent_subvol=0 [ 256.880941][ T7386] bi_nocow=0 [ 256.880950][ T7386] bi_depth=0 [ 256.880959][ T7386] bi_inodes_32bit=0 [ 256.880969][ T7386] bi_casefold=0, fixing [ 256.883233][ T7386] done [ 256.884582][ T7386] bcachefs (loop2): check_xattrs... done [ 256.885853][ T7386] bcachefs (loop2): check_root... done [pid 7530] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 7530] munmap(0x7fbbeb93a000, 138412032) = 0 [ 256.887014][ T7386] bcachefs (loop2): check_unreachable_inodes... done [ 256.888048][ T7386] bcachefs (loop2): check_subvolume_structure... done [ 256.888910][ T7386] bcachefs (loop2): check_directory_structure... done [ 256.893148][ T7386] bcachefs (loop2): check_nlinks... [ 256.893888][ T7386] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 256.897694][ T7386] done [ 256.898564][ T7386] bcachefs (loop2): check_rebalance_work... done [ 256.900642][ T7386] bcachefs (loop2): resume_logged_ops... done [pid 7530] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7530] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7530] close(3) = 0 [pid 7530] close(4) = 0 [pid 7530] mkdir("./file1", 0777) = 0 [ 256.901430][ T7386] bcachefs (loop2): delete_dead_inodes... done [ 256.910496][ T7386] bcachefs (loop2): set_fs_needs_rebalance... [ 256.919776][ T7395] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 256.919801][ T7395] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 256.922430][ T7386] done [ 256.923602][ T7386] bcachefs (loop2): check_extents_to_backpointers... [ 256.924565][ T7386] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 256.928535][ T7386] done [ 256.942475][ T7386] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 256.942505][ T7386] bcachefs (loop2): check_alloc_info... done [ 256.950501][ T7386] bcachefs (loop2): check_lrus... done [ 256.951522][ T7386] bcachefs (loop2): check_btree_backpointers... done [ 256.952659][ T7386] bcachefs (loop2): check_backpointers_to_extents... done [ 256.954154][ T7386] bcachefs (loop2): check_extents_to_backpointers... done [ 256.961479][ T7386] bcachefs (loop2): check_alloc_to_lru_refs... done [ 256.963633][ T7386] bcachefs (loop2): bucket_gens_init... done [ 256.970609][ T7386] bcachefs (loop2): check_snapshot_trees... done [ 256.972228][ T7386] bcachefs (loop2): check_snapshots... done [ 256.972992][ T7386] bcachefs (loop2): check_subvols... done [ 256.973821][ T7386] bcachefs (loop2): check_subvol_children... done [ 256.974492][ T7386] bcachefs (loop2): delete_dead_snapshots... done [ 256.975186][ T7386] bcachefs (loop2): check_inodes... done [ 256.980424][ T7386] bcachefs (loop2): check_extents... done [ 256.989916][ T7386] bcachefs (loop2): check_indirect_extents... done [ 256.990661][ T7386] bcachefs (loop2): check_dirents... done [ 256.992641][ T7386] bcachefs (loop2): check_xattrs... done [ 256.993719][ T7386] bcachefs (loop2): check_root... done [ 256.994461][ T7386] bcachefs (loop2): check_unreachable_inodes... done [ 256.995367][ T7386] bcachefs (loop2): check_subvolume_structure... done [ 256.996037][ T7386] bcachefs (loop2): check_directory_structure... done [ 256.996729][ T7386] bcachefs (loop2): check_nlinks... done [ 257.000445][ T7386] bcachefs (loop2): check_rebalance_work... done [ 257.001255][ T7386] bcachefs (loop2): resume_logged_ops... done [ 257.001980][ T7386] bcachefs (loop2): delete_dead_inodes... done [ 257.003278][ T7386] bcachefs (loop2): set_fs_needs_rebalance... done [ 257.011154][ T7386] bcachefs (loop2): done starting filesystem [ 257.100227][ T5839] bcachefs (loop2): shutting down [ 257.100248][ T5839] bcachefs (loop2): going read-only [ 257.100279][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 257.102204][ T4660] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 257.102204][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 257.102382][ T4660] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 257.102400][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 257.102422][ T4660] loop2 checksum error [ 257.142266][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 257.146167][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 257.147023][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 257.148817][ T5839] bcachefs (loop2): marking filesystem clean [ 257.204129][ T5839] bcachefs (loop2): shutdown complete [ 257.964396][ T7397] loop2: detected capacity change from 0 to 32768 [ 258.687788][ T7397] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 258.687814][ T7397] allowing incompatible features above 0.0: (unknown version) [ 258.687827][ T7397] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 258.687855][ T7397] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 258.687998][ T7397] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 258.688228][ T7397] bcachefs (loop2): Version upgrade required: [ 258.688228][ T7397] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 258.688228][ T7397] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [pid 7530] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [pid 7530] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7530] chdir("./file1") = 0 [pid 7530] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7530] ioctl(4, LOOP_CLR_FD) = 0 [pid 7530] close(4) = 0 [pid 7530] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7530] exit_group(0) = ? [pid 7530] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7530, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=38 /* 0.38 s */} --- [pid 5839] restart_syscall(<... resuming interrupted clone ...>) = 0 [ 258.688228][ T7397] 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,check_rebalance_work,set_fs_needs_rebalance [ 258.707163][ T7397] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 258.707189][ T7397] size != 0, deleting [pid 5839] umount2("./114", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./114", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 258.708340][ T7397] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 258.712406][ T7397] bcachefs (loop2): check_topology... done [ 258.713857][ T7397] bcachefs (loop2): accounting_read... done [ 258.752226][ T7397] bcachefs (loop2): alloc_read... done [ 258.753881][ T7397] bcachefs (loop2): snapshots_read... done [ 258.754724][ T7397] bcachefs (loop2): check_allocations... [ 258.756736][ T7397] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 258.756757][ T7397] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 258.759131][ T7397] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 258.759149][ T7397] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 258.761556][ T7397] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 258.761575][ T7397] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 258.763009][ T7397] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 258.763026][ T7397] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 258.765287][ T7397] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 258.765305][ T7397] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 258.766232][ T7397] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.766355][ T7397] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.766929][ T7397] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.767033][ T7397] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.767416][ T7397] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.767519][ T7397] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.767717][ T7397] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.767857][ T7397] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.768057][ T7397] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.768162][ T7397] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.768361][ T7397] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.768976][ T7397] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.769501][ T7397] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.769609][ T7397] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 258.769835][ T7397] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 258.769941][ T7397] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 258.770142][ T7397] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 258.770258][ T7397] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 258.770458][ T7397] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 258.770560][ T7397] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 258.770785][ T7397] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 258.770799][ T7397] Ratelimiting new instances of previous error [ 258.770938][ T7397] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 258.770954][ T7397] Ratelimiting new instances of previous error [pid 5839] umount2("./114/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./114/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./114/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] umount2("./114/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./114/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./114/file1") = 0 [ 258.785261][ T7397] done [ 258.787439][ T7397] bcachefs (loop2): going read-write [ 258.793692][ T7397] bcachefs (loop2): journal_replay... done [ 258.820521][ T7397] bcachefs (loop2): check_alloc_info... [ 258.822306][ T7397] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 258.822324][ T7397] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 258.822337][ T7397] gen 0 oldest_gen 0 data_type need_discard [ 258.822349][ T7397] journal_seq_nonempty 6 [ 258.822358][ T7397] journal_seq_empty 0 [pid 5839] umount2("./114/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./114/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./114/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./114") = 0 [pid 5839] mkdir("./115", 0777) = 0 [ 258.822368][ T7397] need_discard 1 [ 258.822378][ T7397] need_inc_gen 1 [ 258.822388][ T7397] dirty_sectors 0 [ 258.822397][ T7397] stripe_sectors 0 [ 258.822407][ T7397] cached_sectors 0 [ 258.822417][ T7397] stripe 0 [ 258.822427][ T7397] stripe_redundancy 0 [ 258.822436][ T7397] io_time[READ] 1 [ 258.822448][ T7397] io_time[WRITE] 768 [ 258.822458][ T7397] fragmentation 0 [ 258.822467][ T7397] bp_start 8 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 258.822477][ T7397] , fixing [ 258.838722][ T7397] done [ 258.845109][ T7397] bcachefs (loop2): check_lrus... done [ 258.848776][ T7397] bcachefs (loop2): check_btree_backpointers... done [ 258.850793][ T7397] bcachefs (loop2): check_backpointers_to_extents... done [ 258.853863][ T7397] bcachefs (loop2): check_extents_to_backpointers... [ 258.855257][ T7397] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 258.857128][ T7397] done [ 258.857895][ T7397] bcachefs (loop2): check_alloc_to_lru_refs... [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 7541 attached [pid 7541] set_robust_list(0x5555901c6760, 24 [pid 5839] <... clone resumed>, child_tidptr=0x5555901c6750) = 7541 [pid 7541] <... set_robust_list resumed>) = 0 [ 258.860455][ T7397] bcachefs (loop2): missing fragmentation lru entry [ 258.860473][ T7397] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 258.860485][ T7397] gen 0 oldest_gen 0 data_type user [ 258.860496][ T7397] journal_seq_nonempty 5 [ 258.860506][ T7397] journal_seq_empty 134217728 [ 258.860517][ T7397] need_discard 1 [ 258.860528][ T7397] need_inc_gen 1 [ 258.860538][ T7397] dirty_sectors 16 [ 258.860548][ T7397] stripe_sectors 1802251 [ 258.860558][ T7397] cached_sectors 0 [pid 7541] chdir("./115") = 0 [pid 7541] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7541] setpgid(0, 0) = 0 [pid 7541] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7541] write(3, "1000", 4) = 4 [pid 7541] close(3) = 0 [pid 7541] symlink("/dev/binderfs", "./binderfs") = 0 executing program [pid 7541] write(1, "executing program\n", 18) = 18 [ 258.860568][ T7397] stripe 0 [ 258.860577][ T7397] stripe_redundancy 0 [ 258.860587][ T7397] io_time[READ] 1 [ 258.860597][ T7397] io_time[WRITE] 512 [ 258.860609][ T7397] fragmentation 0 [ 258.860618][ T7397] bp_start 7 [ 258.860628][ T7397] , fixing [ 258.862223][ T7397] done [ 258.863611][ T7397] bcachefs (loop2): bucket_gens_init... done [ 258.865741][ T7397] bcachefs (loop2): check_snapshot_trees... done [ 258.867057][ T7397] bcachefs (loop2): check_snapshots... [pid 7541] memfd_create("syzkaller", 0) = 3 [pid 7541] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 258.867639][ T7397] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 258.867656][ T7397] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 258.881385][ T7397] done [ 258.882113][ T7397] bcachefs (loop2): check_subvols... done [ 258.883609][ T7397] bcachefs (loop2): check_subvol_children... done [ 258.884537][ T7397] bcachefs (loop2): delete_dead_snapshots... done [ 258.885273][ T7397] bcachefs (loop2): check_inodes... [ 258.886359][ T7397] bcachefs (loop2): inode points to missing dirent [ 258.886375][ T7397] inum: 4098:4294967295 [ 258.886386][ T7397] mode=40755 [ 258.886395][ T7397] flags=(15300000) [ 258.886404][ T7397] journal_seq=4 [ 258.886413][ T7397] hash_seed=ece93825deac2443 [ 258.886425][ T7397] hash_type=siphash [ 258.886435][ T7397] bi_size=0 [ 258.886444][ T7397] bi_sectors=0 [ 258.886453][ T7397] bi_version=0 [ 258.886463][ T7397] bi_atime=2770562249 [ 258.886472][ T7397] bi_ctime=2780562352 [ 258.886482][ T7397] bi_mtime=2780562352 [ 258.886491][ T7397] bi_otime=2770562249 [ 258.886501][ T7397] bi_uid=0 [ 258.886510][ T7397] bi_gid=0 [ 258.886519][ T7397] bi_nlink=0 [ 258.886528][ T7397] bi_generation=0 [ 258.886538][ T7397] bi_dev=0 [ 258.886546][ T7397] bi_data_checksum=0 [ 258.886557][ T7397] bi_compression=0 [ 258.886566][ T7397] bi_project=0 [ 258.886575][ T7397] bi_background_compression=0 [ 258.886586][ T7397] bi_data_replicas=0 [ 258.886595][ T7397] bi_promote_target=0 [ 258.886605][ T7397] bi_foreground_target=64 [ 258.886615][ T7397] bi_background_target=1 [ 258.886625][ T7397] bi_erasure_code=0 [ 258.886636][ T7397] bi_fields_set=0 [ 258.886646][ T7397] bi_dir=0 [ 258.886654][ T7397] bi_dir_offset=32 [ 258.886664][ T7397] bi_subvol=0 [ 258.886674][ T7397] bi_parent_subvol=0 [ 258.886683][ T7397] bi_nocow=0 [ 258.886692][ T7397] bi_depth=0 [ 258.886702][ T7397] bi_inodes_32bit=0 [ 258.886711][ T7397] bi_casefold=0, fixing [ 258.888826][ T7397] done [ 258.893841][ T7397] bcachefs (loop2): check_extents... done [ 258.895948][ T7397] bcachefs (loop2): check_indirect_extents... done [ 258.896771][ T7397] bcachefs (loop2): check_dirents... [ 258.898939][ T7397] bcachefs (loop2): directory with missing backpointer [ 258.898956][ T7397] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 258.898971][ T7397] inum: 4098:4294967295 [ 258.898980][ T7397] mode=40755 [ 258.898989][ T7397] flags=(11300000) [pid 7541] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [ 258.898998][ T7397] journal_seq=23 [ 258.899008][ T7397] hash_seed=ece93825deac2443 [ 258.899018][ T7397] hash_type=siphash [ 258.899030][ T7397] bi_size=0 [ 258.899039][ T7397] bi_sectors=0 [ 258.899048][ T7397] bi_version=0 [ 258.899057][ T7397] bi_atime=2770562249 [ 258.899069][ T7397] bi_ctime=2780562352 [ 258.899078][ T7397] bi_mtime=2780562352 [ 258.899088][ T7397] bi_otime=2770562249 [ 258.899098][ T7397] bi_uid=0 [ 258.899107][ T7397] bi_gid=0 [ 258.899115][ T7397] bi_nlink=0 [pid 7541] munmap(0x7fbbeb93a000, 138412032) = 0 [pid 7541] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7541] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 7541] close(3) = 0 [pid 7541] close(4) = 0 [pid 7541] mkdir("./file1", 0777) = 0 [ 258.899125][ T7397] bi_generation=0 [ 258.899136][ T7397] bi_dev=0 [ 258.899145][ T7397] bi_data_checksum=0 [ 258.899662][ T7397] bi_compression=0 [ 258.899674][ T7397] bi_project=0 [ 258.899683][ T7397] bi_background_compression=0 [ 258.899693][ T7397] bi_data_replicas=0 [ 258.899704][ T7397] bi_promote_target=0 [ 258.899713][ T7397] bi_foreground_target=64 [ 258.899725][ T7397] bi_background_target=1 [ 258.899734][ T7397] bi_erasure_code=0 [ 258.899744][ T7397] bi_fields_set=0 [ 258.899753][ T7397] bi_dir=0 [ 258.899762][ T7397] bi_dir_offset=0 [ 258.899772][ T7397] bi_subvol=0 [ 258.899782][ T7397] bi_parent_subvol=0 [ 258.899792][ T7397] bi_nocow=0 [ 258.899810][ T7397] bi_depth=0 [ 258.899819][ T7397] bi_inodes_32bit=0 [ 258.899829][ T7397] bi_casefold=0, fixing [ 258.906119][ T7397] done [ 258.906943][ T7397] bcachefs (loop2): check_xattrs... done [ 258.908199][ T7397] bcachefs (loop2): check_root... done [ 258.910207][ T7397] bcachefs (loop2): check_unreachable_inodes... done [ 258.911245][ T7397] bcachefs (loop2): check_subvolume_structure... done [ 258.912047][ T7397] bcachefs (loop2): check_directory_structure... done [ 258.912893][ T7397] bcachefs (loop2): check_nlinks... [ 258.913594][ T7397] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 258.914670][ T7397] done [ 258.915367][ T7397] bcachefs (loop2): check_rebalance_work... done [ 258.916532][ T7397] bcachefs (loop2): resume_logged_ops... done [ 258.917301][ T7397] bcachefs (loop2): delete_dead_inodes... done [ 258.926843][ T7397] bcachefs (loop2): set_fs_needs_rebalance... [ 258.935084][ T7406] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 258.935110][ T7406] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 258.938147][ T7397] done [ 258.940136][ T7397] bcachefs (loop2): check_extents_to_backpointers... [ 258.941564][ T7397] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 258.942987][ T7406] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 258.946104][ T7397] done [ 258.957558][ T7397] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 258.957586][ T7397] bcachefs (loop2): check_alloc_info... done [ 258.963138][ T7397] bcachefs (loop2): check_lrus... done [ 258.964345][ T7397] bcachefs (loop2): check_btree_backpointers... done [ 258.965516][ T7397] bcachefs (loop2): check_backpointers_to_extents... done [ 258.966986][ T7397] bcachefs (loop2): check_extents_to_backpointers... [ 258.967869][ T7397] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 258.969292][ T7397] done [ 258.969307][ T7397] bcachefs (loop2): check_alloc_to_lru_refs... done [ 258.972855][ T7397] bcachefs (loop2): bucket_gens_init... done [ 258.974943][ T7397] bcachefs (loop2): check_snapshot_trees... done [ 258.976000][ T7397] bcachefs (loop2): check_snapshots... done [ 258.976887][ T7397] bcachefs (loop2): check_subvols... done [ 258.977690][ T7397] bcachefs (loop2): check_subvol_children... done [ 258.978473][ T7397] bcachefs (loop2): delete_dead_snapshots... done [ 258.980136][ T7397] bcachefs (loop2): check_inodes... done [ 258.981394][ T7397] bcachefs (loop2): check_extents... done [ 258.983359][ T7397] bcachefs (loop2): check_indirect_extents... done [ 258.984205][ T7397] bcachefs (loop2): check_dirents... done [ 258.985730][ T7397] bcachefs (loop2): check_xattrs... done [ 258.986634][ T7397] bcachefs (loop2): check_root... done [ 258.987426][ T7397] bcachefs (loop2): check_unreachable_inodes... done [ 258.988368][ T7397] bcachefs (loop2): check_subvolume_structure... done [ 258.989151][ T7397] bcachefs (loop2): check_directory_structure... done [ 258.990946][ T7397] bcachefs (loop2): check_nlinks... done [ 258.992159][ T7397] bcachefs (loop2): check_rebalance_work... done [ 258.993461][ T7397] bcachefs (loop2): resume_logged_ops... done [ 258.994301][ T7397] bcachefs (loop2): delete_dead_inodes... done [ 258.995165][ T7397] bcachefs (loop2): set_fs_needs_rebalance... done [ 258.998801][ T7397] bcachefs (loop2): done starting filesystem [ 259.071285][ T5839] bcachefs (loop2): shutting down [ 259.071306][ T5839] bcachefs (loop2): going read-only [ 259.071338][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 259.115649][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 259.116446][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 259.117308][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [pid 7541] mount("/dev/loop2", "./file1", "bcachefs", MS_POSIXACL|MS_I_VERSION, "\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\xff\xff\xff\xff") = 0 [ 259.119104][ T5839] bcachefs (loop2): marking filesystem clean [ 259.119825][ T5902] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 259.119825][ T5902] rw journal devs: [ 259.168157][ T5839] bcachefs (loop2): shutdown complete [ 259.960767][ T7408] loop2: detected capacity change from 0 to 32768 [ 260.103193][ T7408] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 260.103220][ T7408] allowing incompatible features above 0.0: (unknown version) [pid 7541] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 7541] chdir("./file1") = 0 [pid 7541] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 7541] ioctl(4, LOOP_CLR_FD) = 0 [pid 7541] close(4) = 0 [pid 7541] write(-1, NULL, 0) = -1 EBADF (Bad file descriptor) [pid 7541] exit_group(0) = ? [pid 7541] +++ exited with 0 +++ [pid 5839] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=7541, si_uid=0, si_status=0, si_utime=9 /* 0.09 s */, si_stime=44 /* 0.44 s */} --- [pid 5839] umount2("./115", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./115", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5839] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 4 entries */, 32768) = 112 [ 260.103235][ T7408] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 260.103263][ T7408] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 260.103399][ T7408] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 260.103633][ T7408] bcachefs (loop2): Version upgrade required: [ 260.103633][ T7408] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 260.103633][ T7408] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 260.103633][ T7408] 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,check_rebalance_work,set_fs_needs_rebalance [ 260.122759][ T7408] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 260.122785][ T7408] size != 0, deleting [ 260.123962][ T7408] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 260.127262][ T7408] bcachefs (loop2): check_topology... done [ 260.128724][ T7408] bcachefs (loop2): accounting_read... done [ 260.163816][ T7408] bcachefs (loop2): alloc_read... done [ 260.164780][ T7408] bcachefs (loop2): snapshots_read... done [ 260.165622][ T7408] bcachefs (loop2): check_allocations... [ 260.167598][ T7408] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 260.167617][ T7408] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 260.170889][ T7408] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 260.170908][ T7408] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 260.172315][ T7408] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 260.172332][ T7408] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 260.174246][ T7408] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 260.174263][ T7408] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 260.176749][ T7408] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 260.176767][ T7408] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 260.177715][ T7408] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.177840][ T7408] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.178394][ T7408] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.178494][ T7408] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.178925][ T7408] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.179032][ T7408] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.181432][ T7408] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.181543][ T7408] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.181776][ T7408] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.181884][ T7408] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.182090][ T7408] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [pid 5839] umount2("./115/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = 0 [pid 5839] umount2("./115/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] newfstatat(AT_FDCWD, "./115/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [ 260.182204][ T7408] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.182407][ T7408] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.182511][ T7408] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 260.182721][ T7408] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 260.182825][ T7408] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [pid 5839] umount2("./115/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5839] openat(AT_FDCWD, "./115/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5839] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5839] getdents64(4, 0x5555901cf830 /* 2 entries */, 32768) = 48 [pid 5839] getdents64(4, 0x5555901cf830 /* 0 entries */, 32768) = 0 [pid 5839] close(4) = 0 [pid 5839] rmdir("./115/file1") = 0 [pid 5839] umount2("./115/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 260.183025][ T7408] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 260.183129][ T7408] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 260.183330][ T7408] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 260.183437][ T7408] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [pid 5839] newfstatat(AT_FDCWD, "./115/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5839] unlink("./115/binderfs") = 0 [pid 5839] getdents64(3, 0x5555901c77f0 /* 0 entries */, 32768) = 0 [pid 5839] close(3) = 0 [pid 5839] rmdir("./115") = 0 [pid 5839] mkdir("./116", 0777) = 0 [pid 5839] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5839] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [ 260.184175][ T7408] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 260.184199][ T7408] Ratelimiting new instances of previous error [ 260.184339][ T7408] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 260.184356][ T7408] Ratelimiting new instances of previous error [ 260.198331][ T7408] done [ 260.200888][ T7408] bcachefs (loop2): going read-write [ 260.206651][ T7408] bcachefs (loop2): journal_replay... done [ 260.233633][ T7408] bcachefs (loop2): check_alloc_info... [pid 5839] close(3) = 0 [pid 5839] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x5555901c6750) = 7553 ./strace-static-x86_64: Process 7553 attached [pid 7553] set_robust_list(0x5555901c6760, 24) = 0 [pid 7553] chdir("./116") = 0 [pid 7553] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 7553] setpgid(0, 0) = 0 [ 260.235459][ T7408] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 260.235478][ T7408] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 260.235489][ T7408] gen 0 oldest_gen 0 data_type need_discard [ 260.235501][ T7408] journal_seq_nonempty 6 [ 260.235512][ T7408] journal_seq_empty 0 [ 260.235522][ T7408] need_discard 1 [ 260.235532][ T7408] need_inc_gen 1 [ 260.235542][ T7408] dirty_sectors 0 [ 260.235552][ T7408] stripe_sectors 0 [ 260.235562][ T7408] cached_sectors 0 [pid 7553] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 7553] write(3, "1000", 4) = 4 [pid 7553] close(3) = 0 [pid 7553] symlink("/dev/binderfs", "./binderfs") = 0 [pid 7553] write(1, "executing program\n", 18executing program ) = 18 [pid 7553] memfd_create("syzkaller", 0) = 3 [ 260.235572][ T7408] stripe 0 [ 260.235582][ T7408] stripe_redundancy 0 [ 260.235591][ T7408] io_time[READ] 1 [ 260.235602][ T7408] io_time[WRITE] 768 [ 260.235612][ T7408] fragmentation 0 [ 260.235622][ T7408] bp_start 8 [ 260.235631][ T7408] , fixing [ 260.254000][ T7408] done [ 260.258996][ T7408] bcachefs (loop2): check_lrus... done [ 260.260583][ T7408] bcachefs (loop2): check_btree_backpointers... done [pid 7553] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fbbeb93a000 [ 260.263569][ T7408] bcachefs (loop2): check_backpointers_to_extents... done [ 260.268011][ T7408] bcachefs (loop2): check_extents_to_backpointers... [ 260.270707][ T7408] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 260.272220][ T7408] done [ 260.272980][ T7408] bcachefs (loop2): check_alloc_to_lru_refs... [ 260.274860][ T7408] bcachefs (loop2): missing fragmentation lru entry [ 260.274878][ T7408] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 260.274889][ T7408] gen 0 oldest_gen 0 data_type user [ 260.274900][ T7408] journal_seq_nonempty 5 [ 260.274911][ T7408] journal_seq_empty 134217728 [ 260.274922][ T7408] need_discard 1 [ 260.274932][ T7408] need_inc_gen 1 [ 260.274942][ T7408] dirty_sectors 16 [ 260.274952][ T7408] stripe_sectors 1802251 [ 260.274963][ T7408] cached_sectors 0 [ 260.274974][ T7408] stripe 0 [ 260.274985][ T7408] stripe_redundancy 0 [ 260.274994][ T7408] io_time[READ] 1 [ 260.275004][ T7408] io_time[WRITE] 512 [ 260.275014][ T7408] fragmentation 0 [ 260.275024][ T7408] bp_start 7 [ 260.275034][ T7408] , fixing [ 260.276607][ T7408] done [ 260.278135][ T7408] bcachefs (loop2): bucket_gens_init... done [ 260.284331][ T7408] bcachefs (loop2): check_snapshot_trees... done [ 260.285678][ T7408] bcachefs (loop2): check_snapshots... [ 260.286252][ T7408] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 260.286268][ T7408] u64s 8 type snapshot 0:[ 260.286268][ T7408] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 260.297126][ T7408] done [ 260.297867][ T7408] bcachefs (loop2): check_subvols... done [ 260.299740][ T7408] bcachefs (loop2): check_subvol_children... done [ 260.300839][ T7408] bcachefs (loop2): delete_dead_snapshots... done [ 260.301599][ T7408] bcachefs (loop2): check_inodes... [ 260.303267][ T7408] bcachefs (loop2): inode points to missing dirent [ 260.303285][ T7408] inum: 4098:4294967295 [ 260.303295][ T7408] mode=40755 [ 260.303304][ T7408] flags=(15300000) [ 260.303314][ T7408] journal_seq=4 [ 260.303323][ T7408] hash_seed=ece93825deac2443 [ 260.303336][ T7408] hash_type=siphash [ 260.303345][ T7408] bi_size=0 [ 260.303355][ T7408] bi_sectors=0 [ 260.303364][ T7408] bi_version=0 [ 260.303373][ T7408] bi_atime=2770562249 [ 260.303383][ T7408] bi_ctime=2780562352 [ 260.303392][ T7408] bi_mtime=2780562352 [ 260.303402][ T7408] bi_otime=2770562249 [ 260.303410][ T7408] bi_uid=0 [ 260.303419][ T7408] bi_gid=0 [ 260.303429][ T7408] bi_nlink=0 [ 260.303438][ T7408] bi_generation=0 [ 260.303447][ T7408] bi_dev=0 [ 260.303464][ T7408] bi_data_checksum=0 [ 260.303474][ T7408] bi_compression=0 [ 260.303493][ T7408] bi_project=0 [ 260.303502][ T7408] bi_background_compression=0 [ 260.303513][ T7408] bi_data_replicas=0 [ 260.303522][ T7408] bi_promote_target=0 [ 260.303533][ T7408] bi_foreground_target=64 [ 260.303544][ T7408] bi_background_target=1 [ 260.303553][ T7408] bi_erasure_code=0 [ 260.303563][ T7408] bi_fields_set=0 [ 260.303573][ T7408] bi_dir=0 [ 260.303581][ T7408] bi_dir_offset=32 [ 260.303591][ T7408] bi_subvol=0 [ 260.303600][ T7408] bi_parent_subvol=0 [ 260.303610][ T7408] bi_nocow=0 [ 260.303619][ T7408] bi_depth=0 [ 260.303628][ T7408] bi_inodes_32bit=0 [ 260.303638][ T7408] bi_casefold=0, fixing [ 260.305326][ T7408] done [ 260.306011][ T7408] bcachefs (loop2): check_extents... done [ 260.307446][ T7408] bcachefs (loop2): check_indirect_extents... done [ 260.308265][ T7408] bcachefs (loop2): check_dirents... [ 260.310528][ T7408] bcachefs (loop2): directory with missing backpointer [ 260.310545][ T7408] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 260.310558][ T7408] inum: 4098:4294967295 [ 260.310568][ T7408] mode=40755 [ 260.310577][ T7408] flags=(11300000) [ 260.310588][ T7408] journal_seq=22 [ 260.310598][ T7408] hash_seed=ece93825deac2443 [ 260.310607][ T7408] hash_type=siphash [ 260.310616][ T7408] bi_size=0 [ 260.310626][ T7408] bi_sectors=0 [ 260.310634][ T7408] bi_version=0 [ 260.310643][ T7408] bi_atime=2770562249 [ 260.310661][ T7408] bi_ctime=2780562352 [ 260.310671][ T7408] bi_mtime=2780562352 [ 260.310680][ T7408] bi_otime=2770562249 [ 260.310690][ T7408] bi_uid=0 [ 260.310698][ T7408] bi_gid=0 [ 260.310707][ T7408] bi_nlink=0 [ 260.310716][ T7408] bi_generation=0 [ 260.310725][ T7408] bi_dev=0 [ 260.310734][ T7408] bi_data_checksum=0 [ 260.310743][ T7408] bi_compression=0 [ 260.310752][ T7408] bi_project=0 [ 260.310761][ T7408] bi_background_compression=0 [ 260.310771][ T7408] bi_data_replicas=0 [ 260.310781][ T7408] bi_promote_target=0 [ 260.310790][ T7408] bi_foreground_target=64 [ 260.310799][ T7408] bi_background_target=1 [ 260.310809][ T7408] bi_erasure_code=0 [ 260.310818][ T7408] bi_fields_set=0 [ 260.310827][ T7408] bi_dir=0 [ 260.310836][ T7408] bi_dir_offset=0 [ 260.310845][ T7408] bi_subvol=0 [ 260.310854][ T7408] bi_parent_subvol=0 [ 260.310864][ T7408] bi_nocow=0 [ 260.310872][ T7408] bi_depth=0 [ 260.310882][ T7408] bi_inodes_32bit=0 [ 260.310891][ T7408] bi_casefold=0, fixing [ 260.318588][ T7408] done [ 260.319412][ T7408] bcachefs (loop2): check_xattrs... done [ 260.320744][ T7408] bcachefs (loop2): check_root... done [ 260.323065][ T7408] bcachefs (loop2): check_unreachable_inodes... done [ 260.326462][ T7408] bcachefs (loop2): check_subvolume_structure... done [ 260.327477][ T7408] bcachefs (loop2): check_directory_structure... done [ 260.328300][ T7408] bcachefs (loop2): check_nlinks... [ 260.329009][ T7408] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 260.330640][ T7408] done [ 260.331359][ T7408] bcachefs (loop2): check_rebalance_work... done [ 260.332572][ T7408] bcachefs (loop2): resume_logged_ops... done [ 260.333362][ T7408] bcachefs (loop2): delete_dead_inodes... done [ 260.342599][ T7408] bcachefs (loop2): set_fs_needs_rebalance... [ 260.350793][ T7417] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 260.350818][ T7417] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 260.353780][ T7408] done [ 260.354779][ T7408] bcachefs (loop2): check_extents_to_backpointers... [ 260.355728][ T7408] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 260.362109][ T7408] done [ 260.371828][ T7408] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 260.371853][ T7408] bcachefs (loop2): check_alloc_info... done [ 260.376492][ T7408] bcachefs (loop2): check_lrus... done [ 260.378130][ T7408] bcachefs (loop2): check_btree_backpointers... done [ 260.379960][ T7408] bcachefs (loop2): check_backpointers_to_extents... done [ 260.381482][ T7408] bcachefs (loop2): check_extents_to_backpointers... done [ 260.383183][ T7408] bcachefs (loop2): check_alloc_to_lru_refs... done [ 260.385513][ T7408] bcachefs (loop2): bucket_gens_init... done [ 260.387599][ T7408] bcachefs (loop2): check_snapshot_trees... done [ 260.390047][ T7408] bcachefs (loop2): check_snapshots... done [ 260.391181][ T7408] bcachefs (loop2): check_subvols... done [ 260.392056][ T7408] bcachefs (loop2): check_subvol_children... done [ 260.392942][ T7408] bcachefs (loop2): delete_dead_snapshots... done [ 260.393827][ T7408] bcachefs (loop2): check_inodes... done [ 260.395143][ T7408] bcachefs (loop2): check_extents... done [ 260.396720][ T7408] bcachefs (loop2): check_indirect_extents... done [ 260.397598][ T7408] bcachefs (loop2): check_dirents... done [ 260.401631][ T7408] bcachefs (loop2): check_xattrs... done [ 260.402467][ T7408] bcachefs (loop2): check_root... done [ 260.403255][ T7408] bcachefs (loop2): check_unreachable_inodes... done [ 260.404228][ T7408] bcachefs (loop2): check_subvolume_structure... done [ 260.405045][ T7408] bcachefs (loop2): check_directory_structure... done [ 260.405822][ T7408] bcachefs (loop2): check_nlinks... done [ 260.407043][ T7408] bcachefs (loop2): check_rebalance_work... done [ 260.407974][ T7408] bcachefs (loop2): resume_logged_ops... done [ 260.408814][ T7408] bcachefs (loop2): delete_dead_inodes... done [ 260.411269][ T7408] bcachefs (loop2): set_fs_needs_rebalance... done [ 260.415055][ T7408] bcachefs (loop2): done starting filesystem [ 260.499897][ T5839] bcachefs (loop2): shutting down [ 260.499918][ T5839] bcachefs (loop2): going read-only [ 260.499949][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 260.543604][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 260.544560][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 260.545394][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 260.547152][ T5839] bcachefs (loop2): marking filesystem clean [ 260.547641][ T5902] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 260.547641][ T5902] rw journal devs: [ 260.605858][ T5839] bcachefs (loop2): shutdown complete [ 261.398737][ T7419] loop2: detected capacity change from 0 to 32768 [ 261.547555][ T7419] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 261.547584][ T7419] allowing incompatible features above 0.0: (unknown version) [ 261.547599][ T7419] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 261.547627][ T7419] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 261.547752][ T7419] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 261.547994][ T7419] bcachefs (loop2): Version upgrade required: [ 261.547994][ T7419] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 261.547994][ T7419] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 261.547994][ T7419] 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,check_rebalance_work,set_fs_needs_rebalance [ 261.567442][ T7419] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 261.567469][ T7419] size != 0, deleting [ 261.568625][ T7419] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 261.572852][ T7419] bcachefs (loop2): check_topology... done [ 261.574327][ T7419] bcachefs (loop2): accounting_read... done [ 261.610321][ T7419] bcachefs (loop2): alloc_read... done [ 261.611275][ T7419] bcachefs (loop2): snapshots_read... done [ 261.612120][ T7419] bcachefs (loop2): check_allocations... [ 261.614774][ T7419] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 261.614796][ T7419] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 261.616919][ T7419] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 261.616937][ T7419] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 261.618349][ T7419] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 261.618366][ T7419] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 261.621209][ T7419] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 261.621228][ T7419] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 261.623795][ T7419] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 261.623814][ T7419] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 261.624871][ T7419] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.625001][ T7419] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.625572][ T7419] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.625679][ T7419] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.626136][ T7419] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.626252][ T7419] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.626468][ T7419] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.626585][ T7419] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.626803][ T7419] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.626906][ T7419] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.627109][ T7419] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.627209][ T7419] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.627402][ T7419] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.627501][ T7419] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 261.627709][ T7419] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 261.627809][ T7419] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 261.628005][ T7419] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 261.628108][ T7419] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 261.628305][ T7419] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 261.628405][ T7419] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 261.628656][ T7419] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 261.628672][ T7419] Ratelimiting new instances of previous error [ 261.628797][ T7419] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 261.628811][ T7419] Ratelimiting new instances of previous error [ 261.642882][ T7419] done [ 261.645119][ T7419] bcachefs (loop2): going read-write [ 261.649912][ T7419] bcachefs (loop2): journal_replay... done [ 261.679088][ T7419] bcachefs (loop2): check_alloc_info... [ 261.681373][ T7419] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 261.681405][ T7419] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 261.681416][ T7419] gen 0 oldest_gen 0 data_type need_discard [ 261.681427][ T7419] journal_seq_nonempty 6 [ 261.681437][ T7419] journal_seq_empty 0 [ 261.681446][ T7419] need_discard 1 [ 261.681456][ T7419] need_inc_gen 1 [ 261.681466][ T7419] dirty_sectors 0 [ 261.681476][ T7419] stripe_sectors 0 [ 261.681486][ T7419] cached_sectors 0 [ 261.681496][ T7419] stripe 0 [ 261.681514][ T7419] stripe_redundancy 0 [ 261.681524][ T7419] io_time[READ] 1 [ 261.681533][ T7419] io_time[WRITE] 768 [ 261.681543][ T7419] fragmentation 0 [ 261.681553][ T7419] bp_start 8 [ 261.681562][ T7419] , fixing [ 261.697984][ T7419] done [ 261.698588][ T7419] bcachefs (loop2): check_lrus... done [ 261.705367][ T7419] bcachefs (loop2): check_btree_backpointers... done [ 261.706781][ T7419] bcachefs (loop2): check_backpointers_to_extents... done [ 261.711745][ T7419] bcachefs (loop2): check_extents_to_backpointers... [ 261.713213][ T7419] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 261.714705][ T7419] done [ 261.715962][ T7419] bcachefs (loop2): check_alloc_to_lru_refs... [ 261.717826][ T7419] bcachefs (loop2): missing fragmentation lru entry [ 261.717842][ T7419] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 261.717851][ T7419] gen 0 oldest_gen 0 data_type user [ 261.717859][ T7419] journal_seq_nonempty 5 [ 261.717870][ T7419] journal_seq_empty 134217728 [ 261.717880][ T7419] need_discard 1 [ 261.717887][ T7419] need_inc_gen 1 [ 261.717895][ T7419] dirty_sectors 16 [ 261.717905][ T7419] stripe_sectors 1802251 [ 261.717915][ T7419] cached_sectors 0 [ 261.717927][ T7419] stripe 0 [ 261.717936][ T7419] stripe_redundancy 0 [ 261.717947][ T7419] io_time[READ] 1 [ 261.717957][ T7419] io_time[WRITE] 512 [ 261.717967][ T7419] fragmentation 0 [ 261.717977][ T7419] bp_start 7 [ 261.717987][ T7419] , fixing [ 261.721741][ T7419] done [ 261.723281][ T7419] bcachefs (loop2): bucket_gens_init... done [ 261.725376][ T7419] bcachefs (loop2): check_snapshot_trees... done [ 261.726641][ T7419] bcachefs (loop2): check_snapshots... [ 261.727204][ T7419] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 261.727221][ T7419] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 261.738913][ T7419] done [ 261.740015][ T7419] bcachefs (loop2): check_subvols... done [ 261.741653][ T7419] bcachefs (loop2): check_subvol_children... done [ 261.742522][ T7419] bcachefs (loop2): delete_dead_snapshots... done [ 261.743318][ T7419] bcachefs (loop2): check_inodes... [ 261.744421][ T7419] bcachefs (loop2): inode points to missing dirent [ 261.744436][ T7419] inum: 4098:4294967295 [ 261.744446][ T7419] mode=40755 [ 261.744457][ T7419] flags=(15300000) [ 261.744466][ T7419] journal_seq=4 [ 261.744476][ T7419] hash_seed=ece93825deac2443 [ 261.744486][ T7419] hash_type=siphash [ 261.744504][ T7419] bi_size=0 [ 261.744513][ T7419] bi_sectors=0 [ 261.744522][ T7419] bi_version=0 [ 261.744532][ T7419] bi_atime=2770562249 [ 261.744542][ T7419] bi_ctime=2780562352 [ 261.744551][ T7419] bi_mtime=2780562352 [ 261.744562][ T7419] bi_otime=2770562249 [ 261.744571][ T7419] bi_uid=0 [ 261.744580][ T7419] bi_gid=0 [ 261.744589][ T7419] bi_nlink=0 [ 261.744598][ T7419] bi_generation=0 [ 261.744607][ T7419] bi_dev=0 [ 261.744617][ T7419] bi_data_checksum=0 [ 261.744626][ T7419] bi_compression=0 [ 261.744635][ T7419] bi_project=0 [ 261.744645][ T7419] bi_background_compression=0 [ 261.744655][ T7419] bi_data_replicas=0 [ 261.744665][ T7419] bi_promote_target=0 [ 261.744676][ T7419] bi_foreground_target=64 [ 261.744686][ T7419] bi_background_target=1 [ 261.744696][ T7419] bi_erasure_code=0 [ 261.744706][ T7419] bi_fields_set=0 [ 261.744715][ T7419] bi_dir=0 [ 261.744724][ T7419] bi_dir_offset=32 [ 261.744734][ T7419] bi_subvol=0 [ 261.744743][ T7419] bi_parent_subvol=0 [ 261.744753][ T7419] bi_nocow=0 [ 261.744762][ T7419] bi_depth=0 [ 261.744771][ T7419] bi_inodes_32bit=0 [ 261.744781][ T7419] bi_casefold=0, fixing [ 261.746398][ T7419] done [ 261.747607][ T7419] bcachefs (loop2): check_extents... done [ 261.749096][ T7419] bcachefs (loop2): check_indirect_extents... done [ 261.751643][ T7419] bcachefs (loop2): check_dirents... [ 261.754520][ T7419] bcachefs (loop2): directory with missing backpointer [ 261.754537][ T7419] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 261.754551][ T7419] inum: 4098:4294967295 [ 261.754561][ T7419] mode=40755 [ 261.754570][ T7419] flags=(11300000) [ 261.754581][ T7419] journal_seq=22 [ 261.754591][ T7419] hash_seed=ece93825deac2443 [ 261.754601][ T7419] hash_type=siphash [ 261.754610][ T7419] bi_size=0 [ 261.754619][ T7419] bi_sectors=0 [ 261.754629][ T7419] bi_version=0 [ 261.754638][ T7419] bi_atime=2770562249 [ 261.754648][ T7419] bi_ctime=2780562352 [ 261.754657][ T7419] bi_mtime=2780562352 [ 261.754667][ T7419] bi_otime=2770562249 [ 261.754677][ T7419] bi_uid=0 [ 261.754686][ T7419] bi_gid=0 [ 261.754695][ T7419] bi_nlink=0 [ 261.754704][ T7419] bi_generation=0 [ 261.754713][ T7419] bi_dev=0 [ 261.754722][ T7419] bi_data_checksum=0 [ 261.754732][ T7419] bi_compression=0 [ 261.754742][ T7419] bi_project=0 [ 261.754751][ T7419] bi_background_compression=0 [ 261.754761][ T7419] bi_data_replicas=0 [ 261.754771][ T7419] bi_promote_target=0 [ 261.754782][ T7419] bi_foreground_target=64 [ 261.754792][ T7419] bi_background_target=1 [ 261.754801][ T7419] bi_erasure_code=0 [ 261.754811][ T7419] bi_fields_set=0 [ 261.754821][ T7419] bi_dir=0 [ 261.754830][ T7419] bi_dir_offset=0 [ 261.754839][ T7419] bi_subvol=0 [ 261.754849][ T7419] bi_parent_subvol=0 [ 261.754858][ T7419] bi_nocow=0 [ 261.754867][ T7419] bi_depth=0 [ 261.754876][ T7419] bi_inodes_32bit=0 [ 261.754886][ T7419] bi_casefold=0, fixing [ 261.761144][ T7419] done [ 261.761792][ T7419] bcachefs (loop2): check_xattrs... done [ 261.762954][ T7419] bcachefs (loop2): check_root... done [ 261.765233][ T7419] bcachefs (loop2): check_unreachable_inodes... done [ 261.767036][ T7419] bcachefs (loop2): check_subvolume_structure... done [ 261.767911][ T7419] bcachefs (loop2): check_directory_structure... done [ 261.769336][ T7419] bcachefs (loop2): check_nlinks... [ 261.770050][ T7419] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 261.771598][ T7419] done [ 261.772280][ T7419] bcachefs (loop2): check_rebalance_work... done [ 261.773529][ T7419] bcachefs (loop2): resume_logged_ops... done [ 261.774352][ T7419] bcachefs (loop2): delete_dead_inodes... done [ 261.822548][ T7419] bcachefs (loop2): set_fs_needs_rebalance... [ 261.829516][ T7428] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 261.829538][ T7428] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 261.833425][ T7419] done [ 261.834106][ T7419] bcachefs (loop2): check_extents_to_backpointers... [ 261.835058][ T7419] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 261.836659][ T7428] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 261.841858][ T7419] done [ 261.851698][ T7419] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 261.851723][ T7419] bcachefs (loop2): check_alloc_info... done [ 261.857017][ T7419] bcachefs (loop2): check_lrus... done [ 261.858169][ T7419] bcachefs (loop2): check_btree_backpointers... done [ 261.860541][ T7419] bcachefs (loop2): check_backpointers_to_extents... done [ 261.862071][ T7419] bcachefs (loop2): check_extents_to_backpointers... [ 261.862976][ T7419] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 261.864271][ T7419] done [ 261.864286][ T7419] bcachefs (loop2): check_alloc_to_lru_refs... done [ 261.866563][ T7419] bcachefs (loop2): bucket_gens_init... done [ 261.868618][ T7419] bcachefs (loop2): check_snapshot_trees... done [ 261.871235][ T7419] bcachefs (loop2): check_snapshots... done [ 261.872123][ T7419] bcachefs (loop2): check_subvols... done [ 261.872966][ T7419] bcachefs (loop2): check_subvol_children... done [ 261.873671][ T7419] bcachefs (loop2): delete_dead_snapshots... done [ 261.874405][ T7419] bcachefs (loop2): check_inodes... done [ 261.875615][ T7419] bcachefs (loop2): check_extents... done [ 261.877050][ T7419] bcachefs (loop2): check_indirect_extents... done [ 261.877765][ T7419] bcachefs (loop2): check_dirents... done [ 261.880797][ T7419] bcachefs (loop2): check_xattrs... done [ 261.881737][ T7419] bcachefs (loop2): check_root... done [ 261.882530][ T7419] bcachefs (loop2): check_unreachable_inodes... done [ 261.883434][ T7419] bcachefs (loop2): check_subvolume_structure... done [ 261.884173][ T7419] bcachefs (loop2): check_directory_structure... done [ 261.884978][ T7419] bcachefs (loop2): check_nlinks... done [ 261.886141][ T7419] bcachefs (loop2): check_rebalance_work... done [ 261.886966][ T7419] bcachefs (loop2): resume_logged_ops... done [ 261.887730][ T7419] bcachefs (loop2): delete_dead_inodes... done [ 261.888581][ T7419] bcachefs (loop2): set_fs_needs_rebalance... done [ 261.894640][ T7419] bcachefs (loop2): done starting filesystem [ 262.001503][ T5839] bcachefs (loop2): shutting down [ 262.001524][ T5839] bcachefs (loop2): going read-only [ 262.001552][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 262.040164][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 262.040555][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 262.041727][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 262.043524][ T5839] bcachefs (loop2): marking filesystem clean [ 262.096164][ T5839] bcachefs (loop2): shutdown complete [ 262.928150][ T7430] loop2: detected capacity change from 0 to 32768 [ 263.076235][ T7430] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 263.076264][ T7430] allowing incompatible features above 0.0: (unknown version) [ 263.076279][ T7430] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 263.076306][ T7430] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 263.076441][ T7430] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 263.076680][ T7430] bcachefs (loop2): Version upgrade required: [ 263.076680][ T7430] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 263.076680][ T7430] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 263.076680][ T7430] 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,check_rebalance_work,set_fs_needs_rebalance [ 263.095771][ T7430] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 263.095799][ T7430] size != 0, deleting [ 263.096989][ T7430] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 263.101041][ T7430] bcachefs (loop2): check_topology... done [ 263.102879][ T7430] bcachefs (loop2): accounting_read... done [ 263.140237][ T7430] bcachefs (loop2): alloc_read... done [ 263.141157][ T7430] bcachefs (loop2): snapshots_read... done [ 263.142050][ T7430] bcachefs (loop2): check_allocations... [ 263.144613][ T7430] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 263.144636][ T7430] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 263.146689][ T7430] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 263.146708][ T7430] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 263.148083][ T7430] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 263.148102][ T7430] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 263.151412][ T7430] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 263.151442][ T7430] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 263.154495][ T7430] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 263.154514][ T7430] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 263.155477][ T7430] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.155602][ T7430] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.156167][ T7430] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.156273][ T7430] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.156699][ T7430] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.156814][ T7430] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.157016][ T7430] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.157124][ T7430] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.157327][ T7430] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.157439][ T7430] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.157645][ T7430] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.157752][ T7430] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.157953][ T7430] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.158059][ T7430] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 263.158276][ T7430] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 263.158379][ T7430] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 263.158595][ T7430] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 263.158704][ T7430] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 263.158922][ T7430] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 263.159029][ T7430] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 263.159846][ T7430] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 263.159864][ T7430] Ratelimiting new instances of previous error [ 263.160020][ T7430] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 263.160037][ T7430] Ratelimiting new instances of previous error [ 263.174405][ T7430] done [ 263.176574][ T7430] bcachefs (loop2): going read-write [ 263.182959][ T7430] bcachefs (loop2): journal_replay... done [ 263.210589][ T7430] bcachefs (loop2): check_alloc_info... [ 263.212458][ T7430] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 263.212476][ T7430] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 263.212490][ T7430] gen 0 oldest_gen 0 data_type need_discard [ 263.212501][ T7430] journal_seq_nonempty 6 [ 263.212511][ T7430] journal_seq_empty 0 [ 263.212521][ T7430] need_discard 1 [ 263.212531][ T7430] need_inc_gen 1 [ 263.212556][ T7430] dirty_sectors 0 [ 263.212566][ T7430] stripe_sectors 0 [ 263.212576][ T7430] cached_sectors 0 [ 263.212586][ T7430] stripe 0 [ 263.212597][ T7430] stripe_redundancy 0 [ 263.212608][ T7430] io_time[READ] 1 [ 263.212618][ T7430] io_time[WRITE] 768 [ 263.212628][ T7430] fragmentation 0 [ 263.212638][ T7430] bp_start 8 [ 263.212647][ T7430] , fixing [ 263.229394][ T7430] done [ 263.235786][ T7430] bcachefs (loop2): check_lrus... done [ 263.236870][ T7430] bcachefs (loop2): check_btree_backpointers... done [ 263.238310][ T7430] bcachefs (loop2): check_backpointers_to_extents... done [ 263.242885][ T7430] bcachefs (loop2): check_extents_to_backpointers... [ 263.244312][ T7430] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 263.247058][ T7430] done [ 263.247794][ T7430] bcachefs (loop2): check_alloc_to_lru_refs... [ 263.250480][ T7430] bcachefs (loop2): missing fragmentation lru entry [ 263.250498][ T7430] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 263.250511][ T7430] gen 0 oldest_gen 0 data_type user [ 263.250522][ T7430] journal_seq_nonempty 5 [ 263.250532][ T7430] journal_seq_empty 134217728 [ 263.250543][ T7430] need_discard 1 [ 263.250553][ T7430] need_inc_gen 1 [ 263.250563][ T7430] dirty_sectors 16 [ 263.250575][ T7430] stripe_sectors 1802251 [ 263.250585][ T7430] cached_sectors 0 [ 263.250595][ T7430] stripe 0 [ 263.250605][ T7430] stripe_redundancy 0 [ 263.250615][ T7430] io_time[READ] 1 [ 263.250625][ T7430] io_time[WRITE] 512 [ 263.250635][ T7430] fragmentation 0 [ 263.250645][ T7430] bp_start 7 [ 263.250654][ T7430] , fixing [ 263.254268][ T7430] done [ 263.255815][ T7430] bcachefs (loop2): bucket_gens_init... done [ 263.258503][ T7430] bcachefs (loop2): check_snapshot_trees... done [ 263.259858][ T7430] bcachefs (loop2): check_snapshots... [ 263.260505][ T7430] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 263.260522][ T7430] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 263.272880][ T7430] done [ 263.273658][ T7430] bcachefs (loop2): check_subvols... done [ 263.275362][ T7430] bcachefs (loop2): check_subvol_children... done [ 263.276262][ T7430] bcachefs (loop2): delete_dead_snapshots... done [ 263.277001][ T7430] bcachefs (loop2): check_inodes... [ 263.278623][ T7430] bcachefs (loop2): inode points to missing dirent [ 263.278640][ T7430] inum: 4098:4294967295 [ 263.278650][ T7430] mode=40755 [ 263.278660][ T7430] flags=(15300000) [ 263.278670][ T7430] journal_seq=4 [ 263.278679][ T7430] hash_seed=ece93825deac2443 [ 263.278689][ T7430] hash_type=siphash [ 263.278699][ T7430] bi_size=0 [ 263.278709][ T7430] bi_sectors=0 [ 263.278719][ T7430] bi_version=0 [ 263.278728][ T7430] bi_atime=2770562249 [ 263.278739][ T7430] bi_ctime=2780562352 [ 263.278748][ T7430] bi_mtime=2780562352 [ 263.278758][ T7430] bi_otime=2770562249 [ 263.278767][ T7430] bi_uid=0 [ 263.278776][ T7430] bi_gid=0 [ 263.278786][ T7430] bi_nlink=0 [ 263.278795][ T7430] bi_generation=0 [ 263.278804][ T7430] bi_dev=0 [ 263.278813][ T7430] bi_data_checksum=0 [ 263.278823][ T7430] bi_compression=0 [ 263.278832][ T7430] bi_project=0 [ 263.278842][ T7430] bi_background_compression=0 [ 263.278852][ T7430] bi_data_replicas=0 [ 263.278862][ T7430] bi_promote_target=0 [ 263.278872][ T7430] bi_foreground_target=64 [ 263.278881][ T7430] bi_background_target=1 [ 263.278893][ T7430] bi_erasure_code=0 [ 263.278902][ T7430] bi_fields_set=0 [ 263.278912][ T7430] bi_dir=0 [ 263.278921][ T7430] bi_dir_offset=32 [ 263.278930][ T7430] bi_subvol=0 [ 263.278940][ T7430] bi_parent_subvol=0 [ 263.278949][ T7430] bi_nocow=0 [ 263.278958][ T7430] bi_depth=0 [ 263.278968][ T7430] bi_inodes_32bit=0 [ 263.278977][ T7430] bi_casefold=0, fixing [ 263.285158][ T7430] done [ 263.286074][ T7430] bcachefs (loop2): check_extents... done [ 263.288938][ T7430] bcachefs (loop2): check_indirect_extents... done [ 263.290135][ T7430] bcachefs (loop2): check_dirents... [ 263.291925][ T7430] bcachefs (loop2): directory with missing backpointer [ 263.291943][ T7430] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 263.291959][ T7430] inum: 4098:4294967295 [ 263.291968][ T7430] mode=40755 [ 263.291978][ T7430] flags=(11300000) [ 263.291988][ T7430] journal_seq=22 [ 263.291997][ T7430] hash_seed=ece93825deac2443 [ 263.292007][ T7430] hash_type=siphash [ 263.292019][ T7430] bi_size=0 [ 263.292028][ T7430] bi_sectors=0 [ 263.292037][ T7430] bi_version=0 [ 263.292046][ T7430] bi_atime=2770562249 [ 263.292056][ T7430] bi_ctime=2780562352 [ 263.292066][ T7430] bi_mtime=2780562352 [ 263.292076][ T7430] bi_otime=2770562249 [ 263.292086][ T7430] bi_uid=0 [ 263.292095][ T7430] bi_gid=0 [ 263.292104][ T7430] bi_nlink=0 [ 263.292180][ T7430] bi_generation=0 [ 263.292189][ T7430] bi_dev=0 [ 263.292198][ T7430] bi_data_checksum=0 [ 263.292206][ T7430] bi_compression=0 [ 263.292214][ T7430] bi_project=0 [ 263.292223][ T7430] bi_background_compression=0 [ 263.292234][ T7430] bi_data_replicas=0 [ 263.292243][ T7430] bi_promote_target=0 [ 263.292253][ T7430] bi_foreground_target=64 [ 263.292265][ T7430] bi_background_target=1 [ 263.292275][ T7430] bi_erasure_code=0 [ 263.292284][ T7430] bi_fields_set=0 [ 263.292294][ T7430] bi_dir=0 [ 263.292303][ T7430] bi_dir_offset=0 [ 263.292312][ T7430] bi_subvol=0 [ 263.292321][ T7430] bi_parent_subvol=0 [ 263.292331][ T7430] bi_nocow=0 [ 263.292340][ T7430] bi_depth=0 [ 263.292349][ T7430] bi_inodes_32bit=0 [ 263.292359][ T7430] bi_casefold=0, fixing [ 263.294540][ T7430] done [ 263.295261][ T7430] bcachefs (loop2): check_xattrs... done [ 263.296461][ T7430] bcachefs (loop2): check_root... done [ 263.297587][ T7430] bcachefs (loop2): check_unreachable_inodes... done [ 263.299072][ T7430] bcachefs (loop2): check_subvolume_structure... done [ 263.302508][ T7430] bcachefs (loop2): check_directory_structure... done [ 263.303287][ T7430] bcachefs (loop2): check_nlinks... [ 263.304025][ T7430] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 263.307236][ T7430] done [ 263.307963][ T7430] bcachefs (loop2): check_rebalance_work... done [ 263.310068][ T7430] bcachefs (loop2): resume_logged_ops... done [ 263.310805][ T7430] bcachefs (loop2): delete_dead_inodes... done [ 263.320296][ T7430] bcachefs (loop2): set_fs_needs_rebalance... [ 263.327966][ T7439] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 263.327991][ T7439] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 263.329668][ T7430] done [ 263.331172][ T7430] bcachefs (loop2): check_extents_to_backpointers... [ 263.332175][ T7430] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 263.337271][ T7430] done [ 263.354678][ T7430] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 263.354705][ T7430] bcachefs (loop2): check_alloc_info... done [ 263.370198][ T7430] bcachefs (loop2): check_lrus... done [ 263.371315][ T7430] bcachefs (loop2): check_btree_backpointers... done [ 263.372546][ T7430] bcachefs (loop2): check_backpointers_to_extents... done [ 263.373956][ T7430] bcachefs (loop2): check_extents_to_backpointers... done [ 263.375658][ T7430] bcachefs (loop2): check_alloc_to_lru_refs... done [ 263.377712][ T7430] bcachefs (loop2): bucket_gens_init... done [ 263.381705][ T7430] bcachefs (loop2): check_snapshot_trees... done [ 263.389889][ T7430] bcachefs (loop2): check_snapshots... done [ 263.391134][ T7430] bcachefs (loop2): check_subvols... done [ 263.391864][ T7430] bcachefs (loop2): check_subvol_children... done [ 263.392677][ T7430] bcachefs (loop2): delete_dead_snapshots... done [ 263.393345][ T7430] bcachefs (loop2): check_inodes... done [ 263.394462][ T7430] bcachefs (loop2): check_extents... done [ 263.400247][ T7430] bcachefs (loop2): check_indirect_extents... done [ 263.401006][ T7430] bcachefs (loop2): check_dirents... done [ 263.403181][ T7430] bcachefs (loop2): check_xattrs... done [ 263.404199][ T7430] bcachefs (loop2): check_root... done [ 263.404985][ T7430] bcachefs (loop2): check_unreachable_inodes... done [ 263.410355][ T7430] bcachefs (loop2): check_subvolume_structure... done [ 263.411132][ T7430] bcachefs (loop2): check_directory_structure... done [ 263.412333][ T7430] bcachefs (loop2): check_nlinks... done [ 263.413599][ T7430] bcachefs (loop2): check_rebalance_work... done [ 263.420267][ T7430] bcachefs (loop2): resume_logged_ops... done [ 263.421024][ T7430] bcachefs (loop2): delete_dead_inodes... done [ 263.421807][ T7430] bcachefs (loop2): set_fs_needs_rebalance... done [ 263.425433][ T7430] bcachefs (loop2): done starting filesystem [ 263.540230][ T5839] bcachefs (loop2): shutting down [ 263.540252][ T5839] bcachefs (loop2): going read-only [ 263.540281][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 263.562941][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 263.563803][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 263.564686][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 263.566515][ T5839] bcachefs (loop2): marking filesystem clean [ 263.624567][ T5839] bcachefs (loop2): shutdown complete [ 264.445349][ T7441] loop2: detected capacity change from 0 to 32768 [ 264.580827][ T7441] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 264.580855][ T7441] allowing incompatible features above 0.0: (unknown version) [ 264.580871][ T7441] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 264.580899][ T7441] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 264.581029][ T7441] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 264.581277][ T7441] bcachefs (loop2): Version upgrade required: [ 264.581277][ T7441] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 264.581277][ T7441] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 264.581277][ T7441] 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,check_rebalance_work,set_fs_needs_rebalance [ 264.600471][ T7441] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 264.600497][ T7441] size != 0, deleting [ 264.601657][ T7441] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 264.605407][ T7441] bcachefs (loop2): check_topology... done [ 264.606871][ T7441] bcachefs (loop2): accounting_read... done [ 264.636199][ T7441] bcachefs (loop2): alloc_read... done [ 264.637186][ T7441] bcachefs (loop2): snapshots_read... done [ 264.638058][ T7441] bcachefs (loop2): check_allocations... [ 264.641074][ T7441] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 264.641095][ T7441] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 264.643175][ T7441] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 264.643196][ T7441] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 264.644636][ T7441] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 264.644654][ T7441] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 264.646724][ T7441] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 264.646742][ T7441] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 264.649673][ T7441] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 264.649692][ T7441] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 264.650668][ T7441] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.650804][ T7441] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.651350][ T7441] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.651458][ T7441] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.651855][ T7441] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.651966][ T7441] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.652169][ T7441] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.652284][ T7441] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.652494][ T7441] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.652597][ T7441] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.652797][ T7441] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.652905][ T7441] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.653099][ T7441] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.653202][ T7441] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 264.653417][ T7441] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 264.653523][ T7441] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 264.653738][ T7441] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 264.653845][ T7441] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 264.654057][ T7441] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 264.654168][ T7441] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 264.654411][ T7441] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 264.654427][ T7441] Ratelimiting new instances of previous error [ 264.654555][ T7441] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 264.654571][ T7441] Ratelimiting new instances of previous error [ 264.668836][ T7441] done [ 264.672438][ T7441] bcachefs (loop2): going read-write [ 264.678008][ T7441] bcachefs (loop2): journal_replay... done [ 264.706912][ T7441] bcachefs (loop2): check_alloc_info... [ 264.708726][ T7441] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 264.708744][ T7441] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 264.708755][ T7441] gen 0 oldest_gen 0 data_type need_discard [ 264.708766][ T7441] journal_seq_nonempty 6 [ 264.708777][ T7441] journal_seq_empty 0 [ 264.708786][ T7441] need_discard 1 [ 264.708796][ T7441] need_inc_gen 1 [ 264.708806][ T7441] dirty_sectors 0 [ 264.708815][ T7441] stripe_sectors 0 [ 264.708824][ T7441] cached_sectors 0 [ 264.708834][ T7441] stripe 0 [ 264.708843][ T7441] stripe_redundancy 0 [ 264.708853][ T7441] io_time[READ] 1 [ 264.708862][ T7441] io_time[WRITE] 768 [ 264.708872][ T7441] fragmentation 0 [ 264.708882][ T7441] bp_start 8 [ 264.708891][ T7441] , fixing [ 264.726420][ T7441] done [ 264.732896][ T7441] bcachefs (loop2): check_lrus... done [ 264.736392][ T7441] bcachefs (loop2): check_btree_backpointers... done [ 264.737830][ T7441] bcachefs (loop2): check_backpointers_to_extents... done [ 264.741448][ T7441] bcachefs (loop2): check_extents_to_backpointers... [ 264.742826][ T7441] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 264.744767][ T7441] done [ 264.745551][ T7441] bcachefs (loop2): check_alloc_to_lru_refs... [ 264.747077][ T7441] bcachefs (loop2): missing fragmentation lru entry [ 264.747093][ T7441] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 264.747104][ T7441] gen 0 oldest_gen 0 data_type user [ 264.747115][ T7441] journal_seq_nonempty 5 [ 264.747125][ T7441] journal_seq_empty 134217728 [ 264.747137][ T7441] need_discard 1 [ 264.747146][ T7441] need_inc_gen 1 [ 264.747156][ T7441] dirty_sectors 16 [ 264.747168][ T7441] stripe_sectors 1802251 [ 264.747178][ T7441] cached_sectors 0 [ 264.747188][ T7441] stripe 0 [ 264.747199][ T7441] stripe_redundancy 0 [ 264.747210][ T7441] io_time[READ] 1 [ 264.747220][ T7441] io_time[WRITE] 512 [ 264.747231][ T7441] fragmentation 0 [ 264.747241][ T7441] bp_start 7 [ 264.747251][ T7441] , fixing [ 264.748768][ T7441] done [ 264.753295][ T7441] bcachefs (loop2): bucket_gens_init... done [ 264.756845][ T7441] bcachefs (loop2): check_snapshot_trees... done [ 264.757648][ T7441] bcachefs (loop2): check_snapshots... [ 264.758253][ T7441] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 264.758269][ T7441] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 264.769730][ T7441] done [ 264.770444][ T7441] bcachefs (loop2): check_subvols... done [ 264.772058][ T7441] bcachefs (loop2): check_subvol_children... done [ 264.772909][ T7441] bcachefs (loop2): delete_dead_snapshots... done [ 264.773711][ T7441] bcachefs (loop2): check_inodes... [ 264.774841][ T7441] bcachefs (loop2): inode points to missing dirent [ 264.774857][ T7441] inum: 4098:4294967295 [ 264.774869][ T7441] mode=40755 [ 264.774879][ T7441] flags=(15300000) [ 264.774888][ T7441] journal_seq=4 [ 264.774898][ T7441] hash_seed=ece93825deac2443 [ 264.774908][ T7441] hash_type=siphash [ 264.774917][ T7441] bi_size=0 [ 264.774926][ T7441] bi_sectors=0 [ 264.774935][ T7441] bi_version=0 [ 264.774945][ T7441] bi_atime=2770562249 [ 264.774954][ T7441] bi_ctime=2780562352 [ 264.774965][ T7441] bi_mtime=2780562352 [ 264.774974][ T7441] bi_otime=2770562249 [ 264.774984][ T7441] bi_uid=0 [ 264.774993][ T7441] bi_gid=0 [ 264.775011][ T7441] bi_nlink=0 [ 264.775021][ T7441] bi_generation=0 [ 264.775030][ T7441] bi_dev=0 [ 264.775039][ T7441] bi_data_checksum=0 [ 264.775049][ T7441] bi_compression=0 [ 264.775059][ T7441] bi_project=0 [ 264.775068][ T7441] bi_background_compression=0 [ 264.775078][ T7441] bi_data_replicas=0 [ 264.775087][ T7441] bi_promote_target=0 [ 264.775097][ T7441] bi_foreground_target=64 [ 264.775107][ T7441] bi_background_target=1 [ 264.775118][ T7441] bi_erasure_code=0 [ 264.775128][ T7441] bi_fields_set=0 [ 264.775137][ T7441] bi_dir=0 [ 264.775146][ T7441] bi_dir_offset=32 [ 264.775156][ T7441] bi_subvol=0 [ 264.775165][ T7441] bi_parent_subvol=0 [ 264.775175][ T7441] bi_nocow=0 [ 264.775184][ T7441] bi_depth=0 [ 264.775193][ T7441] bi_inodes_32bit=0 [ 264.775203][ T7441] bi_casefold=0, fixing [ 264.777399][ T7441] done [ 264.778083][ T7441] bcachefs (loop2): check_extents... done [ 264.781460][ T7441] bcachefs (loop2): check_indirect_extents... done [ 264.783097][ T7441] bcachefs (loop2): check_dirents... [ 264.784816][ T7441] bcachefs (loop2): directory with missing backpointer [ 264.784832][ T7441] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 264.784847][ T7441] inum: 4098:4294967295 [ 264.784857][ T7441] mode=40755 [ 264.784867][ T7441] flags=(11300000) [ 264.784877][ T7441] journal_seq=23 [ 264.784888][ T7441] hash_seed=ece93825deac2443 [ 264.784898][ T7441] hash_type=siphash [ 264.784907][ T7441] bi_size=0 [ 264.784917][ T7441] bi_sectors=0 [ 264.784926][ T7441] bi_version=0 [ 264.784937][ T7441] bi_atime=2770562249 [ 264.784947][ T7441] bi_ctime=2780562352 [ 264.784956][ T7441] bi_mtime=2780562352 [ 264.784967][ T7441] bi_otime=2770562249 [ 264.784977][ T7441] bi_uid=0 [ 264.784986][ T7441] bi_gid=0 [ 264.784995][ T7441] bi_nlink=0 [ 264.785012][ T7441] bi_generation=0 [ 264.785022][ T7441] bi_dev=0 [ 264.785031][ T7441] bi_data_checksum=0 [ 264.785041][ T7441] bi_compression=0 [ 264.785050][ T7441] bi_project=0 [ 264.785059][ T7441] bi_background_compression=0 [ 264.785069][ T7441] bi_data_replicas=0 [ 264.785079][ T7441] bi_promote_target=0 [ 264.785088][ T7441] bi_foreground_target=64 [ 264.785098][ T7441] bi_background_target=1 [ 264.785108][ T7441] bi_erasure_code=0 [ 264.785117][ T7441] bi_fields_set=0 [ 264.785127][ T7441] bi_dir=0 [ 264.785136][ T7441] bi_dir_offset=0 [ 264.785145][ T7441] bi_subvol=0 [ 264.785155][ T7441] bi_parent_subvol=0 [ 264.785164][ T7441] bi_nocow=0 [ 264.785173][ T7441] bi_depth=0 [ 264.785182][ T7441] bi_inodes_32bit=0 [ 264.785192][ T7441] bi_casefold=0, fixing [ 264.793522][ T7441] done [ 264.794527][ T7441] bcachefs (loop2): check_xattrs... done [ 264.796479][ T7441] bcachefs (loop2): check_root... done [ 264.797656][ T7441] bcachefs (loop2): check_unreachable_inodes... done [ 264.798612][ T7441] bcachefs (loop2): check_subvolume_structure... done [ 264.799880][ T7441] bcachefs (loop2): check_directory_structure... done [ 264.800722][ T7441] bcachefs (loop2): check_nlinks... [ 264.801493][ T7441] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 264.803065][ T7441] done [ 264.803753][ T7441] bcachefs (loop2): check_rebalance_work... done [ 264.804908][ T7441] bcachefs (loop2): resume_logged_ops... done [ 264.805754][ T7441] bcachefs (loop2): delete_dead_inodes... done [ 264.815277][ T7441] bcachefs (loop2): set_fs_needs_rebalance... [ 264.823324][ T7450] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 264.823349][ T7450] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 264.826744][ T7441] done [ 264.827359][ T7441] bcachefs (loop2): check_extents_to_backpointers... [ 264.828314][ T7441] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 264.834253][ T7441] done [ 264.852211][ T7441] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 264.852239][ T7441] bcachefs (loop2): check_alloc_info... done [ 264.859963][ T7441] bcachefs (loop2): check_lrus... done [ 264.861022][ T7441] bcachefs (loop2): check_btree_backpointers... done [ 264.862207][ T7441] bcachefs (loop2): check_backpointers_to_extents... done [ 264.866003][ T7441] bcachefs (loop2): check_extents_to_backpointers... done [ 264.870230][ T7441] bcachefs (loop2): check_alloc_to_lru_refs... done [ 264.876568][ T7441] bcachefs (loop2): bucket_gens_init... done [ 264.878563][ T7441] bcachefs (loop2): check_snapshot_trees... done [ 264.880350][ T7441] bcachefs (loop2): check_snapshots... done [ 264.881305][ T7441] bcachefs (loop2): check_subvols... done [ 264.887310][ T7441] bcachefs (loop2): check_subvol_children... done [ 264.888040][ T7441] bcachefs (loop2): delete_dead_snapshots... done [ 264.888712][ T7441] bcachefs (loop2): check_inodes... done [ 264.890480][ T7441] bcachefs (loop2): check_extents... done [ 264.892165][ T7441] bcachefs (loop2): check_indirect_extents... done [ 264.897827][ T7441] bcachefs (loop2): check_dirents... done [ 264.900766][ T7441] bcachefs (loop2): check_xattrs... done [ 264.908486][ T7441] bcachefs (loop2): check_root... done [ 264.909380][ T7441] bcachefs (loop2): check_unreachable_inodes... done [ 264.910256][ T7441] bcachefs (loop2): check_subvolume_structure... done [ 264.911499][ T7441] bcachefs (loop2): check_directory_structure... done [ 264.912226][ T7441] bcachefs (loop2): check_nlinks... done [ 264.913373][ T7441] bcachefs (loop2): check_rebalance_work... done [ 264.914152][ T7441] bcachefs (loop2): resume_logged_ops... done [ 264.914840][ T7441] bcachefs (loop2): delete_dead_inodes... done [ 264.915605][ T7441] bcachefs (loop2): set_fs_needs_rebalance... done [ 264.930149][ T7441] bcachefs (loop2): done starting filesystem [ 265.031066][ T5839] bcachefs (loop2): shutting down [ 265.031085][ T5839] bcachefs (loop2): going read-only [ 265.031115][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 265.070273][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 35 [ 265.074005][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 35 [ 265.074885][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 36 [ 265.076689][ T5839] bcachefs (loop2): marking filesystem clean [ 265.135707][ T5839] bcachefs (loop2): shutdown complete [ 265.885299][ T7452] loop2: detected capacity change from 0 to 32768 [ 266.021426][ T7452] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 266.021457][ T7452] allowing incompatible features above 0.0: (unknown version) [ 266.021472][ T7452] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 266.021502][ T7452] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 266.022073][ T7452] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 266.022326][ T7452] bcachefs (loop2): Version upgrade required: [ 266.022326][ T7452] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 266.022326][ T7452] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 266.022326][ T7452] 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,check_rebalance_work,set_fs_needs_rebalance [ 266.041427][ T7452] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 266.041454][ T7452] size != 0, deleting [ 266.043062][ T7452] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 266.046405][ T7452] bcachefs (loop2): check_topology... done [ 266.047878][ T7452] bcachefs (loop2): accounting_read... done [ 266.077192][ T7452] bcachefs (loop2): alloc_read... done [ 266.078155][ T7452] bcachefs (loop2): snapshots_read... done [ 266.078905][ T7452] bcachefs (loop2): check_allocations... [ 266.081753][ T7452] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 266.081775][ T7452] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 266.083772][ T7452] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 266.083789][ T7452] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 266.085784][ T7452] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 266.085803][ T7452] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 266.087325][ T7452] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 266.087342][ T7452] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 266.091322][ T7452] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 266.091341][ T7452] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 266.092288][ T7452] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.092421][ T7452] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.092966][ T7452] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.093072][ T7452] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.093512][ T7452] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.093618][ T7452] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.093821][ T7452] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.093953][ T7452] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.094155][ T7452] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.094273][ T7452] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.094478][ T7452] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.094587][ T7452] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.094792][ T7452] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.094906][ T7452] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 266.095120][ T7452] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 266.095801][ T7452] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 266.096022][ T7452] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 266.096139][ T7452] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 266.096377][ T7452] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 266.096485][ T7452] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 266.096726][ T7452] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 266.096741][ T7452] Ratelimiting new instances of previous error [ 266.096872][ T7452] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 266.096889][ T7452] Ratelimiting new instances of previous error [ 266.110441][ T7452] done [ 266.112614][ T7452] bcachefs (loop2): going read-write [ 266.117858][ T7452] bcachefs (loop2): journal_replay... done [ 266.145482][ T7452] bcachefs (loop2): check_alloc_info... [ 266.147278][ T7452] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 266.147297][ T7452] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 266.147309][ T7452] gen 0 oldest_gen 0 data_type need_discard [ 266.147322][ T7452] journal_seq_nonempty 6 [ 266.147331][ T7452] journal_seq_empty 0 [ 266.147341][ T7452] need_discard 1 [ 266.147351][ T7452] need_inc_gen 1 [ 266.147362][ T7452] dirty_sectors 0 [ 266.147372][ T7452] stripe_sectors 0 [ 266.147382][ T7452] cached_sectors 0 [ 266.147391][ T7452] stripe 0 [ 266.147401][ T7452] stripe_redundancy 0 [ 266.147411][ T7452] io_time[READ] 1 [ 266.147422][ T7452] io_time[WRITE] 768 [ 266.147432][ T7452] fragmentation 0 [ 266.147442][ T7452] bp_start 8 [ 266.147452][ T7452] , fixing [ 266.164854][ T7452] done [ 266.172516][ T7452] bcachefs (loop2): check_lrus... done [ 266.173883][ T7452] bcachefs (loop2): check_btree_backpointers... done [ 266.175154][ T7452] bcachefs (loop2): check_backpointers_to_extents... done [ 266.177759][ T7452] bcachefs (loop2): check_extents_to_backpointers... [ 266.178995][ T7452] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 266.182369][ T7452] done [ 266.183165][ T7452] bcachefs (loop2): check_alloc_to_lru_refs... [ 266.184680][ T7452] bcachefs (loop2): missing fragmentation lru entry [ 266.184697][ T7452] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 266.184709][ T7452] gen 0 oldest_gen 0 data_type user [ 266.184720][ T7452] journal_seq_nonempty 5 [ 266.184730][ T7452] journal_seq_empty 134217728 [ 266.184740][ T7452] need_discard 1 [ 266.184750][ T7452] need_inc_gen 1 [ 266.184760][ T7452] dirty_sectors 16 [ 266.184770][ T7452] stripe_sectors 1802251 [ 266.184780][ T7452] cached_sectors 0 [ 266.184789][ T7452] stripe 0 [ 266.184799][ T7452] stripe_redundancy 0 [ 266.184811][ T7452] io_time[READ] 1 [ 266.184821][ T7452] io_time[WRITE] 512 [ 266.184831][ T7452] fragmentation 0 [ 266.184841][ T7452] bp_start 7 [ 266.184851][ T7452] , fixing [ 266.186375][ T7452] done [ 266.187789][ T7452] bcachefs (loop2): bucket_gens_init... done [ 266.190917][ T7452] bcachefs (loop2): check_snapshot_trees... done [ 266.193446][ T7452] bcachefs (loop2): check_snapshots... [ 266.194014][ T7452] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 266.194031][ T7452] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 266.205623][ T7452] done [ 266.206320][ T7452] bcachefs (loop2): check_subvols... done [ 266.207901][ T7452] bcachefs (loop2): check_subvol_children... done [ 266.208745][ T7452] bcachefs (loop2): delete_dead_snapshots... done [ 266.209987][ T7452] bcachefs (loop2): check_inodes... [ 266.211054][ T7452] bcachefs (loop2): inode points to missing dirent [ 266.211070][ T7452] inum: 4098:4294967295 [ 266.211080][ T7452] mode=40755 [ 266.211089][ T7452] flags=(15300000) [ 266.211098][ T7452] journal_seq=4 [ 266.211107][ T7452] hash_seed=ece93825deac2443 [ 266.211117][ T7452] hash_type=siphash [ 266.211127][ T7452] bi_size=0 [ 266.211136][ T7452] bi_sectors=0 [ 266.211145][ T7452] bi_version=0 [ 266.211161][ T7452] bi_atime=2770562249 [ 266.211171][ T7452] bi_ctime=2780562352 [ 266.211180][ T7452] bi_mtime=2780562352 [ 266.211191][ T7452] bi_otime=2770562249 [ 266.211200][ T7452] bi_uid=0 [ 266.211210][ T7452] bi_gid=0 [ 266.211220][ T7452] bi_nlink=0 [ 266.211228][ T7452] bi_generation=0 [ 266.211237][ T7452] bi_dev=0 [ 266.211246][ T7452] bi_data_checksum=0 [ 266.211255][ T7452] bi_compression=0 [ 266.211265][ T7452] bi_project=0 [ 266.211273][ T7452] bi_background_compression=0 [ 266.211283][ T7452] bi_data_replicas=0 [ 266.211293][ T7452] bi_promote_target=0 [ 266.211302][ T7452] bi_foreground_target=64 [ 266.211311][ T7452] bi_background_target=1 [ 266.211320][ T7452] bi_erasure_code=0 [ 266.211330][ T7452] bi_fields_set=0 [ 266.211339][ T7452] bi_dir=0 [ 266.211347][ T7452] bi_dir_offset=32 [ 266.211357][ T7452] bi_subvol=0 [ 266.211365][ T7452] bi_parent_subvol=0 [ 266.211375][ T7452] bi_nocow=0 [ 266.211384][ T7452] bi_depth=0 [ 266.211392][ T7452] bi_inodes_32bit=0 [ 266.211401][ T7452] bi_casefold=0, fixing [ 266.213036][ T7452] done [ 266.214288][ T7452] bcachefs (loop2): check_extents... done [ 266.215796][ T7452] bcachefs (loop2): check_indirect_extents... done [ 266.216621][ T7452] bcachefs (loop2): check_dirents... [ 266.218314][ T7452] bcachefs (loop2): directory with missing backpointer [ 266.218331][ T7452] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 266.218345][ T7452] inum: 4098:4294967295 [ 266.218357][ T7452] mode=40755 [ 266.218366][ T7452] flags=(11300000) [ 266.218376][ T7452] journal_seq=23 [ 266.218385][ T7452] hash_seed=ece93825deac2443 [ 266.218395][ T7452] hash_type=siphash [ 266.218405][ T7452] bi_size=0 [ 266.218414][ T7452] bi_sectors=0 [ 266.218424][ T7452] bi_version=0 [ 266.218433][ T7452] bi_atime=2770562249 [ 266.218443][ T7452] bi_ctime=2780562352 [ 266.218452][ T7452] bi_mtime=2780562352 [ 266.218462][ T7452] bi_otime=2770562249 [ 266.218472][ T7452] bi_uid=0 [ 266.218481][ T7452] bi_gid=0 [ 266.218490][ T7452] bi_nlink=0 [ 266.218499][ T7452] bi_generation=0 [ 266.218508][ T7452] bi_dev=0 [ 266.218517][ T7452] bi_data_checksum=0 [ 266.218527][ T7452] bi_compression=0 [ 266.218537][ T7452] bi_project=0 [ 266.218546][ T7452] bi_background_compression=0 [ 266.218556][ T7452] bi_data_replicas=0 [ 266.218567][ T7452] bi_promote_target=0 [ 266.218576][ T7452] bi_foreground_target=64 [ 266.218587][ T7452] bi_background_target=1 [ 266.218596][ T7452] bi_erasure_code=0 [ 266.218606][ T7452] bi_fields_set=0 [ 266.218616][ T7452] bi_dir=0 [ 266.218625][ T7452] bi_dir_offset=0 [ 266.218634][ T7452] bi_subvol=0 [ 266.218643][ T7452] bi_parent_subvol=0 [ 266.218653][ T7452] bi_nocow=0 [ 266.218662][ T7452] bi_depth=0 [ 266.218671][ T7452] bi_inodes_32bit=0 [ 266.218681][ T7452] bi_casefold=0, fixing [ 266.225865][ T7452] done [ 266.226858][ T7452] bcachefs (loop2): check_xattrs... done [ 266.229616][ T7452] bcachefs (loop2): check_root... done [ 266.232321][ T7452] bcachefs (loop2): check_unreachable_inodes... done [ 266.235522][ T7452] bcachefs (loop2): check_subvolume_structure... done [ 266.237074][ T7452] bcachefs (loop2): check_directory_structure... done [ 266.237936][ T7452] bcachefs (loop2): check_nlinks... [ 266.238679][ T7452] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 266.240489][ T7452] done [ 266.241244][ T7452] bcachefs (loop2): check_rebalance_work... done [ 266.242480][ T7452] bcachefs (loop2): resume_logged_ops... done [ 266.243331][ T7452] bcachefs (loop2): delete_dead_inodes... done [ 266.252823][ T7452] bcachefs (loop2): set_fs_needs_rebalance... [ 266.261321][ T7461] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 266.261345][ T7461] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 266.264234][ T7452] done [ 266.265182][ T7452] bcachefs (loop2): check_extents_to_backpointers... [ 266.266154][ T7452] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 266.272720][ T7452] done [ 266.282404][ T7452] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 266.282428][ T7452] bcachefs (loop2): check_alloc_info... done [ 266.286918][ T7452] bcachefs (loop2): check_lrus... done [ 266.288044][ T7452] bcachefs (loop2): check_btree_backpointers... done [ 266.290341][ T7452] bcachefs (loop2): check_backpointers_to_extents... done [ 266.291876][ T7452] bcachefs (loop2): check_extents_to_backpointers... done [ 266.293582][ T7452] bcachefs (loop2): check_alloc_to_lru_refs... done [ 266.295776][ T7452] bcachefs (loop2): bucket_gens_init... done [ 266.297947][ T7452] bcachefs (loop2): check_snapshot_trees... done [ 266.299132][ T7452] bcachefs (loop2): check_snapshots... done [ 266.301967][ T7452] bcachefs (loop2): check_subvols... done [ 266.302854][ T7452] bcachefs (loop2): check_subvol_children... done [ 266.303655][ T7452] bcachefs (loop2): delete_dead_snapshots... done [ 266.304454][ T7452] bcachefs (loop2): check_inodes... done [ 266.305626][ T7452] bcachefs (loop2): check_extents... done [ 266.307051][ T7452] bcachefs (loop2): check_indirect_extents... done [ 266.307862][ T7452] bcachefs (loop2): check_dirents... done [ 266.310513][ T7452] bcachefs (loop2): check_xattrs... done [ 266.311947][ T7452] bcachefs (loop2): check_root... done [ 266.312778][ T7452] bcachefs (loop2): check_unreachable_inodes... done [ 266.313616][ T7452] bcachefs (loop2): check_subvolume_structure... done [ 266.314445][ T7452] bcachefs (loop2): check_directory_structure... done [ 266.315165][ T7452] bcachefs (loop2): check_nlinks... done [ 266.316398][ T7452] bcachefs (loop2): check_rebalance_work... done [ 266.317291][ T7452] bcachefs (loop2): resume_logged_ops... done [ 266.318044][ T7452] bcachefs (loop2): delete_dead_inodes... done [ 266.318890][ T7452] bcachefs (loop2): set_fs_needs_rebalance... done [ 266.325407][ T7452] bcachefs (loop2): done starting filesystem [ 267.919430][ T5839] bcachefs (loop2): shutting down [ 267.919449][ T5839] bcachefs (loop2): going read-only [ 267.919475][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 269.689835][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 269.689975][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 269.691006][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 269.692565][ T5839] bcachefs (loop2): marking filesystem clean [ 269.693030][ T5902] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 269.693030][ T5902] rw journal devs: [ 271.442619][ T5839] bcachefs (loop2): shutdown complete [ 272.932746][ T7464] loop2: detected capacity change from 0 to 32768 [ 274.559475][ T7464] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 274.559503][ T7464] allowing incompatible features above 0.0: (unknown version) [ 274.559518][ T7464] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 274.559545][ T7464] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 274.559682][ T7464] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 274.559917][ T7464] bcachefs (loop2): Version upgrade required: [ 274.559917][ T7464] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 274.559917][ T7464] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 274.559917][ T7464] 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,check_rebalance_work,set_fs_needs_rebalance [ 274.579220][ T7464] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 274.579240][ T7464] size != 0, deleting [ 274.580469][ T7464] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 274.584277][ T7464] bcachefs (loop2): check_topology... done [ 274.585728][ T7464] bcachefs (loop2): accounting_read... done [ 274.620878][ T7464] bcachefs (loop2): alloc_read... done [ 274.621860][ T7464] bcachefs (loop2): snapshots_read... done [ 274.622735][ T7464] bcachefs (loop2): check_allocations... [ 274.625324][ T7464] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 274.625346][ T7464] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 274.627377][ T7464] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 274.627396][ T7464] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 274.628800][ T7464] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 274.628819][ T7464] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 274.632309][ T7464] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 274.632328][ T7464] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 274.635472][ T7464] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 274.635491][ T7464] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 274.636441][ T7464] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.636567][ T7464] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.637127][ T7464] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.637237][ T7464] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.637643][ T7464] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.637749][ T7464] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.637953][ T7464] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.638066][ T7464] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.638268][ T7464] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.638388][ T7464] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.638599][ T7464] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.638713][ T7464] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.638938][ T7464] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.639051][ T7464] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 274.639628][ T7464] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 274.639743][ T7464] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 274.639951][ T7464] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 274.640069][ T7464] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 274.640275][ T7464] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 274.640382][ T7464] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 274.640613][ T7464] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 274.640630][ T7464] Ratelimiting new instances of previous error [ 274.640759][ T7464] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 274.640780][ T7464] Ratelimiting new instances of previous error [ 274.656164][ T7464] done [ 274.658315][ T7464] bcachefs (loop2): going read-write [ 274.664819][ T7464] bcachefs (loop2): journal_replay... done [ 274.692160][ T7464] bcachefs (loop2): check_alloc_info... [ 274.693963][ T7464] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 274.693981][ T7464] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 274.693994][ T7464] gen 0 oldest_gen 0 data_type need_discard [ 274.694006][ T7464] journal_seq_nonempty 6 [ 274.694027][ T7464] journal_seq_empty 0 [ 274.694037][ T7464] need_discard 1 [ 274.694047][ T7464] need_inc_gen 1 [ 274.694058][ T7464] dirty_sectors 0 [ 274.694069][ T7464] stripe_sectors 0 [ 274.694079][ T7464] cached_sectors 0 [ 274.694090][ T7464] stripe 0 [ 274.694100][ T7464] stripe_redundancy 0 [ 274.694110][ T7464] io_time[READ] 1 [ 274.694120][ T7464] io_time[WRITE] 768 [ 274.694130][ T7464] fragmentation 0 [ 274.694140][ T7464] bp_start 8 [ 274.694149][ T7464] , fixing [ 274.711378][ T7464] done [ 274.717456][ T7464] bcachefs (loop2): check_lrus... done [ 274.718508][ T7464] bcachefs (loop2): check_btree_backpointers... done [ 274.720333][ T7464] bcachefs (loop2): check_backpointers_to_extents... done [ 274.724954][ T7464] bcachefs (loop2): check_extents_to_backpointers... [ 274.726524][ T7464] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 274.728652][ T7464] done [ 274.730239][ T7464] bcachefs (loop2): check_alloc_to_lru_refs... [ 274.732179][ T7464] bcachefs (loop2): missing fragmentation lru entry [ 274.732197][ T7464] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 274.732208][ T7464] gen 0 oldest_gen 0 data_type user [ 274.732221][ T7464] journal_seq_nonempty 5 [ 274.732231][ T7464] journal_seq_empty 134217728 [ 274.732240][ T7464] need_discard 1 [ 274.732249][ T7464] need_inc_gen 1 [ 274.732259][ T7464] dirty_sectors 16 [ 274.732271][ T7464] stripe_sectors 1802251 [ 274.732280][ T7464] cached_sectors 0 [ 274.732290][ T7464] stripe 0 [ 274.732300][ T7464] stripe_redundancy 0 [ 274.732310][ T7464] io_time[READ] 1 [ 274.732319][ T7464] io_time[WRITE] 512 [ 274.732329][ T7464] fragmentation 0 [ 274.732339][ T7464] bp_start 7 [ 274.732348][ T7464] , fixing [ 274.733959][ T7464] done [ 274.735528][ T7464] bcachefs (loop2): bucket_gens_init... done [ 274.737627][ T7464] bcachefs (loop2): check_snapshot_trees... done [ 274.738447][ T7464] bcachefs (loop2): check_snapshots... [ 274.743149][ T7464] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 274.743169][ T7464] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 274.754067][ T7464] done [ 274.754781][ T7464] bcachefs (loop2): check_subvols... done [ 274.756510][ T7464] bcachefs (loop2): check_subvol_children... done [ 274.757378][ T7464] bcachefs (loop2): delete_dead_snapshots... done [ 274.758190][ T7464] bcachefs (loop2): check_inodes... [ 274.760611][ T7464] bcachefs (loop2): inode points to missing dirent [ 274.760631][ T7464] inum: 4098:4294967295 [ 274.760641][ T7464] mode=40755 [ 274.760651][ T7464] flags=(15300000) [ 274.760660][ T7464] journal_seq=4 [ 274.760669][ T7464] hash_seed=ece93825deac2443 [ 274.760680][ T7464] hash_type=siphash [ 274.760690][ T7464] bi_size=0 [ 274.760699][ T7464] bi_sectors=0 [ 274.760709][ T7464] bi_version=0 [ 274.760718][ T7464] bi_atime=2770562249 [ 274.760728][ T7464] bi_ctime=2780562352 [ 274.760737][ T7464] bi_mtime=2780562352 [ 274.760747][ T7464] bi_otime=2770562249 [ 274.760757][ T7464] bi_uid=0 [ 274.760766][ T7464] bi_gid=0 [ 274.760775][ T7464] bi_nlink=0 [ 274.760784][ T7464] bi_generation=0 [ 274.760795][ T7464] bi_dev=0 [ 274.760804][ T7464] bi_data_checksum=0 [ 274.760814][ T7464] bi_compression=0 [ 274.760824][ T7464] bi_project=0 [ 274.760833][ T7464] bi_background_compression=0 [ 274.760844][ T7464] bi_data_replicas=0 [ 274.760854][ T7464] bi_promote_target=0 [ 274.760864][ T7464] bi_foreground_target=64 [ 274.760873][ T7464] bi_background_target=1 [ 274.760883][ T7464] bi_erasure_code=0 [ 274.760893][ T7464] bi_fields_set=0 [ 274.760902][ T7464] bi_dir=0 [ 274.760911][ T7464] bi_dir_offset=32 [ 274.760920][ T7464] bi_subvol=0 [ 274.760929][ T7464] bi_parent_subvol=0 [ 274.760939][ T7464] bi_nocow=0 [ 274.760948][ T7464] bi_depth=0 [ 274.760957][ T7464] bi_inodes_32bit=0 [ 274.760967][ T7464] bi_casefold=0, fixing [ 274.762688][ T7464] done [ 274.763393][ T7464] bcachefs (loop2): check_extents... done [ 274.764893][ T7464] bcachefs (loop2): check_indirect_extents... done [ 274.765704][ T7464] bcachefs (loop2): check_dirents... [ 274.767406][ T7464] bcachefs (loop2): directory with missing backpointer [ 274.767423][ T7464] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 274.767437][ T7464] inum: 4098:4294967295 [ 274.767448][ T7464] mode=40755 [ 274.767458][ T7464] flags=(11300000) [ 274.767467][ T7464] journal_seq=22 [ 274.767476][ T7464] hash_seed=ece93825deac2443 [ 274.767487][ T7464] hash_type=siphash [ 274.767496][ T7464] bi_size=0 [ 274.767505][ T7464] bi_sectors=0 [ 274.767514][ T7464] bi_version=0 [ 274.767524][ T7464] bi_atime=2770562249 [ 274.767534][ T7464] bi_ctime=2780562352 [ 274.767543][ T7464] bi_mtime=2780562352 [ 274.767553][ T7464] bi_otime=2770562249 [ 274.767563][ T7464] bi_uid=0 [ 274.767572][ T7464] bi_gid=0 [ 274.767581][ T7464] bi_nlink=0 [ 274.767591][ T7464] bi_generation=0 [ 274.767601][ T7464] bi_dev=0 [ 274.767610][ T7464] bi_data_checksum=0 [ 274.767620][ T7464] bi_compression=0 [ 274.767630][ T7464] bi_project=0 [ 274.767639][ T7464] bi_background_compression=0 [ 274.767649][ T7464] bi_data_replicas=0 [ 274.767659][ T7464] bi_promote_target=0 [ 274.767668][ T7464] bi_foreground_target=64 [ 274.767679][ T7464] bi_background_target=1 [ 274.767688][ T7464] bi_erasure_code=0 [ 274.767698][ T7464] bi_fields_set=0 [ 274.767709][ T7464] bi_dir=0 [ 274.767718][ T7464] bi_dir_offset=0 [ 274.767725][ T7464] bi_subvol=0 [ 274.767735][ T7464] bi_parent_subvol=0 [ 274.767744][ T7464] bi_nocow=0 [ 274.767751][ T7464] bi_depth=0 [ 274.767761][ T7464] bi_inodes_32bit=0 [ 274.767770][ T7464] bi_casefold=0, fixing [ 274.774508][ T7464] done [ 274.775419][ T7464] bcachefs (loop2): check_xattrs... done [ 274.778477][ T7464] bcachefs (loop2): check_root... done [ 274.779614][ T7464] bcachefs (loop2): check_unreachable_inodes... done [ 274.781953][ T7464] bcachefs (loop2): check_subvolume_structure... done [ 274.783216][ T7464] bcachefs (loop2): check_directory_structure... done [ 274.784019][ T7464] bcachefs (loop2): check_nlinks... [ 274.784738][ T7464] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 274.785798][ T7464] done [ 274.786749][ T7464] bcachefs (loop2): check_rebalance_work... done [ 274.788047][ T7464] bcachefs (loop2): resume_logged_ops... done [ 274.788896][ T7464] bcachefs (loop2): delete_dead_inodes... done [ 274.798546][ T7464] bcachefs (loop2): set_fs_needs_rebalance... done [ 274.808178][ T7464] bcachefs (loop2): check_extents_to_backpointers... [ 274.810077][ T7473] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 274.810099][ T7473] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 274.812360][ T7464] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 274.820237][ T7464] done [ 274.835444][ T7464] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 274.835472][ T7464] bcachefs (loop2): check_alloc_info... done [ 274.846532][ T7464] bcachefs (loop2): check_lrus... done [ 274.847693][ T7464] bcachefs (loop2): check_btree_backpointers... done [ 274.848940][ T7464] bcachefs (loop2): check_backpointers_to_extents... done [ 274.857975][ T7464] bcachefs (loop2): check_extents_to_backpointers... done [ 274.860661][ T7464] bcachefs (loop2): check_alloc_to_lru_refs... done [ 274.862862][ T7464] bcachefs (loop2): bucket_gens_init... done [ 274.869283][ T7464] bcachefs (loop2): check_snapshot_trees... done [ 274.870958][ T7464] bcachefs (loop2): check_snapshots... done [ 274.871760][ T7464] bcachefs (loop2): check_subvols... done [ 274.872562][ T7464] bcachefs (loop2): check_subvol_children... done [ 274.873225][ T7464] bcachefs (loop2): delete_dead_snapshots... done [ 274.873901][ T7464] bcachefs (loop2): check_inodes... done [ 274.879134][ T7464] bcachefs (loop2): check_extents... done [ 274.881835][ T7464] bcachefs (loop2): check_indirect_extents... done [ 274.882470][ T7464] bcachefs (loop2): check_dirents... done [ 274.883988][ T7464] bcachefs (loop2): check_xattrs... done [ 274.890240][ T7464] bcachefs (loop2): check_root... done [ 274.891004][ T7464] bcachefs (loop2): check_unreachable_inodes... done [ 274.891883][ T7464] bcachefs (loop2): check_subvolume_structure... done [ 274.892672][ T7464] bcachefs (loop2): check_directory_structure... done [ 274.893280][ T7464] bcachefs (loop2): check_nlinks... done [ 274.894452][ T7464] bcachefs (loop2): check_rebalance_work... done [ 274.900663][ T7464] bcachefs (loop2): resume_logged_ops... done [ 274.901412][ T7464] bcachefs (loop2): delete_dead_inodes... done [ 274.902235][ T7464] bcachefs (loop2): set_fs_needs_rebalance... done [ 274.905222][ T7464] bcachefs (loop2): done starting filesystem [ 274.975267][ T5839] bcachefs (loop2): shutting down [ 274.975289][ T5839] bcachefs (loop2): going read-only [ 274.975584][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 275.077791][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 275.084478][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 275.085382][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 275.087186][ T5839] bcachefs (loop2): marking filesystem clean [ 275.146427][ T5839] bcachefs (loop2): shutdown complete [ 276.758357][ T7475] loop2: detected capacity change from 0 to 32768 [ 276.883654][ T7475] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 276.883682][ T7475] allowing incompatible features above 0.0: (unknown version) [ 276.883696][ T7475] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 276.883724][ T7475] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 276.883864][ T7475] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 276.884101][ T7475] bcachefs (loop2): Version upgrade required: [ 276.884101][ T7475] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 276.884101][ T7475] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 276.884101][ T7475] 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,check_rebalance_work,set_fs_needs_rebalance [ 276.907288][ T7475] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 276.907314][ T7475] size != 0, deleting [ 276.908357][ T7475] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 276.913356][ T7475] bcachefs (loop2): check_topology... done [ 276.914855][ T7475] bcachefs (loop2): accounting_read... done [ 277.000357][ T7475] bcachefs (loop2): alloc_read... done [ 277.001292][ T7475] bcachefs (loop2): snapshots_read... done [ 277.002138][ T7475] bcachefs (loop2): check_allocations... [ 277.004459][ T7475] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 277.004480][ T7475] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 277.006521][ T7475] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 277.006540][ T7475] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 277.007927][ T7475] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 277.007946][ T7475] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 277.011852][ T7475] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 277.011872][ T7475] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 277.014928][ T7475] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 277.014947][ T7475] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 277.015901][ T7475] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.016029][ T7475] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.016573][ T7475] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.016687][ T7475] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.017092][ T7475] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.017198][ T7475] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.017397][ T7475] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.017503][ T7475] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.017702][ T7475] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.017813][ T7475] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.018016][ T7475] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.018123][ T7475] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.018323][ T7475] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.018427][ T7475] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 277.018625][ T7475] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 277.018753][ T7475] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 277.018962][ T7475] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 277.019065][ T7475] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 277.019714][ T7475] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 277.019835][ T7475] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 277.020072][ T7475] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 277.020089][ T7475] Ratelimiting new instances of previous error [ 277.020218][ T7475] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 277.020235][ T7475] Ratelimiting new instances of previous error [ 277.034261][ T7475] done [ 277.036422][ T7475] bcachefs (loop2): going read-write [ 277.042719][ T7475] bcachefs (loop2): journal_replay... done [ 277.068526][ T7475] bcachefs (loop2): check_alloc_info... [ 277.071262][ T7475] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 277.071282][ T7475] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 277.071295][ T7475] gen 0 oldest_gen 0 data_type need_discard [ 277.071307][ T7475] journal_seq_nonempty 6 [ 277.071317][ T7475] journal_seq_empty 0 [ 277.071328][ T7475] need_discard 1 [ 277.071339][ T7475] need_inc_gen 1 [ 277.071350][ T7475] dirty_sectors 0 [ 277.071360][ T7475] stripe_sectors 0 [ 277.071370][ T7475] cached_sectors 0 [ 277.071379][ T7475] stripe 0 [ 277.071390][ T7475] stripe_redundancy 0 [ 277.071400][ T7475] io_time[READ] 1 [ 277.071409][ T7475] io_time[WRITE] 768 [ 277.071421][ T7475] fragmentation 0 [ 277.071431][ T7475] bp_start 8 [ 277.071441][ T7475] , fixing [ 277.087387][ T7475] done [ 277.091905][ T7475] bcachefs (loop2): check_lrus... done [ 277.093351][ T7475] bcachefs (loop2): check_btree_backpointers... done [ 277.094684][ T7475] bcachefs (loop2): check_backpointers_to_extents... done [ 277.099116][ T7475] bcachefs (loop2): check_extents_to_backpointers... [ 277.101163][ T7475] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 277.104398][ T7475] done [ 277.105147][ T7475] bcachefs (loop2): check_alloc_to_lru_refs... [ 277.107012][ T7475] bcachefs (loop2): missing fragmentation lru entry [ 277.107029][ T7475] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 277.107041][ T7475] gen 0 oldest_gen 0 data_type user [ 277.107052][ T7475] journal_seq_nonempty 5 [ 277.107062][ T7475] journal_seq_empty 134217728 [ 277.107073][ T7475] need_discard 1 [ 277.107083][ T7475] need_inc_gen 1 [ 277.107094][ T7475] dirty_sectors 16 [ 277.107104][ T7475] stripe_sectors 1802251 [ 277.107114][ T7475] cached_sectors 0 [ 277.107124][ T7475] stripe 0 [ 277.107134][ T7475] stripe_redundancy 0 [ 277.107143][ T7475] io_time[READ] 1 [ 277.107153][ T7475] io_time[WRITE] 512 [ 277.107163][ T7475] fragmentation 0 [ 277.107172][ T7475] bp_start 7 [ 277.107182][ T7475] , fixing [ 277.108709][ T7475] done [ 277.112016][ T7475] bcachefs (loop2): bucket_gens_init... done [ 277.115533][ T7475] bcachefs (loop2): check_snapshot_trees... done [ 277.116274][ T7475] bcachefs (loop2): check_snapshots... [ 277.116879][ T7475] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 277.116897][ T7475] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 277.128341][ T7475] done [ 277.129087][ T7475] bcachefs (loop2): check_subvols... done [ 277.131717][ T7475] bcachefs (loop2): check_subvol_children... done [ 277.132548][ T7475] bcachefs (loop2): delete_dead_snapshots... done [ 277.133333][ T7475] bcachefs (loop2): check_inodes... [ 277.134423][ T7475] bcachefs (loop2): inode points to missing dirent [ 277.134440][ T7475] inum: 4098:4294967295 [ 277.134450][ T7475] mode=40755 [ 277.134460][ T7475] flags=(15300000) [ 277.134469][ T7475] journal_seq=4 [ 277.134479][ T7475] hash_seed=ece93825deac2443 [ 277.134489][ T7475] hash_type=siphash [ 277.134499][ T7475] bi_size=0 [ 277.134508][ T7475] bi_sectors=0 [ 277.134517][ T7475] bi_version=0 [ 277.134526][ T7475] bi_atime=2770562249 [ 277.134538][ T7475] bi_ctime=2780562352 [ 277.134548][ T7475] bi_mtime=2780562352 [ 277.134558][ T7475] bi_otime=2770562249 [ 277.134567][ T7475] bi_uid=0 [ 277.134576][ T7475] bi_gid=0 [ 277.134585][ T7475] bi_nlink=0 [ 277.134594][ T7475] bi_generation=0 [ 277.134603][ T7475] bi_dev=0 [ 277.134613][ T7475] bi_data_checksum=0 [ 277.134622][ T7475] bi_compression=0 [ 277.134632][ T7475] bi_project=0 [ 277.134641][ T7475] bi_background_compression=0 [ 277.134651][ T7475] bi_data_replicas=0 [ 277.134661][ T7475] bi_promote_target=0 [ 277.134670][ T7475] bi_foreground_target=64 [ 277.134681][ T7475] bi_background_target=1 [ 277.134692][ T7475] bi_erasure_code=0 [ 277.134702][ T7475] bi_fields_set=0 [ 277.134711][ T7475] bi_dir=0 [ 277.134720][ T7475] bi_dir_offset=32 [ 277.134729][ T7475] bi_subvol=0 [ 277.134739][ T7475] bi_parent_subvol=0 [ 277.134748][ T7475] bi_nocow=0 [ 277.134757][ T7475] bi_depth=0 [ 277.134766][ T7475] bi_inodes_32bit=0 [ 277.134788][ T7475] bi_casefold=0, fixing [ 277.136892][ T7475] done [ 277.137541][ T7475] bcachefs (loop2): check_extents... done [ 277.138948][ T7475] bcachefs (loop2): check_indirect_extents... done [ 277.141874][ T7475] bcachefs (loop2): check_dirents... [ 277.143576][ T7475] bcachefs (loop2): directory with missing backpointer [ 277.143594][ T7475] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 277.143608][ T7475] inum: 4098:4294967295 [ 277.143617][ T7475] mode=40755 [ 277.143627][ T7475] flags=(11300000) [ 277.143638][ T7475] journal_seq=22 [ 277.143647][ T7475] hash_seed=ece93825deac2443 [ 277.143658][ T7475] hash_type=siphash [ 277.143667][ T7475] bi_size=0 [ 277.143676][ T7475] bi_sectors=0 [ 277.143685][ T7475] bi_version=0 [ 277.143695][ T7475] bi_atime=2770562249 [ 277.143705][ T7475] bi_ctime=2780562352 [ 277.143714][ T7475] bi_mtime=2780562352 [ 277.143724][ T7475] bi_otime=2770562249 [ 277.143734][ T7475] bi_uid=0 [ 277.143743][ T7475] bi_gid=0 [ 277.143752][ T7475] bi_nlink=0 [ 277.143761][ T7475] bi_generation=0 [ 277.143779][ T7475] bi_dev=0 [ 277.143788][ T7475] bi_data_checksum=0 [ 277.143798][ T7475] bi_compression=0 [ 277.143807][ T7475] bi_project=0 [ 277.143816][ T7475] bi_background_compression=0 [ 277.143827][ T7475] bi_data_replicas=0 [ 277.143836][ T7475] bi_promote_target=0 [ 277.143846][ T7475] bi_foreground_target=64 [ 277.143856][ T7475] bi_background_target=1 [ 277.143866][ T7475] bi_erasure_code=0 [ 277.143875][ T7475] bi_fields_set=0 [ 277.143885][ T7475] bi_dir=0 [ 277.143894][ T7475] bi_dir_offset=0 [ 277.143903][ T7475] bi_subvol=0 [ 277.143912][ T7475] bi_parent_subvol=0 [ 277.143924][ T7475] bi_nocow=0 [ 277.143931][ T7475] bi_depth=0 [ 277.143940][ T7475] bi_inodes_32bit=0 [ 277.143950][ T7475] bi_casefold=0, fixing [ 277.152493][ T7475] done [ 277.153266][ T7475] bcachefs (loop2): check_xattrs... done [ 277.154527][ T7475] bcachefs (loop2): check_root... done [ 277.155694][ T7475] bcachefs (loop2): check_unreachable_inodes... done [ 277.156694][ T7475] bcachefs (loop2): check_subvolume_structure... done [ 277.157988][ T7475] bcachefs (loop2): check_directory_structure... done [ 277.158848][ T7475] bcachefs (loop2): check_nlinks... [ 277.160349][ T7475] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 277.162290][ T7475] done [ 277.162966][ T7475] bcachefs (loop2): check_rebalance_work... done [ 277.164172][ T7475] bcachefs (loop2): resume_logged_ops... done [ 277.164998][ T7475] bcachefs (loop2): delete_dead_inodes... done [ 277.174274][ T7475] bcachefs (loop2): set_fs_needs_rebalance... done [ 277.184008][ T7475] bcachefs (loop2): check_extents_to_backpointers... [ 277.184969][ T7475] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 277.185847][ T7484] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 277.185864][ T7484] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 277.191789][ T7475] done [ 277.210753][ T7475] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 277.210789][ T7475] bcachefs (loop2): check_alloc_info... done [ 277.220024][ T7475] bcachefs (loop2): check_lrus... done [ 277.221124][ T7475] bcachefs (loop2): check_btree_backpointers... done [ 277.222329][ T7475] bcachefs (loop2): check_backpointers_to_extents... done [ 277.223848][ T7475] bcachefs (loop2): check_extents_to_backpointers... done [ 277.225535][ T7475] bcachefs (loop2): check_alloc_to_lru_refs... done [ 277.231068][ T7475] bcachefs (loop2): bucket_gens_init... done [ 277.233699][ T7475] bcachefs (loop2): check_snapshot_trees... done [ 277.236787][ T7475] bcachefs (loop2): check_snapshots... done [ 277.240981][ T7475] bcachefs (loop2): check_subvols... done [ 277.241787][ T7475] bcachefs (loop2): check_subvol_children... done [ 277.242538][ T7475] bcachefs (loop2): delete_dead_snapshots... done [ 277.243180][ T7475] bcachefs (loop2): check_inodes... done [ 277.244307][ T7475] bcachefs (loop2): check_extents... done [ 277.250526][ T7475] bcachefs (loop2): check_indirect_extents... done [ 277.251254][ T7475] bcachefs (loop2): check_dirents... done [ 277.252774][ T7475] bcachefs (loop2): check_xattrs... done [ 277.257964][ T7475] bcachefs (loop2): check_root... done [ 277.258804][ T7475] bcachefs (loop2): check_unreachable_inodes... done [ 277.260600][ T7475] bcachefs (loop2): check_subvolume_structure... done [ 277.261365][ T7475] bcachefs (loop2): check_directory_structure... done [ 277.262036][ T7475] bcachefs (loop2): check_nlinks... done [ 277.263149][ T7475] bcachefs (loop2): check_rebalance_work... done [ 277.268541][ T7475] bcachefs (loop2): resume_logged_ops... done [ 277.269360][ T7475] bcachefs (loop2): delete_dead_inodes... done [ 277.270234][ T7475] bcachefs (loop2): set_fs_needs_rebalance... done [ 277.279292][ T7475] bcachefs (loop2): done starting filesystem [ 277.370219][ T5839] bcachefs (loop2): shutting down [ 277.370243][ T5839] bcachefs (loop2): going read-only [ 277.370272][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 277.372221][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 277.372221][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 277.372403][ T12] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 277.372420][ T12] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 277.372439][ T12] loop2 checksum error [ 277.403117][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 277.406983][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 277.407849][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 277.409854][ T5839] bcachefs (loop2): marking filesystem clean [ 277.464288][ T5839] bcachefs (loop2): shutdown complete [ 278.219607][ T7486] loop2: detected capacity change from 0 to 32768 [ 278.350454][ T7486] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 278.350483][ T7486] allowing incompatible features above 0.0: (unknown version) [ 278.350497][ T7486] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 278.350526][ T7486] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 278.350694][ T7486] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 278.350939][ T7486] bcachefs (loop2): Version upgrade required: [ 278.350939][ T7486] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 278.350939][ T7486] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 278.350939][ T7486] 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,check_rebalance_work,set_fs_needs_rebalance [ 278.370250][ T7486] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 278.370276][ T7486] size != 0, deleting [ 278.371439][ T7486] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 278.375251][ T7486] bcachefs (loop2): check_topology... done [ 278.376747][ T7486] bcachefs (loop2): accounting_read... done [ 278.410322][ T7486] bcachefs (loop2): alloc_read... done [ 278.411190][ T7486] bcachefs (loop2): snapshots_read... done [ 278.411969][ T7486] bcachefs (loop2): check_allocations... [ 278.413888][ T7486] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 278.413908][ T7486] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 278.416012][ T7486] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 278.416031][ T7486] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 278.417659][ T7486] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 278.417678][ T7486] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 278.421283][ T7486] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 278.421304][ T7486] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 278.423870][ T7486] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 278.423889][ T7486] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 278.424849][ T7486] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.424975][ T7486] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.425530][ T7486] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.425637][ T7486] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.426059][ T7486] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.426163][ T7486] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.426363][ T7486] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.426469][ T7486] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.426678][ T7486] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.426784][ T7486] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.426986][ T7486] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.427091][ T7486] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.427307][ T7486] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.427413][ T7486] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 278.427612][ T7486] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 278.427725][ T7486] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 278.427927][ T7486] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 278.428033][ T7486] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 278.428235][ T7486] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 278.428340][ T7486] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 278.428568][ T7486] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 278.428585][ T7486] Ratelimiting new instances of previous error [ 278.428727][ T7486] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 278.428744][ T7486] Ratelimiting new instances of previous error [ 278.445183][ T7486] done [ 278.447101][ T7486] bcachefs (loop2): going read-write [ 278.452311][ T7486] bcachefs (loop2): journal_replay... done [ 278.480828][ T7486] bcachefs (loop2): check_alloc_info... [ 278.483327][ T7486] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 278.483348][ T7486] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 278.483361][ T7486] gen 0 oldest_gen 0 data_type need_discard [ 278.483374][ T7486] journal_seq_nonempty 6 [ 278.483384][ T7486] journal_seq_empty 0 [ 278.483395][ T7486] need_discard 1 [ 278.483405][ T7486] need_inc_gen 1 [ 278.483415][ T7486] dirty_sectors 0 [ 278.483425][ T7486] stripe_sectors 0 [ 278.483438][ T7486] cached_sectors 0 [ 278.483448][ T7486] stripe 0 [ 278.483458][ T7486] stripe_redundancy 0 [ 278.483468][ T7486] io_time[READ] 1 [ 278.483478][ T7486] io_time[WRITE] 768 [ 278.483488][ T7486] fragmentation 0 [ 278.483499][ T7486] bp_start 8 [ 278.483508][ T7486] , fixing [ 278.499500][ T7486] done [ 278.503845][ T7486] bcachefs (loop2): check_lrus... done [ 278.505053][ T7486] bcachefs (loop2): check_btree_backpointers... done [ 278.508018][ T7486] bcachefs (loop2): check_backpointers_to_extents... done [ 278.513470][ T7486] bcachefs (loop2): check_extents_to_backpointers... [ 278.515324][ T7486] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 278.516747][ T7486] done [ 278.517402][ T7486] bcachefs (loop2): check_alloc_to_lru_refs... [ 278.520097][ T7486] bcachefs (loop2): missing fragmentation lru entry [ 278.520114][ T7486] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 278.520125][ T7486] gen 0 oldest_gen 0 data_type user [ 278.520135][ T7486] journal_seq_nonempty 5 [ 278.520145][ T7486] journal_seq_empty 134217728 [ 278.520156][ T7486] need_discard 1 [ 278.520165][ T7486] need_inc_gen 1 [ 278.520175][ T7486] dirty_sectors 16 [ 278.520186][ T7486] stripe_sectors 1802251 [ 278.520197][ T7486] cached_sectors 0 [ 278.520207][ T7486] stripe 0 [ 278.520217][ T7486] stripe_redundancy 0 [ 278.520227][ T7486] io_time[READ] 1 [ 278.520237][ T7486] io_time[WRITE] 512 [ 278.520247][ T7486] fragmentation 0 [ 278.520257][ T7486] bp_start 7 [ 278.520268][ T7486] , fixing [ 278.521784][ T7486] done [ 278.523365][ T7486] bcachefs (loop2): bucket_gens_init... done [ 278.525887][ T7486] bcachefs (loop2): check_snapshot_trees... done [ 278.526742][ T7486] bcachefs (loop2): check_snapshots... [ 278.527336][ T7486] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 278.527352][ T7486] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 278.540719][ T7486] done [ 278.541444][ T7486] bcachefs (loop2): check_subvols... done [ 278.543059][ T7486] bcachefs (loop2): check_subvol_children... done [ 278.543992][ T7486] bcachefs (loop2): delete_dead_snapshots... done [ 278.544769][ T7486] bcachefs (loop2): check_inodes... [ 278.545865][ T7486] bcachefs (loop2): inode points to missing dirent [ 278.545882][ T7486] inum: 4098:4294967295 [ 278.545893][ T7486] mode=40755 [ 278.545909][ T7486] flags=(15300000) [ 278.545919][ T7486] journal_seq=4 [ 278.545929][ T7486] hash_seed=ece93825deac2443 [ 278.545939][ T7486] hash_type=siphash [ 278.545948][ T7486] bi_size=0 [ 278.545957][ T7486] bi_sectors=0 [ 278.545967][ T7486] bi_version=0 [ 278.545976][ T7486] bi_atime=2770562249 [ 278.545986][ T7486] bi_ctime=2780562352 [ 278.545996][ T7486] bi_mtime=2780562352 [ 278.546006][ T7486] bi_otime=2770562249 [ 278.546016][ T7486] bi_uid=0 [ 278.546026][ T7486] bi_gid=0 [ 278.546033][ T7486] bi_nlink=0 [ 278.546044][ T7486] bi_generation=0 [ 278.546054][ T7486] bi_dev=0 [ 278.546063][ T7486] bi_data_checksum=0 [ 278.546073][ T7486] bi_compression=0 [ 278.546082][ T7486] bi_project=0 [ 278.546091][ T7486] bi_background_compression=0 [ 278.546101][ T7486] bi_data_replicas=0 [ 278.546111][ T7486] bi_promote_target=0 [ 278.546121][ T7486] bi_foreground_target=64 [ 278.546131][ T7486] bi_background_target=1 [ 278.546141][ T7486] bi_erasure_code=0 [ 278.546150][ T7486] bi_fields_set=0 [ 278.546160][ T7486] bi_dir=0 [ 278.546169][ T7486] bi_dir_offset=32 [ 278.546179][ T7486] bi_subvol=0 [ 278.546188][ T7486] bi_parent_subvol=0 [ 278.546199][ T7486] bi_nocow=0 [ 278.546208][ T7486] bi_depth=0 [ 278.546217][ T7486] bi_inodes_32bit=0 [ 278.546227][ T7486] bi_casefold=0, fixing [ 278.547812][ T7486] done [ 278.549059][ T7486] bcachefs (loop2): check_extents... done [ 278.554875][ T7486] bcachefs (loop2): check_indirect_extents... done [ 278.555728][ T7486] bcachefs (loop2): check_dirents... [ 278.557457][ T7486] bcachefs (loop2): directory with missing backpointer [ 278.557475][ T7486] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 278.557488][ T7486] inum: 4098:4294967295 [ 278.557500][ T7486] mode=40755 [ 278.557509][ T7486] flags=(11300000) [ 278.557519][ T7486] journal_seq=22 [ 278.557528][ T7486] hash_seed=ece93825deac2443 [ 278.557539][ T7486] hash_type=siphash [ 278.557548][ T7486] bi_size=0 [ 278.557557][ T7486] bi_sectors=0 [ 278.557567][ T7486] bi_version=0 [ 278.557584][ T7486] bi_atime=2770562249 [ 278.557594][ T7486] bi_ctime=2780562352 [ 278.557604][ T7486] bi_mtime=2780562352 [ 278.557613][ T7486] bi_otime=2770562249 [ 278.557623][ T7486] bi_uid=0 [ 278.557632][ T7486] bi_gid=0 [ 278.557641][ T7486] bi_nlink=0 [ 278.557650][ T7486] bi_generation=0 [ 278.557658][ T7486] bi_dev=0 [ 278.557668][ T7486] bi_data_checksum=0 [ 278.557677][ T7486] bi_compression=0 [ 278.557687][ T7486] bi_project=0 [ 278.557696][ T7486] bi_background_compression=0 [ 278.557706][ T7486] bi_data_replicas=0 [ 278.557717][ T7486] bi_promote_target=0 [ 278.557727][ T7486] bi_foreground_target=64 [ 278.557737][ T7486] bi_background_target=1 [ 278.557746][ T7486] bi_erasure_code=0 [ 278.557756][ T7486] bi_fields_set=0 [ 278.557766][ T7486] bi_dir=0 [ 278.557774][ T7486] bi_dir_offset=0 [ 278.557784][ T7486] bi_subvol=0 [ 278.557793][ T7486] bi_parent_subvol=0 [ 278.557803][ T7486] bi_nocow=0 [ 278.557812][ T7486] bi_depth=0 [ 278.557821][ T7486] bi_inodes_32bit=0 [ 278.557831][ T7486] bi_casefold=0, fixing [ 278.565461][ T7486] done [ 278.566127][ T7486] bcachefs (loop2): check_xattrs... done [ 278.567550][ T7486] bcachefs (loop2): check_root... done [ 278.568739][ T7486] bcachefs (loop2): check_unreachable_inodes... done [ 278.570795][ T7486] bcachefs (loop2): check_subvolume_structure... done [ 278.571652][ T7486] bcachefs (loop2): check_directory_structure... done [ 278.572403][ T7486] bcachefs (loop2): check_nlinks... [ 278.573111][ T7486] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 278.574192][ T7486] done [ 278.574879][ T7486] bcachefs (loop2): check_rebalance_work... done [ 278.576095][ T7486] bcachefs (loop2): resume_logged_ops... done [ 278.576916][ T7486] bcachefs (loop2): delete_dead_inodes... done [ 278.586749][ T7486] bcachefs (loop2): set_fs_needs_rebalance... [ 278.595804][ T7495] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 278.595828][ T7495] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 278.598716][ T7486] done [ 278.600061][ T7486] bcachefs (loop2): check_extents_to_backpointers... [ 278.601018][ T7486] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 278.607052][ T7486] done [ 278.616647][ T7486] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 278.616672][ T7486] bcachefs (loop2): check_alloc_info... done [ 278.621653][ T7486] bcachefs (loop2): check_lrus... done [ 278.622792][ T7486] bcachefs (loop2): check_btree_backpointers... done [ 278.624597][ T7486] bcachefs (loop2): check_backpointers_to_extents... done [ 278.626115][ T7486] bcachefs (loop2): check_extents_to_backpointers... done [ 278.627859][ T7486] bcachefs (loop2): check_alloc_to_lru_refs... done [ 278.631352][ T7486] bcachefs (loop2): bucket_gens_init... done [ 278.633407][ T7486] bcachefs (loop2): check_snapshot_trees... done [ 278.635162][ T7486] bcachefs (loop2): check_snapshots... done [ 278.636000][ T7486] bcachefs (loop2): check_subvols... done [ 278.636859][ T7486] bcachefs (loop2): check_subvol_children... done [ 278.637557][ T7486] bcachefs (loop2): delete_dead_snapshots... done [ 278.638326][ T7486] bcachefs (loop2): check_inodes... done [ 278.640926][ T7486] bcachefs (loop2): check_extents... done [ 278.642400][ T7486] bcachefs (loop2): check_indirect_extents... done [ 278.643219][ T7486] bcachefs (loop2): check_dirents... done [ 278.645179][ T7486] bcachefs (loop2): check_xattrs... done [ 278.646033][ T7486] bcachefs (loop2): check_root... done [ 278.646837][ T7486] bcachefs (loop2): check_unreachable_inodes... done [ 278.647744][ T7486] bcachefs (loop2): check_subvolume_structure... done [ 278.648566][ T7486] bcachefs (loop2): check_directory_structure... done [ 278.650433][ T7486] bcachefs (loop2): check_nlinks... done [ 278.651735][ T7486] bcachefs (loop2): check_rebalance_work... done [ 278.652548][ T7486] bcachefs (loop2): resume_logged_ops... done [ 278.653322][ T7486] bcachefs (loop2): delete_dead_inodes... done [ 278.654159][ T7486] bcachefs (loop2): set_fs_needs_rebalance... done [ 278.658266][ T7486] bcachefs (loop2): done starting filesystem [ 278.733355][ T5839] bcachefs (loop2): shutting down [ 278.733375][ T5839] bcachefs (loop2): going read-only [ 278.733404][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 278.774047][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 278.775637][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 278.776514][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 278.778331][ T5839] bcachefs (loop2): marking filesystem clean [ 278.833802][ T5839] bcachefs (loop2): shutdown complete [ 279.606784][ T7497] loop2: detected capacity change from 0 to 32768 [ 279.785077][ T7497] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 279.785105][ T7497] allowing incompatible features above 0.0: (unknown version) [ 279.785118][ T7497] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 279.785146][ T7497] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 279.785278][ T7497] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 279.785517][ T7497] bcachefs (loop2): Version upgrade required: [ 279.785517][ T7497] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 279.785517][ T7497] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 279.785517][ T7497] 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,check_rebalance_work,set_fs_needs_rebalance [ 279.804478][ T7497] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 279.804504][ T7497] size != 0, deleting [ 279.805667][ T7497] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 279.808986][ T7497] bcachefs (loop2): check_topology... done [ 279.811189][ T7497] bcachefs (loop2): accounting_read... done [ 279.850871][ T7497] bcachefs (loop2): alloc_read... done [ 279.851837][ T7497] bcachefs (loop2): snapshots_read... done [ 279.852632][ T7497] bcachefs (loop2): check_allocations... [ 279.855219][ T7497] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 279.855242][ T7497] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 279.857246][ T7497] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 279.857264][ T7497] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 279.858679][ T7497] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 279.858699][ T7497] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 279.862028][ T7497] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 279.862048][ T7497] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 279.865147][ T7497] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 279.865166][ T7497] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 279.866127][ T7497] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.866254][ T7497] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.866814][ T7497] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.866930][ T7497] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.867335][ T7497] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.867444][ T7497] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.867646][ T7497] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.867750][ T7497] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.867958][ T7497] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.868064][ T7497] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.868264][ T7497] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.868369][ T7497] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.868571][ T7497] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.868677][ T7497] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 279.868886][ T7497] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 279.868992][ T7497] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 279.869532][ T7497] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 279.869641][ T7497] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 279.869879][ T7497] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 279.869987][ T7497] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 279.870231][ T7497] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 279.870246][ T7497] Ratelimiting new instances of previous error [ 279.870378][ T7497] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 279.870393][ T7497] Ratelimiting new instances of previous error [ 279.884077][ T7497] done [ 279.886198][ T7497] bcachefs (loop2): going read-write [ 279.892521][ T7497] bcachefs (loop2): journal_replay... done [ 279.919124][ T7497] bcachefs (loop2): check_alloc_info... [ 279.921880][ T7497] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 279.921900][ T7497] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 279.921914][ T7497] gen 0 oldest_gen 0 data_type need_discard [ 279.921925][ T7497] journal_seq_nonempty 6 [ 279.921935][ T7497] journal_seq_empty 0 [ 279.921945][ T7497] need_discard 1 [ 279.921955][ T7497] need_inc_gen 1 [ 279.921967][ T7497] dirty_sectors 0 [ 279.921977][ T7497] stripe_sectors 0 [ 279.921987][ T7497] cached_sectors 0 [ 279.921996][ T7497] stripe 0 [ 279.922006][ T7497] stripe_redundancy 0 [ 279.922016][ T7497] io_time[READ] 1 [ 279.922026][ T7497] io_time[WRITE] 768 [ 279.922036][ T7497] fragmentation 0 [ 279.922046][ T7497] bp_start 8 [ 279.922055][ T7497] , fixing [ 279.937721][ T7497] done [ 279.941293][ T7497] bcachefs (loop2): check_lrus... done [ 279.942423][ T7497] bcachefs (loop2): check_btree_backpointers... done [ 279.943657][ T7497] bcachefs (loop2): check_backpointers_to_extents... done [ 279.946492][ T7497] bcachefs (loop2): check_extents_to_backpointers... [ 279.947888][ T7497] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 279.952716][ T7497] done [ 279.953269][ T7497] bcachefs (loop2): check_alloc_to_lru_refs... [ 279.954939][ T7497] bcachefs (loop2): missing fragmentation lru entry [ 279.954964][ T7497] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 279.954982][ T7497] gen 0 oldest_gen 0 data_type user [ 279.955001][ T7497] journal_seq_nonempty 5 [ 279.955019][ T7497] journal_seq_empty 134217728 [ 279.955029][ T7497] need_discard 1 [ 279.955039][ T7497] need_inc_gen 1 [ 279.955056][ T7497] dirty_sectors 16 [ 279.955066][ T7497] stripe_sectors 1802251 [ 279.955076][ T7497] cached_sectors 0 [ 279.955085][ T7497] stripe 0 [ 279.955096][ T7497] stripe_redundancy 0 [ 279.955115][ T7497] io_time[READ] 1 [ 279.955125][ T7497] io_time[WRITE] 512 [ 279.955134][ T7497] fragmentation 0 [ 279.955145][ T7497] bp_start 7 [ 279.955155][ T7497] , fixing [ 279.959046][ T7497] done [ 279.963853][ T7497] bcachefs (loop2): bucket_gens_init... done [ 279.966279][ T7497] bcachefs (loop2): check_snapshot_trees... done [ 279.967129][ T7497] bcachefs (loop2): check_snapshots... [ 279.967725][ T7497] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 279.967743][ T7497] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 279.979947][ T7497] done [ 279.980559][ T7497] bcachefs (loop2): check_subvols... done [ 279.982040][ T7497] bcachefs (loop2): check_subvol_children... done [ 279.983012][ T7497] bcachefs (loop2): delete_dead_snapshots... done [ 279.984236][ T7497] bcachefs (loop2): check_inodes... [ 279.985346][ T7497] bcachefs (loop2): inode points to missing dirent [ 279.985363][ T7497] inum: 4098:4294967295 [ 279.985374][ T7497] mode=40755 [ 279.985383][ T7497] flags=(15300000) [ 279.985393][ T7497] journal_seq=4 [ 279.985402][ T7497] hash_seed=ece93825deac2443 [ 279.985412][ T7497] hash_type=siphash [ 279.985422][ T7497] bi_size=0 [ 279.985431][ T7497] bi_sectors=0 [ 279.985440][ T7497] bi_version=0 [ 279.985449][ T7497] bi_atime=2770562249 [ 279.985459][ T7497] bi_ctime=2780562352 [ 279.985469][ T7497] bi_mtime=2780562352 [ 279.985479][ T7497] bi_otime=2770562249 [ 279.985489][ T7497] bi_uid=0 [ 279.985507][ T7497] bi_gid=0 [ 279.985516][ T7497] bi_nlink=0 [ 279.985524][ T7497] bi_generation=0 [ 279.985533][ T7497] bi_dev=0 [ 279.985542][ T7497] bi_data_checksum=0 [ 279.985554][ T7497] bi_compression=0 [ 279.985563][ T7497] bi_project=0 [ 279.985572][ T7497] bi_background_compression=0 [ 279.985582][ T7497] bi_data_replicas=0 [ 279.985592][ T7497] bi_promote_target=0 [ 279.985601][ T7497] bi_foreground_target=64 [ 279.985611][ T7497] bi_background_target=1 [ 279.985621][ T7497] bi_erasure_code=0 [ 279.985631][ T7497] bi_fields_set=0 [ 279.985640][ T7497] bi_dir=0 [ 279.985649][ T7497] bi_dir_offset=32 [ 279.985659][ T7497] bi_subvol=0 [ 279.985668][ T7497] bi_parent_subvol=0 [ 279.985677][ T7497] bi_nocow=0 [ 279.985687][ T7497] bi_depth=0 [ 279.985696][ T7497] bi_inodes_32bit=0 [ 279.985705][ T7497] bi_casefold=0, fixing [ 279.987371][ T7497] done [ 279.988078][ T7497] bcachefs (loop2): check_extents... done [ 279.991896][ T7497] bcachefs (loop2): check_indirect_extents... done [ 279.992603][ T7497] bcachefs (loop2): check_dirents... [ 279.996457][ T7497] bcachefs (loop2): directory with missing backpointer [ 279.996475][ T7497] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 279.996490][ T7497] inum: 4098:4294967295 [ 279.996500][ T7497] mode=40755 [ 279.996510][ T7497] flags=(11300000) [ 279.996519][ T7497] journal_seq=22 [ 279.996529][ T7497] hash_seed=ece93825deac2443 [ 279.996539][ T7497] hash_type=siphash [ 279.996548][ T7497] bi_size=0 [ 279.996557][ T7497] bi_sectors=0 [ 279.996567][ T7497] bi_version=0 [ 279.996576][ T7497] bi_atime=2770562249 [ 279.996586][ T7497] bi_ctime=2780562352 [ 279.996596][ T7497] bi_mtime=2780562352 [ 279.996606][ T7497] bi_otime=2770562249 [ 279.996615][ T7497] bi_uid=0 [ 279.996625][ T7497] bi_gid=0 [ 279.996634][ T7497] bi_nlink=0 [ 279.996643][ T7497] bi_generation=0 [ 279.996652][ T7497] bi_dev=0 [ 279.996661][ T7497] bi_data_checksum=0 [ 279.996671][ T7497] bi_compression=0 [ 279.996680][ T7497] bi_project=0 [ 279.996690][ T7497] bi_background_compression=0 [ 279.996700][ T7497] bi_data_replicas=0 [ 279.996709][ T7497] bi_promote_target=0 [ 279.996721][ T7497] bi_foreground_target=64 [ 279.996731][ T7497] bi_background_target=1 [ 279.996740][ T7497] bi_erasure_code=0 [ 279.996750][ T7497] bi_fields_set=0 [ 279.996759][ T7497] bi_dir=0 [ 279.996776][ T7497] bi_dir_offset=0 [ 279.996784][ T7497] bi_subvol=0 [ 279.996794][ T7497] bi_parent_subvol=0 [ 279.996804][ T7497] bi_nocow=0 [ 279.996812][ T7497] bi_depth=0 [ 279.996822][ T7497] bi_inodes_32bit=0 [ 279.996831][ T7497] bi_casefold=0, fixing [ 280.002347][ T7497] done [ 280.003021][ T7497] bcachefs (loop2): check_xattrs... done [ 280.004312][ T7497] bcachefs (loop2): check_root... done [ 280.005458][ T7497] bcachefs (loop2): check_unreachable_inodes... done [ 280.007025][ T7497] bcachefs (loop2): check_subvolume_structure... done [ 280.007908][ T7497] bcachefs (loop2): check_directory_structure... done [ 280.008749][ T7497] bcachefs (loop2): check_nlinks... [ 280.010339][ T7497] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 280.011455][ T7497] done [ 280.012181][ T7497] bcachefs (loop2): check_rebalance_work... done [ 280.013447][ T7497] bcachefs (loop2): resume_logged_ops... done [ 280.014255][ T7497] bcachefs (loop2): delete_dead_inodes... done [ 280.023631][ T7497] bcachefs (loop2): set_fs_needs_rebalance... [ 280.033431][ T7506] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 280.033453][ T7506] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 280.036268][ T7497] done [ 280.036970][ T7497] bcachefs (loop2): check_extents_to_backpointers... [ 280.038458][ T7497] bcachefs (loop2): scanning for missing backpointers in 2/128 buckets [ 280.042366][ T7506] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 280.044171][ T7497] done [ 280.054100][ T7497] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 280.054128][ T7497] bcachefs (loop2): check_alloc_info... done [ 280.059692][ T7497] bcachefs (loop2): check_lrus... done [ 280.060881][ T7497] bcachefs (loop2): check_btree_backpointers... done [ 280.062167][ T7497] bcachefs (loop2): check_backpointers_to_extents... done [ 280.063758][ T7497] bcachefs (loop2): check_extents_to_backpointers... [ 280.064660][ T7497] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 280.065975][ T7497] done [ 280.065987][ T7497] bcachefs (loop2): check_alloc_to_lru_refs... done [ 280.068369][ T7497] bcachefs (loop2): bucket_gens_init... done [ 280.072720][ T7497] bcachefs (loop2): check_snapshot_trees... done [ 280.073975][ T7497] bcachefs (loop2): check_snapshots... done [ 280.074853][ T7497] bcachefs (loop2): check_subvols... done [ 280.075724][ T7497] bcachefs (loop2): check_subvol_children... done [ 280.076456][ T7497] bcachefs (loop2): delete_dead_snapshots... done [ 280.077221][ T7497] bcachefs (loop2): check_inodes... done [ 280.078455][ T7497] bcachefs (loop2): check_extents... done [ 280.080759][ T7497] bcachefs (loop2): check_indirect_extents... done [ 280.082127][ T7497] bcachefs (loop2): check_dirents... done [ 280.083716][ T7497] bcachefs (loop2): check_xattrs... done [ 280.084661][ T7497] bcachefs (loop2): check_root... done [ 280.085513][ T7497] bcachefs (loop2): check_unreachable_inodes... done [ 280.086440][ T7497] bcachefs (loop2): check_subvolume_structure... done [ 280.087272][ T7497] bcachefs (loop2): check_directory_structure... done [ 280.088081][ T7497] bcachefs (loop2): check_nlinks... done [ 280.089965][ T7497] bcachefs (loop2): check_rebalance_work... done [ 280.091136][ T7497] bcachefs (loop2): resume_logged_ops... done [ 280.092349][ T7497] bcachefs (loop2): delete_dead_inodes... done [ 280.093184][ T7497] bcachefs (loop2): set_fs_needs_rebalance... done [ 280.096819][ T7497] bcachefs (loop2): done starting filesystem [ 280.189654][ T5839] bcachefs (loop2): shutting down [ 280.189676][ T5839] bcachefs (loop2): going read-only [ 280.189705][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 280.231278][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 32 [ 280.232281][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 280.233472][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 280.235438][ T5839] bcachefs (loop2): marking filesystem clean [ 280.236021][ T5900] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 280.236021][ T5900] rw journal devs: [ 280.297488][ T5839] bcachefs (loop2): shutdown complete [ 281.052749][ T7508] loop2: detected capacity change from 0 to 32768 [ 281.183634][ T7508] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 281.183674][ T7508] allowing incompatible features above 0.0: (unknown version) [ 281.183689][ T7508] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 281.183717][ T7508] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 281.183846][ T7508] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 281.184082][ T7508] bcachefs (loop2): Version upgrade required: [ 281.184082][ T7508] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 281.184082][ T7508] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 281.184082][ T7508] 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,check_rebalance_work,set_fs_needs_rebalance [ 281.202717][ T7508] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 281.202746][ T7508] size != 0, deleting [ 281.204352][ T7508] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 281.207941][ T7508] bcachefs (loop2): check_topology... done [ 281.210273][ T7508] bcachefs (loop2): accounting_read... done [ 281.284539][ T7508] bcachefs (loop2): alloc_read... done [ 281.285502][ T7508] bcachefs (loop2): snapshots_read... done [ 281.286374][ T7508] bcachefs (loop2): check_allocations... [ 281.288494][ T7508] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 281.288515][ T7508] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 281.291530][ T7508] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 281.291550][ T7508] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 281.292959][ T7508] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 281.292978][ T7508] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 281.294481][ T7508] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 281.294499][ T7508] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 281.296917][ T7508] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 281.296935][ T7508] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 281.298394][ T7508] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.298523][ T7508] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.299095][ T7508] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.300225][ T7508] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.300660][ T7508] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.300770][ T7508] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.300988][ T7508] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.301095][ T7508] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.301306][ T7508] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.301411][ T7508] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.301631][ T7508] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.301779][ T7508] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.301990][ T7508] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.302097][ T7508] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 281.302308][ T7508] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 281.302411][ T7508] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 281.302612][ T7508] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 281.302727][ T7508] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 281.302934][ T7508] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 281.303052][ T7508] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 281.303313][ T7508] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 281.303329][ T7508] Ratelimiting new instances of previous error [ 281.303454][ T7508] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 281.303471][ T7508] Ratelimiting new instances of previous error [ 281.317118][ T7508] done [ 281.319790][ T7508] bcachefs (loop2): going read-write [ 281.325528][ T7508] bcachefs (loop2): journal_replay... done [ 281.353570][ T7508] bcachefs (loop2): check_alloc_info... [ 281.355363][ T7508] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 281.355383][ T7508] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 281.355395][ T7508] gen 0 oldest_gen 0 data_type need_discard [ 281.355405][ T7508] journal_seq_nonempty 6 [ 281.355417][ T7508] journal_seq_empty 0 [ 281.355427][ T7508] need_discard 1 [ 281.355437][ T7508] need_inc_gen 1 [ 281.355447][ T7508] dirty_sectors 0 [ 281.355456][ T7508] stripe_sectors 0 [ 281.355467][ T7508] cached_sectors 0 [ 281.355476][ T7508] stripe 0 [ 281.355486][ T7508] stripe_redundancy 0 [ 281.355496][ T7508] io_time[READ] 1 [ 281.355506][ T7508] io_time[WRITE] 768 [ 281.355515][ T7508] fragmentation 0 [ 281.355525][ T7508] bp_start 8 [ 281.355535][ T7508] , fixing [ 281.371655][ T7508] done [ 281.374023][ T7508] bcachefs (loop2): check_lrus... done [ 281.378954][ T7508] bcachefs (loop2): check_btree_backpointers... done [ 281.380999][ T7508] bcachefs (loop2): check_backpointers_to_extents... done [ 281.383717][ T7508] bcachefs (loop2): check_extents_to_backpointers... [ 281.387161][ T7508] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 281.388534][ T7508] done [ 281.390316][ T7508] bcachefs (loop2): check_alloc_to_lru_refs... [ 281.392265][ T7508] bcachefs (loop2): missing fragmentation lru entry [ 281.392280][ T7508] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 281.392293][ T7508] gen 0 oldest_gen 0 data_type user [ 281.392304][ T7508] journal_seq_nonempty 5 [ 281.392314][ T7508] journal_seq_empty 134217728 [ 281.392324][ T7508] need_discard 1 [ 281.392333][ T7508] need_inc_gen 1 [ 281.392344][ T7508] dirty_sectors 16 [ 281.392354][ T7508] stripe_sectors 1802251 [ 281.392364][ T7508] cached_sectors 0 [ 281.392374][ T7508] stripe 0 [ 281.392384][ T7508] stripe_redundancy 0 [ 281.392394][ T7508] io_time[READ] 1 [ 281.392404][ T7508] io_time[WRITE] 512 [ 281.392414][ T7508] fragmentation 0 [ 281.392424][ T7508] bp_start 7 [ 281.392434][ T7508] , fixing [ 281.396413][ T7508] done [ 281.397991][ T7508] bcachefs (loop2): bucket_gens_init... done [ 281.400672][ T7508] bcachefs (loop2): check_snapshot_trees... done [ 281.401510][ T7508] bcachefs (loop2): check_snapshots... [ 281.402110][ T7508] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 281.402127][ T7508] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 281.413450][ T7508] done [ 281.414209][ T7508] bcachefs (loop2): check_subvols... done [ 281.415790][ T7508] bcachefs (loop2): check_subvol_children... done [ 281.417275][ T7508] bcachefs (loop2): delete_dead_snapshots... done [ 281.418077][ T7508] bcachefs (loop2): check_inodes... [ 281.419999][ T7508] bcachefs (loop2): inode points to missing dirent [ 281.420016][ T7508] inum: 4098:4294967295 [ 281.420028][ T7508] mode=40755 [ 281.420038][ T7508] flags=(15300000) [ 281.420047][ T7508] journal_seq=4 [ 281.420057][ T7508] hash_seed=ece93825deac2443 [ 281.420067][ T7508] hash_type=siphash [ 281.420077][ T7508] bi_size=0 [ 281.420086][ T7508] bi_sectors=0 [ 281.420095][ T7508] bi_version=0 [ 281.420105][ T7508] bi_atime=2770562249 [ 281.420115][ T7508] bi_ctime=2780562352 [ 281.420124][ T7508] bi_mtime=2780562352 [ 281.420134][ T7508] bi_otime=2770562249 [ 281.420143][ T7508] bi_uid=0 [ 281.420152][ T7508] bi_gid=0 [ 281.420161][ T7508] bi_nlink=0 [ 281.420170][ T7508] bi_generation=0 [ 281.420180][ T7508] bi_dev=0 [ 281.420189][ T7508] bi_data_checksum=0 [ 281.420198][ T7508] bi_compression=0 [ 281.420210][ T7508] bi_project=0 [ 281.420219][ T7508] bi_background_compression=0 [ 281.420229][ T7508] bi_data_replicas=0 [ 281.420239][ T7508] bi_promote_target=0 [ 281.420248][ T7508] bi_foreground_target=64 [ 281.420258][ T7508] bi_background_target=1 [ 281.420268][ T7508] bi_erasure_code=0 [ 281.420277][ T7508] bi_fields_set=0 [ 281.420287][ T7508] bi_dir=0 [ 281.420296][ T7508] bi_dir_offset=32 [ 281.420306][ T7508] bi_subvol=0 [ 281.420315][ T7508] bi_parent_subvol=0 [ 281.420324][ T7508] bi_nocow=0 [ 281.420334][ T7508] bi_depth=0 [ 281.420343][ T7508] bi_inodes_32bit=0 [ 281.420352][ T7508] bi_casefold=0, fixing [ 281.422074][ T7508] done [ 281.422745][ T7508] bcachefs (loop2): check_extents... done [ 281.424171][ T7508] bcachefs (loop2): check_indirect_extents... done [ 281.424883][ T7508] bcachefs (loop2): check_dirents... [ 281.426577][ T7508] bcachefs (loop2): directory with missing backpointer [ 281.426594][ T7508] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 281.426609][ T7508] inum: 4098:4294967295 [ 281.426625][ T7508] mode=40755 [ 281.426636][ T7508] flags=(11300000) [ 281.426645][ T7508] journal_seq=22 [ 281.426655][ T7508] hash_seed=ece93825deac2443 [ 281.426665][ T7508] hash_type=siphash [ 281.426674][ T7508] bi_size=0 [ 281.426683][ T7508] bi_sectors=0 [ 281.426696][ T7508] bi_version=0 [ 281.426706][ T7508] bi_atime=2770562249 [ 281.426717][ T7508] bi_ctime=2780562352 [ 281.426727][ T7508] bi_mtime=2780562352 [ 281.426736][ T7508] bi_otime=2770562249 [ 281.426746][ T7508] bi_uid=0 [ 281.426755][ T7508] bi_gid=0 [ 281.426765][ T7508] bi_nlink=0 [ 281.426774][ T7508] bi_generation=0 [ 281.426783][ T7508] bi_dev=0 [ 281.426792][ T7508] bi_data_checksum=0 [ 281.426802][ T7508] bi_compression=0 [ 281.426811][ T7508] bi_project=0 [ 281.426820][ T7508] bi_background_compression=0 [ 281.426830][ T7508] bi_data_replicas=0 [ 281.426840][ T7508] bi_promote_target=0 [ 281.426850][ T7508] bi_foreground_target=64 [ 281.426860][ T7508] bi_background_target=1 [ 281.426869][ T7508] bi_erasure_code=0 [ 281.426879][ T7508] bi_fields_set=0 [ 281.426889][ T7508] bi_dir=0 [ 281.426898][ T7508] bi_dir_offset=0 [ 281.426907][ T7508] bi_subvol=0 [ 281.426916][ T7508] bi_parent_subvol=0 [ 281.426926][ T7508] bi_nocow=0 [ 281.426935][ T7508] bi_depth=0 [ 281.426945][ T7508] bi_inodes_32bit=0 [ 281.426955][ T7508] bi_casefold=0, fixing [ 281.430376][ T7508] done [ 281.431252][ T7508] bcachefs (loop2): check_xattrs... done [ 281.434439][ T7508] bcachefs (loop2): check_root... done [ 281.438236][ T7508] bcachefs (loop2): check_unreachable_inodes... done [ 281.439953][ T7508] bcachefs (loop2): check_subvolume_structure... done [ 281.441796][ T7508] bcachefs (loop2): check_directory_structure... done [ 281.444162][ T7508] bcachefs (loop2): check_nlinks... [ 281.445044][ T7508] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 281.446155][ T7508] done [ 281.446892][ T7508] bcachefs (loop2): check_rebalance_work... done [ 281.448127][ T7508] bcachefs (loop2): resume_logged_ops... done [ 281.450090][ T7508] bcachefs (loop2): delete_dead_inodes... done [ 281.458504][ T7508] bcachefs (loop2): set_fs_needs_rebalance... [ 281.467178][ T7517] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 281.467205][ T7517] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 281.470487][ T7508] done [ 281.471494][ T7508] bcachefs (loop2): check_extents_to_backpointers... [ 281.472498][ T7508] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 281.476129][ T7508] done [ 281.491287][ T7508] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 281.491314][ T7508] bcachefs (loop2): check_alloc_info... done [ 281.502248][ T7508] bcachefs (loop2): check_lrus... done [ 281.508869][ T7508] bcachefs (loop2): check_btree_backpointers... done [ 281.510797][ T7508] bcachefs (loop2): check_backpointers_to_extents... done [ 281.512767][ T7508] bcachefs (loop2): check_extents_to_backpointers... done [ 281.514840][ T7508] bcachefs (loop2): check_alloc_to_lru_refs... done [ 281.516987][ T7508] bcachefs (loop2): bucket_gens_init... done [ 281.520878][ T7508] bcachefs (loop2): check_snapshot_trees... done [ 281.525165][ T7508] bcachefs (loop2): check_snapshots... done [ 281.525984][ T7508] bcachefs (loop2): check_subvols... done [ 281.526756][ T7508] bcachefs (loop2): check_subvol_children... done [ 281.527502][ T7508] bcachefs (loop2): delete_dead_snapshots... done [ 281.529800][ T7508] bcachefs (loop2): check_inodes... done [ 281.535802][ T7508] bcachefs (loop2): check_extents... done [ 281.537842][ T7508] bcachefs (loop2): check_indirect_extents... done [ 281.538622][ T7508] bcachefs (loop2): check_dirents... done [ 281.540958][ T7508] bcachefs (loop2): check_xattrs... done [ 281.548603][ T7508] bcachefs (loop2): check_root... done [ 281.549497][ T7508] bcachefs (loop2): check_unreachable_inodes... done [ 281.550403][ T7508] bcachefs (loop2): check_subvolume_structure... done [ 281.551653][ T7508] bcachefs (loop2): check_directory_structure... done [ 281.552388][ T7508] bcachefs (loop2): check_nlinks... done [ 281.553478][ T7508] bcachefs (loop2): check_rebalance_work... done [ 281.554306][ T7508] bcachefs (loop2): resume_logged_ops... done [ 281.554977][ T7508] bcachefs (loop2): delete_dead_inodes... done [ 281.555705][ T7508] bcachefs (loop2): set_fs_needs_rebalance... done [ 281.571419][ T7508] bcachefs (loop2): done starting filesystem [ 281.645874][ T5839] bcachefs (loop2): shutting down [ 281.645894][ T5839] bcachefs (loop2): going read-only [ 281.645924][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 281.686305][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 281.693798][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 281.694998][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 281.696797][ T5839] bcachefs (loop2): marking filesystem clean [ 281.764058][ T5839] bcachefs (loop2): shutdown complete [ 282.511596][ T7519] loop2: detected capacity change from 0 to 32768 [ 282.642604][ T7519] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 282.642633][ T7519] allowing incompatible features above 0.0: (unknown version) [ 282.642648][ T7519] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 282.642676][ T7519] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 282.642802][ T7519] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 282.643043][ T7519] bcachefs (loop2): Version upgrade required: [ 282.643043][ T7519] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 282.643043][ T7519] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 282.643043][ T7519] 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,check_rebalance_work,set_fs_needs_rebalance [ 282.661964][ T7519] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 282.661988][ T7519] size != 0, deleting [ 282.663163][ T7519] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 282.666847][ T7519] bcachefs (loop2): check_topology... done [ 282.668309][ T7519] bcachefs (loop2): accounting_read... done [ 282.703258][ T7519] bcachefs (loop2): alloc_read... done [ 282.704185][ T7519] bcachefs (loop2): snapshots_read... done [ 282.705046][ T7519] bcachefs (loop2): check_allocations... [ 282.706895][ T7519] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 282.706916][ T7519] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 282.708872][ T7519] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 282.708890][ T7519] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 282.711425][ T7519] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 282.711444][ T7519] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 282.713217][ T7519] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 282.713235][ T7519] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 282.716055][ T7519] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 282.716072][ T7519] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 282.716992][ T7519] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.717112][ T7519] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.717672][ T7519] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.717792][ T7519] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.718221][ T7519] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.718325][ T7519] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.718534][ T7519] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.718638][ T7519] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.718837][ T7519] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.718942][ T7519] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.719144][ T7519] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.721837][ T7519] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.722073][ T7519] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.722171][ T7519] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 282.722376][ T7519] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 282.722482][ T7519] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 282.722695][ T7519] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 282.722803][ T7519] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 282.723008][ T7519] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 282.723113][ T7519] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 282.723361][ T7519] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 282.723377][ T7519] Ratelimiting new instances of previous error [ 282.723506][ T7519] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 282.723528][ T7519] Ratelimiting new instances of previous error [ 282.736728][ T7519] done [ 282.738793][ T7519] bcachefs (loop2): going read-write [ 282.744509][ T7519] bcachefs (loop2): journal_replay... done [ 282.771546][ T7519] bcachefs (loop2): check_alloc_info... [ 282.773273][ T7519] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 282.773290][ T7519] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 282.773302][ T7519] gen 0 oldest_gen 0 data_type need_discard [ 282.773314][ T7519] journal_seq_nonempty 6 [ 282.773324][ T7519] journal_seq_empty 0 [ 282.773333][ T7519] need_discard 1 [ 282.773343][ T7519] need_inc_gen 1 [ 282.773352][ T7519] dirty_sectors 0 [ 282.773362][ T7519] stripe_sectors 0 [ 282.773371][ T7519] cached_sectors 0 [ 282.773381][ T7519] stripe 0 [ 282.773391][ T7519] stripe_redundancy 0 [ 282.773400][ T7519] io_time[READ] 1 [ 282.773409][ T7519] io_time[WRITE] 768 [ 282.773421][ T7519] fragmentation 0 [ 282.773430][ T7519] bp_start 8 [ 282.773439][ T7519] , fixing [ 282.789620][ T7519] done [ 282.795567][ T7519] bcachefs (loop2): check_lrus... done [ 282.796725][ T7519] bcachefs (loop2): check_btree_backpointers... done [ 282.798045][ T7519] bcachefs (loop2): check_backpointers_to_extents... done [ 282.803661][ T7519] bcachefs (loop2): check_extents_to_backpointers... [ 282.805035][ T7519] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 282.806890][ T7519] done [ 282.807547][ T7519] bcachefs (loop2): check_alloc_to_lru_refs... [ 282.810599][ T7519] bcachefs (loop2): missing fragmentation lru entry [ 282.810616][ T7519] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 282.810629][ T7519] gen 0 oldest_gen 0 data_type user [ 282.810639][ T7519] journal_seq_nonempty 5 [ 282.810648][ T7519] journal_seq_empty 134217728 [ 282.810658][ T7519] need_discard 1 [ 282.810668][ T7519] need_inc_gen 1 [ 282.810677][ T7519] dirty_sectors 16 [ 282.810687][ T7519] stripe_sectors 1802251 [ 282.810698][ T7519] cached_sectors 0 [ 282.810708][ T7519] stripe 0 [ 282.810718][ T7519] stripe_redundancy 0 [ 282.810728][ T7519] io_time[READ] 1 [ 282.810737][ T7519] io_time[WRITE] 512 [ 282.810746][ T7519] fragmentation 0 [ 282.810756][ T7519] bp_start 7 [ 282.810765][ T7519] , fixing [ 282.813965][ T7519] done [ 282.815513][ T7519] bcachefs (loop2): bucket_gens_init... done [ 282.818115][ T7519] bcachefs (loop2): check_snapshot_trees... done [ 282.818948][ T7519] bcachefs (loop2): check_snapshots... [ 282.820057][ T7519] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 282.820075][ T7519] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 282.830858][ T7519] done [ 282.831598][ T7519] bcachefs (loop2): check_subvols... done [ 282.833241][ T7519] bcachefs (loop2): check_subvol_children... done [ 282.834097][ T7519] bcachefs (loop2): delete_dead_snapshots... done [ 282.834976][ T7519] bcachefs (loop2): check_inodes... [ 282.836064][ T7519] bcachefs (loop2): inode points to missing dirent [ 282.836081][ T7519] inum: 4098:4294967295 [ 282.836091][ T7519] mode=40755 [ 282.836101][ T7519] flags=(15300000) [ 282.836111][ T7519] journal_seq=4 [ 282.836120][ T7519] hash_seed=ece93825deac2443 [ 282.836132][ T7519] hash_type=siphash [ 282.836141][ T7519] bi_size=0 [ 282.836151][ T7519] bi_sectors=0 [ 282.836160][ T7519] bi_version=0 [ 282.836169][ T7519] bi_atime=2770562249 [ 282.836179][ T7519] bi_ctime=2780562352 [ 282.836188][ T7519] bi_mtime=2780562352 [ 282.836198][ T7519] bi_otime=2770562249 [ 282.836265][ T7519] bi_uid=0 [ 282.836274][ T7519] bi_gid=0 [ 282.836283][ T7519] bi_nlink=0 [ 282.836292][ T7519] bi_generation=0 [ 282.836302][ T7519] bi_dev=0 [ 282.836311][ T7519] bi_data_checksum=0 [ 282.836321][ T7519] bi_compression=0 [ 282.836330][ T7519] bi_project=0 [ 282.836340][ T7519] bi_background_compression=0 [ 282.836350][ T7519] bi_data_replicas=0 [ 282.836361][ T7519] bi_promote_target=0 [ 282.836371][ T7519] bi_foreground_target=64 [ 282.836381][ T7519] bi_background_target=1 [ 282.836390][ T7519] bi_erasure_code=0 [ 282.836400][ T7519] bi_fields_set=0 [ 282.836410][ T7519] bi_dir=0 [ 282.836419][ T7519] bi_dir_offset=32 [ 282.836428][ T7519] bi_subvol=0 [ 282.836437][ T7519] bi_parent_subvol=0 [ 282.836447][ T7519] bi_nocow=0 [ 282.836456][ T7519] bi_depth=0 [ 282.836523][ T7519] bi_inodes_32bit=0 [ 282.836539][ T7519] bi_casefold=0, fixing [ 282.838841][ T7519] done [ 282.842143][ T7519] bcachefs (loop2): check_extents... done [ 282.845237][ T7519] bcachefs (loop2): check_indirect_extents... done [ 282.846092][ T7519] bcachefs (loop2): check_dirents... [ 282.847851][ T7519] bcachefs (loop2): directory with missing backpointer [ 282.847867][ T7519] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 282.847880][ T7519] inum: 4098:4294967295 [ 282.847890][ T7519] mode=40755 [ 282.847899][ T7519] flags=(11300000) [ 282.847908][ T7519] journal_seq=22 [ 282.847918][ T7519] hash_seed=ece93825deac2443 [ 282.847929][ T7519] hash_type=siphash [ 282.847938][ T7519] bi_size=0 [ 282.847947][ T7519] bi_sectors=0 [ 282.847956][ T7519] bi_version=0 [ 282.847964][ T7519] bi_atime=2770562249 [ 282.847974][ T7519] bi_ctime=2780562352 [ 282.847983][ T7519] bi_mtime=2780562352 [ 282.847992][ T7519] bi_otime=2770562249 [ 282.848002][ T7519] bi_uid=0 [ 282.848010][ T7519] bi_gid=0 [ 282.848019][ T7519] bi_nlink=0 [ 282.848028][ T7519] bi_generation=0 [ 282.848037][ T7519] bi_dev=0 [ 282.848046][ T7519] bi_data_checksum=0 [ 282.848055][ T7519] bi_compression=0 [ 282.848064][ T7519] bi_project=0 [ 282.848073][ T7519] bi_background_compression=0 [ 282.848083][ T7519] bi_data_replicas=0 [ 282.848092][ T7519] bi_promote_target=0 [ 282.848102][ T7519] bi_foreground_target=64 [ 282.848111][ T7519] bi_background_target=1 [ 282.848121][ T7519] bi_erasure_code=0 [ 282.848130][ T7519] bi_fields_set=0 [ 282.848138][ T7519] bi_dir=0 [ 282.848148][ T7519] bi_dir_offset=0 [ 282.848156][ T7519] bi_subvol=0 [ 282.848165][ T7519] bi_parent_subvol=0 [ 282.848174][ T7519] bi_nocow=0 [ 282.848183][ T7519] bi_depth=0 [ 282.848192][ T7519] bi_inodes_32bit=0 [ 282.848201][ T7519] bi_casefold=0, fixing [ 282.855661][ T7519] done [ 282.856368][ T7519] bcachefs (loop2): check_xattrs... done [ 282.857695][ T7519] bcachefs (loop2): check_root... done [ 282.858905][ T7519] bcachefs (loop2): check_unreachable_inodes... done [ 282.861419][ T7519] bcachefs (loop2): check_subvolume_structure... done [ 282.862291][ T7519] bcachefs (loop2): check_directory_structure... done [ 282.863074][ T7519] bcachefs (loop2): check_nlinks... [ 282.863828][ T7519] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 282.864954][ T7519] done [ 282.865654][ T7519] bcachefs (loop2): check_rebalance_work... done [ 282.866897][ T7519] bcachefs (loop2): resume_logged_ops... done [ 282.867726][ T7519] bcachefs (loop2): delete_dead_inodes... done [ 282.877348][ T7519] bcachefs (loop2): set_fs_needs_rebalance... [ 282.885751][ T7528] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 282.885777][ T7528] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 282.888733][ T7519] done [ 282.889945][ T7519] bcachefs (loop2): check_extents_to_backpointers... [ 282.890907][ T7519] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 282.894670][ T7528] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 282.897462][ T7519] done [ 282.907319][ T7519] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 282.907344][ T7519] bcachefs (loop2): check_alloc_info... done [ 282.912833][ T7519] bcachefs (loop2): check_lrus... done [ 282.914001][ T7519] bcachefs (loop2): check_btree_backpointers... done [ 282.915301][ T7519] bcachefs (loop2): check_backpointers_to_extents... done [ 282.916803][ T7519] bcachefs (loop2): check_extents_to_backpointers... [ 282.917689][ T7519] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 282.919015][ T7519] done [ 282.919028][ T7519] bcachefs (loop2): check_alloc_to_lru_refs... done [ 282.923479][ T7519] bcachefs (loop2): bucket_gens_init... done [ 282.925600][ T7519] bcachefs (loop2): check_snapshot_trees... done [ 282.926794][ T7519] bcachefs (loop2): check_snapshots... done [ 282.927680][ T7519] bcachefs (loop2): check_subvols... done [ 282.928543][ T7519] bcachefs (loop2): check_subvol_children... done [ 282.930190][ T7519] bcachefs (loop2): delete_dead_snapshots... done [ 282.930882][ T7519] bcachefs (loop2): check_inodes... done [ 282.932067][ T7519] bcachefs (loop2): check_extents... done [ 282.934002][ T7519] bcachefs (loop2): check_indirect_extents... done [ 282.934777][ T7519] bcachefs (loop2): check_dirents... done [ 282.936377][ T7519] bcachefs (loop2): check_xattrs... done [ 282.937311][ T7519] bcachefs (loop2): check_root... done [ 282.938161][ T7519] bcachefs (loop2): check_unreachable_inodes... done [ 282.939064][ T7519] bcachefs (loop2): check_subvolume_structure... done [ 282.940784][ T7519] bcachefs (loop2): check_directory_structure... done [ 282.941571][ T7519] bcachefs (loop2): check_nlinks... done [ 282.942823][ T7519] bcachefs (loop2): check_rebalance_work... done [ 282.943653][ T7519] bcachefs (loop2): resume_logged_ops... done [ 282.945060][ T7519] bcachefs (loop2): delete_dead_inodes... done [ 282.945863][ T7519] bcachefs (loop2): set_fs_needs_rebalance... done [ 282.950568][ T7519] bcachefs (loop2): done starting filesystem [ 283.034448][ T5839] bcachefs (loop2): shutting down [ 283.034469][ T5839] bcachefs (loop2): going read-only [ 283.034499][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 283.076613][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 31 [ 283.078333][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 32 [ 283.079119][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 33 [ 283.080992][ T5839] bcachefs (loop2): marking filesystem clean [ 283.136814][ T5839] bcachefs (loop2): shutdown complete [ 283.946046][ T7530] loop2: detected capacity change from 0 to 32768 [ 284.072550][ T7530] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 284.072579][ T7530] allowing incompatible features above 0.0: (unknown version) [ 284.072595][ T7530] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 284.072623][ T7530] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 284.072751][ T7530] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 284.072988][ T7530] bcachefs (loop2): Version upgrade required: [ 284.072988][ T7530] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 284.072988][ T7530] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 284.072988][ T7530] 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,check_rebalance_work,set_fs_needs_rebalance [ 284.092958][ T7530] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 284.092983][ T7530] size != 0, deleting [ 284.094169][ T7530] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 284.097511][ T7530] bcachefs (loop2): check_topology... done [ 284.098991][ T7530] bcachefs (loop2): accounting_read... done [ 284.121213][ T7530] bcachefs (loop2): alloc_read... done [ 284.122232][ T7530] bcachefs (loop2): snapshots_read... done [ 284.123039][ T7530] bcachefs (loop2): check_allocations... [ 284.124993][ T7530] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 284.125013][ T7530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 284.126986][ T7530] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 284.127006][ T7530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 284.128449][ T7530] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 284.128467][ T7530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 284.131620][ T7530] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 284.131638][ T7530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 284.135463][ T7530] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 284.135482][ T7530] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 284.136448][ T7530] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.136574][ T7530] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.137131][ T7530] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.137251][ T7530] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.137647][ T7530] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.137755][ T7530] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.137985][ T7530] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.138093][ T7530] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.138305][ T7530] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.138421][ T7530] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.138626][ T7530] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.138745][ T7530] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.138948][ T7530] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.139054][ T7530] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 284.141689][ T7530] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 284.141801][ T7530] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 284.142028][ T7530] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 284.142137][ T7530] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 284.142354][ T7530] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 284.142460][ T7530] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 284.142695][ T7530] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 284.142712][ T7530] Ratelimiting new instances of previous error [ 284.143136][ T7530] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 284.143154][ T7530] Ratelimiting new instances of previous error [ 284.155083][ T7530] done [ 284.157213][ T7530] bcachefs (loop2): going read-write [ 284.163455][ T7530] bcachefs (loop2): journal_replay... done [ 284.190830][ T7530] bcachefs (loop2): check_alloc_info... [ 284.193131][ T7530] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 284.193150][ T7530] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 284.193162][ T7530] gen 0 oldest_gen 0 data_type need_discard [ 284.193175][ T7530] journal_seq_nonempty 6 [ 284.193184][ T7530] journal_seq_empty 0 [ 284.193195][ T7530] need_discard 1 [ 284.193204][ T7530] need_inc_gen 1 [ 284.193214][ T7530] dirty_sectors 0 [ 284.193224][ T7530] stripe_sectors 0 [ 284.193234][ T7530] cached_sectors 0 [ 284.193244][ T7530] stripe 0 [ 284.193256][ T7530] stripe_redundancy 0 [ 284.193266][ T7530] io_time[READ] 1 [ 284.193276][ T7530] io_time[WRITE] 768 [ 284.193286][ T7530] fragmentation 0 [ 284.193296][ T7530] bp_start 8 [ 284.193305][ T7530] , fixing [ 284.210861][ T7530] done [ 284.216897][ T7530] bcachefs (loop2): check_lrus... done [ 284.217889][ T7530] bcachefs (loop2): check_btree_backpointers... done [ 284.219261][ T7530] bcachefs (loop2): check_backpointers_to_extents... done [ 284.224553][ T7530] bcachefs (loop2): check_extents_to_backpointers... [ 284.225929][ T7530] bcachefs (loop2): scanning for missing backpointers in 6/128 buckets [ 284.227350][ T7530] done [ 284.228122][ T7530] bcachefs (loop2): check_alloc_to_lru_refs... [ 284.231122][ T7530] bcachefs (loop2): missing fragmentation lru entry [ 284.231140][ T7530] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 284.231152][ T7530] gen 0 oldest_gen 0 data_type user [ 284.231164][ T7530] journal_seq_nonempty 5 [ 284.231174][ T7530] journal_seq_empty 134217728 [ 284.231184][ T7530] need_discard 1 [ 284.231195][ T7530] need_inc_gen 1 [ 284.231205][ T7530] dirty_sectors 16 [ 284.231214][ T7530] stripe_sectors 1802251 [ 284.231224][ T7530] cached_sectors 0 [ 284.231235][ T7530] stripe 0 [ 284.231246][ T7530] stripe_redundancy 0 [ 284.231256][ T7530] io_time[READ] 1 [ 284.231266][ T7530] io_time[WRITE] 512 [ 284.231276][ T7530] fragmentation 0 [ 284.231286][ T7530] bp_start 7 [ 284.231296][ T7530] , fixing [ 284.232899][ T7530] done [ 284.235137][ T7530] bcachefs (loop2): bucket_gens_init... done [ 284.237321][ T7530] bcachefs (loop2): check_snapshot_trees... done [ 284.238187][ T7530] bcachefs (loop2): check_snapshots... [ 284.238802][ T7530] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 284.238819][ T7530] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 284.252416][ T7530] done [ 284.253238][ T7530] bcachefs (loop2): check_subvols... done [ 284.255043][ T7530] bcachefs (loop2): check_subvol_children... done [ 284.256017][ T7530] bcachefs (loop2): delete_dead_snapshots... done [ 284.257446][ T7530] bcachefs (loop2): check_inodes... [ 284.258699][ T7530] bcachefs (loop2): inode points to missing dirent [ 284.258716][ T7530] inum: 4098:4294967295 [ 284.258728][ T7530] mode=40755 [ 284.258737][ T7530] flags=(15300000) [ 284.258747][ T7530] journal_seq=4 [ 284.258758][ T7530] hash_seed=ece93825deac2443 [ 284.258770][ T7530] hash_type=siphash [ 284.258780][ T7530] bi_size=0 [ 284.258789][ T7530] bi_sectors=0 [ 284.258799][ T7530] bi_version=0 [ 284.258810][ T7530] bi_atime=2770562249 [ 284.258821][ T7530] bi_ctime=2780562352 [ 284.258831][ T7530] bi_mtime=2780562352 [ 284.258841][ T7530] bi_otime=2770562249 [ 284.258852][ T7530] bi_uid=0 [ 284.258862][ T7530] bi_gid=0 [ 284.258883][ T7530] bi_nlink=0 [ 284.258892][ T7530] bi_generation=0 [ 284.258902][ T7530] bi_dev=0 [ 284.258911][ T7530] bi_data_checksum=0 [ 284.258921][ T7530] bi_compression=0 [ 284.258930][ T7530] bi_project=0 [ 284.258940][ T7530] bi_background_compression=0 [ 284.258951][ T7530] bi_data_replicas=0 [ 284.258961][ T7530] bi_promote_target=0 [ 284.258971][ T7530] bi_foreground_target=64 [ 284.258981][ T7530] bi_background_target=1 [ 284.258991][ T7530] bi_erasure_code=0 [ 284.259026][ T7530] bi_fields_set=0 [ 284.259035][ T7530] bi_dir=0 [ 284.259044][ T7530] bi_dir_offset=32 [ 284.259054][ T7530] bi_subvol=0 [ 284.259070][ T7530] bi_parent_subvol=0 [ 284.259080][ T7530] bi_nocow=0 [ 284.259089][ T7530] bi_depth=0 [ 284.259099][ T7530] bi_inodes_32bit=0 [ 284.259108][ T7530] bi_casefold=0, fixing [ 284.265986][ T7530] done [ 284.266687][ T7530] bcachefs (loop2): check_extents... done [ 284.268680][ T7530] bcachefs (loop2): check_indirect_extents... done [ 284.270068][ T7530] bcachefs (loop2): check_dirents... [ 284.271816][ T7530] bcachefs (loop2): directory with missing backpointer [ 284.271832][ T7530] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 284.271846][ T7530] inum: 4098:4294967295 [ 284.271856][ T7530] mode=40755 [ 284.271868][ T7530] flags=(11300000) [ 284.271877][ T7530] journal_seq=22 [ 284.271887][ T7530] hash_seed=ece93825deac2443 [ 284.271897][ T7530] hash_type=siphash [ 284.271906][ T7530] bi_size=0 [ 284.271915][ T7530] bi_sectors=0 [ 284.271925][ T7530] bi_version=0 [ 284.271934][ T7530] bi_atime=2770562249 [ 284.271944][ T7530] bi_ctime=2780562352 [ 284.271954][ T7530] bi_mtime=2780562352 [ 284.271963][ T7530] bi_otime=2770562249 [ 284.271973][ T7530] bi_uid=0 [ 284.271982][ T7530] bi_gid=0 [ 284.272002][ T7530] bi_nlink=0 [ 284.272011][ T7530] bi_generation=0 [ 284.272021][ T7530] bi_dev=0 [ 284.272030][ T7530] bi_data_checksum=0 [ 284.272040][ T7530] bi_compression=0 [ 284.272049][ T7530] bi_project=0 [ 284.272067][ T7530] bi_background_compression=0 [ 284.272077][ T7530] bi_data_replicas=0 [ 284.272088][ T7530] bi_promote_target=0 [ 284.272098][ T7530] bi_foreground_target=64 [ 284.272108][ T7530] bi_background_target=1 [ 284.272118][ T7530] bi_erasure_code=0 [ 284.272127][ T7530] bi_fields_set=0 [ 284.272137][ T7530] bi_dir=0 [ 284.272146][ T7530] bi_dir_offset=0 [ 284.272155][ T7530] bi_subvol=0 [ 284.272164][ T7530] bi_parent_subvol=0 [ 284.272172][ T7530] bi_nocow=0 [ 284.272181][ T7530] bi_depth=0 [ 284.272191][ T7530] bi_inodes_32bit=0 [ 284.272200][ T7530] bi_casefold=0, fixing [ 284.274428][ T7530] done [ 284.275184][ T7530] bcachefs (loop2): check_xattrs... done [ 284.276402][ T7530] bcachefs (loop2): check_root... done [ 284.278034][ T7530] bcachefs (loop2): check_unreachable_inodes... done [ 284.280648][ T7530] bcachefs (loop2): check_subvolume_structure... done [ 284.282394][ T7530] bcachefs (loop2): check_directory_structure... done [ 284.283093][ T7530] bcachefs (loop2): check_nlinks... [ 284.283804][ T7530] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 284.286662][ T7530] done [ 284.287320][ T7530] bcachefs (loop2): check_rebalance_work... done [ 284.289944][ T7530] bcachefs (loop2): resume_logged_ops... done [ 284.290903][ T7530] bcachefs (loop2): delete_dead_inodes... done [ 284.300832][ T7530] bcachefs (loop2): set_fs_needs_rebalance... done [ 284.310606][ T7530] bcachefs (loop2): check_extents_to_backpointers... [ 284.311644][ T7530] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 284.311995][ T7539] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 284.312014][ T7539] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 284.316050][ T7530] done [ 284.340840][ T7530] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 284.340872][ T7530] bcachefs (loop2): check_alloc_info... done [ 284.349876][ T7530] bcachefs (loop2): check_lrus... done [ 284.351286][ T7530] bcachefs (loop2): check_btree_backpointers... done [ 284.352498][ T7530] bcachefs (loop2): check_backpointers_to_extents... done [ 284.354140][ T7530] bcachefs (loop2): check_extents_to_backpointers... done [ 284.361286][ T7530] bcachefs (loop2): check_alloc_to_lru_refs... done [ 284.363530][ T7530] bcachefs (loop2): bucket_gens_init... done [ 284.368645][ T7530] bcachefs (loop2): check_snapshot_trees... done [ 284.370431][ T7530] bcachefs (loop2): check_snapshots... done [ 284.378629][ T7530] bcachefs (loop2): check_subvols... done [ 284.379696][ T7530] bcachefs (loop2): check_subvol_children... done [ 284.380432][ T7530] bcachefs (loop2): delete_dead_snapshots... done [ 284.381151][ T7530] bcachefs (loop2): check_inodes... done [ 284.382824][ T7530] bcachefs (loop2): check_extents... done [ 284.384446][ T7530] bcachefs (loop2): check_indirect_extents... done [ 284.385138][ T7530] bcachefs (loop2): check_dirents... done [ 284.389934][ T7530] bcachefs (loop2): check_xattrs... done [ 284.391203][ T7530] bcachefs (loop2): check_root... done [ 284.392060][ T7530] bcachefs (loop2): check_unreachable_inodes... done [ 284.400493][ T7530] bcachefs (loop2): check_subvolume_structure... done [ 284.401291][ T7530] bcachefs (loop2): check_directory_structure... done [ 284.402024][ T7530] bcachefs (loop2): check_nlinks... done [ 284.403218][ T7530] bcachefs (loop2): check_rebalance_work... done [ 284.404043][ T7530] bcachefs (loop2): resume_logged_ops... done [ 284.404770][ T7530] bcachefs (loop2): delete_dead_inodes... done [ 284.405499][ T7530] bcachefs (loop2): set_fs_needs_rebalance... done [ 284.415671][ T7530] bcachefs (loop2): done starting filesystem [ 284.481002][ T5839] bcachefs (loop2): shutting down [ 284.481022][ T5839] bcachefs (loop2): going read-only [ 284.481271][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 284.482649][ T4660] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data_read_csum_err [ 284.482649][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 284.482831][ T4660] bcachefs (loop2): inum 0:4099 offset 0: (internal move) data read error, data_read_csum_err [ 284.482849][ T4660] u64s 7 type extent 4099:8:U32_MAX len 8 ver 0: durability: 1 crc: c_size 8 size 8 offset 0 nonce 0 csum none 0:6 compress incompressible ptr: 0:34:0 gen 0 [ 284.482868][ T4660] loop2 checksum error [ 284.521501][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 34 [ 284.525599][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 34 [ 284.526518][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 35 [ 284.528337][ T5839] bcachefs (loop2): marking filesystem clean [ 284.528872][ T5152] bcachefs (loop2): insufficient writeable journal devices available: have 0, need 1 [ 284.528872][ T5152] rw journal devs: [ 284.600413][ T5839] bcachefs (loop2): shutdown complete [ 285.423982][ T7541] loop2: detected capacity change from 0 to 32768 [ 285.554972][ T7541] bcachefs (loop2): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,nojournal_transaction_names [ 285.554998][ T7541] allowing incompatible features above 0.0: (unknown version) [ 285.555011][ T7541] features: lz4,new_siphash,inline_data,new_extent_overwrite,btree_ptr_v2,new_varint,journal_no_flush,alloc_v2,extents_across_btree_nodes [ 285.555036][ T7541] bcachefs (loop2): Using encoding defined by superblock: utf8-12.1.0 [ 285.555150][ T7541] bcachefs (loop2): recovering from clean shutdown, journal seq 10 [ 285.555370][ T7541] bcachefs (loop2): Version upgrade required: [ 285.555370][ T7541] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 285.555370][ T7541] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.28: inode_has_case_insensitive [ 285.555370][ T7541] 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,check_rebalance_work,set_fs_needs_rebalance [ 285.574991][ T7541] bcachefs (loop2): invalid bkey in btree_node btree=lru level=0: u64s 5 type set 18446462598867058688:34:0 len 768 ver 0 [ 285.575018][ T7541] size != 0, deleting [ 285.576023][ T7541] bcachefs (loop2): error reading btree root btree=lru level=0: btree_node_read_error, fixing [ 285.580241][ T7541] bcachefs (loop2): check_topology... done [ 285.582327][ T7541] bcachefs (loop2): accounting_read... done [ 285.634624][ T7541] bcachefs (loop2): alloc_read... done [ 285.635548][ T7541] bcachefs (loop2): snapshots_read... done [ 285.636430][ T7541] bcachefs (loop2): check_allocations... [ 285.638432][ T7541] bcachefs (loop2): bucket 0:26 data type btree ptr gen 0 missing in alloc btree [ 285.638452][ T7541] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq ac62141f8dc7e261 written 24 min_key POS_MIN durability: 1 ptr: 0:26:0 gen 0, fixing [ 285.641915][ T7541] bcachefs (loop2): bucket 0:38 data type btree ptr gen 0 missing in alloc btree [ 285.641934][ T7541] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 7589ab5e0c11cc7a written 24 min_key POS_MIN durability: 1 ptr: 0:38:0 gen 0, fixing [ 285.643368][ T7541] bcachefs (loop2): bucket 0:41 data type btree ptr gen 0 missing in alloc btree [ 285.643388][ T7541] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq 9aa2895aefce4bdf written 24 min_key POS_MIN durability: 1 ptr: 0:41:0 gen 0, fixing [ 285.645437][ T7541] bcachefs (loop2): bucket 0:35 data type btree ptr gen 0 missing in alloc btree [ 285.645456][ T7541] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq c0bef60d07ceb940 written 16 min_key POS_MIN durability: 1 ptr: 0:35:0 gen 0, fixing [ 285.647982][ T7541] bcachefs (loop2): bucket 0:29 data type btree ptr gen 0 missing in alloc btree [ 285.648000][ T7541] while marking u64s 11 type btree_ptr_v2 SPOS_MAX len 0 ver 0: seq e81e1ed936acf3df written 32 min_key POS_MIN durability: 1 ptr: 0:29:0 gen 0, fixing [ 285.648954][ T7541] bcachefs (loop2): bucket 0:1 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.649078][ T7541] bcachefs (loop2): bucket 0:1 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.651346][ T7541] bcachefs (loop2): bucket 0:2 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.651457][ T7541] bcachefs (loop2): bucket 0:2 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.651876][ T7541] bcachefs (loop2): bucket 0:3 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.651981][ T7541] bcachefs (loop2): bucket 0:3 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.652194][ T7541] bcachefs (loop2): bucket 0:4 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.652308][ T7541] bcachefs (loop2): bucket 0:4 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.652513][ T7541] bcachefs (loop2): bucket 0:5 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.652619][ T7541] bcachefs (loop2): bucket 0:5 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.652824][ T7541] bcachefs (loop2): bucket 0:6 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.652930][ T7541] bcachefs (loop2): bucket 0:6 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.653130][ T7541] bcachefs (loop2): bucket 0:7 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.653242][ T7541] bcachefs (loop2): bucket 0:7 gen 0 data type sb has wrong dirty_sectors: got 0, should be 256, fixing [ 285.653455][ T7541] bcachefs (loop2): bucket 0:8 gen 0 has wrong data_type: got free, should be sb, fixing [ 285.653562][ T7541] bcachefs (loop2): bucket 0:8 gen 0 data type sb has wrong dirty_sectors: got 0, should be 8, fixing [ 285.653759][ T7541] bcachefs (loop2): bucket 0:9 gen 0 has wrong data_type: got free, should be journal, fixing [ 285.653865][ T7541] bcachefs (loop2): bucket 0:9 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 285.654071][ T7541] bcachefs (loop2): bucket 0:10 gen 0 has wrong data_type: got free, should be journal, fixing [ 285.654188][ T7541] bcachefs (loop2): bucket 0:10 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 285.654428][ T7541] bcachefs (loop2): bucket 0:11 gen 0 has wrong data_type: got free, should be journal, fixing [ 285.654444][ T7541] Ratelimiting new instances of previous error [ 285.654584][ T7541] bcachefs (loop2): bucket 0:11 gen 0 data type journal has wrong dirty_sectors: got 0, should be 256, fixing [ 285.654601][ T7541] Ratelimiting new instances of previous error [ 285.668507][ T7541] done [ 285.670926][ T7541] bcachefs (loop2): going read-write [ 285.676807][ T7541] bcachefs (loop2): journal_replay... done [ 285.704743][ T7541] bcachefs (loop2): check_alloc_info... [ 285.706535][ T7541] bcachefs (loop2): bucket incorrectly unset in need_discard btree [ 285.706553][ T7541] u64s 13 type alloc_v4 0:28:0 len 0 ver 0: [ 285.706565][ T7541] gen 0 oldest_gen 0 data_type need_discard [ 285.706575][ T7541] journal_seq_nonempty 6 [ 285.706586][ T7541] journal_seq_empty 0 [ 285.706595][ T7541] need_discard 1 [ 285.706605][ T7541] need_inc_gen 1 [ 285.706615][ T7541] dirty_sectors 0 [ 285.706624][ T7541] stripe_sectors 0 [ 285.706635][ T7541] cached_sectors 0 [ 285.706645][ T7541] stripe 0 [ 285.706655][ T7541] stripe_redundancy 0 [ 285.706665][ T7541] io_time[READ] 1 [ 285.706674][ T7541] io_time[WRITE] 768 [ 285.706684][ T7541] fragmentation 0 [ 285.706694][ T7541] bp_start 8 [ 285.706704][ T7541] , fixing [ 285.723062][ T7541] done [ 285.728782][ T7541] bcachefs (loop2): check_lrus... done [ 285.730555][ T7541] bcachefs (loop2): check_btree_backpointers... done [ 285.734317][ T7541] bcachefs (loop2): check_backpointers_to_extents... done [ 285.737363][ T7541] bcachefs (loop2): check_extents_to_backpointers... [ 285.738740][ T7541] bcachefs (loop2): scanning for missing backpointers in 5/128 buckets [ 285.740986][ T7541] done [ 285.741724][ T7541] bcachefs (loop2): check_alloc_to_lru_refs... [ 285.743761][ T7541] bcachefs (loop2): missing fragmentation lru entry [ 285.743779][ T7541] u64s 12 type alloc_v4 0:34:0 len 0 ver 0: [ 285.743790][ T7541] gen 0 oldest_gen 0 data_type user [ 285.743801][ T7541] journal_seq_nonempty 5 [ 285.743811][ T7541] journal_seq_empty 134217728 [ 285.743821][ T7541] need_discard 1 [ 285.743833][ T7541] need_inc_gen 1 [ 285.743843][ T7541] dirty_sectors 16 [ 285.743853][ T7541] stripe_sectors 1802251 [ 285.743863][ T7541] cached_sectors 0 [ 285.743873][ T7541] stripe 0 [ 285.743882][ T7541] stripe_redundancy 0 [ 285.743892][ T7541] io_time[READ] 1 [ 285.743902][ T7541] io_time[WRITE] 512 [ 285.743912][ T7541] fragmentation 0 [ 285.743922][ T7541] bp_start 7 [ 285.743932][ T7541] , fixing [ 285.745639][ T7541] done [ 285.747087][ T7541] bcachefs (loop2): bucket_gens_init... done [ 285.750531][ T7541] bcachefs (loop2): check_snapshot_trees... done [ 285.752143][ T7541] bcachefs (loop2): check_snapshots... [ 285.753198][ T7541] bcachefs (loop2): snapshot points to missing/incorrect tree: [ 285.753224][ T7541] u64s 8 type snapshot 0:4294967295:0 len 0 ver 0: subvol parent 0 children 0 0 subvol 1 tree 0, fixing [ 285.765643][ T7541] done [ 285.766438][ T7541] bcachefs (loop2): check_subvols... done [ 285.768186][ T7541] bcachefs (loop2): check_subvol_children... done [ 285.769053][ T7541] bcachefs (loop2): delete_dead_snapshots... done [ 285.770420][ T7541] bcachefs (loop2): check_inodes... [ 285.771524][ T7541] bcachefs (loop2): inode points to missing dirent [ 285.771541][ T7541] inum: 4098:4294967295 [ 285.771551][ T7541] mode=40755 [ 285.771561][ T7541] flags=(15300000) [ 285.771570][ T7541] journal_seq=4 [ 285.771580][ T7541] hash_seed=ece93825deac2443 [ 285.771592][ T7541] hash_type=siphash [ 285.771601][ T7541] bi_size=0 [ 285.771611][ T7541] bi_sectors=0 [ 285.771620][ T7541] bi_version=0 [ 285.771629][ T7541] bi_atime=2770562249 [ 285.771640][ T7541] bi_ctime=2780562352 [ 285.771649][ T7541] bi_mtime=2780562352 [ 285.771659][ T7541] bi_otime=2770562249 [ 285.771669][ T7541] bi_uid=0 [ 285.771678][ T7541] bi_gid=0 [ 285.771687][ T7541] bi_nlink=0 [ 285.771696][ T7541] bi_generation=0 [ 285.771706][ T7541] bi_dev=0 [ 285.771715][ T7541] bi_data_checksum=0 [ 285.771724][ T7541] bi_compression=0 [ 285.771735][ T7541] bi_project=0 [ 285.771745][ T7541] bi_background_compression=0 [ 285.771755][ T7541] bi_data_replicas=0 [ 285.771765][ T7541] bi_promote_target=0 [ 285.771774][ T7541] bi_foreground_target=64 [ 285.771784][ T7541] bi_background_target=1 [ 285.771794][ T7541] bi_erasure_code=0 [ 285.771804][ T7541] bi_fields_set=0 [ 285.771813][ T7541] bi_dir=0 [ 285.771823][ T7541] bi_dir_offset=32 [ 285.771832][ T7541] bi_subvol=0 [ 285.771841][ T7541] bi_parent_subvol=0 [ 285.771851][ T7541] bi_nocow=0 [ 285.771860][ T7541] bi_depth=0 [ 285.771869][ T7541] bi_inodes_32bit=0 [ 285.771879][ T7541] bi_casefold=0, fixing [ 285.773554][ T7541] done [ 285.774403][ T7541] bcachefs (loop2): check_extents... done [ 285.776468][ T7541] bcachefs (loop2): check_indirect_extents... done [ 285.777297][ T7541] bcachefs (loop2): check_dirents... [ 285.779016][ T7541] bcachefs (loop2): directory with missing backpointer [ 285.779034][ T7541] u64s 7 type dirent 4096:189491840996961599:U32_MAX len 0 ver 0: file0 -> 4098 type dir [ 285.779049][ T7541] inum: 4098:4294967295 [ 285.779059][ T7541] mode=40755 [ 285.779068][ T7541] flags=(11300000) [ 285.779078][ T7541] journal_seq=23 [ 285.779088][ T7541] hash_seed=ece93825deac2443 [ 285.779098][ T7541] hash_type=siphash [ 285.779108][ T7541] bi_size=0 [ 285.779117][ T7541] bi_sectors=0 [ 285.779128][ T7541] bi_version=0 [ 285.779137][ T7541] bi_atime=2770562249 [ 285.779964][ T7541] bi_ctime=2780562352 [ 285.779979][ T7541] bi_mtime=2780562352 [ 285.779988][ T7541] bi_otime=2770562249 [ 285.779998][ T7541] bi_uid=0 [ 285.780008][ T7541] bi_gid=0 [ 285.780017][ T7541] bi_nlink=0 [ 285.780026][ T7541] bi_generation=0 [ 285.780035][ T7541] bi_dev=0 [ 285.780045][ T7541] bi_data_checksum=0 [ 285.780054][ T7541] bi_compression=0 [ 285.780064][ T7541] bi_project=0 [ 285.780073][ T7541] bi_background_compression=0 [ 285.780083][ T7541] bi_data_replicas=0 [ 285.780094][ T7541] bi_promote_target=0 [ 285.780104][ T7541] bi_foreground_target=64 [ 285.780115][ T7541] bi_background_target=1 [ 285.780125][ T7541] bi_erasure_code=0 [ 285.780135][ T7541] bi_fields_set=0 [ 285.780145][ T7541] bi_dir=0 [ 285.780154][ T7541] bi_dir_offset=0 [ 285.780163][ T7541] bi_subvol=0 [ 285.780173][ T7541] bi_parent_subvol=0 [ 285.780183][ T7541] bi_nocow=0 [ 285.780192][ T7541] bi_depth=0 [ 285.780201][ T7541] bi_inodes_32bit=0 [ 285.780220][ T7541] bi_casefold=0, fixing [ 285.785882][ T7541] done [ 285.786948][ T7541] bcachefs (loop2): check_xattrs... done [ 285.788728][ T7541] bcachefs (loop2): check_root... done [ 285.791683][ T7541] bcachefs (loop2): check_unreachable_inodes... done [ 285.794243][ T7541] bcachefs (loop2): check_subvolume_structure... done [ 285.795122][ T7541] bcachefs (loop2): check_directory_structure... done [ 285.795943][ T7541] bcachefs (loop2): check_nlinks... [ 285.796658][ T7541] bcachefs (loop2): inode 536870914 type reg has wrong i_nlink (2780562353, should be 1), fixing [ 285.798278][ T7541] done [ 285.798972][ T7541] bcachefs (loop2): check_rebalance_work... done [ 285.800922][ T7541] bcachefs (loop2): resume_logged_ops... done [ 285.801753][ T7541] bcachefs (loop2): delete_dead_inodes... done [ 285.811003][ T7541] bcachefs (loop2): set_fs_needs_rebalance... [ 285.818102][ T7551] bcachefs (loop2): Detected missing backpointers in bucket 34, now have 1/128 with missing [ 285.818125][ T7551] running recovery pass check_extents_to_backpointers (17), currently at set_fs_needs_rebalance (42) [ 285.822838][ T7541] done [ 285.824164][ T7541] bcachefs (loop2): check_extents_to_backpointers... [ 285.825150][ T7541] bcachefs (loop2): scanning for missing backpointers in 1/128 buckets [ 285.831824][ T7541] done [ 285.841010][ T7541] bcachefs (loop2): Fixed errors, running fsck a second time to verify fs is clean [ 285.841036][ T7541] bcachefs (loop2): check_alloc_info... done [ 285.846190][ T7541] bcachefs (loop2): check_lrus... done [ 285.847349][ T7541] bcachefs (loop2): check_btree_backpointers... done [ 285.848620][ T7541] bcachefs (loop2): check_backpointers_to_extents... done [ 285.850913][ T7541] bcachefs (loop2): check_extents_to_backpointers... done [ 285.852561][ T7541] bcachefs (loop2): check_alloc_to_lru_refs... done [ 285.855340][ T7541] bcachefs (loop2): bucket_gens_init... done [ 285.857449][ T7541] bcachefs (loop2): check_snapshot_trees... done [ 285.858641][ T7541] bcachefs (loop2): check_snapshots... done [ 285.860548][ T7541] bcachefs (loop2): check_subvols... done [ 285.861433][ T7541] bcachefs (loop2): check_subvol_children... done [ 285.862278][ T7541] bcachefs (loop2): delete_dead_snapshots... done [ 285.863067][ T7541] bcachefs (loop2): check_inodes... done [ 285.864265][ T7541] bcachefs (loop2): check_extents... done [ 285.866112][ T7541] bcachefs (loop2): check_indirect_extents... done [ 285.866915][ T7541] bcachefs (loop2): check_dirents... done [ 285.868510][ T7541] bcachefs (loop2): check_xattrs... done [ 285.870504][ T7541] bcachefs (loop2): check_root... done [ 285.871357][ T7541] bcachefs (loop2): check_unreachable_inodes... done [ 285.872292][ T7541] bcachefs (loop2): check_subvolume_structure... done [ 285.873130][ T7541] bcachefs (loop2): check_directory_structure... done [ 285.874153][ T7541] bcachefs (loop2): check_nlinks... done [ 285.875605][ T7541] bcachefs (loop2): check_rebalance_work... done [ 285.876452][ T7541] bcachefs (loop2): resume_logged_ops... done [ 285.877186][ T7541] bcachefs (loop2): delete_dead_inodes... done [ 285.878075][ T7541] bcachefs (loop2): set_fs_needs_rebalance... done [ 285.882621][ T7541] bcachefs (loop2): done starting filesystem [ 286.028446][ T5839] bcachefs (loop2): shutting down [ 286.028468][ T5839] bcachefs (loop2): going read-only [ 286.028498][ T5839] bcachefs (loop2): finished waiting for writes to stop [ 286.039671][ T5839] bcachefs (loop2): flushing journal and stopping allocators, journal seq 33 [ 286.040018][ T5839] bcachefs (loop2): flushing journal and stopping allocators complete, journal seq 33 [ 286.040990][ T5839] bcachefs (loop2): clean shutdown complete, journal seq 34 [ 286.042802][ T5839] bcachefs (loop2): marking filesystem clean [ 286.085195][ T5839] bcachefs (loop2): shutdown complete [ 286.653204][ T39] INFO: task syz-executor217:6018 blocked for more than 143 seconds. [ 286.653263][ T39] Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 [ 286.653281][ T39] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 286.653300][ T39] task:syz-executor217 state:D stack:15112 pid:6018 tgid:6018 ppid:5837 task_flags:0x400140 flags:0x00004006 [ 286.653365][ T39] Call Trace: [ 286.653377][ T39] [ 286.653390][ T39] __schedule+0x16f3/0x4c20 [ 286.653436][ T39] ? vprintk_store+0xafe/0xd10 [ 286.653460][ T39] ? arch_stack_walk+0xfc/0x150 [ 286.653501][ T39] ? __pfx___schedule+0x10/0x10 [ 286.653529][ T39] ? schedule+0x91/0x360 [ 286.653554][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.653605][ T39] ? lock_release+0x4b/0x3e0 [ 286.653636][ T39] ? __irq_work_queue_local+0x2ca/0x580 [ 286.653672][ T39] schedule+0x165/0x360 [ 286.653700][ T39] schedule_timeout+0x9a/0x270 [ 286.653727][ T39] ? __pfx_schedule_timeout+0x10/0x10 [ 286.653754][ T39] ? irq_work_queue+0xbc/0x140 [ 286.653786][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.653824][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.653871][ T39] __down_common+0x319/0x6a0 [ 286.653905][ T39] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 286.653937][ T39] ? __pfx___down_common+0x10/0x10 [ 286.653971][ T39] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 286.654003][ T39] ? __pfx___bch2_print+0x10/0x10 [ 286.654033][ T39] down+0x80/0xd0 [ 286.654063][ T39] bch2_run_recovery_passes+0x177/0x210 [ 286.654093][ T39] bch2_fs_recovery+0x28c9/0x3a50 [ 286.654118][ T39] ? kasan_save_track+0x3e/0x80 [ 286.654146][ T39] ? kasan_save_free_info+0x46/0x50 [ 286.654178][ T39] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 286.654223][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.654254][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.654293][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.654331][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.654363][ T39] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 286.654393][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.654421][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.654460][ T39] ? rt_mutex_slowunlock+0x493/0x8a0 [ 286.654496][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.654526][ T39] ? __pfx_rt_mutex_slowunlock+0x10/0x10 [ 286.654561][ T39] ? bch2_recalc_capacity+0x807/0x890 [ 286.654599][ T39] bch2_fs_start+0xaaf/0xda0 [ 286.654628][ T39] ? bch2_fs_start+0x5e7/0xda0 [ 286.654656][ T39] ? __pfx_bch2_fs_start+0x10/0x10 [ 286.654694][ T39] ? sget+0x267/0x620 [ 286.654725][ T39] bch2_fs_get_tree+0xb39/0x1520 [ 286.654765][ T39] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 286.654801][ T39] ? __pfx_vfs_parse_comma_sep+0x10/0x10 [ 286.654876][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.654913][ T39] ? cap_capable+0x11f/0x460 [ 286.654943][ T39] ? safesetid_security_capable+0xa9/0x1a0 [ 286.654976][ T39] vfs_get_tree+0x8f/0x2b0 [ 286.655008][ T39] do_new_mount+0x2a2/0x9e0 [ 286.655045][ T39] ? ns_capable+0x8a/0xf0 [ 286.655076][ T39] ? __pfx_do_new_mount+0x10/0x10 [ 286.655107][ T39] ? path_mount+0x61c/0xfe0 [ 286.655144][ T39] __se_sys_mount+0x317/0x410 [ 286.655182][ T39] ? __pfx___se_sys_mount+0x10/0x10 [ 286.655215][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.655253][ T39] ? __x64_sys_mount+0x20/0xc0 [ 286.655289][ T39] do_syscall_64+0xfa/0x3b0 [ 286.655322][ T39] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.655347][ T39] ? clear_bhb_loop+0x60/0xb0 [ 286.655375][ T39] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.655401][ T39] RIP: 0033:0x7fbbf3d82b1a [ 286.655431][ T39] RSP: 002b:00007ffcb1bb74e8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 286.655457][ T39] RAX: ffffffffffffffda RBX: 00007ffcb1bb7500 RCX: 00007fbbf3d82b1a [ 286.655478][ T39] RDX: 00002000000000c0 RSI: 0000200000000000 RDI: 00007ffcb1bb7500 [ 286.655497][ T39] RBP: 0000200000000000 R08: 00007ffcb1bb7540 R09: 0000000000005934 [ 286.655515][ T39] R10: 0000000000810000 R11: 0000000000000282 R12: 00002000000000c0 [ 286.655532][ T39] R13: 00007ffcb1bb7540 R14: 0000000000000003 R15: 0000000000810000 [ 286.655558][ T39] [ 286.655576][ T39] INFO: task syz-executor217:6105 blocked for more than 143 seconds. [ 286.655598][ T39] Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 [ 286.655615][ T39] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 286.655627][ T39] task:syz-executor217 state:D stack:15112 pid:6105 tgid:6105 ppid:5838 task_flags:0x400140 flags:0x00004006 [ 286.655682][ T39] Call Trace: [ 286.655691][ T39] [ 286.655702][ T39] __schedule+0x16f3/0x4c20 [ 286.655738][ T39] ? vprintk_store+0xafe/0xd10 [ 286.655760][ T39] ? arch_stack_walk+0xfc/0x150 [ 286.655800][ T39] ? __pfx___schedule+0x10/0x10 [ 286.655835][ T39] ? schedule+0x91/0x360 [ 286.655859][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.655900][ T39] ? lock_release+0x4b/0x3e0 [ 286.655930][ T39] ? __irq_work_queue_local+0x2ca/0x580 [ 286.655964][ T39] schedule+0x165/0x360 [ 286.655992][ T39] schedule_timeout+0x9a/0x270 [ 286.656019][ T39] ? __pfx_schedule_timeout+0x10/0x10 [ 286.656046][ T39] ? irq_work_queue+0xbc/0x140 [ 286.656076][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.656113][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.656151][ T39] __down_common+0x319/0x6a0 [ 286.656182][ T39] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 286.656215][ T39] ? __pfx___down_common+0x10/0x10 [ 286.656250][ T39] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 286.656283][ T39] ? __pfx___bch2_print+0x10/0x10 [ 286.656311][ T39] down+0x80/0xd0 [ 286.656341][ T39] bch2_run_recovery_passes+0x177/0x210 [ 286.656372][ T39] bch2_fs_recovery+0x28c9/0x3a50 [ 286.656396][ T39] ? kasan_save_track+0x3e/0x80 [ 286.656423][ T39] ? kasan_save_free_info+0x46/0x50 [ 286.656454][ T39] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 286.656492][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.656522][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.656560][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.656597][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.656629][ T39] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 286.656659][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.656688][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.656725][ T39] ? rt_mutex_slowunlock+0x493/0x8a0 [ 286.656761][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.656790][ T39] ? __pfx_rt_mutex_slowunlock+0x10/0x10 [ 286.656825][ T39] ? bch2_recalc_capacity+0x807/0x890 [ 286.656874][ T39] bch2_fs_start+0xaaf/0xda0 [ 286.656902][ T39] ? bch2_fs_start+0x5e7/0xda0 [ 286.656930][ T39] ? __pfx_bch2_fs_start+0x10/0x10 [ 286.656969][ T39] ? sget+0x267/0x620 [ 286.656998][ T39] bch2_fs_get_tree+0xb39/0x1520 [ 286.657037][ T39] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 286.657076][ T39] ? __pfx_vfs_parse_comma_sep+0x10/0x10 [ 286.657112][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.657148][ T39] ? cap_capable+0x11f/0x460 [ 286.657174][ T39] ? safesetid_security_capable+0xa9/0x1a0 [ 286.657205][ T39] vfs_get_tree+0x8f/0x2b0 [ 286.657238][ T39] do_new_mount+0x2a2/0x9e0 [ 286.657273][ T39] ? ns_capable+0x8a/0xf0 [ 286.657301][ T39] ? __pfx_do_new_mount+0x10/0x10 [ 286.657333][ T39] ? path_mount+0x61c/0xfe0 [ 286.657369][ T39] __se_sys_mount+0x317/0x410 [ 286.657406][ T39] ? __pfx___se_sys_mount+0x10/0x10 [ 286.657439][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.657478][ T39] ? __x64_sys_mount+0x20/0xc0 [ 286.657513][ T39] do_syscall_64+0xfa/0x3b0 [ 286.657543][ T39] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.657568][ T39] ? clear_bhb_loop+0x60/0xb0 [ 286.657596][ T39] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.657620][ T39] RIP: 0033:0x7fbbf3d82b1a [ 286.657640][ T39] RSP: 002b:00007ffcb1bb74e8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 286.657665][ T39] RAX: ffffffffffffffda RBX: 00007ffcb1bb7500 RCX: 00007fbbf3d82b1a [ 286.657684][ T39] RDX: 00002000000000c0 RSI: 0000200000000000 RDI: 00007ffcb1bb7500 [ 286.657727][ T39] RBP: 0000200000000000 R08: 00007ffcb1bb7540 R09: 0000000000005934 [ 286.657745][ T39] R10: 0000000000810000 R11: 0000000000000282 R12: 00002000000000c0 [ 286.657763][ T39] R13: 00007ffcb1bb7540 R14: 0000000000000003 R15: 0000000000810000 [ 286.657788][ T39] [ 286.657874][ T39] INFO: task syz-executor217:6315 blocked for more than 143 seconds. [ 286.657895][ T39] Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 [ 286.657911][ T39] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 286.657923][ T39] task:syz-executor217 state:D stack:15112 pid:6315 tgid:6315 ppid:5840 task_flags:0x400140 flags:0x00004006 [ 286.657985][ T39] Call Trace: [ 286.657995][ T39] [ 286.658006][ T39] __schedule+0x16f3/0x4c20 [ 286.658042][ T39] ? vprintk_store+0xafe/0xd10 [ 286.658064][ T39] ? arch_stack_walk+0xfc/0x150 [ 286.658103][ T39] ? __pfx___schedule+0x10/0x10 [ 286.658131][ T39] ? schedule+0x91/0x360 [ 286.658156][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.658197][ T39] ? lock_release+0x4b/0x3e0 [ 286.658227][ T39] ? __irq_work_queue_local+0x2ca/0x580 [ 286.658261][ T39] schedule+0x165/0x360 [ 286.658288][ T39] schedule_timeout+0x9a/0x270 [ 286.658312][ T39] ? __pfx_schedule_timeout+0x10/0x10 [ 286.658339][ T39] ? irq_work_queue+0xbc/0x140 [ 286.658370][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.658408][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.658446][ T39] __down_common+0x319/0x6a0 [ 286.658479][ T39] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 286.658510][ T39] ? __pfx___down_common+0x10/0x10 [ 286.658543][ T39] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 286.658575][ T39] ? __pfx___bch2_print+0x10/0x10 [ 286.658601][ T39] down+0x80/0xd0 [ 286.658633][ T39] bch2_run_recovery_passes+0x177/0x210 [ 286.658662][ T39] bch2_fs_recovery+0x28c9/0x3a50 [ 286.658685][ T39] ? kasan_save_track+0x3e/0x80 [ 286.658713][ T39] ? kasan_save_free_info+0x46/0x50 [ 286.658745][ T39] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 286.658782][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.658811][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.658863][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.658900][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.658930][ T39] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 286.658960][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.658989][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.659027][ T39] ? rt_mutex_slowunlock+0x493/0x8a0 [ 286.659062][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.659093][ T39] ? __pfx_rt_mutex_slowunlock+0x10/0x10 [ 286.659128][ T39] ? bch2_recalc_capacity+0x807/0x890 [ 286.674745][ T39] bch2_fs_start+0xaaf/0xda0 [ 286.674789][ T39] ? bch2_fs_start+0x5e7/0xda0 [ 286.674818][ T39] ? __pfx_bch2_fs_start+0x10/0x10 [ 286.674859][ T39] ? sget+0x267/0x620 [ 286.674895][ T39] bch2_fs_get_tree+0xb39/0x1520 [ 286.674936][ T39] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 286.674975][ T39] ? __pfx_vfs_parse_comma_sep+0x10/0x10 [ 286.675019][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.675057][ T39] ? cap_capable+0x11f/0x460 [ 286.675084][ T39] ? safesetid_security_capable+0xa9/0x1a0 [ 286.675118][ T39] vfs_get_tree+0x8f/0x2b0 [ 286.675148][ T39] do_new_mount+0x2a2/0x9e0 [ 286.675183][ T39] ? ns_capable+0x8a/0xf0 [ 286.675213][ T39] ? __pfx_do_new_mount+0x10/0x10 [ 286.675246][ T39] ? path_mount+0x61c/0xfe0 [ 286.675283][ T39] __se_sys_mount+0x317/0x410 [ 286.675321][ T39] ? __pfx___se_sys_mount+0x10/0x10 [ 286.675354][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.675393][ T39] ? __x64_sys_mount+0x20/0xc0 [ 286.675432][ T39] do_syscall_64+0xfa/0x3b0 [ 286.675465][ T39] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.675490][ T39] ? clear_bhb_loop+0x60/0xb0 [ 286.675517][ T39] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.675542][ T39] RIP: 0033:0x7fbbf3d82b1a [ 286.675562][ T39] RSP: 002b:00007ffcb1bb74e8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 286.675589][ T39] RAX: ffffffffffffffda RBX: 00007ffcb1bb7500 RCX: 00007fbbf3d82b1a [ 286.675608][ T39] RDX: 00002000000000c0 RSI: 0000200000000000 RDI: 00007ffcb1bb7500 [ 286.675626][ T39] RBP: 0000200000000000 R08: 00007ffcb1bb7540 R09: 0000000000005934 [ 286.675644][ T39] R10: 0000000000810000 R11: 0000000000000282 R12: 00002000000000c0 [ 286.675662][ T39] R13: 00007ffcb1bb7540 R14: 0000000000000003 R15: 0000000000810000 [ 286.675688][ T39] [ 286.675706][ T39] INFO: task syz-executor217:6417 blocked for more than 143 seconds. [ 286.675730][ T39] Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 [ 286.675747][ T39] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 286.675759][ T39] task:syz-executor217 state:D stack:15112 pid:6417 tgid:6417 ppid:5841 task_flags:0x400140 flags:0x00004006 [ 286.675816][ T39] Call Trace: [ 286.675825][ T39] [ 286.675838][ T39] __schedule+0x16f3/0x4c20 [ 286.675871][ T39] ? vprintk_store+0xafe/0xd10 [ 286.675903][ T39] ? arch_stack_walk+0xfc/0x150 [ 286.675947][ T39] ? __pfx___schedule+0x10/0x10 [ 286.675977][ T39] ? schedule+0x91/0x360 [ 286.676002][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.676041][ T39] ? lock_release+0x4b/0x3e0 [ 286.676074][ T39] ? kasan_save_track+0x4f/0x80 [ 286.676105][ T39] schedule+0x165/0x360 [ 286.676132][ T39] schedule_timeout+0x9a/0x270 [ 286.676160][ T39] ? __pfx_schedule_timeout+0x10/0x10 [ 286.676187][ T39] ? irq_work_queue+0xc3/0x140 [ 286.676220][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.676258][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.676297][ T39] __down_common+0x319/0x6a0 [ 286.676330][ T39] ? __pfx_do_raw_spin_lock+0x10/0x10 [ 286.676363][ T39] ? __pfx___down_common+0x10/0x10 [ 286.676396][ T39] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 286.676428][ T39] ? __pfx___bch2_print+0x10/0x10 [ 286.676454][ T39] down+0x80/0xd0 [ 286.676485][ T39] bch2_run_recovery_passes+0x177/0x210 [ 286.676517][ T39] bch2_fs_recovery+0x28c9/0x3a50 [ 286.676541][ T39] ? kasan_save_track+0x3e/0x80 [ 286.676567][ T39] ? kasan_save_free_info+0x46/0x50 [ 286.676601][ T39] ? __pfx_bch2_fs_recovery+0x10/0x10 [ 286.676639][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.676668][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.676707][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.676745][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.676775][ T39] ? __pfx__raw_spin_unlock_irqrestore+0x10/0x10 [ 286.676806][ T39] ? do_raw_spin_lock+0x121/0x290 [ 286.676835][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.676872][ T39] ? rt_mutex_slowunlock+0x493/0x8a0 [ 286.676916][ T39] ? _raw_spin_unlock_irqrestore+0xad/0x110 [ 286.676946][ T39] ? __pfx_rt_mutex_slowunlock+0x10/0x10 [ 286.676981][ T39] ? bch2_recalc_capacity+0x807/0x890 [ 286.677020][ T39] bch2_fs_start+0xaaf/0xda0 [ 286.677049][ T39] ? bch2_fs_start+0x5e7/0xda0 [ 286.677078][ T39] ? __pfx_bch2_fs_start+0x10/0x10 [ 286.677117][ T39] ? sget+0x267/0x620 [ 286.677145][ T39] bch2_fs_get_tree+0xb39/0x1520 [ 286.677184][ T39] ? __pfx_bch2_fs_get_tree+0x10/0x10 [ 286.677223][ T39] ? __pfx_vfs_parse_comma_sep+0x10/0x10 [ 286.677260][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.677298][ T39] ? cap_capable+0x11f/0x460 [ 286.677326][ T39] ? safesetid_security_capable+0xa9/0x1a0 [ 286.677358][ T39] vfs_get_tree+0x8f/0x2b0 [ 286.677391][ T39] do_new_mount+0x2a2/0x9e0 [ 286.677426][ T39] ? ns_capable+0x8a/0xf0 [ 286.677455][ T39] ? __pfx_do_new_mount+0x10/0x10 [ 286.677487][ T39] ? path_mount+0x61c/0xfe0 [ 286.677526][ T39] __se_sys_mount+0x317/0x410 [ 286.677562][ T39] ? __pfx___se_sys_mount+0x10/0x10 [ 286.677595][ T39] ? rcu_is_watching+0x15/0xb0 [ 286.677635][ T39] ? __x64_sys_mount+0x20/0xc0 [ 286.677670][ T39] do_syscall_64+0xfa/0x3b0 [ 286.677725][ T39] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.677751][ T39] ? clear_bhb_loop+0x60/0xb0 [ 286.677779][ T39] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 286.677804][ T39] RIP: 0033:0x7fbbf3d82b1a [ 286.677823][ T39] RSP: 002b:00007ffcb1bb74e8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5 [ 286.677849][ T39] RAX: ffffffffffffffda RBX: 00007ffcb1bb7500 RCX: 00007fbbf3d82b1a [ 286.677868][ T39] RDX: 00002000000000c0 RSI: 0000200000000000 RDI: 00007ffcb1bb7500 [ 286.677893][ T39] RBP: 0000200000000000 R08: 00007ffcb1bb7540 R09: 0000000000005934 [ 286.677912][ T39] R10: 0000000000810000 R11: 0000000000000282 R12: 00002000000000c0 [ 286.677930][ T39] R13: 00007ffcb1bb7540 R14: 0000000000000003 R15: 0000000000810000 [ 286.677957][ T39] [ 286.677977][ T39] INFO: lockdep is turned off. [ 286.678002][ T39] NMI backtrace for cpu 1 [ 286.678029][ T39] CPU: 1 UID: 0 PID: 39 Comm: khungtaskd Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT_{RT,(full)} [ 286.678064][ T39] Tainted: [W]=WARN [ 286.678074][ T39] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 [ 286.678090][ T39] Call Trace: [ 286.678100][ T39] [ 286.678109][ T39] dump_stack_lvl+0x189/0x250 [ 286.678147][ T39] ? __pfx_dump_stack_lvl+0x10/0x10 [ 286.678183][ T39] ? __pfx__printk+0x10/0x10 [ 286.678214][ T39] nmi_cpu_backtrace+0x39e/0x3d0 [ 286.678241][ T39] ? __pfx_nmi_cpu_backtrace+0x10/0x10 [ 286.678267][ T39] ? __pfx__printk+0x10/0x10 [ 286.678294][ T39] ? __pfx_nmi_raise_cpu_backtrace+0x10/0x10 [ 286.678326][ T39] nmi_trigger_cpumask_backtrace+0x17a/0x300 [ 286.678353][ T39] watchdog+0xf93/0xfe0 [ 286.678386][ T39] ? watchdog+0x1de/0xfe0 [ 286.678419][ T39] kthread+0x711/0x8a0 [ 286.678455][ T39] ? __pfx_watchdog+0x10/0x10 [ 286.678484][ T39] ? __pfx_kthread+0x10/0x10 [ 286.678520][ T39] ? __pfx_kthread+0x10/0x10 [ 286.678558][ T39] ret_from_fork+0x3fc/0x770 [ 286.678591][ T39] ? __pfx_ret_from_fork+0x10/0x10 [ 286.678625][ T39] ? __switch_to_asm+0x39/0x70 [ 286.678649][ T39] ? __switch_to_asm+0x33/0x70 [ 286.678672][ T39] ? __pfx_kthread+0x10/0x10 [ 286.678708][ T39] ret_from_fork_asm+0x1a/0x30 [ 286.678739][ T39] [ 286.678750][ T39] Sending NMI from CPU 1 to CPUs 0: [ 286.678784][ C0] NMI backtrace for cpu 0 [ 286.678803][ C0] CPU: 0 UID: 0 PID: 17 Comm: pr/legacy Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT_{RT,(full)} [ 286.678831][ C0] Tainted: [W]=WARN [ 286.678839][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 [ 286.678850][ C0] RIP: 0010:io_serial_in+0x77/0xc0 [ 286.678872][ C0] Code: e8 ce d8 7f fc 44 89 f9 d3 e3 49 83 ee 80 4c 89 f0 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 cf 0b df fc 41 03 1e 89 da ec <0f> b6 c0 5b 41 5c 41 5e 41 5f c3 cc cc cc cc cc 44 89 f9 80 e1 07 [ 286.678889][ C0] RSP: 0018:ffffc90000167890 EFLAGS: 00000202 [ 286.678907][ C0] RAX: 1ffffffff3274800 RBX: 00000000000003fd RCX: 0000000000000000 [ 286.678919][ C0] RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000000 [ 286.678931][ C0] RBP: ffffffff993a4810 R08: 0000000000000000 R09: 0000000000000000 [ 286.678943][ C0] R10: dffffc0000000000 R11: ffffffff853e8220 R12: dffffc0000000000 [ 286.678956][ C0] R13: 0000000000000000 R14: ffffffff993a4580 R15: 0000000000000000 [ 286.678968][ C0] FS: 0000000000000000(0000) GS:ffff8881268c5000(0000) knlGS:0000000000000000 [ 286.678983][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 286.678996][ C0] CR2: 00007fbbf3d7f633 CR3: 000000001e390000 CR4: 00000000003526f0 [ 286.679012][ C0] Call Trace: [ 286.679019][ C0] [ 286.679027][ C0] wait_for_lsr+0x1aa/0x2f0 [ 286.679052][ C0] serial8250_console_write+0x11bd/0x1b40 [ 286.679088][ C0] ? __pfx_serial8250_console_write+0x10/0x10 [ 286.679116][ C0] ? rcu_is_watching+0x15/0xb0 [ 286.679154][ C0] ? lock_acquire+0x5f/0x360 [ 286.679181][ C0] ? console_flush_all+0x476/0xcd0 [ 286.679204][ C0] console_flush_all+0x695/0xcd0 [ 286.679225][ C0] ? console_flush_all+0x13a/0xcd0 [ 286.679247][ C0] ? __pfx_console_flush_all+0x10/0x10 [ 286.679268][ C0] ? rcu_is_watching+0x15/0xb0 [ 286.679299][ C0] __console_flush_and_unlock+0xa4/0x240 [ 286.679321][ C0] ? __pfx___console_flush_and_unlock+0x10/0x10 [ 286.679346][ C0] legacy_kthread_func+0x13b/0x1a0 [ 286.679368][ C0] ? __pfx_legacy_kthread_func+0x10/0x10 [ 286.679391][ C0] ? __pfx_autoremove_wake_function+0x10/0x10 [ 286.679415][ C0] ? __kthread_parkme+0x7b/0x200 [ 286.679439][ C0] ? __kthread_parkme+0x1a1/0x200 [ 286.679466][ C0] kthread+0x711/0x8a0 [ 286.679494][ C0] ? __pfx_legacy_kthread_func+0x10/0x10 [ 286.679517][ C0] ? __pfx_kthread+0x10/0x10 [ 286.679546][ C0] ? __pfx_kthread+0x10/0x10 [ 286.679573][ C0] ret_from_fork+0x3fc/0x770 [ 286.679596][ C0] ? __pfx_ret_from_fork+0x10/0x10 [ 286.679622][ C0] ? __switch_to_asm+0x39/0x70 [ 286.679639][ C0] ? __switch_to_asm+0x33/0x70 [ 286.679656][ C0] ? __pfx_kthread+0x10/0x10 [ 286.679683][ C0] ret_from_fork_asm+0x1a/0x30 [ 286.679707][ C0] [ 286.688572][ T39] Kernel panic - not syncing: hung_task: blocked tasks [ 286.688602][ T39] CPU: 1 UID: 0 PID: 39 Comm: khungtaskd Tainted: G W 6.17.0-rc1-syzkaller-00211-g90d970cade8e #0 PREEMPT_{RT,(full)} [ 286.688639][ T39] Tainted: [W]=WARN [ 286.688649][ T39] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 [ 286.688665][ T39] Call Trace: [ 286.688675][ T39] [ 286.688687][ T39] dump_stack_lvl+0x99/0x250 [ 286.688728][ T39] ? __asan_memcpy+0x40/0x70 [ 286.688755][ T39] ? __pfx_dump_stack_lvl+0x10/0x10 [ 286.688790][ T39] ? __pfx__printk+0x10/0x10 [ 286.688824][ T39] vpanic+0x281/0x750 [ 286.688860][ T39] ? __pfx_vpanic+0x10/0x10 [ 286.688906][ T39] ? preempt_schedule+0xae/0xc0 [ 286.688938][ T39] ? preempt_schedule_common+0x83/0xd0 [ 286.688970][ T39] panic+0xb9/0xc0 [ 286.689006][ T39] ? __pfx_panic+0x10/0x10 [ 286.689041][ T39] ? preempt_schedule_thunk+0x16/0x30 [ 286.689073][ T39] ? nmi_trigger_cpumask_backtrace+0x2bb/0x300 [ 286.689102][ T39] watchdog+0xfd2/0xfe0 [ 286.689135][ T39] ? watchdog+0x1de/0xfe0 [ 286.689170][ T39] kthread+0x711/0x8a0 [ 286.689203][ T39] ? __pfx_watchdog+0x10/0x10 [ 286.689233][ T39] ? __pfx_kthread+0x10/0x10 [ 286.689271][ T39] ? __pfx_kthread+0x10/0x10 [ 286.689307][ T39] ret_from_fork+0x3fc/0x770 [ 286.689339][ T39] ? __pfx_ret_from_fork+0x10/0x10 [ 286.689374][ T39] ? __switch_to_asm+0x39/0x70 [ 286.689398][ T39] ? __switch_to_asm+0x33/0x70 [ 286.689419][ T39] ? __pfx_kthread+0x10/0x10 [ 286.689456][ T39] ret_from_fork_asm+0x1a/0x30 [ 286.689489][ T39] [ 286.689901][ T39] Kernel Offset: disabled