All of lore.kernel.org
 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

* Re: [LTP] [PATCH v2] loongarch64.in: add memfd_secret syscall
  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
  2 siblings, 0 replies; 4+ messages in thread
From: Andrea Cervesato via ltp @ 2026-07-15  8:06 UTC (permalink / raw)
  To: Gang Yan; +Cc: Gang Yan, ltp

Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com

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

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

* Re: [LTP] loongarch64.in: add memfd_secret syscall
  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 ` linuxtestproject.agent
  2026-07-15 11:29 ` [LTP] [PATCH v2] " Andrea Cervesato via ltp
  2 siblings, 0 replies; 4+ messages in thread
From: linuxtestproject.agent @ 2026-07-15 10:53 UTC (permalink / raw)
  To: Gang Yan; +Cc: ltp

Hi Gang,

On Wed, 15 Jul 2026 15:58:50 +0800, Gang Yan wrote:
> loongarch64.in: add memfd_secret syscall

Verdict - Reviewed

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

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

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

* Re: [LTP] [PATCH v2] loongarch64.in: add memfd_secret syscall
  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 ` Andrea Cervesato via ltp
  2 siblings, 0 replies; 4+ messages in thread
From: Andrea Cervesato via ltp @ 2026-07-15 11:29 UTC (permalink / raw)
  To: Gang Yan; +Cc: Gang Yan, ltp

Merged, Thanks!

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com

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

^ permalink raw reply	[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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.