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
Makefile
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
droppable.c
guard-regions.c
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
khugepaged.c
ksm_functional_tests.c
ksm_tests.c
madv_populate.c
map_fixed_noreplace.c
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
mlock2.h
mrelease_test.c
mremap_dontunmap.c
mremap_test.c
mseal_helpers.h
mseal_test.c
on-fault-limit.c
pagemap_ioctl.c
pfnmap.c
pkey-arm64.h
pkey-helpers.h
pkey-powerpc.h
pkey-x86.h
pkey_sighandler_tests.c
pkey_util.c
protection_keys.c
run_vmtests.sh
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
transhuge-stress.c
uffd-common.c
uffd-common.h
uffd-stress.c
uffd-unit-tests.c
uffd-wp-mremap.c
va_high_addr_switch.c
va_high_addr_switch.sh
virtual_address_range.c selftests/mm: fix validate_addr() helper 2025-06-25 15:55:04 -07:00
vm_util.c
vm_util.h
write_hugetlb_memory.sh
write_to_hugetlbfs.c