Centos-kernel-stream-9/tools/testing
Augusto Caringi f1570787e4 Merge: selftests/mm: resolve virtual_address_range test fail on rhel-9.6
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-9/-/merge_requests/6781

JIRA: https://issues.redhat.com/browse/RHEL-88165

Tested: by me, using RHEL-9.6 s390x and aarch64 arches.

This is a bunch of backports to resolve virtual_address_range test fail on rhel9:

```
3bd6137220bb selftests/mm: virtual_address_range: avoid reading from VM_IO mappings
3c479b5dc60b selftests/mm: vm_util: split up /proc/self/smaps parsing
391e86971161 mm: selftest to verify zero-filled pages are mapped to zeropage
b2a79f62133a selftests/mm: virtual_address_range: unmap chunks after validation
a005145b9c96 selftests/mm: virtual_address_range: mmap() without PROT_WRITE
e847f8cd96ae selftest/mm: fix typo in virtual_address_range
86483f8b4e8d selftests: add ksft_exit_fail_perror()
```

Considering the __get_smap_entry is called by check_vmflag_io() and new ksft_exit_fail_perror() is needed by mark_range(), we have to additionally backport a few more commits (3c479b5dc60b, 391e86971161, 86483f8b4e8d) to resolve the compiling error on RHEL9.

Conflicts:
- 86483f8b4e8d: Minor merge conflict of ksft_exit_fail_perror(), no functional changes.
- 3bd6137220bb: Minor merge conflict of check_vmflag_io(), no functional changes.
- 391e86971161: Dropped updates to split_huge_page_test.c (split_pmd_zero_pages() not needed).

Omitted-fix: 136c5b40e0ad ("selftests/mm: use selftests framework to print test result")

Signed-off-by: Li Wang <liwang@redhat.com>

Approved-by: Rafael Aquini <raquini@redhat.com>
Approved-by: Waiman Long <longman@redhat.com>
Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com>

Merged-by: Augusto Caringi <acaringi@redhat.com>
2025-06-11 12:50:22 -03:00
..
crypto/chacha20-s390
cxl cxl/test: Update test code for event records to CXL spec rev 3.1 2025-05-27 13:30:19 -04:00
fault-injection
ktest
kunit landlock: Add support for KUnit tests 2025-02-07 17:06:38 -05:00
memblock
nvdimm
radix-tree
scatterlist
selftests Merge: selftests/mm: resolve virtual_address_range test fail on rhel-9.6 2025-06-11 12:50:22 -03:00
vsock