[LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm
Edward Liaw
edliaw@google.com
Thu Jul 11 02:42:21 CEST 2024
memfd_secret is not implemented on 32bit arm, but this change creates a
fallback definition so that it will return -1 and ENOSYS when calling
syscall(__NR_memfd_secret, 0). This will allow tests such as accept03,
readahead01 and splice07 that use memfd_secret to skip with TCONF
Reported-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Suggested-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Edward Liaw <edliaw@google.com>
---
I didn't see a follow-up to
https://lore.kernel.org/ltp/1718700544-17304-1-git-send-email-nobuhiro1.iwamatsu@toshiba.co.jp/
so I am submitting this patch based on Cyril's recommendation.
include/lapi/syscalls/arm.in | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/lapi/syscalls/arm.in b/include/lapi/syscalls/arm.in
index 7bdbca533..82df54819 100644
--- a/include/lapi/syscalls/arm.in
+++ b/include/lapi/syscalls/arm.in
@@ -394,4 +394,5 @@ pidfd_getfd (__NR_SYSCALL_BASE+438)
faccessat2 (__NR_SYSCALL_BASE+439)
epoll_pwait2 (__NR_SYSCALL_BASE+441)
quotactl_fd (__NR_SYSCALL_BASE+443)
+memfd_secret (__NR_SYSCALL_BASE+447)
futex_waitv (__NR_SYSCALL_BASE+449)
--
2.45.2.803.g4e1b14247a-goog
More information about the ltp
mailing list