./strace-static-x86_64 -e \!wait4,clock_nanosleep,nanosleep -s 100 -x -f ./syz-executor2980759422 <...> Warning: Permanently added '10.128.10.15' (ECDSA) to the list of known hosts. execve("./syz-executor2980759422", ["./syz-executor2980759422"], 0x7ffd2107f140 /* 10 vars */) = 0 brk(NULL) = 0x55555740a000 brk(0x55555740ac40) = 0x55555740ac40 arch_prctl(ARCH_SET_FS, 0x55555740a300) = 0 uname({sysname="Linux", nodename="syzkaller", ...}) = 0 readlink("/proc/self/exe", "/root/syz-executor2980759422", 4096) = 28 brk(0x55555742bc40) = 0x55555742bc40 brk(0x55555742c000) = 0x55555742c000 mprotect(0x7f082b514000, 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 getpid() = 5001 mkdir("./syzkaller.R04iak", 0700) = 0 chmod("./syzkaller.R04iak", 0777) = 0 chdir("./syzkaller.R04iak") = 0 mkdir("./0", 0777) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD./strace-static-x86_64: Process 5003 attached , child_tidptr=0x55555740a5d0) = 5003 [pid 5003] chdir("./0") = 0 [pid 5003] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5003] setpgid(0, 0) = 0 [pid 5003] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5003] write(3, "1000", 4) = 4 [pid 5003] close(3) = 0 [pid 5003] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5003] memfd_create("syzkaller", 0) = 3 [pid 5003] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0823052000 [pid 5003] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 1048576) = 1048576 [pid 5003] munmap(0x7f0823052000, 1048576) = 0 [pid 5003] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5003] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5003] close(3) = 0 [pid 5003] mkdir("./file0", 0777) = 0 [pid 5003] mount("/dev/loop0", "./file0", "udf", MS_NOEXEC|MS_POSIXACL|MS_LAZYTIME, "fileset=00000000000000065537,iocharset=macgreek,mode=00000000000000000000033,partition=0000000000000"...) = 0 [pid 5003] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5003] ioctl(4, LOOP_CLR_FD) = 0 [pid 5003] close(4) = 0 [pid 5003] open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_NOATIME|FASYNC, 000) = 4 [pid 5003] mount("/dev/loop0", "./bus", NULL, MS_BIND, NULL) = 0 [pid 5003] memfd_create("syzkaller", 0) = 5 [pid 5003] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f081ad52000 [ 45.643803][ T5003] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=5003 'syz-executor298' [ 45.663966][ T5003] loop0: detected capacity change from 0 to 2048 [ 45.677086][ T5003] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [pid 5003] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5003] munmap(0x7f081ad52000, 16777216) = 0 [pid 5003] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 6 [pid 5003] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5003] ioctl(6, LOOP_CLR_FD) = 0 [pid 5003] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5003] close(6) = 0 [pid 5003] close(5) = 0 [pid 5003] open("./bus", O_RDWR|O_NOCTTY|O_SYNC|O_NOATIME|0x3c) = 5 [pid 5003] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 34136651) = 1048576 [pid 5003] exit_group(0) = ? [pid 5003] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5003, si_uid=0, si_status=0, si_utime=0, si_stime=22 /* 0.22 s */} --- restart_syscall(<... resuming interrupted clone ...>) = 0 umount2("./0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(3, 0x55555740b620 /* 5 entries */, 32768) = 136 umount2("./0/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./0/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./0/bus", {st_mode=S_IFREG|000, st_size=0, ...}) = 0 unlink("./0/bus") = 0 umount2("./0/binderfs", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./0/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0 unlink("./0/binderfs") = 0 umount2("./0/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./0/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./0/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 umount2("./0/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./0/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(4, 0x555557413660 /* 2 entries */, 32768) = 48 getdents64(4, 0x555557413660 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./0/file0") = 0 getdents64(3, 0x55555740b620 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./0") = 0 mkdir("./1", 0777) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555740a5d0) = 5004 ./strace-static-x86_64: Process 5004 attached [pid 5004] chdir("./1") = 0 [pid 5004] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5004] setpgid(0, 0) = 0 [pid 5004] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5004] write(3, "1000", 4) = 4 [pid 5004] close(3) = 0 [pid 5004] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5004] memfd_create("syzkaller", 0) = 3 [pid 5004] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0823052000 [pid 5004] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 1048576) = 1048576 [pid 5004] munmap(0x7f0823052000, 1048576) = 0 [pid 5004] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5004] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5004] close(3) = 0 [pid 5004] mkdir("./file0", 0777) = 0 [pid 5004] mount("/dev/loop0", "./file0", "udf", MS_NOEXEC|MS_POSIXACL|MS_LAZYTIME, "fileset=00000000000000065537,iocharset=macgreek,mode=00000000000000000000033,partition=0000000000000"...) = 0 [pid 5004] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5004] ioctl(4, LOOP_CLR_FD) = 0 [pid 5004] close(4) = 0 [pid 5004] open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_NOATIME|FASYNC, 000) = 4 [pid 5004] mount("/dev/loop0", "./bus", NULL, MS_BIND, NULL) = 0 [pid 5004] memfd_create("syzkaller", 0) = 5 [pid 5004] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f081ad52000 [ 45.991138][ T5004] loop0: detected capacity change from 0 to 2048 [ 46.002950][ T5004] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [pid 5004] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5004] munmap(0x7f081ad52000, 16777216) = 0 [pid 5004] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 6 [pid 5004] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5004] ioctl(6, LOOP_CLR_FD) = 0 [pid 5004] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5004] close(6) = 0 [pid 5004] close(5) = 0 [pid 5004] open("./bus", O_RDWR|O_NOCTTY|O_SYNC|O_NOATIME|0x3c) = 5 [pid 5004] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 34136651) = 1048576 [pid 5004] exit_group(0) = ? [pid 5004] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5004, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=17 /* 0.17 s */} --- umount2("./1", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./1", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(3, 0x55555740b620 /* 5 entries */, 32768) = 136 umount2("./1/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./1/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./1/bus", {st_mode=S_IFREG|000, st_size=0, ...}) = 0 unlink("./1/bus") = 0 umount2("./1/binderfs", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./1/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0 unlink("./1/binderfs") = 0 umount2("./1/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./1/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./1/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 umount2("./1/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./1/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(4, 0x555557413660 /* 2 entries */, 32768) = 48 getdents64(4, 0x555557413660 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./1/file0") = 0 getdents64(3, 0x55555740b620 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./1") = 0 mkdir("./2", 0777) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555740a5d0) = 5005 ./strace-static-x86_64: Process 5005 attached [pid 5005] chdir("./2") = 0 [pid 5005] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5005] setpgid(0, 0) = 0 [pid 5005] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5005] write(3, "1000", 4) = 4 [pid 5005] close(3) = 0 [pid 5005] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5005] memfd_create("syzkaller", 0) = 3 [pid 5005] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0823052000 [pid 5005] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 1048576) = 1048576 [pid 5005] munmap(0x7f0823052000, 1048576) = 0 [pid 5005] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5005] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5005] close(3) = 0 [pid 5005] mkdir("./file0", 0777) = 0 [pid 5005] mount("/dev/loop0", "./file0", "udf", MS_NOEXEC|MS_POSIXACL|MS_LAZYTIME, "fileset=00000000000000065537,iocharset=macgreek,mode=00000000000000000000033,partition=0000000000000"...) = 0 [pid 5005] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5005] ioctl(4, LOOP_CLR_FD) = 0 [pid 5005] close(4) = 0 [pid 5005] open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_NOATIME|FASYNC, 000) = 4 [pid 5005] mount("/dev/loop0", "./bus", NULL, MS_BIND, NULL) = 0 [pid 5005] memfd_create("syzkaller", 0) = 5 [pid 5005] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f081ad52000 [ 46.279409][ T5005] loop0: detected capacity change from 0 to 2048 [ 46.292198][ T5005] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [pid 5005] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5005] munmap(0x7f081ad52000, 16777216) = 0 [pid 5005] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 6 [pid 5005] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5005] ioctl(6, LOOP_CLR_FD) = 0 [pid 5005] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5005] close(6) = 0 [pid 5005] close(5) = 0 [pid 5005] open("./bus", O_RDWR|O_NOCTTY|O_SYNC|O_NOATIME|0x3c) = 5 [pid 5005] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 34136651) = 1048576 [pid 5005] exit_group(0) = ? [pid 5005] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5005, si_uid=0, si_status=0, si_utime=1 /* 0.01 s */, si_stime=20 /* 0.20 s */} --- umount2("./2", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./2", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(3, 0x55555740b620 /* 5 entries */, 32768) = 136 umount2("./2/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./2/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./2/bus", {st_mode=S_IFREG|000, st_size=0, ...}) = 0 unlink("./2/bus") = 0 umount2("./2/binderfs", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./2/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0 unlink("./2/binderfs") = 0 umount2("./2/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./2/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./2/file0", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 umount2("./2/file0", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./2/file0", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4 fstat(4, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(4, 0x555557413660 /* 2 entries */, 32768) = 48 getdents64(4, 0x555557413660 /* 0 entries */, 32768) = 0 close(4) = 0 rmdir("./2/file0") = 0 getdents64(3, 0x55555740b620 /* 0 entries */, 32768) = 0 close(3) = 0 rmdir("./2") = 0 mkdir("./3", 0777) = 0 openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 3 ioctl(3, LOOP_CLR_FD) = -1 ENXIO (No such device or address) close(3) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x55555740a5d0) = 5006 ./strace-static-x86_64: Process 5006 attached [pid 5006] chdir("./3") = 0 [pid 5006] prctl(PR_SET_PDEATHSIG, SIGKILL) = 0 [pid 5006] setpgid(0, 0) = 0 [pid 5006] openat(AT_FDCWD, "/proc/self/oom_score_adj", O_WRONLY|O_CLOEXEC) = 3 [pid 5006] write(3, "1000", 4) = 4 [pid 5006] close(3) = 0 [pid 5006] symlink("/dev/binderfs", "./binderfs") = 0 [pid 5006] memfd_create("syzkaller", 0) = 3 [pid 5006] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f0823052000 [pid 5006] write(3, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 1048576) = 1048576 [pid 5006] munmap(0x7f0823052000, 1048576) = 0 [pid 5006] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 4 [pid 5006] ioctl(4, LOOP_SET_FD, 3) = 0 [pid 5006] close(3) = 0 [pid 5006] mkdir("./file0", 0777) = 0 [pid 5006] mount("/dev/loop0", "./file0", "udf", MS_NOEXEC|MS_POSIXACL|MS_LAZYTIME, "fileset=00000000000000065537,iocharset=macgreek,mode=00000000000000000000033,partition=0000000000000"...) = 0 [pid 5006] openat(AT_FDCWD, "./file0", O_RDONLY|O_DIRECTORY) = 3 [pid 5006] ioctl(4, LOOP_CLR_FD) = 0 [pid 5006] close(4) = 0 [pid 5006] open("./bus", O_RDWR|O_CREAT|O_NOCTTY|O_SYNC|O_NOATIME|FASYNC, 000) = 4 [pid 5006] mount("/dev/loop0", "./bus", NULL, MS_BIND, NULL) = 0 [pid 5006] memfd_create("syzkaller", 0) = 5 [pid 5006] mmap(NULL, 138412032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f081ad52000 [ 46.564814][ T5006] loop0: detected capacity change from 0 to 2048 [ 46.575624][ T5006] UDF-fs: INFO Mounting volume 'LinuxUDF', timestamp 2022/11/22 14:59 (1000) [pid 5006] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 16777216) = 16777216 [pid 5006] munmap(0x7f081ad52000, 16777216) = 0 [pid 5006] openat(AT_FDCWD, "/dev/loop0", O_RDWR) = 6 [pid 5006] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5006] ioctl(6, LOOP_CLR_FD) = 0 [pid 5006] ioctl(6, LOOP_SET_FD, 5) = -1 EBUSY (Device or resource busy) [pid 5006] close(6) = 0 [pid 5006] close(5) = 0 [pid 5006] open("./bus", O_RDWR|O_NOCTTY|O_SYNC|O_NOATIME|0x3c) = 5 [pid 5006] write(5, "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"..., 34136651) = 1048576 [pid 5006] exit_group(0) = ? [pid 5006] +++ exited with 0 +++ --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=5006, si_uid=0, si_status=0, si_utime=3 /* 0.03 s */, si_stime=16 /* 0.16 s */} --- umount2("./3", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "./3", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 fstat(3, {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 getdents64(3, 0x55555740b620 /* 5 entries */, 32768) = 136 umount2("./3/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = 0 umount2("./3/bus", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./3/bus", {st_mode=S_IFREG|000, st_size=0, ...}) = 0 unlink("./3/bus") = 0 umount2("./3/binderfs", MNT_DETACH|UMOUNT_NOFOLLOW) = -1 EINVAL (Invalid argument) lstat("./3/binderfs", {st_mode=S_IFLNK|0777, st_size=13, ...}) = 0 unlink("./3/binderfs") = 0 [ 46.811970][ T5001] ================================================================== [ 46.820036][ T5001] BUG: KASAN: use-after-free in crc_itu_t+0xd2/0xe0 [ 46.826617][ T5001] Read of size 1 at addr ffff888071a7e000 by task syz-executor298/5001 [ 46.834822][ T5001] [ 46.837127][ T5001] CPU: 1 PID: 5001 Comm: syz-executor298 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 [ 46.847534][ T5001] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 46.857572][ T5001] Call Trace: [ 46.860830][ T5001] [ 46.863743][ T5001] dump_stack_lvl+0xd9/0x150 [ 46.868348][ T5001] print_address_description.constprop.0+0x2c/0x3c0 [ 46.874924][ T5001] ? crc_itu_t+0xd2/0xe0 [ 46.879151][ T5001] kasan_report+0x11c/0x130 [ 46.883655][ T5001] ? crc_itu_t+0xd2/0xe0 [ 46.887897][ T5001] crc_itu_t+0xd2/0xe0 [ 46.891964][ T5001] udf_finalize_lvid+0xe0/0x1d0 [ 46.896793][ T5001] ? udf_mount+0x40/0x40 [ 46.901018][ T5001] udf_close_lvid.isra.0+0x406/0x550 [ 46.906283][ T5001] udf_put_super+0x1bb/0x230 [ 46.910850][ T5001] ? udf_close_lvid.isra.0+0x550/0x550 [ 46.916290][ T5001] generic_shutdown_super+0x158/0x480 [ 46.921658][ T5001] kill_block_super+0xa1/0x100 [ 46.926404][ T5001] deactivate_locked_super+0x98/0x160 [ 46.931754][ T5001] deactivate_super+0xb1/0xd0 [ 46.936408][ T5001] cleanup_mnt+0x2ae/0x3d0 [ 46.940802][ T5001] task_work_run+0x16f/0x270 [ 46.945366][ T5001] ? task_work_cancel+0x30/0x30 [ 46.950192][ T5001] ? __x64_sys_umount+0x118/0x190 [ 46.955193][ T5001] ptrace_notify+0x118/0x140 [ 46.959786][ T5001] syscall_exit_to_user_mode_prepare+0x129/0x220 [ 46.966097][ T5001] syscall_exit_to_user_mode+0xd/0x50 [ 46.971452][ T5001] do_syscall_64+0x46/0xb0 [ 46.975854][ T5001] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 46.981732][ T5001] RIP: 0033:0x7f082b4a11f7 [ 46.986128][ T5001] Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 47.005719][ T5001] RSP: 002b:00007ffd2475cbc8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 [ 47.014112][ T5001] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f082b4a11f7 [ 47.022065][ T5001] RDX: 00007ffd2475cc89 RSI: 000000000000000a RDI: 00007ffd2475cc80 [ 47.030018][ T5001] RBP: 00007ffd2475cc80 R08: 00000000ffffffff R09: 00007ffd2475ca60 [ 47.037968][ T5001] R10: 000055555740b66b R11: 0000000000000202 R12: 00007ffd2475dcf0 [ 47.045926][ T5001] R13: 000055555740b5f0 R14: 00007ffd2475cbf0 R15: 0000000000000004 [ 47.053888][ T5001] [ 47.056889][ T5001] [ 47.059189][ T5001] The buggy address belongs to the physical page: [ 47.065569][ T5001] page:ffffea0001c69f80 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1 pfn:0x71a7e [ 47.075695][ T5001] flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) [ 47.082778][ T5001] page_type: 0xffffffff() [ 47.087082][ T5001] raw: 00fff00000000000 ffffea0001c69fc8 ffffea0001c42348 0000000000000000 [ 47.095659][ T5001] raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000 [ 47.104217][ T5001] page dumped because: kasan: bad access detected [ 47.110605][ T5001] page_owner tracks the page as freed [ 47.115946][ T5001] page last allocated via order 0, migratetype Movable, gfp_mask 0x140dca(GFP_HIGHUSER_MOVABLE|__GFP_COMP|__GFP_ZERO), pid 5006, tgid 5006 (syz-executor298), ts 46591154745, free_ts 46799828739 [ 47.134878][ T5001] post_alloc_hook+0x2db/0x350 [ 47.139632][ T5001] get_page_from_freelist+0xf41/0x2c00 [ 47.145072][ T5001] __alloc_pages+0x1cb/0x4a0 [ 47.149642][ T5001] __folio_alloc+0x16/0x40 [ 47.154037][ T5001] vma_alloc_folio+0x155/0x890 [ 47.158808][ T5001] __handle_mm_fault+0x224c/0x41c0 [ 47.163919][ T5001] handle_mm_fault+0x2af/0x9f0 [ 47.168666][ T5001] do_user_addr_fault+0x2ca/0x1210 [ 47.173758][ T5001] exc_page_fault+0x98/0x170 [ 47.178326][ T5001] asm_exc_page_fault+0x26/0x30 [ 47.183157][ T5001] page last free stack trace: [ 47.187803][ T5001] free_unref_page_prepare+0x62e/0xcb0 [ 47.193236][ T5001] free_unref_page_list+0xe3/0xa70 [ 47.198325][ T5001] release_pages+0xcd8/0x1380 [ 47.202983][ T5001] tlb_batch_pages_flush+0xa8/0x1a0 [ 47.208186][ T5001] tlb_finish_mmu+0x14b/0x7e0 [ 47.212845][ T5001] exit_mmap+0x2b2/0x930 [ 47.217071][ T5001] __mmput+0x128/0x4c0 [ 47.221121][ T5001] mmput+0x60/0x70 [ 47.224815][ T5001] do_exit+0x9b0/0x29b0 [ 47.228971][ T5001] do_group_exit+0xd4/0x2a0 [ 47.233452][ T5001] __x64_sys_exit_group+0x3e/0x50 [ 47.238568][ T5001] do_syscall_64+0x39/0xb0 [ 47.242964][ T5001] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.248840][ T5001] [ 47.251142][ T5001] Memory state around the buggy address: [ 47.256761][ T5001] ffff888071a7df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.264797][ T5001] ffff888071a7df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 47.272832][ T5001] >ffff888071a7e000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 47.280868][ T5001] ^ [ 47.284905][ T5001] ffff888071a7e080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 47.292941][ T5001] ffff888071a7e100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 47.301002][ T5001] ================================================================== [ 47.309886][ T5001] Kernel panic - not syncing: KASAN: panic_on_warn set ... [ 47.317080][ T5001] CPU: 0 PID: 5001 Comm: syz-executor298 Not tainted 6.4.0-rc6-syzkaller-00195-g40f71e7cd3c6 #0 [ 47.327465][ T5001] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 [ 47.337585][ T5001] Call Trace: [ 47.340845][ T5001] [ 47.343752][ T5001] dump_stack_lvl+0xd9/0x150 [ 47.348356][ T5001] panic+0x686/0x730 [ 47.352232][ T5001] ? panic_smp_self_stop+0xa0/0xa0 [ 47.357456][ T5001] ? preempt_schedule_thunk+0x1a/0x20 [ 47.362814][ T5001] ? preempt_schedule_common+0x45/0xb0 [ 47.368278][ T5001] check_panic_on_warn+0xb1/0xc0 [ 47.373202][ T5001] end_report+0xe9/0x120 [ 47.377428][ T5001] ? crc_itu_t+0xd2/0xe0 [ 47.381649][ T5001] kasan_report+0xf9/0x130 [ 47.386048][ T5001] ? crc_itu_t+0xd2/0xe0 [ 47.390273][ T5001] crc_itu_t+0xd2/0xe0 [ 47.394321][ T5001] udf_finalize_lvid+0xe0/0x1d0 [ 47.399147][ T5001] ? udf_mount+0x40/0x40 [ 47.403367][ T5001] udf_close_lvid.isra.0+0x406/0x550 [ 47.408629][ T5001] udf_put_super+0x1bb/0x230 [ 47.413195][ T5001] ? udf_close_lvid.isra.0+0x550/0x550 [ 47.418633][ T5001] generic_shutdown_super+0x158/0x480 [ 47.423983][ T5001] kill_block_super+0xa1/0x100 [ 47.428733][ T5001] deactivate_locked_super+0x98/0x160 [ 47.434100][ T5001] deactivate_super+0xb1/0xd0 [ 47.438768][ T5001] cleanup_mnt+0x2ae/0x3d0 [ 47.443164][ T5001] task_work_run+0x16f/0x270 [ 47.447730][ T5001] ? task_work_cancel+0x30/0x30 [ 47.452556][ T5001] ? __x64_sys_umount+0x118/0x190 [ 47.457568][ T5001] ptrace_notify+0x118/0x140 [ 47.462134][ T5001] syscall_exit_to_user_mode_prepare+0x129/0x220 [ 47.468443][ T5001] syscall_exit_to_user_mode+0xd/0x50 [ 47.473796][ T5001] do_syscall_64+0x46/0xb0 [ 47.478189][ T5001] entry_SYSCALL_64_after_hwframe+0x63/0xcd [ 47.484064][ T5001] RIP: 0033:0x7f082b4a11f7 [ 47.488455][ T5001] Code: 07 00 48 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 a6 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 [ 47.508041][ T5001] RSP: 002b:00007ffd2475cbc8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a6 [ 47.516448][ T5001] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f082b4a11f7 [ 47.524398][ T5001] RDX: 00007ffd2475cc89 RSI: 000000000000000a RDI: 00007ffd2475cc80 [ 47.532347][ T5001] RBP: 00007ffd2475cc80 R08: 00000000ffffffff R09: 00007ffd2475ca60 [ 47.540306][ T5001] R10: 000055555740b66b R11: 0000000000000202 R12: 00007ffd2475dcf0 [ 47.548262][ T5001] R13: 000055555740b5f0 R14: 00007ffd2475cbf0 R15: 0000000000000004 [ 47.556230][ T5001] [ 47.560078][ T5001] Kernel Offset: disabled [ 47.564397][ T5001] Rebooting in 86400 seconds..