[LTP] [PATCH v2] loongarch64.in: add memfd_secret syscall
Gang Yan
gang.yan@linux.dev
Wed Jul 15 09:58:50 CEST 2026
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
More information about the ltp
mailing list