Re: [PATCH] kunit: Device wrappers should also manage driver name

2024-08-05 Thread Nico Pache
stant. > > This fixes a KASAN splat with overflow.overflow_allocation_test, when > built as a module. > > Fixes: d03c720e03bd ("kunit: Add APIs for managing devices") > Reported-by: Nico Pache Hi David, This is failing in the Fedora-ark build process [1] which builds the

[PATCH v2] selftests: mm: add s390 to ARCH check

2024-07-24 Thread Nico Pache
due to the ARCH variable already being set and the arch folder name being s390. Add "s390" to the filtered list to cover this case and have the 3 files included in the build. Fixes: 0518dbe97fe6 ("selftests/mm: fix cross compilation with LLVM") Cc: sta...@kernel.org Cc: Mark Br

[PATCH] selftests: mm: add s390 to ARCH check

2024-07-24 Thread Nico Pache
When compiling with ARCH already set, the s390x ARCH is actually s390. Add s390 to the ARCH check list, so we can properly build selftests for s390. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools

[PATCH v2 0/3] selftests/mm: Improve Hugepage Test Handling in MM Selftests

2024-03-06 Thread Nico Pache
failures and improving the overall robustness of the test suite. Nico Pache (3): selftests/mm: Dont fail testsuite due to a lack of hugepages selftests/mm: Skip uffd hugetlb tests with insufficient hugepages selftests/mm: Skip the hugetlb-madvise tests on unmet hugepage requirements

[PATCH v2 3/3] selftests/mm: Skip the hugetlb-madvise tests on unmet hugepage requirements

2024-03-06 Thread Nico Pache
Now that run_vmtests.sh does not guarantee that the correct hugepage count is available, skip the hugetlb-madvise test if the requirements are not met rather than failing. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/hugetlb-madvise.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH v2 2/3] selftests/mm: Skip uffd hugetlb tests with insufficient hugepages

2024-03-06 Thread Nico Pache
Now that run_vmtests.sh does not guarantee that the correct hugepage count is available, add a check inside the userfaultfd hugetlb test to verify the nr_hugepages count before continuing. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/uffd-stress.c | 6 ++ 1 file changed, 6

[PATCH v2 1/3] selftests/mm: Dont fail testsuite due to a lack of hugepages

2024-03-06 Thread Nico Pache
it to prevent this. Fixes: ee00479d6702 ("selftests: vm: Try harder to allocate huge pages") Signed-off-by: Nico Pache --- tools/testing/selftests/mm/run_vmtests.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm

Re: [PATCH] selftests/mm: Dont fail testsuite due to a lack of hugepages

2024-03-04 Thread Nico Pache
On Fri, Mar 1, 2024 at 2:35 AM Muhammad Usama Anjum wrote: > > On 3/1/24 12:33 PM, Nico Pache wrote: > > On systems that have large core counts and large page sizes, but limited > > memory, the userfaultfd test hugepage requirement is too large. > > > > Exiting e

[PATCH] selftests/mm: Dont fail testsuite due to a lack of hugepages

2024-02-29 Thread Nico Pache
it to prevent this. Fixes: ee00479d6702 ("selftests: vm: Try harder to allocate huge pages") Signed-off-by: Nico Pache --- tools/testing/selftests/mm/run_vmtests.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm

Re: [PATCH v2] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-22 Thread Nico Pache
Hi Andrew, No, I think it's always been broken-- I don't think the test was written with 512M huge page sizes in mind. -- Nico On Sat, Jan 20, 2024 at 9:39 PM Andrew Morton wrote: > > On Fri, 19 Jan 2024 06:14:29 -0700 Nico Pache wrote: > > > On systems with 64k pag

[PATCH v2] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-19 Thread Nico Pache
hugepage aligned. Fix this by making the mapping length the full hugepage if the hugepage is larger than the length of the mapping. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/map_hugetlb.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/mm

Re: [PATCH] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-19 Thread Nico Pache
NACK. I accidentally sent an older version of this patch. Following up with V2. On Fri, Jan 19, 2024 at 5:58 AM Nico Pache wrote: > > On systems with 64k page size and 512M huge page sizes, the allocation > and test succeeds but errors out at the munmap. As the comment states, >

[PATCH] selftests: mm: fix map_hugetlb failure on 64K page size systems

2024-01-19 Thread Nico Pache
hugepage aligned. Fix this by making the mapping length the full hugepage if the hugepage is larger than the length of the mapping. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/map_hugetlb.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/tools/testing/selftests/mm

[PATCH] selftests: mm: Perform some system cleanup before using hugepages

2024-01-17 Thread Nico Pache
at a successful hugepage allocation. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/run_vmtests.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/testing/selftests/mm/run_vmtests.sh b/tools/testing/selftests/mm/run_vmtests.sh index 246d53a5d7f2..040f27e21f47 100755

[PATCH] selftests/mm: prevent duplicate runs caused by TEST_GEN_PROGS

2023-11-20 Thread Nico Pache
apper also executing them. Fix the definition of two tests (soft-dirty and pagemap_ioctl) that are still incorrectly defined. Signed-off-by: Nico Pache --- tools/testing/selftests/mm/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/Makefil