public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm
@ 2024-07-11  0:42 Edward Liaw via ltp
  2024-07-15  9:21 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Edward Liaw via ltp @ 2024-07-11  0:42 UTC (permalink / raw)
  To: ltp; +Cc: kernel-team

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm
  2024-07-11  0:42 [LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm Edward Liaw via ltp
@ 2024-07-15  9:21 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2024-07-15  9:21 UTC (permalink / raw)
  To: Edward Liaw; +Cc: kernel-team, ltp

Hi!
Applied, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-15  9:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-11  0:42 [LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm Edward Liaw via ltp
2024-07-15  9:21 ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox