* [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA
@ 2026-06-23 12:48 Avinesh Kumar via ltp
2026-06-23 15:51 ` [LTP] " linuxtestproject.agent
2026-06-24 8:14 ` [LTP] [PATCH] " Andrea Cervesato via ltp
0 siblings, 2 replies; 3+ messages in thread
From: Avinesh Kumar via ltp @ 2026-06-23 12:48 UTC (permalink / raw)
To: ltp
On kernels without CONFIG_NUMA=y set_mempolicy() returns ENOSYS,
which the test misreports as TFAIL.
set_mempolicy05.c:105: TFAIL: set_mempolicy should fail with EFAULT or EINVAL, instead returned 38
Add .needs_kconfigs with CONFIG_NUMA=y
Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
index 65061bf3d..6c91beebc 100644
--- a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
+++ b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c
@@ -115,6 +115,10 @@ static struct tst_test test = {
"ppc",
NULL
},
+ .needs_kconfigs = (const char *const[]){
+ "CONFIG_NUMA=y",
+ NULL
+ },
.tags = (const struct tst_tag[]) {
{"linux-git", "cf01fb9985e8"},
{"CVE", "CVE-2017-7616"},
--
2.54.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [LTP] set_mempolicy05: require CONFIG_NUMA
2026-06-23 12:48 [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA Avinesh Kumar via ltp
@ 2026-06-23 15:51 ` linuxtestproject.agent
2026-06-24 8:14 ` [LTP] [PATCH] " Andrea Cervesato via ltp
1 sibling, 0 replies; 3+ messages in thread
From: linuxtestproject.agent @ 2026-06-23 15:51 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
On 23 Jun 2026, Avinesh Kumar wrote:
> set_mempolicy05: require CONFIG_NUMA
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] 3+ messages in thread
* Re: [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA
2026-06-23 12:48 [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA Avinesh Kumar via ltp
2026-06-23 15:51 ` [LTP] " linuxtestproject.agent
@ 2026-06-24 8:14 ` Andrea Cervesato via ltp
1 sibling, 0 replies; 3+ messages in thread
From: Andrea Cervesato via ltp @ 2026-06-24 8:14 UTC (permalink / raw)
To: Avinesh Kumar via ltp; +Cc: ltp
Hi Avinesh,
the patch looks good to me, but it's probably not enough. we will
need to implement the same concept for all set_mempolicy() tests,
since it's NUMA specific. We just missed this for all this time
apparently. Did you see the same errors for them as well?
Regards,
--
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] 3+ messages in thread
end of thread, other threads:[~2026-06-24 8:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 12:48 [LTP] [PATCH] set_mempolicy05: require CONFIG_NUMA Avinesh Kumar via ltp
2026-06-23 15:51 ` [LTP] " linuxtestproject.agent
2026-06-24 8:14 ` [LTP] [PATCH] " 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.