set_mempolicy05: Require CONFIG_NUMA using .needs_kconfigs
PATCH 1/1 set_mempolicy05: Require CONFIG_NUMA using .needs_kconfigs
When CONFIG_NUMA is disabled in the kernel, the set_mempolicy system call is not compiled and returns -ENOSYS.
Declare CONFIG_NUMA in the .needs_kconfigs field of struct tst_test. This ensures that the test cleanly skips (TCONF) on kernels built without NUMA support, preventing false TFAIL results.
--- testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c | 4 ++++ 1 file changed, 4 insertions(+)
testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c +4 -0
@@ -115,6 +115,10 @@ static struct tst_test test = { "ppc",NULL }, + .needs_kconfigs = (const char *const []) { +"CONFIG_NUMA" , +NULL + }, .tags = (const struct tst_tag []) { {"linux-git" ,"cf01fb9985e8" }, {"CVE" ,"2017-7616" },
Signature · 5 lines
2.54.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi ALL
Sorry , please ignore this duplicate patch since we already have
https://patchwork.ozlabs.org/project/ltp/patch/[email protected]/
Thanks.
Regards
Gao Wei
Quoted 32 lines · Wei Gao
When
CONFIG_NUMAis disabled in the kernel, theset_mempolicysystem call is not compiled and returns-ENOSYS.Declare
CONFIG_NUMAin the .needs_kconfigs field of structtst_test. This ensures that the test cleanly skips (TCONF) on kernels built without NUMA support, preventing false TFAIL results.Signed-off-by Wei Gao <[email protected]>--- testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c | 4 ++++ 1 file changed, 4 insertions(+)testcases/kernel/syscalls/set_mempolicy/set_mempolicy05.c +4
-1@@ -115,6 +115,10 @@ static struct tst_test test = { "ppc",NULL }, + .needs_kconfigs = (const char *const []) { +"CONFIG_NUMA" , +NULL + }, .tags = (const struct tst_tag []) { {"linux-git" ,"cf01fb9985e8" }, {"CVE" ,"2017-7616" }, --2.54.0
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Wei,
this patch is duplicating what Avinesh was already fixing, so I will wait for his feedback and reject this one.
Regards,
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
[email protected]
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp