Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH v2] loongarch64.in: add memfd_secret syscall
@ 2026-07-15  7:58 Gang Yan
  2026-07-15  8:06 ` Andrea Cervesato via ltp
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Gang Yan @ 2026-07-15  7:58 UTC (permalink / raw)
  To: ltp; +Cc: Gang Yan

From: Gang Yan <yangang@kylinos.cn>

memfd_secret(447) is already supported on newer LoongArch kernels, but
the loongarch64.in was missing its definition. This caused tests using
memfd_secret (e.g. accept03, readahead01, splice07 via tst_fd.c) to
incorrectly skip with TCONF even when the kernel supports it:

'''
accept03.c:46: TPASS: accept() on memfd: ENOTSOCK (88)
tst_fd.c:261: TCONF: Skipping memfd secret : ENOSYS (38)
'''

This patch adds memfd_secret(447) so these tests can run normally:

'''
accept03.c:46: TPASS: accept() on memfd secret : ENOTSOCK (88)
'''

Signed-off-by: Gang Yan <yangang@kylinos.cn>
---
 include/lapi/syscalls/loongarch64.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/lapi/syscalls/loongarch64.in b/include/lapi/syscalls/loongarch64.in
index 5407b86ea..a1dfce79e 100644
--- a/include/lapi/syscalls/loongarch64.in
+++ b/include/lapi/syscalls/loongarch64.in
@@ -297,6 +297,7 @@ quotactl_fd 443
 landlock_create_ruleset 444
 landlock_add_rule 445
 landlock_restrict_self 446
+memfd_secret 447
 process_mrelease 448
 futex_waitv 449
 set_mempolicy_home_node 450
-- 
2.43.0


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

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

end of thread, other threads:[~2026-07-15 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-15  7:58 [LTP] [PATCH v2] loongarch64.in: add memfd_secret syscall Gang Yan
2026-07-15  8:06 ` Andrea Cervesato via ltp
2026-07-15 10:53 ` [LTP] " linuxtestproject.agent
2026-07-15 11:29 ` [LTP] [PATCH v2] " Andrea Cervesato via ltp

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