loongarch64.in: add memfd_secret syscall
PATCH v2 1/1 loongarch64.in: add memfd_secret syscall
From: Gang Yan <[email protected]>
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) '''
--- include/lapi/syscalls/loongarch64.in | 1 + 1 file changed, 1 insertion(+)
include/lapi/syscalls/loongarch64.in +1 -0
@@ -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
Signature · 5 lines
2.43.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Gang,
Quoted 1 line · Gang Yan
loongarch64.in: add
memfd_secretsyscall
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
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Andrea Cervesato via ltp
AppliedMerged, Thanks!
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp