Skip to contentSkip to conversation

lapi/syscalls: Add fallback definition for memfd_secret on arm

PATCH In review Edward Liaw via ltp 2 participants 2 messages Jul 11, 2024 – Jul 15, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lapi/syscalls: Add fallback definition for memfd_secret on arm

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

---
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(+)
include/lapi/syscalls/arm.in +1 -0
index 7bdbca533..82df54819 100644
@@ -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

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp