./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2960399970 <...> Warning: Permanently added '10.128.1.146' (ED25519) to the list of known hosts. execve("./syz-executor2960399970", ["./syz-executor2960399970"], 0x7ffc5f74c110 /* 10 vars */) = 0 brk(NULL) = 0x55558bca6000 brk(0x55558bca6d40) = 0x55558bca6d40 arch_prctl(ARCH_SET_FS, 0x55558bca63c0) = 0 set_tid_address(0x55558bca6690) = 5829 set_robust_list(0x55558bca66a0, 24) = 0 rseq(0x55558bca6ce0, 0x20, 0, 0x53053053) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 readlink("/proc/self/exe", "/root/syz-executor2960399970", 4096) = 28 getrandom("\x7a\xe6\xba\x5c\x97\x39\x69\x34", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x55558bca6d40 brk(0x55558bcc7d40) = 0x55558bcc7d40 brk(0x55558bcc8000) = 0x55558bcc8000 mprotect(0x7fd142f72000, 16384, PROT_READ) = 0 mmap(0x1ffff000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1ffff000 mmap(0x20000000, 16777216, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x20000000 mmap(0x21000000, 4096, PROT_NONE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x21000000 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5830 attached , child_tidptr=0x55558bca6690) = 5830 [pid 5830] set_robust_list(0x55558bca66a0, 24 [pid 5829] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5830] <... set_robust_list resumed>) = 0 ./strace-static-x86_64: Process 5831 attached [pid 5830] mkdir("./syzkaller.e8B4hT", 0700 [pid 5829] <... clone resumed>, child_tidptr=0x55558bca6690) = 5831 [pid 5831] set_robust_list(0x55558bca66a0, 24 [pid 5829] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5831] <... set_robust_list resumed>) = 0 ./strace-static-x86_64: Process 5832 attached [pid 5831] mkdir("./syzkaller.DBIrcO", 0700 [pid 5832] set_robust_list(0x55558bca66a0, 24 [pid 5830] <... mkdir resumed>) = 0 [pid 5832] <... set_robust_list resumed>) = 0 [pid 5829] <... clone resumed>, child_tidptr=0x55558bca6690) = 5832 [pid 5832] mkdir("./syzkaller.D4t8UX", 0700 [pid 5831] <... mkdir resumed>) = 0 [pid 5830] chmod("./syzkaller.e8B4hT", 0777 [pid 5829] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5832] <... mkdir resumed>) = 0 [pid 5831] chmod("./syzkaller.DBIrcO", 0777 [pid 5830] <... chmod resumed>) = 0 [pid 5830] chdir("./syzkaller.e8B4hT" [pid 5831] <... chmod resumed>) = 0 [pid 5832] chmod("./syzkaller.D4t8UX", 0777 [pid 5830] <... chdir resumed>) = 0 [pid 5832] <... chmod resumed>) = 0 [pid 5831] chdir("./syzkaller.DBIrcO" [pid 5830] mkdir("./0", 0777./strace-static-x86_64: Process 5833 attached [pid 5829] <... clone resumed>, child_tidptr=0x55558bca6690) = 5833 [pid 5833] set_robust_list(0x55558bca66a0, 24 [pid 5832] chdir("./syzkaller.D4t8UX" [pid 5831] <... chdir resumed>) = 0 [pid 5833] <... set_robust_list resumed>) = 0 [pid 5829] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5833] mkdir("./syzkaller.Ii7ETV", 0700 [pid 5832] <... chdir resumed>) = 0 [pid 5831] mkdir("./0", 0777 [pid 5830] <... mkdir resumed>) = 0 [pid 5833] <... mkdir resumed>) = 0 [pid 5832] mkdir("./0", 0777 [pid 5831] <... mkdir resumed>) = 0 [pid 5830] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5832] <... mkdir resumed>) = 0 [pid 5831] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5830] <... openat resumed>) = 3 [pid 5833] chmod("./syzkaller.Ii7ETV", 0777./strace-static-x86_64: Process 5834 attached [pid 5829] <... clone resumed>, child_tidptr=0x55558bca6690) = 5834 [pid 5832] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5830] ioctl(3, LOOP_CLR_FD [pid 5833] <... chmod resumed>) = 0 [pid 5831] <... openat resumed>) = 3 [pid 5830] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5834] set_robust_list(0x55558bca66a0, 24 [pid 5831] ioctl(3, LOOP_CLR_FD [pid 5830] close(3 [pid 5834] <... set_robust_list resumed>) = 0 [pid 5833] chdir("./syzkaller.Ii7ETV" [pid 5832] <... openat resumed>) = 3 [pid 5831] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5834] mkdir("./syzkaller.3T7eVY", 0700 [pid 5833] <... chdir resumed>) = 0 [pid 5830] <... close resumed>) = 0 [pid 5830] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5834] <... mkdir resumed>) = 0 [pid 5833] mkdir("./0", 0777 [pid 5832] ioctl(3, LOOP_CLR_FD [pid 5831] close(3./strace-static-x86_64: Process 5836 attached [pid 5834] chmod("./syzkaller.3T7eVY", 0777 [pid 5833] <... mkdir resumed>) = 0 [pid 5832] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5831] <... close resumed>) = 0 [pid 5830] <... clone resumed>, child_tidptr=0x55558bca6690) = 5836 [pid 5831] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5836] set_robust_list(0x55558bca66a0, 24 [pid 5834] <... chmod resumed>) = 0 [pid 5833] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5832] close(3) = 0 [pid 5831] <... clone resumed>, child_tidptr=0x55558bca6690) = 5837 ./strace-static-x86_64: Process 5837 attached [pid 5836] <... set_robust_list resumed>) = 0 [pid 5834] chdir("./syzkaller.3T7eVY" [pid 5833] <... openat resumed>) = 3 [pid 5832] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5837] set_robust_list(0x55558bca66a0, 24 [pid 5836] chdir("./0" [pid 5834] <... chdir resumed>) = 0 ./strace-static-x86_64: Process 5838 attached [pid 5837] <... set_robust_list resumed>) = 0 [pid 5836] <... chdir resumed>) = 0 [pid 5834] mkdir("./0", 0777 [pid 5837] chdir("./0" [pid 5836] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5834] <... mkdir resumed>) = 0 [pid 5833] ioctl(3, LOOP_CLR_FD [pid 5838] set_robust_list(0x55558bca66a0, 24 [pid 5837] <... chdir resumed>) = 0 [pid 5836] <... prctl resumed>) = 0 [pid 5832] <... clone resumed>, child_tidptr=0x55558bca6690) = 5838 [pid 5838] <... set_robust_list resumed>) = 0 [pid 5836] setpgid(0, 0 [pid 5833] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5837] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5838] chdir("./0" [pid 5837] <... prctl resumed>) = 0 [pid 5836] <... setpgid resumed>) = 0 [pid 5838] <... chdir resumed>) = 0 [pid 5838] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5837] setpgid(0, 0 [pid 5836] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5834] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5833] close(3 [pid 5838] <... prctl resumed>) = 0 [pid 5837] <... setpgid resumed>) = 0 [pid 5833] <... close resumed>) = 0 [pid 5838] setpgid(0, 0 [pid 5837] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5836] <... openat resumed>) = 3 [pid 5834] <... openat resumed>) = 3 [pid 5833] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5838] <... setpgid resumed>) = 0 [pid 5838] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5837] <... openat resumed>) = 3 [pid 5836] write(3, "1000", 4 [pid 5837] write(3, "1000", 4 [pid 5836] <... write resumed>) = 4 [pid 5834] ioctl(3, LOOP_CLR_FD [pid 5836] close(3 [pid 5834] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5836] <... close resumed>) = 0 [pid 5837] <... write resumed>) = 4 [pid 5836] symlink("/dev/binderfs", "./binderfs" [pid 5834] close(3./strace-static-x86_64: Process 5839 attached [pid 5838] <... openat resumed>) = 3 [pid 5837] close(3 [pid 5836] <... symlink resumed>) = 0 [pid 5834] <... close resumed>) = 0 [pid 5839] set_robust_list(0x55558bca66a0, 24 [pid 5838] write(3, "1000", 4 [pid 5837] <... close resumed>) = 0 [pid 5833] <... clone resumed>, child_tidptr=0x55558bca6690) = 5839 [pid 5838] <... write resumed>) = 4 [pid 5839] <... set_robust_list resumed>) = 0 [pid 5838] close(3) = 0 [pid 5838] symlink("/dev/binderfs", "./binderfs" [pid 5837] symlink("/dev/binderfs", "./binderfs" [pid 5836] write(1, "executing program\n", 18 [pid 5834] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5840 attached [pid 5837] <... symlink resumed>) = 0 executing program [pid 5836] <... write resumed>) = 18 [pid 5839] chdir("./0" [pid 5836] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5840] set_robust_list(0x55558bca66a0, 24executing program [pid 5837] write(1, "executing program\n", 18 [pid 5836] <... futex resumed>) = 0 [pid 5840] <... set_robust_list resumed>) = 0 [pid 5837] <... write resumed>) = 18 [pid 5836] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5840] chdir("./0" [pid 5839] <... chdir resumed>) = 0 [pid 5838] <... symlink resumed>) = 0 [pid 5837] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5836] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5834] <... clone resumed>, child_tidptr=0x55558bca6690) = 5840 [pid 5840] <... chdir resumed>) = 0 [pid 5839] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5837] <... futex resumed>) = 0 [pid 5836] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], executing program [pid 5840] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5839] <... prctl resumed>) = 0 [pid 5838] write(1, "executing program\n", 18 [pid 5837] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5836] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5840] <... prctl resumed>) = 0 [pid 5839] setpgid(0, 0 [pid 5838] <... write resumed>) = 18 [pid 5837] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5836] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5840] setpgid(0, 0 [pid 5839] <... setpgid resumed>) = 0 [pid 5838] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5837] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5836] <... mmap resumed>) = 0x7fd142e81000 [pid 5840] <... setpgid resumed>) = 0 [pid 5839] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5838] <... futex resumed>) = 0 [pid 5837] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5836] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5840] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5839] <... openat resumed>) = 3 [pid 5838] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5837] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5836] <... mprotect resumed>) = 0 [pid 5839] write(3, "1000", 4 [pid 5838] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5839] <... write resumed>) = 4 [pid 5838] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5840] <... openat resumed>) = 3 [pid 5839] close(3 [pid 5838] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5837] <... mmap resumed>) = 0x7fd142e81000 [pid 5836] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5840] write(3, "1000", 4 [pid 5837] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5840] <... write resumed>) = 4 [pid 5839] <... close resumed>) = 0 [pid 5838] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5837] <... mprotect resumed>) = 0 [pid 5836] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5840] close(3 [pid 5839] symlink("/dev/binderfs", "./binderfs" [pid 5838] <... mmap resumed>) = 0x7fd142e81000 [pid 5837] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5836] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5840] <... close resumed>) = 0 [pid 5838] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5837] <... rt_sigprocmask resumed>[], 8) = 0 executing program ./strace-static-x86_64: Process 5841 attached [pid 5840] symlink("/dev/binderfs", "./binderfs" [pid 5838] <... mprotect resumed>) = 0 [pid 5837] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5841] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5840] <... symlink resumed>) = 0 [pid 5839] <... symlink resumed>) = 0 [pid 5836] <... clone3 resumed> => {parent_tid=[5841]}, 88) = 5841 [pid 5841] <... rseq resumed>) = 0 [pid 5839] write(1, "executing program\n", 18 [pid 5838] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5841] set_robust_list(0x7fd142ea19a0, 24 [pid 5839] <... write resumed>) = 18 [pid 5838] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5841] <... set_robust_list resumed>) = 0 [pid 5839] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5841] rt_sigprocmask(SIG_SETMASK, [], [pid 5839] <... futex resumed>) = 0 [pid 5838] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5841] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5839] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, ./strace-static-x86_64: Process 5842 attached executing program [pid 5841] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5840] write(1, "executing program\n", 18 [pid 5839] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5836] rt_sigprocmask(SIG_SETMASK, [], ./strace-static-x86_64: Process 5843 attached [pid 5842] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5840] <... write resumed>) = 18 [pid 5839] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5838] <... clone3 resumed> => {parent_tid=[5842]}, 88) = 5842 [pid 5837] <... clone3 resumed> => {parent_tid=[5843]}, 88) = 5843 [pid 5836] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5843] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5842] <... rseq resumed>) = 0 [pid 5840] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5839] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5838] rt_sigprocmask(SIG_SETMASK, [], [pid 5837] rt_sigprocmask(SIG_SETMASK, [], [pid 5836] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5843] <... rseq resumed>) = 0 [pid 5842] set_robust_list(0x7fd142ea19a0, 24 [pid 5841] <... futex resumed>) = 0 [pid 5840] <... futex resumed>) = 0 [pid 5839] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5838] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5837] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5836] <... futex resumed>) = 1 [pid 5843] set_robust_list(0x7fd142ea19a0, 24 [pid 5842] <... set_robust_list resumed>) = 0 [pid 5841] memfd_create("syzkaller", 0 [pid 5840] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5837] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5836] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5838] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5843] <... set_robust_list resumed>) = 0 [pid 5842] rt_sigprocmask(SIG_SETMASK, [], [pid 5841] <... memfd_create resumed>) = 3 [pid 5840] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5839] <... mmap resumed>) = 0x7fd142e81000 [pid 5838] <... futex resumed>) = 0 [pid 5837] <... futex resumed>) = 0 [pid 5843] rt_sigprocmask(SIG_SETMASK, [], [pid 5842] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5841] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5840] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5839] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5838] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5843] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5842] memfd_create("syzkaller", 0 [pid 5841] <... mmap resumed>) = 0x7fd13aa00000 [pid 5840] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5839] <... mprotect resumed>) = 0 [pid 5837] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5843] memfd_create("syzkaller", 0 [pid 5842] <... memfd_create resumed>) = 3 [pid 5840] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5843] <... memfd_create resumed>) = 3 [pid 5842] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5840] <... mmap resumed>) = 0x7fd142e81000 [pid 5839] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5843] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5842] <... mmap resumed>) = 0x7fd13aa00000 [pid 5839] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5843] <... mmap resumed>) = 0x7fd13aa00000 [pid 5840] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5839] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5840] <... mprotect resumed>) = 0 ./strace-static-x86_64: Process 5844 attached [pid 5840] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5840] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0}./strace-static-x86_64: Process 5845 attached [pid 5845] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5840] <... clone3 resumed> => {parent_tid=[5845]}, 88) = 5845 [pid 5845] <... rseq resumed>) = 0 [pid 5840] rt_sigprocmask(SIG_SETMASK, [], [pid 5845] set_robust_list(0x7fd142ea19a0, 24 [pid 5840] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5845] <... set_robust_list resumed>) = 0 [pid 5840] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5845] rt_sigprocmask(SIG_SETMASK, [], [pid 5840] <... futex resumed>) = 0 [pid 5845] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5840] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5845] memfd_create("syzkaller", 0) = 3 [pid 5845] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [pid 5844] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053) = 0 [pid 5839] <... clone3 resumed> => {parent_tid=[5844]}, 88) = 5844 [pid 5844] set_robust_list(0x7fd142ea19a0, 24 [pid 5839] rt_sigprocmask(SIG_SETMASK, [], [pid 5844] <... set_robust_list resumed>) = 0 [pid 5839] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5844] rt_sigprocmask(SIG_SETMASK, [], [pid 5839] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5844] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5839] <... futex resumed>) = 0 [pid 5844] memfd_create("syzkaller", 0 [pid 5839] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5844] <... memfd_create resumed>) = 3 [pid 5844] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [pid 5841] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 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 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 5842] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 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 resumed>) = 16777216 [pid 5842] <... write resumed>) = 16777216 [pid 5843] munmap(0x7fd13aa00000, 138412032 [pid 5845] <... write resumed>) = 16777216 [pid 5841] <... write resumed>) = 16777216 [pid 5845] munmap(0x7fd13aa00000, 138412032 [pid 5844] <... write resumed>) = 16777216 [pid 5843] <... munmap resumed>) = 0 [pid 5842] munmap(0x7fd13aa00000, 138412032 [pid 5841] munmap(0x7fd13aa00000, 138412032 [pid 5844] munmap(0x7fd13aa00000, 138412032 [pid 5843] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5845] <... munmap resumed>) = 0 [pid 5843] ioctl(4, LOOP_SET_FD, 3 [pid 5842] <... munmap resumed>) = 0 [pid 5845] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5844] <... munmap resumed>) = 0 [pid 5843] <... ioctl resumed>) = 0 [pid 5841] <... munmap resumed>) = 0 [pid 5845] <... openat resumed>) = 4 [pid 5842] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5845] ioctl(4, LOOP_SET_FD, 3 [pid 5843] close(3 [pid 5842] <... openat resumed>) = 4 [pid 5845] <... ioctl resumed>) = 0 [pid 5844] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5843] <... close resumed>) = 0 [pid 5841] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5845] close(3 [pid 5843] close(4 [pid 5845] <... close resumed>) = 0 [pid 5843] <... close resumed>) = 0 [pid 5845] close(4 [pid 5843] mkdir("./file1", 0777 [pid 5845] <... close resumed>) = 0 [pid 5843] <... mkdir resumed>) = 0 [pid 5841] <... openat resumed>) = 4 [pid 5844] <... openat resumed>) = 4 [pid 5844] ioctl(4, LOOP_SET_FD, 3 [pid 5845] mkdir("./file1", 0777) = 0 [pid 5843] mount("/dev/loop1", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5845] mount("/dev/loop4", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5844] <... ioctl resumed>) = 0 [pid 5841] ioctl(4, LOOP_SET_FD, 3 [ 62.270948][ T5843] loop1: detected capacity change from 0 to 32768 [ 62.289558][ T5845] loop4: detected capacity change from 0 to 32768 [ 62.300266][ T5844] loop3: detected capacity change from 0 to 32768 [ 62.310783][ T5841] loop0: detected capacity change from 0 to 32768 [pid 5842] ioctl(4, LOOP_SET_FD, 3 [pid 5844] close(3) = 0 [pid 5844] close(4) = 0 [pid 5842] <... ioctl resumed>) = 0 [pid 5844] mkdir("./file1", 0777 [pid 5841] <... ioctl resumed>) = 0 [pid 5841] close(3) = 0 [pid 5841] close(4) = 0 [pid 5841] mkdir("./file1", 0777 [pid 5844] <... mkdir resumed>) = 0 [pid 5841] <... mkdir resumed>) = 0 [ 62.310903][ T5842] loop2: detected capacity change from 0 to 32768 [pid 5841] mount("/dev/loop0", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5842] close(3 [pid 5844] mount("/dev/loop3", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5842] <... close resumed>) = 0 [pid 5842] close(4) = 0 [pid 5842] mkdir("./file1", 0777) = 0 [ 62.503556][ T5843] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,str_hash=crc64,journal_flush_disabled,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc [ 62.525591][ T5843] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 62.534128][ T5843] bcachefs (loop1): Version upgrade required: [ 62.534128][ T5843] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 62.534128][ T5843] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 62.534128][ 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,set_fs_needs_rebalance [ 62.613690][ T5843] bcachefs (loop1): dropping and reconstructing all alloc info [ 62.614045][ T5841] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 62.631040][ T5841] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 62.666074][ T5842] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 62.682117][ T5842] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 62.683756][ T5844] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 62.706275][ T5843] bcachefs (loop1): check_topology... done [ 62.713200][ T5845] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 62.729771][ T5843] bcachefs (loop1): accounting_read... [ 62.731158][ T5844] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 62.734120][ T5845] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 62.751963][ T5843] done [pid 5842] mount("/dev/loop2", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5841] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5841] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5841] ioctl(3, LOOP_CLR_FD) = 0 [ 62.764349][ T5841] bcachefs: bch2_fs_get_tree() error: EINVAL [ 62.776115][ T5843] bcachefs (loop1): alloc_read... done [ 62.791050][ T5843] bcachefs (loop1): stripes_read... done [ 62.796977][ T5843] bcachefs (loop1): snapshots_read... done [pid 5841] close(3 [pid 5844] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5845] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5845] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5844] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5844] ioctl(3, LOOP_CLR_FD [pid 5845] <... openat resumed>) = 3 [pid 5844] <... ioctl resumed>) = 0 [pid 5844] close(3 [pid 5845] ioctl(3, LOOP_CLR_FD [pid 5842] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5845] <... ioctl resumed>) = 0 [ 62.841693][ T5843] bcachefs (loop1): check_allocations... [ 62.909770][ T5844] bcachefs: bch2_fs_get_tree() error: EINVAL [ 62.933601][ T5845] bcachefs: bch2_fs_get_tree() error: EINVAL [ 62.933676][ T5842] bcachefs: bch2_fs_get_tree() error: EINVAL [ 62.940780][ T5843] done [ 62.954634][ T5843] bcachefs (loop1): going read-write [pid 5842] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5845] close(3 [pid 5842] <... openat resumed>) = 3 [pid 5842] ioctl(3, LOOP_CLR_FD) = 0 [pid 5842] close(3 [pid 5843] <... mount resumed>) = 0 [pid 5843] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5843] chdir("./file1") = 0 [ 62.999413][ T5843] bcachefs (loop1): done starting filesystem [pid 5843] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5843] ioctl(4, LOOP_CLR_FD) = 0 [pid 5843] close(4) = 0 [pid 5843] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5843] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5837] <... futex resumed>) = 0 [pid 5837] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5843] <... futex resumed>) = 0 [pid 5841] <... close resumed>) = 0 [pid 5837] <... futex resumed>) = 1 [pid 5837] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5843] mkdir("./bus", 0777 [pid 5841] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5836] <... futex resumed>) = 0 [pid 5843] <... mkdir resumed>) = 0 [pid 5841] mkdir("./bus", 0777 [pid 5836] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5843] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5836] <... futex resumed>) = 0 [pid 5841] <... mkdir resumed>) = 0 [pid 5836] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5841] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5836] <... futex resumed>) = ? [pid 5841] +++ killed by SIGSEGV +++ [pid 5836] +++ killed by SIGSEGV +++ [pid 5830] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5836, si_uid=0, si_status=SIGSEGV, si_utime=4 /* 0.04 s */, si_stime=42 /* 0.42 s */} --- [pid 5837] <... futex resumed>) = ? [pid 5843] +++ killed by SIGSEGV +++ [pid 5837] +++ killed by SIGSEGV +++ [pid 5831] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5837, si_uid=0, si_status=SIGSEGV, si_utime=4 /* 0.04 s */, si_stime=39 /* 0.39 s */} --- [pid 5830] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5831] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5831] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5830] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5831] <... openat resumed>) = 3 [pid 5830] <... openat resumed>) = 3 [pid 5831] newfstatat(3, "", [pid 5830] newfstatat(3, "", [pid 5831] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5830] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5831] getdents64(3, [pid 5830] getdents64(3, [pid 5831] <... getdents64 resumed>0x55558bca7730 /* 4 entries */, 32768) = 112 [pid 5830] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5831] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5830] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5831] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5830] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5831] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5830] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5831] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5830] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5831] unlink("./0/binderfs" [pid 5830] unlink("./0/binderfs" [pid 5831] <... unlink resumed>) = 0 [pid 5830] <... unlink resumed>) = 0 [pid 5831] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5830] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] newfstatat(AT_FDCWD, "./0/bus", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5830] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] openat(AT_FDCWD, "./0/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5830] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5830] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5830] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5830] close(4) = 0 [pid 5830] rmdir("./0/bus") = 0 [pid 5830] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] newfstatat(AT_FDCWD, "./0/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5830] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5830] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5830] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5830] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5830] close(4) = 0 [pid 5830] rmdir("./0/file1") = 0 [pid 5830] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5830] close(3) = 0 [pid 5830] rmdir("./0") = 0 [pid 5830] mkdir("./1", 0777) = 0 [pid 5830] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [pid 5830] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5830] close(3) = 0 [pid 5830] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5886 attached , child_tidptr=0x55558bca6690) = 5886 [pid 5886] set_robust_list(0x55558bca66a0, 24) = 0 [pid 5886] chdir("./1") = 0 [pid 5886] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [ 63.181345][ T5831] bcachefs (loop1): shutting down [ 63.186618][ T5831] bcachefs (loop1): going read-only [pid 5886] setpgid(0, 0) = 0 [pid 5844] <... close resumed>) = 0 [pid 5886] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5844] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5842] <... close resumed>) = 0 [pid 5886] <... openat resumed>) = 3 [pid 5844] <... futex resumed>) = 1 [pid 5842] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5839] <... futex resumed>) = 0 [pid 5886] write(3, "1000", 4 [pid 5844] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5842] <... futex resumed>) = 1 [pid 5839] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5838] <... futex resumed>) = 0 [pid 5886] <... write resumed>) = 4 [pid 5844] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5842] mkdir("./bus", 0777 [pid 5839] <... futex resumed>) = 0 [pid 5838] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5844] mkdir("./bus", 0777 [pid 5842] <... mkdir resumed>) = 0 [pid 5844] <... mkdir resumed>) = 0 [pid 5842] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5886] close(3 [pid 5845] <... close resumed>) = 0 [pid 5844] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5839] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5838] <... futex resumed>) = 0 [pid 5886] <... close resumed>) = 0 [pid 5845] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5839] <... futex resumed>) = ? [pid 5886] symlink("/dev/binderfs", "./binderfs" [pid 5845] <... futex resumed>) = 1 [pid 5844] +++ killed by SIGSEGV +++ [pid 5840] <... futex resumed>) = 0 [pid 5839] +++ killed by SIGSEGV +++ [pid 5840] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5833] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5839, si_uid=0, si_status=SIGSEGV, si_utime=5 /* 0.05 s */, si_stime=45 /* 0.45 s */} --- [pid 5840] <... futex resumed>) = 0 [pid 5833] restart_syscall(<... resuming interrupted clone ...> [pid 5840] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5886] <... symlink resumed>) = 0 [pid 5845] mkdir("./bus", 0777 [pid 5842] +++ killed by SIGSEGV +++ [pid 5838] +++ killed by SIGSEGV +++ [pid 5833] <... restart_syscall resumed>) = 0 [pid 5845] <... mkdir resumed>) = 0 [pid 5832] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5838, si_uid=0, si_status=SIGSEGV, si_utime=5 /* 0.05 s */, si_stime=37 /* 0.37 s */} --- [pid 5833] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5886] write(1, "executing program\n", 18 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOWexecuting program [pid 5886] <... write resumed>) = 18 [pid 5845] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5833] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5840] <... futex resumed>) = ? [pid 5833] <... openat resumed>) = 3 [pid 5832] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5833] newfstatat(3, "", [pid 5832] <... openat resumed>) = 3 [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] newfstatat(3, "", [pid 5833] getdents64(3, [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5886] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5833] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5832] getdents64(3, [pid 5886] <... futex resumed>) = 0 [pid 5845] +++ killed by SIGSEGV +++ [pid 5840] +++ killed by SIGSEGV +++ [pid 5832] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5886] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5834] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5840, si_uid=0, si_status=SIGSEGV, si_utime=4 /* 0.04 s */, si_stime=47 /* 0.47 s */} --- [pid 5832] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5886] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5834] restart_syscall(<... resuming interrupted clone ...> [pid 5833] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5886] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 63.240607][ T5831] bcachefs (loop1): finished waiting for writes to stop [ 63.265973][ T5831] bcachefs (loop1): flushing journal and stopping allocators, journal seq 11 [pid 5832] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5886] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5834] <... restart_syscall resumed>) = 0 [pid 5832] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] unlink("./0/binderfs") = 0 [pid 5834] umount2("./0", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5834] openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5832] newfstatat(AT_FDCWD, "./0/bus", [pid 5834] <... openat resumed>) = 3 [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5834] newfstatat(3, "", [pid 5832] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5886] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5886] <... mmap resumed>) = 0x7fd142e81000 [pid 5834] getdents64(3, [pid 5833] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5832] openat(AT_FDCWD, "./0/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5886] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5834] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5833] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] <... openat resumed>) = 4 [pid 5886] <... mprotect resumed>) = 0 [pid 5834] umount2("./0/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] newfstatat(4, "", [pid 5886] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] unlink("./0/binderfs" [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5886] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5834] newfstatat(AT_FDCWD, "./0/binderfs", [pid 5833] <... unlink resumed>) = 0 [pid 5832] getdents64(4, [pid 5886] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5834] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5833] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5834] unlink("./0/binderfs" [pid 5832] getdents64(4, [pid 5834] <... unlink resumed>) = 0 [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5832] close(4 [pid 5886] <... clone3 resumed> => {parent_tid=[5888]}, 88) = 5888 [pid 5832] <... close resumed>) = 0 [pid 5886] rt_sigprocmask(SIG_SETMASK, [], [pid 5834] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] rmdir("./0/bus"./strace-static-x86_64: Process 5888 attached [pid 5886] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... rmdir resumed>) = 0 [pid 5886] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5834] newfstatat(AT_FDCWD, "./0/bus", [pid 5833] newfstatat(AT_FDCWD, "./0/bus", [pid 5832] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5888] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5886] <... futex resumed>) = 0 [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5888] <... rseq resumed>) = 0 [pid 5886] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5834] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5833] umount2("./0/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] newfstatat(AT_FDCWD, "./0/file1", [pid 5888] set_robust_list(0x7fd142ea19a0, 24 [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] openat(AT_FDCWD, "./0/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5832] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5833] <... openat resumed>) = 4 [pid 5832] <... openat resumed>) = 4 [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] newfstatat(4, "", [pid 5832] newfstatat(4, "", [pid 5888] <... set_robust_list resumed>) = 0 [pid 5834] openat(AT_FDCWD, "./0/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5888] rt_sigprocmask(SIG_SETMASK, [], [pid 5834] <... openat resumed>) = 4 [pid 5833] getdents64(4, [pid 5888] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5834] newfstatat(4, "", [pid 5833] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5832] getdents64(4, [pid 5888] memfd_create("syzkaller", 0 [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5833] getdents64(4, [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5888] <... memfd_create resumed>) = 3 [pid 5834] getdents64(4, [pid 5833] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5832] getdents64(4, [pid 5888] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5833] close(4 [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5888] <... mmap resumed>) = 0x7fd13aa00000 [pid 5834] getdents64(4, [pid 5833] <... close resumed>) = 0 [pid 5832] close(4 [pid 5833] rmdir("./0/bus" [pid 5832] <... close resumed>) = 0 [pid 5833] <... rmdir resumed>) = 0 [pid 5832] rmdir("./0/file1") = 0 [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5834] close(4 [pid 5832] getdents64(3, [pid 5834] <... close resumed>) = 0 [pid 5832] <... getdents64 resumed>0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5834] rmdir("./0/bus" [pid 5833] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] close(3 [pid 5834] <... rmdir resumed>) = 0 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... close resumed>) = 0 [pid 5833] newfstatat(AT_FDCWD, "./0/file1", [pid 5832] rmdir("./0" [pid 5834] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] <... rmdir resumed>) = 0 [pid 5833] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5834] newfstatat(AT_FDCWD, "./0/file1", [pid 5833] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5832] mkdir("./1", 0777 [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5833] <... openat resumed>) = 4 [pid 5832] <... mkdir resumed>) = 0 [pid 5834] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5833] newfstatat(4, "", [pid 5832] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] <... openat resumed>) = 3 [pid 5834] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5833] getdents64(4, [pid 5832] ioctl(3, LOOP_CLR_FD [pid 5834] <... openat resumed>) = 4 [pid 5833] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5832] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5834] newfstatat(4, "", [pid 5833] getdents64(4, [pid 5832] close(3 [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5833] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5832] <... close resumed>) = 0 [pid 5834] getdents64(4, [pid 5833] close(4 [pid 5832] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5833] <... close resumed>) = 0 [pid 5833] rmdir("./0/file1" [pid 5834] getdents64(4, [pid 5833] <... rmdir resumed>) = 0 ./strace-static-x86_64: Process 5889 attached [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] getdents64(3, [pid 5889] set_robust_list(0x55558bca66a0, 24 [pid 5834] close(4 [pid 5833] <... getdents64 resumed>0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5889] <... set_robust_list resumed>) = 0 [pid 5834] <... close resumed>) = 0 [pid 5833] close(3 [pid 5834] rmdir("./0/file1" [pid 5833] <... close resumed>) = 0 [pid 5889] chdir("./1" [pid 5834] <... rmdir resumed>) = 0 [pid 5833] rmdir("./0" [pid 5832] <... clone resumed>, child_tidptr=0x55558bca6690) = 5889 [pid 5833] <... rmdir resumed>) = 0 [ 63.319973][ T5831] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 15 [ 63.337560][ T5831] bcachefs (loop1): unshutdown complete, journal seq 16 [ 63.349515][ T5831] bcachefs (loop1): done going read-only, filesystem not clean [pid 5834] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5834] close(3) = 0 [pid 5834] rmdir("./0" [pid 5833] mkdir("./1", 0777 [pid 5889] <... chdir resumed>) = 0 [pid 5834] <... rmdir resumed>) = 0 [pid 5833] <... mkdir resumed>) = 0 [pid 5889] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5834] mkdir("./1", 0777 [pid 5889] setpgid(0, 0 [pid 5834] <... mkdir resumed>) = 0 [pid 5833] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5833] ioctl(3, LOOP_CLR_FD [pid 5889] <... setpgid resumed>) = 0 [pid 5833] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5833] close(3) = 0 [pid 5889] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5833] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5890 attached [pid 5889] <... openat resumed>) = 3 [pid 5834] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5889] write(3, "1000", 4 [pid 5834] <... openat resumed>) = 3 [pid 5833] <... clone resumed>, child_tidptr=0x55558bca6690) = 5890 [pid 5890] set_robust_list(0x55558bca66a0, 24 [pid 5889] <... write resumed>) = 4 [pid 5890] <... set_robust_list resumed>) = 0 [pid 5889] close(3 [pid 5834] ioctl(3, LOOP_CLR_FD [pid 5889] <... close resumed>) = 0 [pid 5890] chdir("./1" [pid 5889] symlink("/dev/binderfs", "./binderfs" [pid 5834] <... ioctl resumed>) = -1 ENXIO (No such device or address) executing program [pid 5890] <... chdir resumed>) = 0 [pid 5889] <... symlink resumed>) = 0 [pid 5834] close(3 [pid 5890] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5889] write(1, "executing program\n", 18 [pid 5890] <... prctl resumed>) = 0 [pid 5889] <... write resumed>) = 18 [pid 5890] setpgid(0, 0 [pid 5889] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5834] <... close resumed>) = 0 [pid 5890] <... setpgid resumed>) = 0 [pid 5889] <... futex resumed>) = 0 [pid 5889] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5834] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5889] <... rt_sigaction resumed>NULL, 8) = 0 ./strace-static-x86_64: Process 5891 attached [pid 5890] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5889] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5889] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd142e81000 [pid 5891] set_robust_list(0x55558bca66a0, 24 [pid 5890] <... openat resumed>) = 3 [pid 5889] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5891] <... set_robust_list resumed>) = 0 [pid 5890] write(3, "1000", 4 [pid 5889] <... mprotect resumed>) = 0 [pid 5891] chdir("./1" [pid 5890] <... write resumed>) = 4 [pid 5889] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5834] <... clone resumed>, child_tidptr=0x55558bca6690) = 5891 [pid 5890] close(3 [pid 5889] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5890] <... close resumed>) = 0 [pid 5889] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5890] symlink("/dev/binderfs", "./binderfs" [pid 5891] <... chdir resumed>) = 0 [pid 5891] prctl(PR_SET_PDEATHSIG, SIGKILL./strace-static-x86_64: Process 5892 attached ) = 0 [pid 5890] <... symlink resumed>) = 0 [pid 5889] <... clone3 resumed> => {parent_tid=[5892]}, 88) = 5892 executing program [pid 5891] setpgid(0, 0 [pid 5889] rt_sigprocmask(SIG_SETMASK, [], [pid 5890] write(1, "executing program\n", 18 [pid 5889] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5890] <... write resumed>) = 18 [pid 5889] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5891] <... setpgid resumed>) = 0 [pid 5889] <... futex resumed>) = 0 [pid 5892] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5891] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5890] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5889] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5890] <... futex resumed>) = 0 [pid 5892] <... rseq resumed>) = 0 [pid 5891] <... openat resumed>) = 3 [pid 5890] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5892] set_robust_list(0x7fd142ea19a0, 24 [pid 5891] write(3, "1000", 4 [pid 5890] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5892] <... set_robust_list resumed>) = 0 [pid 5891] <... write resumed>) = 4 [pid 5890] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5892] rt_sigprocmask(SIG_SETMASK, [], [pid 5891] close(3 [pid 5890] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5892] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5891] <... close resumed>) = 0 [pid 5890] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5892] memfd_create("syzkaller", 0 [pid 5891] symlink("/dev/binderfs", "./binderfs" [pid 5890] <... mmap resumed>) = 0x7fd142e81000 [pid 5892] <... memfd_create resumed>) = 3 [pid 5891] <... symlink resumed>) = 0 [pid 5890] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITEexecuting program [pid 5892] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5891] write(1, "executing program\n", 18 [pid 5890] <... mprotect resumed>) = 0 [pid 5891] <... write resumed>) = 18 [pid 5892] <... mmap resumed>) = 0x7fd13aa00000 [pid 5891] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5890] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5890] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5891] <... futex resumed>) = 0 [pid 5891] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, ./strace-static-x86_64: Process 5893 attached NULL, 8) = 0 [pid 5891] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5891] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd142e81000 [pid 5891] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5893] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5891] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5893] <... rseq resumed>) = 0 [pid 5893] set_robust_list(0x7fd142ea19a0, 24) = 0 [pid 5893] rt_sigprocmask(SIG_SETMASK, [], [pid 5891] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5893] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5891] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0}./strace-static-x86_64: Process 5894 attached [pid 5893] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5894] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5891] <... clone3 resumed> => {parent_tid=[5894]}, 88) = 5894 [pid 5894] <... rseq resumed>) = 0 [pid 5891] rt_sigprocmask(SIG_SETMASK, [], [pid 5894] set_robust_list(0x7fd142ea19a0, 24 [pid 5891] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5894] <... set_robust_list resumed>) = 0 [pid 5891] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5894] rt_sigprocmask(SIG_SETMASK, [], [pid 5891] <... futex resumed>) = 0 [pid 5894] <... rt_sigprocmask resumed>NULL, 8) = 0 [ 63.428229][ T5831] bcachefs (loop1): shutdown complete [pid 5891] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5894] memfd_create("syzkaller", 0) = 3 [pid 5890] <... clone3 resumed> => {parent_tid=[5893]}, 88) = 5893 [pid 5894] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [pid 5890] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5890] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5893] <... futex resumed>) = 0 [pid 5890] <... futex resumed>) = 1 [pid 5893] memfd_create("syzkaller", 0 [pid 5890] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5893] <... memfd_create resumed>) = 3 [pid 5893] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [pid 5888] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5892] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5893] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5894] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5888] <... write resumed>) = 16777216 [pid 5888] munmap(0x7fd13aa00000, 138412032) = 0 [pid 5888] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5888] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5888] close(3) = 0 [pid 5888] close(4) = 0 [pid 5888] mkdir("./file1", 0777) = 0 [ 63.921563][ T5888] loop0: detected capacity change from 0 to 32768 [pid 5888] mount("/dev/loop0", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5893] <... write resumed>) = 16777216 [pid 5892] <... write resumed>) = 16777216 [pid 5892] munmap(0x7fd13aa00000, 138412032 [pid 5893] munmap(0x7fd13aa00000, 138412032) = 0 [pid 5893] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5892] <... munmap resumed>) = 0 [pid 5893] <... openat resumed>) = 4 [pid 5893] ioctl(4, LOOP_SET_FD, 3 [pid 5892] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 4 [pid 5892] ioctl(4, LOOP_SET_FD, 3 [pid 5893] <... ioctl resumed>) = 0 [pid 5894] <... write resumed>) = 16777216 [pid 5892] <... ioctl resumed>) = 0 [pid 5894] munmap(0x7fd13aa00000, 138412032 [pid 5893] close(3 [pid 5892] close(3) = 0 [pid 5893] <... close resumed>) = 0 [pid 5892] close(4 [pid 5893] close(4 [pid 5892] <... close resumed>) = 0 [pid 5893] <... close resumed>) = 0 [pid 5892] mkdir("./file1", 0777 [pid 5894] <... munmap resumed>) = 0 [pid 5893] mkdir("./file1", 0777 [pid 5894] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5893] <... mkdir resumed>) = 0 [pid 5892] <... mkdir resumed>) = 0 [pid 5894] <... openat resumed>) = 4 [pid 5894] ioctl(4, LOOP_SET_FD, 3 [pid 5893] mount("/dev/loop3", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [ 64.025132][ T5893] loop3: detected capacity change from 0 to 32768 [ 64.033414][ T5892] loop2: detected capacity change from 0 to 32768 [pid 5892] mount("/dev/loop2", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5894] <... ioctl resumed>) = 0 [pid 5894] close(3) = 0 [pid 5894] close(4) = 0 [pid 5894] mkdir("./file1", 0777) = 0 [ 64.065785][ T5894] loop4: detected capacity change from 0 to 32768 [ 64.310103][ T5892] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 64.310808][ T5888] bcachefs (loop0): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,str_hash=crc64,journal_flush_disabled,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc [ 64.319309][ T5892] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 64.343042][ T5888] bcachefs (loop0): recovering from clean shutdown, journal seq 10 [ 64.356993][ T5888] bcachefs (loop0): Version upgrade required: [ 64.356993][ T5888] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 64.356993][ T5888] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 64.356993][ T5888] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 64.441359][ T5893] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 64.451797][ T5893] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 64.494170][ T5888] bcachefs (loop0): dropping and reconstructing all alloc info [ 64.520294][ T5894] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [pid 5894] mount("/dev/loop4", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5893] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5893] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5893] ioctl(3, LOOP_CLR_FD) = 0 [ 64.560686][ T5893] bcachefs: bch2_fs_get_tree() error: EINVAL [ 64.569111][ T5894] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 64.631058][ T5888] bcachefs (loop0): check_topology... done [ 64.636964][ T5888] bcachefs (loop0): accounting_read... [ 64.649832][ T5892] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5893] close(3 [pid 5892] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5892] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5892] ioctl(3, LOOP_CLR_FD) = 0 [ 64.691364][ T5888] done [ 64.694202][ T5888] bcachefs (loop0): alloc_read... done [ 64.718149][ T5888] bcachefs (loop0): stripes_read... done [ 64.724472][ T5888] bcachefs (loop0): snapshots_read... done [pid 5892] close(3 [pid 5894] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5894] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5894] ioctl(3, LOOP_CLR_FD) = 0 [ 64.756715][ T5888] bcachefs (loop0): check_allocations... [ 64.783910][ T5894] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5894] close(3 [pid 5831] <... umount2 resumed>) = 0 [pid 5893] <... close resumed>) = 0 [pid 5831] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5893] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5831] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5893] <... futex resumed>) = 1 [pid 5890] <... futex resumed>) = 0 [pid 5890] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5890] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5893] mkdir("./bus", 0777) = 0 [pid 5831] newfstatat(AT_FDCWD, "./0/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5831] umount2("./0/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5831] openat(AT_FDCWD, "./0/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5831] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5831] getdents64(4, [pid 5893] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5890] <... futex resumed>) = ? [pid 5893] +++ killed by SIGSEGV +++ [pid 5890] +++ killed by SIGSEGV +++ [pid 5833] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5890, si_uid=0, si_status=SIGSEGV, si_utime=5 /* 0.05 s */, si_stime=33 /* 0.33 s */} --- [pid 5833] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5831] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5833] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5831] getdents64(4, [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5831] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5831] close(4 [pid 5833] <... openat resumed>) = 3 [pid 5831] <... close resumed>) = 0 [pid 5833] newfstatat(3, "", [pid 5831] rmdir("./0/file1" [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5831] <... rmdir resumed>) = 0 [pid 5833] getdents64(3, 0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5831] getdents64(3, [pid 5888] <... mount resumed>) = 0 [pid 5833] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5831] <... getdents64 resumed>0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5888] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY) = 3 [pid 5888] chdir("./file1") = 0 [pid 5888] openat(AT_FDCWD, "/dev/loop0", O_RDWR [pid 5831] close(3 [pid 5888] <... openat resumed>) = 4 [pid 5888] ioctl(4, LOOP_CLR_FD [pid 5831] <... close resumed>) = 0 [pid 5888] <... ioctl resumed>) = 0 [pid 5831] rmdir("./0" [pid 5888] close(4 [pid 5831] <... rmdir resumed>) = 0 [pid 5888] <... close resumed>) = 0 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5833] unlink("./1/binderfs") = 0 [pid 5831] mkdir("./1", 0777 [pid 5833] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5831] <... mkdir resumed>) = 0 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] newfstatat(AT_FDCWD, "./1/bus", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5833] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5833] openat(AT_FDCWD, "./1/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5831] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5833] <... openat resumed>) = 4 [pid 5831] <... openat resumed>) = 3 [pid 5833] newfstatat(4, "", [pid 5831] ioctl(3, LOOP_CLR_FD [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5831] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5833] getdents64(4, [pid 5831] close(3 [pid 5833] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5831] <... close resumed>) = 0 [pid 5833] getdents64(4, [pid 5831] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5888] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5833] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] close(4 [pid 5888] <... futex resumed>) = 1 [pid 5886] <... futex resumed>) = 0 [pid 5833] <... close resumed>) = 0 [pid 5833] rmdir("./1/bus") = 0 [pid 5833] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5833] newfstatat(AT_FDCWD, "./1/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5833] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5888] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5886] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 5927 attached [ 64.877056][ T5888] done [ 64.891323][ T5888] bcachefs (loop0): going read-write [ 64.910188][ T5888] bcachefs (loop0): done starting filesystem [pid 5888] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5886] <... futex resumed>) = 0 [pid 5833] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5888] mkdir("./bus", 0777 [pid 5886] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5833] <... openat resumed>) = 4 [pid 5833] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5833] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5833] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] close(4) = 0 [pid 5927] set_robust_list(0x55558bca66a0, 24 [pid 5833] rmdir("./1/file1" [pid 5927] <... set_robust_list resumed>) = 0 [pid 5888] <... mkdir resumed>) = 0 [pid 5833] <... rmdir resumed>) = 0 [pid 5927] chdir("./1" [pid 5833] getdents64(3, [pid 5927] <... chdir resumed>) = 0 [pid 5833] <... getdents64 resumed>0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5831] <... clone resumed>, child_tidptr=0x55558bca6690) = 5927 [pid 5927] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5927] setpgid(0, 0 [pid 5833] close(3 [pid 5927] <... setpgid resumed>) = 0 [pid 5927] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5888] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5833] <... close resumed>) = 0 [pid 5927] <... openat resumed>) = 3 [pid 5833] rmdir("./1" [pid 5927] write(3, "1000", 4 [pid 5833] <... rmdir resumed>) = 0 [pid 5927] <... write resumed>) = 4 [pid 5927] close(3) = 0 [pid 5833] mkdir("./2", 0777 [pid 5927] symlink("/dev/binderfs", "./binderfs" [pid 5833] <... mkdir resumed>) = 0 [pid 5927] <... symlink resumed>) = 0 [pid 5927] write(1, "executing program\n", 18executing program ) = 18 [pid 5833] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5927] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5886] <... futex resumed>) = ? [pid 5927] <... futex resumed>) = 0 [pid 5927] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5833] <... openat resumed>) = 3 [pid 5927] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5833] ioctl(3, LOOP_CLR_FD [pid 5888] +++ killed by SIGSEGV +++ [pid 5886] +++ killed by SIGSEGV +++ [pid 5927] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5833] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5927] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5833] close(3 [pid 5830] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5886, si_uid=0, si_status=SIGSEGV, si_utime=5 /* 0.05 s */, si_stime=34 /* 0.34 s */} --- [pid 5927] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5833] <... close resumed>) = 0 [pid 5830] restart_syscall(<... resuming interrupted clone ...> [pid 5927] <... mmap resumed>) = 0x7fd142e81000 [pid 5833] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5927] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5830] <... restart_syscall resumed>) = 0 [pid 5927] <... mprotect resumed>) = 0 [pid 5927] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5830] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5927] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5830] <... umount2 resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 5929 attached [pid 5830] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY./strace-static-x86_64: Process 5928 attached [pid 5927] <... clone3 resumed> => {parent_tid=[5929]}, 88) = 5929 [pid 5830] <... openat resumed>) = 3 [pid 5928] set_robust_list(0x55558bca66a0, 24 [pid 5927] rt_sigprocmask(SIG_SETMASK, [], [pid 5833] <... clone resumed>, child_tidptr=0x55558bca6690) = 5928 [pid 5830] newfstatat(3, "", [pid 5929] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5928] <... set_robust_list resumed>) = 0 [pid 5927] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5892] <... close resumed>) = 0 [pid 5830] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5929] <... rseq resumed>) = 0 [pid 5927] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5929] set_robust_list(0x7fd142ea19a0, 24 [pid 5927] <... futex resumed>) = 0 [pid 5830] getdents64(3, [pid 5927] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5830] <... getdents64 resumed>0x55558bca7730 /* 4 entries */, 32768) = 112 [pid 5929] <... set_robust_list resumed>) = 0 [pid 5928] chdir("./2" [pid 5929] rt_sigprocmask(SIG_SETMASK, [], [pid 5830] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5929] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5929] memfd_create("syzkaller", 0 [pid 5830] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5830] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5830] unlink("./1/binderfs") = 0 [pid 5830] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5929] <... memfd_create resumed>) = 3 [pid 5929] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [pid 5928] <... chdir resumed>) = 0 [pid 5928] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5892] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000) = 1 [pid 5892] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5889] <... futex resumed>) = 0 [pid 5889] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5892] <... futex resumed>) = 0 [pid 5889] <... futex resumed>) = 1 [pid 5892] mkdir("./bus", 0777 [pid 5889] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5892] <... mkdir resumed>) = 0 [pid 5928] <... prctl resumed>) = 0 [pid 5892] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5894] <... close resumed>) = 0 [pid 5928] setpgid(0, 0 [pid 5894] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5889] <... futex resumed>) = ? [pid 5928] <... setpgid resumed>) = 0 [pid 5894] <... futex resumed>) = 1 [pid 5892] +++ killed by SIGSEGV +++ [pid 5889] +++ killed by SIGSEGV +++ [pid 5832] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5889, si_uid=0, si_status=SIGSEGV, si_utime=6 /* 0.06 s */, si_stime=43 /* 0.43 s */} --- [pid 5832] restart_syscall(<... resuming interrupted clone ...> [ 65.010589][ T5830] bcachefs (loop0): shutting down [pid 5928] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5894] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5891] <... futex resumed>) = 0 [pid 5832] <... restart_syscall resumed>) = 0 [pid 5832] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5891] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5894] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5832] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] getdents64(3, [pid 5894] mkdir("./bus", 0777 [pid 5832] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5891] <... futex resumed>) = 0 [pid 5928] <... openat resumed>) = 3 [pid 5891] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5894] <... mkdir resumed>) = 0 [pid 5832] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5928] write(3, "1000", 4 [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] newfstatat(AT_FDCWD, "./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] unlink("./1/binderfs") = 0 [pid 5832] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5928] <... write resumed>) = 4 [pid 5894] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [ 65.034111][ T5830] bcachefs (loop0): going read-only [pid 5832] newfstatat(AT_FDCWD, "./1/bus", [pid 5928] close(3 [pid 5891] <... futex resumed>) = ? [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5928] <... close resumed>) = 0 [pid 5832] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5832] openat(AT_FDCWD, "./1/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5928] symlink("/dev/binderfs", "./binderfs" [pid 5832] <... openat resumed>) = 4 [pid 5832] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] getdents64(4, [pid 5894] +++ killed by SIGSEGV +++ [pid 5891] +++ killed by SIGSEGV +++ [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5832] getdents64(4, [pid 5928] <... symlink resumed>) = 0 [pid 5928] write(1, "executing program\n", 18 [pid 5834] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5891, si_uid=0, si_status=SIGSEGV, si_utime=1 /* 0.01 s */, si_stime=45 /* 0.45 s */} --- [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5832] close(4) = 0 [pid 5832] rmdir("./1/bus") = 0 [pid 5832] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) executing program [pid 5832] newfstatat(AT_FDCWD, "./1/file1", [pid 5928] <... write resumed>) = 18 [pid 5834] restart_syscall(<... resuming interrupted clone ...> [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5832] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5832] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5928] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5834] <... restart_syscall resumed>) = 0 [pid 5832] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5832] close(4) = 0 [pid 5832] rmdir("./1/file1" [pid 5928] <... futex resumed>) = 0 [pid 5832] <... rmdir resumed>) = 0 [pid 5832] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5928] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, NULL, 8) = 0 [pid 5834] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] close(3) = 0 [pid 5832] rmdir("./1") = 0 [pid 5832] mkdir("./2", 0777 [pid 5928] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5928] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5834] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5928] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5834] <... openat resumed>) = 3 [pid 5928] <... mmap resumed>) = 0x7fd142e81000 [pid 5834] newfstatat(3, "", [pid 5928] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5928] <... mprotect resumed>) = 0 [pid 5834] getdents64(3, [pid 5832] <... mkdir resumed>) = 0 [pid 5928] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5834] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5928] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5834] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5928] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... openat resumed>) = 3 ./strace-static-x86_64: Process 5930 attached [pid 5834] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5930] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5928] <... clone3 resumed> => {parent_tid=[5930]}, 88) = 5930 [pid 5834] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5930] <... rseq resumed>) = 0 [pid 5928] rt_sigprocmask(SIG_SETMASK, [], [pid 5834] unlink("./1/binderfs" [pid 5832] ioctl(3, LOOP_CLR_FD [pid 5930] set_robust_list(0x7fd142ea19a0, 24 [pid 5928] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5834] <... unlink resumed>) = 0 [pid 5832] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5930] <... set_robust_list resumed>) = 0 [pid 5928] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5834] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5930] rt_sigprocmask(SIG_SETMASK, [], [pid 5928] <... futex resumed>) = 0 [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] close(3 [pid 5930] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5928] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5834] newfstatat(AT_FDCWD, "./1/bus", [pid 5930] memfd_create("syzkaller", 0 [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] <... close resumed>) = 0 [pid 5930] <... memfd_create resumed>) = 3 [pid 5834] umount2("./1/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5930] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5930] <... mmap resumed>) = 0x7fd13aa00000 [pid 5834] openat(AT_FDCWD, "./1/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5834] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5834] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [ 65.051146][ T5830] bcachefs (loop0): finished waiting for writes to stop [ 65.086464][ T5830] bcachefs (loop0): flushing journal and stopping allocators, journal seq 11 [pid 5834] getdents64(4, [pid 5832] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5834] close(4) = 0 ./strace-static-x86_64: Process 5931 attached [pid 5834] rmdir("./1/bus" [pid 5832] <... clone resumed>, child_tidptr=0x55558bca6690) = 5931 [pid 5931] set_robust_list(0x55558bca66a0, 24 [pid 5834] <... rmdir resumed>) = 0 [pid 5931] <... set_robust_list resumed>) = 0 [pid 5834] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5931] chdir("./2" [pid 5834] newfstatat(AT_FDCWD, "./1/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5834] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5834] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5931] <... chdir resumed>) = 0 [pid 5834] newfstatat(4, "", [pid 5931] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5931] <... prctl resumed>) = 0 [pid 5931] setpgid(0, 0) = 0 [pid 5834] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5931] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5834] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5931] write(3, "1000", 4) = 4 [pid 5834] close(4 [pid 5931] close(3) = 0 [pid 5834] <... close resumed>) = 0 [pid 5931] symlink("/dev/binderfs", "./binderfs" [pid 5834] rmdir("./1/file1"executing program [pid 5931] <... symlink resumed>) = 0 [pid 5834] <... rmdir resumed>) = 0 [pid 5931] write(1, "executing program\n", 18) = 18 [pid 5834] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5931] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5834] close(3) = 0 [pid 5834] rmdir("./1") = 0 [pid 5834] mkdir("./2", 0777 [pid 5931] <... futex resumed>) = 0 [pid 5834] <... mkdir resumed>) = 0 [pid 5931] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5834] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5834] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5931] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5929] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5834] close(3) = 0 [pid 5834] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5932 attached , child_tidptr=0x55558bca6690) = 5932 [pid 5932] set_robust_list(0x55558bca66a0, 24 [pid 5931] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5932] <... set_robust_list resumed>) = 0 [pid 5931] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5932] chdir("./2" [pid 5931] <... mmap resumed>) = 0x7fd142e81000 [pid 5931] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5932] <... chdir resumed>) = 0 [pid 5932] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5931] <... mprotect resumed>) = 0 [pid 5932] setpgid(0, 0) = 0 [ 65.173008][ T2205] bcachefs (loop0): bch2_write_super(): fatal error loop0: Superblock write was silently dropped! (seq 0 expected 53) [ 65.196675][ T2205] bcachefs (loop0): fatal error - emergency read only [pid 5932] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5931] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5931] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0}./strace-static-x86_64: Process 5933 attached [pid 5933] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5932] write(3, "1000", 4 [pid 5931] <... clone3 resumed> => {parent_tid=[5933]}, 88) = 5933 [pid 5933] <... rseq resumed>) = 0 [pid 5931] rt_sigprocmask(SIG_SETMASK, [], [pid 5933] set_robust_list(0x7fd142ea19a0, 24 [pid 5931] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5933] <... set_robust_list resumed>) = 0 [pid 5931] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5933] rt_sigprocmask(SIG_SETMASK, [], [pid 5931] <... futex resumed>) = 0 [pid 5933] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5931] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5933] memfd_create("syzkaller", 0 [pid 5932] <... write resumed>) = 4 [pid 5933] <... memfd_create resumed>) = 3 [pid 5933] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5932] close(3) = 0 [pid 5932] symlink("/dev/binderfs", "./binderfs"executing program ) = 0 [pid 5932] write(1, "executing program\n", 18) = 18 [pid 5932] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5932] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, NULL, 8) = 0 [pid 5932] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5932] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd142e81000 [pid 5932] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5932] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5932] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} => {parent_tid=[5934]}, 88) = 5934 [pid 5932] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5932] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5932] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000}./strace-static-x86_64: Process 5934 attached [pid 5934] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053) = 0 [ 65.215755][ T5830] bcachefs (loop0): flushing journal and stopping allocators complete, journal seq 14 [pid 5934] set_robust_list(0x7fd142ea19a0, 24) = 0 [pid 5933] <... mmap resumed>) = 0x7fd13aa00000 [pid 5934] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5934] memfd_create("syzkaller", 0) = 3 [pid 5934] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [ 65.259872][ T5830] bcachefs (loop0): unshutdown complete, journal seq 14 [ 65.281369][ T5830] bcachefs (loop0): done going read-only, filesystem not clean [ 65.357061][ T5830] bcachefs (loop0): shutdown complete [pid 5933] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5930] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5929] <... write resumed>) = 16777216 [pid 5929] munmap(0x7fd13aa00000, 138412032) = 0 [pid 5929] openat(AT_FDCWD, "/dev/loop1", O_RDWR) = 4 [pid 5929] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5929] close(3) = 0 [pid 5929] close(4) = 0 [pid 5929] mkdir("./file1", 0777) = 0 [pid 5934] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [ 65.521767][ T5929] loop1: detected capacity change from 0 to 32768 [pid 5929] mount("/dev/loop1", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5933] <... write resumed>) = 16777216 [pid 5933] munmap(0x7fd13aa00000, 138412032 [pid 5930] <... write resumed>) = 16777216 [pid 5933] <... munmap resumed>) = 0 [pid 5933] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5930] munmap(0x7fd13aa00000, 138412032 [pid 5933] <... openat resumed>) = 4 [pid 5933] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5933] close(3) = 0 [pid 5933] close(4) = 0 [pid 5933] mkdir("./file1", 0777) = 0 [pid 5933] mount("/dev/loop2", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5930] <... munmap resumed>) = 0 [pid 5930] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 4 [pid 5930] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5930] close(3) = 0 [pid 5930] close(4) = 0 [pid 5930] mkdir("./file1", 0777) = 0 [ 65.710572][ T5933] loop2: detected capacity change from 0 to 32768 [ 65.735888][ T5930] loop3: detected capacity change from 0 to 32768 [pid 5930] mount("/dev/loop3", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5934] <... write resumed>) = 16777216 [pid 5934] munmap(0x7fd13aa00000, 138412032) = 0 [pid 5934] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5934] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5934] close(3) = 0 [pid 5934] close(4) = 0 [pid 5934] mkdir("./file1", 0777) = 0 [ 65.839697][ T5934] loop4: detected capacity change from 0 to 32768 [ 66.105438][ T5933] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 66.105714][ T5929] bcachefs (loop1): starting version 1.7: mi_btree_bitmap opts=metadata_checksum=none,data_checksum=none,compression=lz4,str_hash=crc64,journal_flush_disabled,fsck,norecovery,nojournal_transaction_names,reconstruct_alloc [ 66.124003][ T5933] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 66.138762][ T5929] bcachefs (loop1): recovering from clean shutdown, journal seq 10 [ 66.144133][ T5934] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 66.166057][ T5934] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 66.167105][ T5929] bcachefs (loop1): Version upgrade required: [ 66.167105][ T5929] Version upgrade from 0.24: unwritten_extents to 1.7: mi_btree_bitmap incomplete [ 66.167105][ T5929] Doing incompatible version upgrade from 0.24: unwritten_extents to 1.13: inode_has_child_snapshots [ 66.167105][ T5929] running recovery passes: check_allocations,check_alloc_info,check_lrus,check_btree_backpointers,check_backpointers_to_extents,check_extents_to_backpointers,check_alloc_to_lru_refs,bucket_gens_init,check_snapshot_trees,check_snapshots,check_subvols,check_subvol_children,delete_dead_snapshots,check_inodes,check_extents,check_indirect_extents,check_dirents,check_xattrs,check_root,check_unreachable_inodes,check_subvolume_structure,check_directory_structure,check_nlinks,set_fs_needs_rebalance [ 66.245261][ T5930] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 66.245377][ T5930] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 66.311849][ T5929] bcachefs (loop1): dropping and reconstructing all alloc info [ 66.404674][ T5929] bcachefs (loop1): check_topology... done [ 66.405556][ T5934] bcachefs: bch2_fs_get_tree() error: EINVAL [ 66.430833][ T5929] bcachefs (loop1): accounting_read... done [pid 5934] mount("/dev/loop4", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"...) = -1 EINVAL (Invalid argument) [pid 5934] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 3 [pid 5934] ioctl(3, LOOP_CLR_FD) = 0 [pid 5934] close(3 [pid 5933] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5933] openat(AT_FDCWD, "/dev/loop2", O_RDWR) = 3 [pid 5933] ioctl(3, LOOP_CLR_FD) = 0 [ 66.450650][ T5933] bcachefs: bch2_fs_get_tree() error: EINVAL [ 66.474291][ T5929] bcachefs (loop1): alloc_read... done [pid 5933] close(3 [pid 5830] <... umount2 resumed>) = 0 [pid 5830] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] newfstatat(AT_FDCWD, "./1/file1", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5830] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5830] openat(AT_FDCWD, "./1/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5830] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5830] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5830] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5830] close(4) = 0 [pid 5830] rmdir("./1/file1") = 0 [pid 5830] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5830] close(3) = 0 [pid 5830] rmdir("./1") = 0 [pid 5830] mkdir("./2", 0777) = 0 [pid 5830] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 [ 66.499794][ T5929] bcachefs (loop1): stripes_read... done [ 66.505569][ T5929] bcachefs (loop1): snapshots_read... done [ 66.528718][ T5929] bcachefs (loop1): check_allocations... [ 66.531017][ T5930] bcachefs: bch2_fs_get_tree() error: EINVAL [pid 5830] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5830] close(3) = 0 [pid 5830] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5964 attached [pid 5964] set_robust_list(0x55558bca66a0, 24 [pid 5830] <... clone resumed>, child_tidptr=0x55558bca6690) = 5964 [pid 5964] <... set_robust_list resumed>) = 0 [pid 5964] chdir("./2" [pid 5930] <... mount resumed>) = -1 EINVAL (Invalid argument) [pid 5964] <... chdir resumed>) = 0 [pid 5964] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5964] setpgid(0, 0) = 0 [pid 5930] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5964] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5930] <... openat resumed>) = 3 [pid 5930] ioctl(3, LOOP_CLR_FD [pid 5964] <... openat resumed>) = 3 [pid 5930] <... ioctl resumed>) = 0 [pid 5964] write(3, "1000", 4 [pid 5930] close(3 [pid 5964] <... write resumed>) = 4 [ 66.608592][ T5929] done [pid 5964] close(3) = 0 [pid 5964] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5934] <... close resumed>) = 0 [pid 5964] write(1, "executing program\n", 18 [pid 5934] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000executing program [pid 5964] <... write resumed>) = 18 [pid 5934] <... futex resumed>) = 1 [pid 5932] <... futex resumed>) = 0 [pid 5932] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5964] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5934] mkdir("./bus", 0777 [pid 5932] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5964] <... futex resumed>) = 0 [pid 5934] <... mkdir resumed>) = 0 [ 66.632514][ T5929] bcachefs (loop1): going read-write [pid 5964] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5934] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5964] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5934] +++ killed by SIGSEGV +++ [pid 5932] <... futex resumed>) = ? [pid 5964] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5932] +++ killed by SIGSEGV +++ [pid 5929] <... mount resumed>) = 0 [pid 5834] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5932, si_uid=0, si_status=SIGSEGV, si_utime=4 /* 0.04 s */, si_stime=36 /* 0.36 s */} --- [pid 5834] restart_syscall(<... resuming interrupted clone ...>) = 0 [pid 5964] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5834] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5834] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 [pid 5834] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5834] getdents64(3, 0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5964] <... mmap resumed>) = 0x7fd142e81000 [pid 5929] openat(AT_FDCWD, "./file1", O_RDONLY|O_DIRECTORY [pid 5834] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5834] newfstatat(AT_FDCWD, "./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5834] unlink("./2/binderfs") = 0 [pid 5964] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5929] <... openat resumed>) = 3 [pid 5834] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5964] <... mprotect resumed>) = 0 [pid 5929] chdir("./file1" [pid 5834] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5964] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5929] <... chdir resumed>) = 0 [pid 5834] newfstatat(AT_FDCWD, "./2/bus", [pid 5964] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5929] openat(AT_FDCWD, "/dev/loop1", O_RDWR [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5964] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5929] <... openat resumed>) = 4 [pid 5834] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5834] openat(AT_FDCWD, "./2/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5834] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5834] getdents64(4, ./strace-static-x86_64: Process 5967 attached [pid 5929] ioctl(4, LOOP_CLR_FD [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5967] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5964] <... clone3 resumed> => {parent_tid=[5967]}, 88) = 5967 [pid 5929] <... ioctl resumed>) = 0 [pid 5967] <... rseq resumed>) = 0 [pid 5964] rt_sigprocmask(SIG_SETMASK, [], [pid 5929] close(4 [pid 5967] set_robust_list(0x7fd142ea19a0, 24 [pid 5964] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5967] <... set_robust_list resumed>) = 0 [pid 5964] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5929] <... close resumed>) = 0 [pid 5967] rt_sigprocmask(SIG_SETMASK, [], [pid 5964] <... futex resumed>) = 0 [pid 5929] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5967] <... rt_sigprocmask resumed>NULL, 8) = 0 [ 66.658299][ T5929] bcachefs (loop1): done starting filesystem [pid 5964] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5929] <... futex resumed>) = 1 [pid 5967] memfd_create("syzkaller", 0 [pid 5927] <... futex resumed>) = 0 [pid 5834] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5834] close(4 [pid 5967] <... memfd_create resumed>) = 3 [pid 5929] mkdir("./bus", 0777 [pid 5927] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5834] <... close resumed>) = 0 [pid 5967] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5929] <... mkdir resumed>) = 0 [pid 5927] <... futex resumed>) = 0 [pid 5834] rmdir("./2/bus" [pid 5967] <... mmap resumed>) = 0x7fd13aa00000 [pid 5929] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5927] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5834] <... rmdir resumed>) = 0 [pid 5834] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5834] newfstatat(AT_FDCWD, "./2/file1", [pid 5927] <... futex resumed>) = ? [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5834] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5834] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5834] newfstatat(4, "", [pid 5929] +++ killed by SIGSEGV +++ [pid 5927] +++ killed by SIGSEGV +++ [pid 5834] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5834] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5831] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5927, si_uid=0, si_status=SIGSEGV, si_utime=5 /* 0.05 s */, si_stime=40 /* 0.40 s */} --- [pid 5834] getdents64(4, [pid 5831] restart_syscall(<... resuming interrupted clone ...> [pid 5834] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5834] close(4) = 0 [pid 5834] rmdir("./2/file1" [pid 5831] <... restart_syscall resumed>) = 0 [pid 5834] <... rmdir resumed>) = 0 [pid 5834] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5834] close(3 [pid 5831] umount2("./1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5834] <... close resumed>) = 0 [pid 5831] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5834] rmdir("./2" [pid 5831] openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5834] <... rmdir resumed>) = 0 [pid 5831] <... openat resumed>) = 3 [pid 5834] mkdir("./3", 0777 [pid 5831] newfstatat(3, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5834] <... mkdir resumed>) = 0 [pid 5831] getdents64(3, [pid 5834] openat(AT_FDCWD, "/dev/loop4", O_RDWR [pid 5831] <... getdents64 resumed>0x55558bca7730 /* 4 entries */, 32768) = 112 [pid 5834] <... openat resumed>) = 3 [pid 5831] umount2("./1/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5834] ioctl(3, LOOP_CLR_FD [pid 5831] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5834] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5831] newfstatat(AT_FDCWD, "./1/binderfs", [pid 5834] close(3 [pid 5831] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5834] <... close resumed>) = 0 [pid 5831] unlink("./1/binderfs") = 0 [pid 5831] umount2("./1/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5834] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55558bca6690) = 5968 ./strace-static-x86_64: Process 5968 attached [pid 5968] set_robust_list(0x55558bca66a0, 24) = 0 [pid 5968] chdir("./3") = 0 [pid 5933] <... close resumed>) = 0 [pid 5968] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5933] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5968] setpgid(0, 0) = 0 [pid 5933] <... futex resumed>) = 1 [pid 5931] <... futex resumed>) = 0 [pid 5933] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5931] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5933] <... futex resumed>) = 0 [pid 5931] <... futex resumed>) = 1 [pid 5968] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5933] mkdir("./bus", 0777 [pid 5931] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5933] <... mkdir resumed>) = 0 [pid 5933] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5968] <... openat resumed>) = 3 [pid 5931] <... futex resumed>) = ? [ 66.763977][ T5831] bcachefs (loop1): shutting down [ 66.769068][ T5831] bcachefs (loop1): going read-only [ 66.791216][ T5831] bcachefs (loop1): finished waiting for writes to stop [pid 5968] write(3, "1000", 4 [pid 5933] +++ killed by SIGSEGV +++ [pid 5931] +++ killed by SIGSEGV +++ [pid 5930] <... close resumed>) = 0 [pid 5968] <... write resumed>) = 4 [pid 5832] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5931, si_uid=0, si_status=SIGSEGV, si_utime=2 /* 0.02 s */, si_stime=38 /* 0.38 s */} --- [pid 5968] close(3) = 0 [pid 5968] symlink("/dev/binderfs", "./binderfs"executing program [pid 5930] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5968] <... symlink resumed>) = 0 [pid 5832] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5968] write(1, "executing program\n", 18 [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5968] <... write resumed>) = 18 [pid 5832] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5968] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5930] <... futex resumed>) = 1 [pid 5928] <... futex resumed>) = 0 [pid 5832] <... openat resumed>) = 3 [pid 5968] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5930] futex(0x7fd142f786a8, FUTEX_WAIT_PRIVATE, 0, NULL [pid 5928] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5968] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5930] <... futex resumed>) = -1 EAGAIN (Resource temporarily unavailable) [pid 5928] <... futex resumed>) = 0 [pid 5832] newfstatat(3, "", [pid 5968] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], [pid 5930] mkdir("./bus", 0777 [pid 5928] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5968] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5930] <... mkdir resumed>) = 0 [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5968] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0 [pid 5930] --- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} --- [pid 5968] <... mmap resumed>) = 0x7fd142e81000 [pid 5928] <... futex resumed>) = ? [pid 5832] getdents64(3, [pid 5968] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5930] +++ killed by SIGSEGV +++ [pid 5928] +++ killed by SIGSEGV +++ [pid 5968] <... mprotect resumed>) = 0 [pid 5832] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5833] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=5928, si_uid=0, si_status=SIGSEGV, si_utime=8 /* 0.08 s */, si_stime=40 /* 0.40 s */} --- [pid 5968] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5833] umount2("./2", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5968] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5968] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} [pid 5833] openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) ./strace-static-x86_64: Process 5969 attached [pid 5833] <... openat resumed>) = 3 [pid 5832] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5969] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5968] <... clone3 resumed> => {parent_tid=[5969]}, 88) = 5969 [pid 5833] newfstatat(3, "", [pid 5968] rt_sigprocmask(SIG_SETMASK, [], [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5832] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5968] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5833] getdents64(3, [pid 5832] unlink("./2/binderfs" [pid 5969] <... rseq resumed>) = 0 [pid 5968] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5833] <... getdents64 resumed>0x55558bca7730 /* 5 entries */, 32768) = 136 [pid 5969] set_robust_list(0x7fd142ea19a0, 24 [pid 5968] <... futex resumed>) = 0 [pid 5833] umount2("./2/binderfs", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] <... unlink resumed>) = 0 [pid 5968] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5969] <... set_robust_list resumed>) = 0 [pid 5833] newfstatat(AT_FDCWD, "./2/binderfs", [pid 5969] rt_sigprocmask(SIG_SETMASK, [], [pid 5833] <... newfstatat resumed>{st_mode=S_IFLNK|0777, st_size=13, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5969] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5833] unlink("./2/binderfs" [pid 5969] memfd_create("syzkaller", 0 [pid 5833] <... unlink resumed>) = 0 [pid 5832] newfstatat(AT_FDCWD, "./2/bus", [pid 5833] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5969] <... memfd_create resumed>) = 3 [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5969] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5833] newfstatat(AT_FDCWD, "./2/bus", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5969] <... mmap resumed>) = 0x7fd13aa00000 [pid 5833] umount2("./2/bus", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5833] openat(AT_FDCWD, "./2/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 [pid 5832] openat(AT_FDCWD, "./2/bus", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5833] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5833] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5833] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] close(4) = 0 [ 66.822667][ T5831] bcachefs (loop1): flushing journal and stopping allocators, journal seq 11 [pid 5833] rmdir("./2/bus") = 0 [pid 5832] <... openat resumed>) = 4 [pid 5833] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [pid 5832] newfstatat(4, "", [pid 5833] newfstatat(AT_FDCWD, "./2/file1", [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5967] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5833] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5832] getdents64(4, [pid 5833] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5832] getdents64(4, [pid 5833] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5832] close(4 [pid 5833] <... openat resumed>) = 4 [pid 5832] <... close resumed>) = 0 [pid 5833] newfstatat(4, "", {st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5833] getdents64(4, 0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5833] getdents64(4, 0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5833] close(4) = 0 [pid 5833] rmdir("./2/file1") = 0 [pid 5833] getdents64(3, 0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5833] close(3) = 0 [pid 5833] rmdir("./2") = 0 [pid 5832] rmdir("./2/bus" [pid 5833] mkdir("./3", 0777) = 0 [pid 5832] <... rmdir resumed>) = 0 [pid 5833] openat(AT_FDCWD, "/dev/loop3", O_RDWR) = 3 [pid 5833] ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) [pid 5833] close(3) = 0 [pid 5833] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5970 attached [pid 5832] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) [ 66.887304][ T5831] bcachefs (loop1): flushing journal and stopping allocators complete, journal seq 12 [ 66.909985][ T35] bcachefs (loop1): bch2_write_super(): fatal error loop1: Superblock write was silently dropped! (seq 0 expected 53) [ 66.925746][ T5831] bcachefs (loop1): unshutdown complete, journal seq 13 [pid 5832] newfstatat(AT_FDCWD, "./2/file1", [pid 5970] set_robust_list(0x55558bca66a0, 24 [pid 5833] <... clone resumed>, child_tidptr=0x55558bca6690) = 5970 [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_SYMLINK_NOFOLLOW) = 0 [pid 5970] <... set_robust_list resumed>) = 0 [pid 5970] chdir("./3" [pid 5832] umount2("./2/file1", MNT_FORCE|UMOUNT_NOFOLLOW [pid 5970] <... chdir resumed>) = 0 [pid 5832] <... umount2 resumed>) = -1 EINVAL (Invalid argument) [pid 5970] prctl(PR_SET_PDEATHSIG, SIGKILL [pid 5832] openat(AT_FDCWD, "./2/file1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY [pid 5970] <... prctl resumed>) = 0 [pid 5832] <... openat resumed>) = 4 [pid 5970] setpgid(0, 0 [pid 5832] newfstatat(4, "", [pid 5970] <... setpgid resumed>) = 0 [pid 5832] <... newfstatat resumed>{st_mode=S_IFDIR|0700, st_size=4096, ...}, AT_EMPTY_PATH) = 0 [pid 5970] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC [pid 5832] getdents64(4, [pid 5970] <... openat resumed>) = 3 [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 2 entries */, 32768) = 48 [pid 5970] write(3, "1000", 4 [pid 5832] getdents64(4, [pid 5970] <... write resumed>) = 4 [pid 5970] close(3 [pid 5832] <... getdents64 resumed>0x55558bcaf770 /* 0 entries */, 32768) = 0 [pid 5970] <... close resumed>) = 0 [pid 5832] close(4 [pid 5970] symlink("/dev/binderfs", "./binderfs" [pid 5832] <... close resumed>) = 0 [pid 5970] <... symlink resumed>) = 0 [pid 5832] rmdir("./2/file1"executing program [pid 5970] write(1, "executing program\n", 18) = 18 [pid 5832] <... rmdir resumed>) = 0 [pid 5970] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000 [pid 5832] getdents64(3, [pid 5970] <... futex resumed>) = 0 [pid 5970] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, [pid 5832] <... getdents64 resumed>0x55558bca7730 /* 0 entries */, 32768) = 0 [pid 5970] <... rt_sigaction resumed>NULL, 8) = 0 [pid 5832] close(3 [pid 5970] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5832] <... close resumed>) = 0 [pid 5970] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd142e81000 [pid 5832] rmdir("./2" [pid 5970] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE [pid 5832] <... rmdir resumed>) = 0 [pid 5970] <... mprotect resumed>) = 0 [pid 5970] rt_sigprocmask(SIG_BLOCK, ~[], [pid 5832] mkdir("./3", 0777 [pid 5970] <... rt_sigprocmask resumed>[], 8) = 0 [pid 5970] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} => {parent_tid=[5971]}, 88) = 5971 [pid 5970] rt_sigprocmask(SIG_SETMASK, [], ./strace-static-x86_64: Process 5971 attached [pid 5832] <... mkdir resumed>) = 0 [pid 5971] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5832] openat(AT_FDCWD, "/dev/loop2", O_RDWR [pid 5971] <... rseq resumed>) = 0 [pid 5971] set_robust_list(0x7fd142ea19a0, 24 [pid 5970] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5971] <... set_robust_list resumed>) = 0 [pid 5971] rt_sigprocmask(SIG_SETMASK, [], [pid 5970] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000 [pid 5832] <... openat resumed>) = 3 [pid 5971] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 5970] <... futex resumed>) = 0 [pid 5970] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5971] memfd_create("syzkaller", 0 [pid 5832] ioctl(3, LOOP_CLR_FD [pid 5971] <... memfd_create resumed>) = 3 [pid 5832] <... ioctl resumed>) = -1 ENXIO (No such device or address) [pid 5971] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 [pid 5832] close(3) = 0 [pid 5971] <... mmap resumed>) = 0x7fd13aa00000 [pid 5832] clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5972 attached [ 66.958524][ T35] bcachefs (loop1): fatal error - emergency read only [ 66.990654][ T35] ------------[ cut here ]------------ [ 66.996461][ T35] kernel BUG at fs/bcachefs/journal.h:375! [ 67.019675][ T35] Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI [ 67.026691][ T35] CPU: 1 UID: 0 PID: 35 Comm: kworker/u8:2 Not tainted 6.12.0-rc6-syzkaller-00110-gff7afaeca1a1 #0 [ 67.037387][ T35] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 [ 67.047457][ T35] Workqueue: btree_update btree_interior_update_work [ 67.054172][ T35] RIP: 0010:__bch2_trans_commit+0x9232/0x93c0 [ 67.060260][ T35] Code: fd 90 0f 0b e8 7f 86 78 fd 90 0f 0b e8 77 86 78 fd 90 0f 0b e8 6f 86 78 fd 90 0f 0b e8 67 86 78 fd 90 0f 0b e8 5f 86 78 fd 90 <0f> 0b e8 57 86 78 fd 90 0f 0b e8 4f 86 78 fd 90 0f 0b e8 47 86 78 [ 67.079903][ T35] RSP: 0018:ffffc90000ab76c0 EFLAGS: 00010293 [ 67.085995][ T35] RAX: ffffffff841c53a1 RBX: 0000000000000000 RCX: ffff88801de95a00 [ 67.093986][ T35] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 67.101984][ T35] RBP: ffffc90000ab7890 R08: ffffffff841bf6d8 R09: 1ffff1100cc294a8 [ 67.109985][ T35] R10: dffffc0000000000 R11: ffffed100cc294a9 R12: ffff888066100000 [ 67.117973][ T35] R13: ffff88806614a500 R14: 0000000000000044 R15: ffff888075d240d0 [ 67.125964][ T35] FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 [ 67.134917][ T35] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 67.141509][ T35] CR2: 00007fd13b076000 CR3: 00000000753aa000 CR4: 00000000003526f0 [ 67.149503][ T35] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 67.157489][ T35] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 67.165486][ T35] Call Trace: [ 67.168778][ T35] [ 67.171722][ T35] ? __die_body+0x5f/0xb0 [ 67.176071][ T35] ? die+0x9e/0xc0 [ 67.179806][ T35] ? do_trap+0x15a/0x3a0 [ 67.181208][ T5967] loop0: detected capacity change from 0 to 32768 [ 67.184048][ T35] ? __bch2_trans_commit+0x9232/0x93c0 [ 67.195922][ T35] ? do_error_trap+0x1dc/0x2c0 [ 67.200713][ T35] ? __bch2_trans_commit+0x9232/0x93c0 [ 67.206200][ T35] ? __pfx_do_error_trap+0x10/0x10 [ 67.211340][ T35] ? report_bug+0x3e8/0x500 [ 67.215876][ T35] ? handle_invalid_op+0x34/0x40 [ 67.220838][ T35] ? __bch2_trans_commit+0x9232/0x93c0 [ 67.226326][ T35] ? exc_invalid_op+0x38/0x50 [ 67.231020][ T35] ? asm_exc_invalid_op+0x1a/0x20 [ 67.236047][ T35] ? __bch2_trans_commit+0x3568/0x93c0 [ 67.241507][ T35] ? __bch2_trans_commit+0x9231/0x93c0 [ 67.246959][ T35] ? __bch2_trans_commit+0x9232/0x93c0 [ 67.252418][ T35] ? __pfx___bch2_trans_commit+0x10/0x10 [ 67.258041][ T35] ? bch2_dev_btree_bitmap_marked+0x2f/0xda0 [ 67.264014][ T35] ? __bch2_trans_jset_entry_alloc+0x2c7/0x4b0 [ 67.270165][ T35] ? btree_interior_update_work+0x117a/0x2b10 [ 67.276223][ T35] btree_interior_update_work+0x1492/0x2b10 [ 67.282121][ T35] ? __pfx_btree_interior_update_work+0x10/0x10 [ 67.288354][ T35] ? __pfx_lock_acquire+0x10/0x10 [ 67.293373][ T35] ? lockdep_hardirqs_on_prepare+0x43d/0x780 [ 67.299348][ T35] ? __pfx_lockdep_hardirqs_on_prepare+0x10/0x10 [ 67.305675][ T35] ? process_scheduled_works+0x976/0x1850 [ 67.311389][ T35] process_scheduled_works+0xa63/0x1850 [ 67.316932][ T35] ? __pfx_process_scheduled_works+0x10/0x10 [ 67.322904][ T35] ? assign_work+0x364/0x3d0 [ 67.327487][ T35] worker_thread+0x870/0xd30 [ 67.332076][ T35] ? _raw_spin_unlock_irqrestore+0xdd/0x140 [ 67.337959][ T35] ? __kthread_parkme+0x169/0x1d0 [ 67.342984][ T35] ? __pfx_worker_thread+0x10/0x10 [ 67.348086][ T35] kthread+0x2f0/0x390 [ 67.352143][ T35] ? __pfx_worker_thread+0x10/0x10 [ 67.357595][ T35] ? __pfx_kthread+0x10/0x10 [ 67.362173][ T35] ret_from_fork+0x4b/0x80 [ 67.366585][ T35] ? __pfx_kthread+0x10/0x10 executing program [pid 5972] set_robust_list(0x55558bca66a0, 24 [pid 5971] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5969] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216 [pid 5967] <... write resumed>) = 16777216 [pid 5832] <... clone resumed>, child_tidptr=0x55558bca6690) = 5972 [pid 5972] <... set_robust_list resumed>) = 0 [pid 5967] munmap(0x7fd13aa00000, 138412032 [pid 5972] chdir("./3" [pid 5967] <... munmap resumed>) = 0 [pid 5972] <... chdir resumed>) = 0 [pid 5972] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5972] setpgid(0, 0) = 0 [pid 5972] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5972] write(3, "1000", 4) = 4 [pid 5967] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5972] close(3 [pid 5967] ioctl(4, LOOP_SET_FD, 3 [pid 5972] <... close resumed>) = 0 [pid 5972] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5972] write(1, "executing program\n", 18) = 18 [pid 5972] futex(0x7fd142f786ac, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5972] rt_sigaction(SIGRT_1, {sa_handler=0x7fd142f110e0, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd142f02290}, NULL, 8) = 0 [pid 5972] rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 [pid 5972] mmap(NULL, 135168, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd142e81000 [pid 5972] mprotect(0x7fd142e82000, 131072, PROT_READ|PROT_WRITE) = 0 [pid 5972] rt_sigprocmask(SIG_BLOCK, ~[], [], 8) = 0 [pid 5972] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd142ea1990, parent_tid=0x7fd142ea1990, exit_signal=0, stack=0x7fd142e81000, stack_size=0x20300, tls=0x7fd142ea16c0} => {parent_tid=[5973]}, 88) = 5973 [pid 5972] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 5972] futex(0x7fd142f786a8, FUTEX_WAKE_PRIVATE, 1000000) = 0 [pid 5972] futex(0x7fd142f786ac, FUTEX_WAIT_PRIVATE, 0, {tv_sec=4, tv_nsec=50000000} [pid 5967] <... ioctl resumed>) = 0 [pid 5967] close(3) = 0 [pid 5967] close(4) = 0 ./strace-static-x86_64: Process 5973 attached [pid 5967] mkdir("./file1", 0777 [pid 5973] rseq(0x7fd142ea1fe0, 0x20, 0, 0x53053053 [pid 5967] <... mkdir resumed>) = 0 [pid 5973] <... rseq resumed>) = 0 [pid 5967] mount("/dev/loop0", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5973] set_robust_list(0x7fd142ea19a0, 24) = 0 [pid 5973] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [ 67.371163][ T35] ret_from_fork_asm+0x1a/0x30 [ 67.375923][ T35] [ 67.378930][ T35] Modules linked in: [ 67.382983][ T35] ---[ end trace 0000000000000000 ]--- [ 67.404352][ T35] RIP: 0010:__bch2_trans_commit+0x9232/0x93c0 [pid 5973] memfd_create("syzkaller", 0) = 3 [pid 5973] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd13aa00000 [ 67.410651][ T35] Code: fd 90 0f 0b e8 7f 86 78 fd 90 0f 0b e8 77 86 78 fd 90 0f 0b e8 6f 86 78 fd 90 0f 0b e8 67 86 78 fd 90 0f 0b e8 5f 86 78 fd 90 <0f> 0b e8 57 86 78 fd 90 0f 0b e8 4f 86 78 fd 90 0f 0b e8 47 86 78 [ 67.449366][ T35] RSP: 0018:ffffc90000ab76c0 EFLAGS: 00010293 [ 67.459392][ T35] RAX: ffffffff841c53a1 RBX: 0000000000000000 RCX: ffff88801de95a00 [pid 5969] <... write resumed>) = 16777216 [pid 5971] <... write resumed>) = 16777216 [ 67.477993][ T35] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 [ 67.497508][ T35] RBP: ffffc90000ab7890 R08: ffffffff841bf6d8 R09: 1ffff1100cc294a8 [ 67.516953][ T35] R10: dffffc0000000000 R11: ffffed100cc294a9 R12: ffff888066100000 [pid 5969] munmap(0x7fd13aa00000, 138412032 [pid 5971] munmap(0x7fd13aa00000, 138412032 [pid 5969] <... munmap resumed>) = 0 [pid 5971] <... munmap resumed>) = 0 [pid 5971] openat(AT_FDCWD, "/dev/loop3", O_RDWR [pid 5969] openat(AT_FDCWD, "/dev/loop4", O_RDWR) = 4 [pid 5971] <... openat resumed>) = 4 [pid 5969] ioctl(4, LOOP_SET_FD, 3 [pid 5971] ioctl(4, LOOP_SET_FD, 3 [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 [pid 5971] <... ioctl resumed>) = 0 [pid 5969] <... ioctl resumed>) = 0 [pid 5969] close(3) = 0 [pid 5969] close(4) = 0 [pid 5969] mkdir("./file1", 0777) = 0 [ 67.526591][ T35] R13: ffff88806614a500 R14: 0000000000000044 R15: ffff888075d240d0 [ 67.535263][ T35] FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 [ 67.547830][ T5969] loop4: detected capacity change from 0 to 32768 [ 67.550097][ T35] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 67.554460][ T5971] loop3: detected capacity change from 0 to 32768 [ 67.561942][ T35] CR2: 00007fd13b4fe000 CR3: 00000000753f6000 CR4: 00000000003526f0 [pid 5969] mount("/dev/loop4", "./file1", "bcachefs", MS_I_VERSION, "str_hash=crc64,direct_io,norecovery,fsck,journal_flush_disabled,norecovery,btree_node_mem_ptr_optimi"... [pid 5971] close(3) = 0 [pid 5971] close(4) = 0 [pid 5971] mkdir("./file1", 0777) = 0 [ 67.587653][ T5967] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): filesystem UUID already open [ 67.608287][ T35] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 67.617236][ T5967] bcachefs (da441363-bb6a-4ab9-999b-c1f40db4fee2): shutdown complete [ 67.630275][ T35] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 67.643250][ T35] Kernel panic - not syncing: Fatal exception [ 67.649616][ T35] Kernel Offset: disabled [ 67.653935][ T35] Rebooting in 86400 seconds..