Hi all, I'm running the 6.7.0-rc8-00174-g95c8a35f1c01 kernel from torvalds tree on a Ubuntu 23.10 Mantic Minotaur system. What I get are these errors. memfd selftests are actually counted as "ok", but they give errors and/or hang. Please find the strace output attached, and the config used. Hope this helps. Best regards, Mirsad TAP version 13 1..3 # timeout set to 45 # selftests: memfd: memfd_test # memfd: CREATE # memfd: BASIC # memfd: SEAL-EXEC # memfd: Apply SEAL_EXEC # memfd: Apply ALL_SEALS # memfd: EXEC_NO_SEAL # memfd: NOEXEC_SEAL # memfd: SEAL-WRITE # memfd: SEAL-FUTURE-WRITE # memfd: SEAL-SHRINK # memfd: SEAL-GROW # memfd: SEAL-RESIZE # memfd: sysctl 0 # memfd: sysctl 1 # memfd: sysctl 0 # memfd: sysctl 2 # memfd: sysctl 1 # memfd: sysctl 0 # memfd: nested sysctl 0 # memfd: sysctl 0 # memfd: sysctl 1 # memfd: sysctl 0 # memfd: sysctl 2 # memfd: sysctl 1 # memfd: sysctl 0 # memfd: nested sysctl 1 # memfd: nested sysctl 2 # memfd: nested sysctl 0 -> 1 after fork # memfd: nested sysctl 0 -> 2 after fork # memfd: nested sysctl 2 -> 1 after fork # memfd: nested sysctl 2 -> 0 after fork # memfd: nested sysctl 1 -> 0 after fork # memfd: SHARE-DUP # memfd: SHARE-MMAP # memfd: SHARE-OPEN # memfd: SHARE-FORK # memfd: SHARE-DUP (shared file-table) # memfd: SHARE-MMAP (shared file-table) # memfd: SHARE-OPEN (shared file-table) # memfd: SHARE-FORK (shared file-table) # memfd: DONE ok 1 selftests: memfd: memfd_test # timeout set to 45 # selftests: memfd: run_fuse_test.sh # fusermount: failed to unmount /home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt: Invalid argument # opening: ./mnt/memfd # fuse: DONE ok 2 selftests: memfd: run_fuse_test.sh # timeout set to 45 # selftests: memfd: run_hugetlbfs_test.sh # memfd-hugetlb: CREATE # memfd-hugetlb: BASIC # memfd-hugetlb: SEAL-EXEC # memfd-hugetlb: Apply SEAL_EXEC # fchmod(/memfd:kern_memfd_seal_exec (deleted), 00777) didn't fail as expected # ./run_hugetlbfs_test.sh: line 60: 97095 Aborted (core dumped) ./memfd_test hugetlbfs # opening: ./mnt/memfd # ADD_SEALS(6, 0 -> 8) failed: Device or resource busy # 8 != 0 = GET_SEALS(6) # Aborted (core dumped) ok 3 selftests: memfd: run_hugetlbfs_test.sh make[3]: Leaving directory '/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd' -- Mirsad Goran Todorovac Sistem inženjer Grafički fakultet | Akademija likovnih umjetnosti Sveučilište u Zagrebu System engineer Faculty of Graphic Arts | Academy of Fine Arts University of Zagreb, Republic of Croatia The European Union "I see something approaching fast ... Will it be friends with me?"
Attachment:
config-6.7.0-rc8-00174-g95c8a35f1c01-dirty.xz
Description: application/xz
execve("./memfd_test", ["./memfd_test", "hugetlbfs"], 0x7ffee65a0320 /* 33 vars */) = 0 brk(NULL) = 0x60292aea3000 arch_prctl(0x3001 /* ARCH_??? */, 0x7fff9507ab80) = -1 EINVAL (Invalid argument) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x74491887f000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94833, ...}, AT_EMPTY_PATH) = 0 mmap(NULL, 94833, PROT_READ, MAP_PRIVATE, 3, 0) = 0x744918867000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2105184, ...}, AT_EMPTY_PATH) = 0 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 mmap(NULL, 2150256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x744918600000 mmap(0x744918626000, 1568768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x744918626000 mmap(0x7449187a5000, 348160, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a5000) = 0x7449187a5000 mmap(0x7449187fa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f9000) = 0x7449187fa000 mmap(0x744918800000, 53104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x744918800000 close(3) = 0 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x744918864000 arch_prctl(ARCH_SET_FS, 0x744918864740) = 0 set_tid_address(0x744918864a10) = 904232 set_robust_list(0x744918864a20, 24) = 0 rseq(0x744918865060, 0x20, 0, 0x53053053) = 0 mprotect(0x7449187fa000, 16384, PROT_READ) = 0 mprotect(0x6029299c0000, 4096, PROT_READ) = 0 mprotect(0x7449188b6000, 8192, PROT_READ) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 munmap(0x744918867000, 94833) = 0 getrandom("\xb7\x1c\x51\x09\x52\xb0\x9e\x86", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x60292aea3000 brk(0x60292aec4000) = 0x60292aec4000 openat(AT_FDCWD, "/proc/meminfo", O_RDONLY) = 3 newfstatat(3, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0 read(3, "MemTotal: 7916376 kB\nMemF"..., 1024) = 1024 read(3, " 68108 kB\nVmallocChunk: "..., 1024) = 507 close(3) = 0 newfstatat(1, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0 memfd_create(NULL, MFD_HUGETLB) = -1 EFAULT (Bad address) memfd_create("\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., MFD_HUGETLB) = -1 EINVAL (Invalid argument) memfd_create("\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., MFD_HUGETLB) = -1 EINVAL (Invalid argument) memfd_create("", MFD_HUGETLB) = 3 ftruncate(3, 0) = 0 close(3) = 0 memfd_create("", MFD_HUGETLB|0x100) = -1 EINVAL (Invalid argument) memfd_create("", MFD_ALLOW_SEALING|MFD_HUGETLB|MFD_NOEXEC_SEAL|MFD_EXEC|0x3ffffe0|63<<MFD_HUGE_SHIFT) = -1 EINVAL (Invalid argument) memfd_create("", MFD_CLOEXEC|MFD_HUGETLB|MFD_NOEXEC_SEAL|MFD_EXEC|0x3ffffe0|63<<MFD_HUGE_SHIFT) = -1 EINVAL (Invalid argument) memfd_create("", MFD_CLOEXEC|MFD_ALLOW_SEALING|MFD_HUGETLB|MFD_NOEXEC_SEAL|MFD_EXEC|0x3ffffe0|63<<MFD_HUGE_SHIFT) = -1 EINVAL (Invalid argument) memfd_create("", MFD_HUGETLB|32<<MFD_HUGE_SHIFT) = -1 ENODEV (No such device) memfd_create("", MFD_HUGETLB|MFD_NOEXEC_SEAL|MFD_EXEC) = -1 EINVAL (Invalid argument) memfd_create("", MFD_CLOEXEC|MFD_HUGETLB) = 3 ftruncate(3, 0) = 0 close(3) = 0 memfd_create("", MFD_ALLOW_SEALING|MFD_HUGETLB) = 3 ftruncate(3, 0) = 0 close(3) = 0 memfd_create("", MFD_CLOEXEC|MFD_ALLOW_SEALING|MFD_HUGETLB) = 3 ftruncate(3, 0) = 0 close(3) = 0 memfd_create("kern_memfd_basic", MFD_CLOEXEC|MFD_ALLOW_SEALING|MFD_HUGETLB) = 3 ftruncate(3, 4194304) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_basic (deleted"..., 4095) = 33 fcntl(3, F_GET_SEALS) = 0 fcntl(3, F_GET_SEALS) = 0 fcntl(3, F_ADD_SEALS, F_SEAL_SHRINK|F_SEAL_WRITE) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_basic (deleted"..., 4095) = 33 fcntl(3, F_GET_SEALS) = 0xa (seals F_SEAL_SHRINK|F_SEAL_WRITE) fcntl(3, F_GET_SEALS) = 0xa (seals F_SEAL_SHRINK|F_SEAL_WRITE) fcntl(3, F_ADD_SEALS, F_SEAL_SHRINK|F_SEAL_WRITE) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_basic (deleted"..., 4095) = 33 fcntl(3, F_GET_SEALS) = 0xa (seals F_SEAL_SHRINK|F_SEAL_WRITE) fcntl(3, F_GET_SEALS) = 0xa (seals F_SEAL_SHRINK|F_SEAL_WRITE) fcntl(3, F_ADD_SEALS, F_SEAL_SEAL|F_SEAL_GROW) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_basic (deleted"..., 4095) = 33 fcntl(3, F_GET_SEALS) = 0xf (seals F_SEAL_SEAL|F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_WRITE) fcntl(3, F_GET_SEALS) = 0xf (seals F_SEAL_SEAL|F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_WRITE) fcntl(3, F_ADD_SEALS, F_SEAL_GROW) = -1 EPERM (Operation not permitted) fcntl(3, F_GET_SEALS) = 0xf (seals F_SEAL_SEAL|F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_WRITE) fcntl(3, F_ADD_SEALS, 0) = -1 EPERM (Operation not permitted) close(3) = 0 memfd_create("kern_memfd_basic", MFD_CLOEXEC|MFD_HUGETLB) = 3 ftruncate(3, 4194304) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_basic (deleted"..., 4095) = 33 fcntl(3, F_GET_SEALS) = 0x1 (seals F_SEAL_SEAL) fcntl(3, F_GET_SEALS) = 0x1 (seals F_SEAL_SEAL) fcntl(3, F_ADD_SEALS, F_SEAL_SHRINK|F_SEAL_GROW|F_SEAL_WRITE) = -1 EPERM (Operation not permitted) readlink("/proc/self/fd/3", "/memfd:kern_memfd_basic (deleted"..., 4095) = 33 fcntl(3, F_GET_SEALS) = 0x1 (seals F_SEAL_SEAL) close(3) = 0 memfd_create("kern_memfd_seal_exec", MFD_CLOEXEC|MFD_ALLOW_SEALING|MFD_HUGETLB|MFD_EXEC) = 3 ftruncate(3, 4194304) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 newfstatat(3, "", {st_mode=S_IFREG|0777, st_size=4194304, ...}, AT_EMPTY_PATH) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 fchmod(3, 0644) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=4194304, ...}, AT_EMPTY_PATH) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 fcntl(3, F_GET_SEALS) = 0 fcntl(3, F_GET_SEALS) = 0 fcntl(3, F_ADD_SEALS, F_SEAL_EXEC) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 fcntl(3, F_GET_SEALS) = 0x20 (seals F_SEAL_EXEC) readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 fchmod(3, 0600) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 newfstatat(3, "", {st_mode=S_IFREG|0600, st_size=4194304, ...}, AT_EMPTY_PATH) = 0 readlink("/proc/self/fd/3", "/memfd:kern_memfd_seal_exec (del"..., 4095) = 37 newfstatat(3, "", {st_mode=S_IFREG|0600, st_size=4194304, ...}, AT_EMPTY_PATH) = 0 fchmod(3, 0777) = 0 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 gettid() = 904232 getpid() = 904232 tgkill(904232, 904232, SIGABRT) = 0 --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=904232, si_uid=0} --- +++ killed by SIGABRT (core dumped) +++ ./run_hugetlbfs_test.sh: line 60: 904229 Aborted (core dumped) strace -f ./memfd_test hugetlbfs execve("./fuse_mnt", ["./fuse_mnt", "./mnt"], 0x7fff1de19420 /* 33 vars */) = 0 brk(NULL) = 0x64d97e678000 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffdfc3cbca0) = -1 EINVAL (Invalid argument) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd6b1f97000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94833, ...}, AT_EMPTY_PATH) = 0 mmap(NULL, 94833, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd6b1f7f000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libfuse.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=260376, ...}, AT_EMPTY_PATH) = 0 mmap(NULL, 258336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd6b1f3f000 mmap(0x7fd6b1f46000, 114688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7fd6b1f46000 mmap(0x7fd6b1f62000, 40960, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7fd6b1f62000 mmap(0x7fd6b1f6c000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d000) = 0x7fd6b1f6c000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2105184, ...}, AT_EMPTY_PATH) = 0 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 mmap(NULL, 2150256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd6b1c00000 mmap(0x7fd6b1c26000, 1568768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7fd6b1c26000 mmap(0x7fd6b1da5000, 348160, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a5000) = 0x7fd6b1da5000 mmap(0x7fd6b1dfa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f9000) = 0x7fd6b1dfa000 mmap(0x7fd6b1e00000, 53104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd6b1e00000 close(3) = 0 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd6b1f3c000 arch_prctl(ARCH_SET_FS, 0x7fd6b1f3c740) = 0 set_tid_address(0x7fd6b1f3ca10) = 904244 set_robust_list(0x7fd6b1f3ca20, 24) = 0 rseq(0x7fd6b1f3d060, 0x20, 0, 0x53053053) = 0 mprotect(0x7fd6b1dfa000, 16384, PROT_READ) = 0 mprotect(0x7fd6b1f6c000, 73728, PROT_READ) = 0 mprotect(0x64d97cbef000, 4096, PROT_READ) = 0 mprotect(0x7fd6b1fce000, 8192, PROT_READ) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 munmap(0x7fd6b1f7f000, 94833) = 0 getrandom("\x35\xc8\x94\xf8\x1b\x18\xe2\x21", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x64d97e678000 brk(0x64d97e699000) = 0x64d97e699000 getcwd("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd", 1024) = 71 readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", 0x7ffdfc3ca680, 1023) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "/dev/null", O_RDWR) = 3 close(3) = 0 newfstatat(AT_FDCWD, "/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0 openat(AT_FDCWD, "/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x64d97e6784d0 /* 2 entries */, 32768) = 48 getdents64(3, 0x64d97e6784d0 /* 0 entries */, 32768) = 0 close(3) = 0 openat(AT_FDCWD, "/dev/fuse", O_RDWR) = 3 getgid() = 0 getuid() = 0 mount("fuse_mnt", "/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", "fuse.fuse_mnt", MS_NOSUID|MS_NODEV, "fd=3,rootmode=40000,user_id=0,gr"...) = 0 geteuid() = 0 readlink("/home", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd", 0x7ffdfc3ca540, 1023) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/etc/mtab", {st_mode=S_IFLNK|0777, st_size=19, ...}, AT_SYMLINK_NOFOLLOW) = 0 getuid() = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd6b1f96000 pipe2([4, 5], 0) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLDstrace: Process 904246 attached , child_tidptr=0x7fd6b1f3ca10) = 904246 [pid 904246] set_robust_list(0x7fd6b1f3ca20, 24) = 0 [pid 904244] read(4, <unfinished ...> [pid 904246] setsid() = 904246 [pid 904246] chdir("/") = 0 [pid 904246] openat(AT_FDCWD, "/dev/null", O_RDWR) = 6 [pid 904246] dup2(6, 0) = 0 [pid 904246] dup2(6, 1) = 1 [pid 904246] dup2(6, 2) = 2 [pid 904246] close(6) = 0 [pid 904246] write(5, "\1", 1 <unfinished ...> [pid 904244] <... read resumed>"\1", 1) = 1 [pid 904246] <... write resumed>) = 1 [pid 904244] exit_group(0 <unfinished ...> [pid 904246] close(4 <unfinished ...> [pid 904244] <... exit_group resumed>) = ? [pid 904246] <... close resumed>) = 0 [pid 904244] +++ exited with 0 +++ close(5) = 0 rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGHUP, {sa_handler=0x7fd6b1f5a1d0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fd6b1c42910}, NULL, 8) = 0 rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGINT, {sa_handler=0x7fd6b1f5a1d0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fd6b1c42910}, NULL, 8) = 0 rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGTERM, {sa_handler=0x7fd6b1f5a1d0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fd6b1c42910}, NULL, 8) = 0 rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fd6b1c42910}, NULL, 8) = 0 mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd6b1f1a000 rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM], [], 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7fd6b1c94820, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fd6b1c42910}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd6b1200000 mprotect(0x7fd6b1201000, 8388608, PROT_READ|PROT_WRITE) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [HUP INT QUIT TERM], 8) = 0 clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd6b1a00990, parent_tid=0x7fd6b1a00990, exit_signal=0, stack=0x7fd6b1200000, stack_size=0x7fff80, tls=0x7fd6b1a006c0}strace: Process 904247 attached => {parent_tid=[904247]}, 88) = 904247 [pid 904247] rseq(0x7fd6b1a00fe0, 0x20, 0, 0x53053053 <unfinished ...> [pid 904246] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], <unfinished ...> [pid 904247] <... rseq resumed>) = 0 [pid 904247] set_robust_list(0x7fd6b1a009a0, 24) = 0 [pid 904247] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], NULL, 8) = 0 [pid 904247] read(3, "h\0\0\0\32\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 135168) = 104 [pid 904247] futex(0x7ffdfc3cbba0, FUTEX_WAIT_PRIVATE, 2, NULL <unfinished ...> [pid 904246] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 904246] rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 [pid 904246] futex(0x7ffdfc3cbba0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 904247] <... futex resumed>) = 0 [pid 904246] <... futex resumed>) = 1 [pid 904247] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd6a9000000 [pid 904246] futex(0x7ffdfc3cbc10, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY <unfinished ...> [pid 904247] munmap(0x7fd6a9000000, 50331648) = 0 [pid 904247] munmap(0x7fd6b0000000, 16777216) = 0 [pid 904247] mprotect(0x7fd6ac000000, 135168, PROT_READ|PROT_WRITE) = 0 [pid 904247] mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd6b1ef8000 [pid 904247] rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM], [HUP INT QUIT TERM], 8) = 0 [pid 904247] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7fd6b0800000 [pid 904247] mprotect(0x7fd6b0801000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 904247] rt_sigprocmask(SIG_BLOCK, ~[], [HUP INT QUIT TERM], 8) = 0 [pid 904247] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7fd6b1000990, parent_tid=0x7fd6b1000990, exit_signal=0, stack=0x7fd6b0800000, stack_size=0x7fff80, tls=0x7fd6b10006c0}strace: Process 904248 attached <unfinished ...> [pid 904248] rseq(0x7fd6b1000fe0, 0x20, 0, 0x53053053 <unfinished ...> [pid 904247] <... clone3 resumed> => {parent_tid=[904248]}, 88) = 904248 [pid 904248] <... rseq resumed>) = 0 [pid 904247] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], <unfinished ...> [pid 904248] set_robust_list(0x7fd6b10009a0, 24 <unfinished ...> [pid 904247] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 904248] <... set_robust_list resumed>) = 0 [pid 904247] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], <unfinished ...> [pid 904248] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], <unfinished ...> [pid 904247] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 904248] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 904247] futex(0x7ffdfc3cbba0, FUTEX_WAKE_PRIVATE, 1 <unfinished ...> [pid 904248] read(3, <unfinished ...> [pid 904247] <... futex resumed>) = 0 [pid 904247] writev(3, [{iov_base="(\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0", iov_len=16}, {iov_base="\7\0\0\0\23\0\0\0\0\0\2\0\21\0\0\0\0\0\0\0\0\0\2\0", iov_len=24}], 2) = 40 [pid 904247] read(3,
execve("./fuse_mnt", ["./fuse_mnt", "./mnt"], 0x7fff66359b10 /* 33 vars */) = 0 brk(NULL) = 0x62f4c0b16000 arch_prctl(0x3001 /* ARCH_??? */, 0x7fff57e48ff0) = -1 EINVAL (Invalid argument) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7a248434c000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=94833, ...}, AT_EMPTY_PATH) = 0 mmap(NULL, 94833, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7a2484334000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libfuse.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832 newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=260376, ...}, AT_EMPTY_PATH) = 0 mmap(NULL, 258336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7a24842f4000 mmap(0x7a24842fb000, 114688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7a24842fb000 mmap(0x7a2484317000, 40960, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7a2484317000 mmap(0x7a2484321000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2d000) = 0x7a2484321000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220\202\2\0\0\0\0\0"..., 832) = 832 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2105184, ...}, AT_EMPTY_PATH) = 0 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 mmap(NULL, 2150256, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7a2484000000 mmap(0x7a2484026000, 1568768, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7a2484026000 mmap(0x7a24841a5000, 348160, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a5000) = 0x7a24841a5000 mmap(0x7a24841fa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f9000) = 0x7a24841fa000 mmap(0x7a2484200000, 53104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7a2484200000 close(3) = 0 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7a24842f1000 arch_prctl(ARCH_SET_FS, 0x7a24842f1740) = 0 set_tid_address(0x7a24842f1a10) = 904048 set_robust_list(0x7a24842f1a20, 24) = 0 rseq(0x7a24842f2060, 0x20, 0, 0x53053053) = 0 mprotect(0x7a24841fa000, 16384, PROT_READ) = 0 mprotect(0x7a2484321000, 73728, PROT_READ) = 0 mprotect(0x62f4c0a65000, 4096, PROT_READ) = 0 mprotect(0x7a2484383000, 8192, PROT_READ) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 munmap(0x7a2484334000, 94833) = 0 getrandom("\x3e\xc9\xaa\x7d\x79\x40\xd4\xce", 8, GRND_NONBLOCK) = 8 brk(NULL) = 0x62f4c0b16000 brk(0x62f4c0b37000) = 0x62f4c0b37000 getcwd("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd", 1024) = 71 readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", 0x7fff57e479d0, 1023) = -1 EINVAL (Invalid argument) openat(AT_FDCWD, "/dev/null", O_RDWR) = 3 close(3) = 0 newfstatat(AT_FDCWD, "/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0 openat(AT_FDCWD, "/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 3 newfstatat(3, "", {st_mode=S_IFDIR|0755, st_size=4096, ...}, AT_EMPTY_PATH) = 0 getdents64(3, 0x62f4c0b164d0 /* 2 entries */, 32768) = 48 getdents64(3, 0x62f4c0b164d0 /* 0 entries */, 32768) = 0 close(3) = 0 openat(AT_FDCWD, "/dev/fuse", O_RDWR) = 3 getgid() = 0 getuid() = 0 mount("fuse_mnt", "/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd/mnt", "fuse.fuse_mnt", MS_NOSUID|MS_NODEV, "fd=3,rootmode=40000,user_id=0,gr"...) = 0 geteuid() = 0 readlink("/home", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) readlink("/home/marvin/linux/kernel/linux_torvalds/tools/testing/selftests/memfd", 0x7fff57e47890, 1023) = -1 EINVAL (Invalid argument) newfstatat(AT_FDCWD, "/etc/mtab", {st_mode=S_IFLNK|0777, st_size=19, ...}, AT_SYMLINK_NOFOLLOW) = 0 getuid() = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7a248434b000 pipe2([4, 5], 0) = 0 clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7a24842f1a10) = 904050 strace: Process 904050 attached [pid 904048] read(4, <unfinished ...> [pid 904050] set_robust_list(0x7a24842f1a20, 24) = 0 [pid 904050] setsid() = 904050 [pid 904050] chdir("/") = 0 [pid 904050] openat(AT_FDCWD, "/dev/null", O_RDWR) = 6 [pid 904050] dup2(6, 0) = 0 [pid 904050] dup2(6, 1) = 1 [pid 904050] dup2(6, 2) = 2 [pid 904050] close(6) = 0 [pid 904050] write(5, "\1", 1 <unfinished ...> [pid 904048] <... read resumed>"\1", 1) = 1 [pid 904050] <... write resumed>) = 1 [pid 904048] exit_group(0 <unfinished ...> [pid 904050] close(4 <unfinished ...> [pid 904048] <... exit_group resumed>) = ? [pid 904050] <... close resumed>) = 0 [pid 904050] close(5) = 0 [pid 904050] rt_sigaction(SIGHUP, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 [pid 904048] +++ exited with 0 +++ rt_sigaction(SIGHUP, {sa_handler=0x7a248430f1d0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7a2484042910}, NULL, 8) = 0 rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGINT, {sa_handler=0x7a248430f1d0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7a2484042910}, NULL, 8) = 0 rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGTERM, {sa_handler=0x7a248430f1d0, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7a2484042910}, NULL, 8) = 0 rt_sigaction(SIGPIPE, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0 rt_sigaction(SIGPIPE, {sa_handler=SIG_IGN, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7a2484042910}, NULL, 8) = 0 mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7a24842cf000 rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM], [], 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7a2484094820, sa_mask=[], sa_flags=SA_RESTORER|SA_ONSTACK|SA_RESTART|SA_SIGINFO, sa_restorer=0x7a2484042910}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7a2483600000 mprotect(0x7a2483601000, 8388608, PROT_READ|PROT_WRITE) = 0 rt_sigprocmask(SIG_BLOCK, ~[], [HUP INT QUIT TERM], 8) = 0 clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7a2483e00990, parent_tid=0x7a2483e00990, exit_signal=0, stack=0x7a2483600000, stack_size=0x7fff80, tls=0x7a2483e006c0} => {parent_tid=[904051]}, 88) = 904051 rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], NULL, 8) = 0 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0 futex(0x7fff57e48f60, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANYstrace: Process 904051 attached <unfinished ...> [pid 904051] rseq(0x7a2483e00fe0, 0x20, 0, 0x53053053) = 0 [pid 904051] set_robust_list(0x7a2483e009a0, 24) = 0 [pid 904051] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], NULL, 8) = 0 [pid 904051] read(3, "h\0\0\0\32\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 135168) = 104 [pid 904051] mmap(NULL, 134217728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7a247b400000 [pid 904051] munmap(0x7a247b400000, 12582912) = 0 [pid 904051] munmap(0x7a2480000000, 54525952) = 0 [pid 904051] mprotect(0x7a247c000000, 135168, PROT_READ|PROT_WRITE) = 0 [pid 904051] mmap(NULL, 139264, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7a24842ad000 [pid 904051] rt_sigprocmask(SIG_BLOCK, [HUP INT QUIT TERM], [HUP INT QUIT TERM], 8) = 0 [pid 904051] mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7a2482c00000 [pid 904051] mprotect(0x7a2482c01000, 8388608, PROT_READ|PROT_WRITE) = 0 [pid 904051] rt_sigprocmask(SIG_BLOCK, ~[], [HUP INT QUIT TERM], 8) = 0 [pid 904051] clone3({flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, child_tid=0x7a2483400990, parent_tid=0x7a2483400990, exit_signal=0, stack=0x7a2482c00000, stack_size=0x7fff80, tls=0x7a24834006c0} => {parent_tid=[904052]}, 88) = 904052 strace: Process 904052 attached [pid 904051] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], NULL, 8) = 0 [pid 904052] rseq(0x7a2483400fe0, 0x20, 0, 0x53053053 <unfinished ...> [pid 904051] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], <unfinished ...> [pid 904052] <... rseq resumed>) = 0 [pid 904052] set_robust_list(0x7a24834009a0, 24 <unfinished ...> [pid 904051] <... rt_sigprocmask resumed>NULL, 8) = 0 [pid 904052] <... set_robust_list resumed>) = 0 [pid 904051] writev(3, [{iov_base="(\0\0\0\0\0\0\0\2\0\0\0\0\0\0\0", iov_len=16}, {iov_base="\7\0\0\0\23\0\0\0\0\0\2\0\21\0\0\0\0\0\0\0\0\0\2\0", iov_len=24}], 2) = 40 [pid 904051] read(3, <unfinished ...> [pid 904052] rt_sigprocmask(SIG_SETMASK, [HUP INT QUIT TERM], NULL, 8) = 0 [pid 904052] read(3,