linux/tools/testing/selftests/mm
Dev Jain 7c942f87cc selftests/mm: fix validate_addr() helper
validate_addr() checks whether the address returned by mmap() lies in the
low or high VA space, according to whether a high addr hint was passed or
not.  The fix commit mentioned below changed the code in such a way that
this function will always return failure when passed high_addr == 1; addr
will be >= HIGH_ADDR_MARK always, we will fall down to "if (addr >
HIGH_ADDR_MARK)" and return failure.  Fix this.

Link: https://lkml.kernel.org/r/20250620111150.50344-1-dev.jain@arm.com
Fixes: d1d86ce28d ("selftests/mm: virtual_address_range: conform to TAP format output")
Signed-off-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Donet Tom <donettom@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-06-25 15:55:04 -07:00
..
page_frag
.gitignore selftests/mm: add simple VM_PFNMAP tests based on mmap'ing /dev/mem 2025-05-22 14:55:36 -07:00
Makefile selftests/mm: add simple VM_PFNMAP tests based on mmap'ing /dev/mem 2025-05-22 14:55:36 -07:00
charge_reserved_hugetlb.sh
check_config.sh
compaction_test.c
config selftests/mm: add configs to fix testcase failure 2025-06-19 20:48:02 -07:00
cow.c selftests/mm: report unique test names for each cow test 2025-05-31 22:46:16 -07:00
droppable.c
guard-regions.c selftests/mm: skip guard_regions.uffd tests when uffd is not present 2025-05-31 22:46:11 -07:00
gup_longterm.c selftests/mm: skip failed memfd setups in gup_longterm 2025-06-11 22:42:34 -07:00
gup_test.c
hmm-tests.c
hugepage-mmap.c
hugepage-mremap.c
hugepage-shm.c
hugepage-vmemmap.c
hugetlb-madvise.c
hugetlb-read-hwpoison.c
hugetlb-soft-offline.c
hugetlb_dio.c
hugetlb_fault_after_madv.c
hugetlb_madv_vs_map.c
hugetlb_reparenting_test.sh selftests/mm: restore default nr_hugepages value during cleanup in hugetlb_reparenting_test.sh 2025-05-11 17:48:29 -07:00
khugepaged.c
ksm_functional_tests.c
ksm_tests.c selftests/mm: extract read_sysfs and write_sysfs into vm_util 2025-06-05 21:55:42 -07:00
madv_populate.c selftests/mm: deduplicate test names in madv_populate 2025-05-31 22:46:13 -07:00
map_fixed_noreplace.c selftests/mm: deduplicate second mmap() of 5*PAGE_SIZE at base 2025-05-22 14:55:37 -07:00
map_hugetlb.c
map_populate.c
mdwe_test.c
memfd_secret.c
merge.c selftests/mm: skip uprobe vma merge test if uprobes are not enabled 2025-06-19 20:48:03 -07:00
migration.c
mkdirty.c
mlock-random-test.c
mlock2-tests.c selftests/mm: deduplicate test logging in test_mlock_lock() 2025-05-31 22:46:08 -07:00
mlock2.h
mrelease_test.c
mremap_dontunmap.c
mremap_test.c
mseal_helpers.h
mseal_test.c
on-fault-limit.c
pagemap_ioctl.c selftests/mm: use long for dwRegionSize 2025-05-12 23:50:37 -07:00
pfnmap.c selftests/mm: two fixes for the pfnmap test 2025-05-31 22:46:14 -07:00
pkey-arm64.h
pkey-helpers.h
pkey-powerpc.h selftests/mm: fix a build failure on powerpc 2025-05-07 23:39:41 -07:00
pkey-x86.h
pkey_sighandler_tests.c
pkey_util.c selftests/mm: fix build break when compiling pkey_util.c 2025-05-07 23:39:41 -07:00
protection_keys.c
run_vmtests.sh selftests/mm: add simple VM_PFNMAP tests based on mmap'ing /dev/mem 2025-05-22 14:55:36 -07:00
settings selftests/mm: increase timeout from 180 to 900 seconds 2025-06-19 20:48:01 -07:00
soft-dirty.c
split_huge_page_test.c
test_hmm.sh
test_page_frag.sh
test_vmalloc.sh
thp_settings.c
thp_settings.h
thuge-gen.c selftests/mm: extract read_sysfs and write_sysfs into vm_util 2025-06-05 21:55:42 -07:00
transhuge-stress.c
uffd-common.c
uffd-common.h
uffd-stress.c
uffd-unit-tests.c mm/selftests: add a test to verify mmap_changing race with -EAGAIN 2025-05-12 23:50:45 -07:00
uffd-wp-mremap.c
va_high_addr_switch.c
va_high_addr_switch.sh selftests/mm: skip hugevm test if kernel config file is not present 2025-05-31 22:46:11 -07:00
virtual_address_range.c selftests/mm: fix validate_addr() helper 2025-06-25 15:55:04 -07:00
vm_util.c selftests/mm: extract read_sysfs and write_sysfs into vm_util 2025-06-05 21:55:42 -07:00
vm_util.h selftests/mm: extract read_sysfs and write_sysfs into vm_util 2025-06-05 21:55:42 -07:00
write_hugetlb_memory.sh
write_to_hugetlbfs.c