diff options
author | Dev Jain <dev.jain@arm.com> | 2025-06-20 16:41:50 +0530 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2025-06-25 15:55:04 -0700 |
commit | 7c942f87cc0be5699b1ce434d369eccd8b5321d4 (patch) | |
tree | f3747772f8ad99116fe2418e1c324a823fcbd291 /scripts/lib/kdoc/kdoc_parser.py | |
parent | b6f5e748587063d4ad3294d07ca29886851d9cd7 (diff) |
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: d1d86ce28d0f ("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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions