Skip to content

selftests/mm: Fix false positives and skip unsupported tests

Aboorva Devarajan linux-kselftest linux-mm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 13 repliesIn review
  2. v37 patches 13 repliesSuperseded
  3. v27 patches 26 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v16 patches40 repliesSuperseded

Changes in v4 from the cover letter

- Rebased onto the latest mm-new branch, top commit of the base is commit 916e1f041670 ("drivers/base: move memory_block_add_nid() into the caller"). Dropped the v3 patches that had already been merged and re-applied them to the mm-new branch.
- Only Patch 4 is updated to address review comments, all other patches remain unchanged from v3.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7mm/selftests: Fix incorrect pointer being passed to mark_range()tools/testing/selftests/mm/virtual_address_range.c+1 -11 reply
2/7selftests/mm: Add support to test 4PB VA on PPC64tools/testing/selftests/mm/virtual_address_range.c+11 -01 reply
3/7selftest/mm: Fix ksm_funtional_test failurestools/testing/selftests/mm/ksm_functional_tests.c+11 -11 reply
4/7mm/selftests: Fix split_huge_page_test failure on systems with 64KB page sizetools/testing/selftests/mm/cow.c tools/testing/selftests/mm/split_huge_page_test.c tools/testing/selftests/mm/uffd-wp-mremap.c +1 more+19 -1810 replies
5/7selftests/mm: fix child process exit codes in ksm_functional_teststools/testing/selftests/mm/ksm_functional_tests.c+9 -72 replies
6/7selftests/mm: skip thuge-gen test if system is not setup properlytools/testing/selftests/mm/thuge-gen.c+7 -41 reply
7/7selftests/mm: skip hugepage-mremap test if userfaultfd unavailabletools/testing/selftests/mm/hugepage-mremap.c+13 -31 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchDev JainDavid HildenbrandZi YanWei Yang
1/7R-b A-b R-b R-b
2/7R-b A-b R-b R-b
3/7R-b
4/7R-b R-b R-b
5/7A-b R-b
6/7R-b A-b R-b R-b
7/7A-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/7] selftests/mm: Fix false positives and skip unsupported tests

Hi all,

This patch series addresses false positives in the generic mm selftests and skips tests that cannot run correctly due to missing features or system limitations.

v3: https://lore.kernel.org/all/[email protected]/

Changes in v4:

- Rebased onto the latest mm-new branch, top commit of the base is commit 916e1f041670 ("drivers/base: move memory_block_add_nid() into the caller"). Dropped the v3 patches that had already been merged and re-applied them to the mm-new branch.
- Only Patch 4 is updated to address review comments, all other patches remain unchanged from v3.

---

v2: https://lore.kernel.org/all/[email protected]/

Changes in v3:

- Rebased onto the latest mm-new branch, top commit of the base is commit 0709ddf8951f ("mm: add zblock allocator").
- Minor refactor based on the review comments.
- Included the tags from the previous version.

---

v1: https://lore.kernel.org/all/[email protected]/

Changes in v2:

- Rebased onto the mm-new branch, top commit of the base is commit 3b4a8ad89f7e ("mm: add zblock allocator").
- Split some patches for clarity.
- Updated virtual_address_range test to support testing 4PB VA on PPC64.
- Added proper Fixes: tags.
- Included a patch to skip a failing userfaultfd test when unsupported,
instead of reporting a failure.

---

Please let us know if you have any further comments.

Thanks,
Aboorva

Aboorva Devarajan (3):
selftests/mm: fix child process exit codes in ksm_functional_tests selftests/mm: skip thuge-gen test if system is not setup properly selftests/mm: skip hugepage-mremap test if userfaultfd unavailable

Donet Tom (4):
mm/selftests: Fix incorrect pointer being passed to mark_range() selftests/mm: Add support to test 4PB VA on PPC64 selftest/mm: Fix ksm_funtional_test failures mm/selftests: Fix split_huge_page_test failure on systems with 64KB
page size

 tools/testing/selftests/mm/cow.c              |  5 ----
 tools/testing/selftests/mm/hugepage-mremap.c  | 16 +++++++++--
 .../selftests/mm/ksm_functional_tests.c       | 28 +++++++++++++------
 .../selftests/mm/split_huge_page_test.c       | 22 +++++++++------
 tools/testing/selftests/mm/thuge-gen.c        | 11 +++++---
 tools/testing/selftests/mm/uffd-wp-mremap.c   |  5 ----
 .../selftests/mm/virtual_address_range.c      | 13 ++++++++-
 tools/testing/selftests/mm/vm_util.h          |  5 ++++
 8 files changed, 71 insertions(+), 34 deletions(-)
Signature · 1 line
2.47.1