From: Edward Liaw via ltp <ltp@lists.linux.it>
To: ltp@lists.linux.it
Cc: kernel-team@android.com
Subject: [LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm
Date: Thu, 11 Jul 2024 00:42:21 +0000 [thread overview]
Message-ID: <20240711004220.1338086-2-edliaw@google.com> (raw)
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
next reply other threads:[~2024-07-11 0:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-11 0:42 Edward Liaw via ltp [this message]
2024-07-15 9:21 ` [LTP] [PATCH] lapi/syscalls: Add fallback definition for memfd_secret on arm Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240711004220.1338086-2-edliaw@google.com \
--to=ltp@lists.linux.it \
--cc=edliaw@google.com \
--cc=kernel-team@android.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox