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
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
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
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
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
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
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
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
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
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
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
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,
>
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
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
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
15 matches
Mail list logo