--- zzzz-none-000/linux-3.10.107/tools/testing/selftests/vm/map_hugetlb.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/tools/testing/selftests/vm/map_hugetlb.c 2021-02-04 17:41:59.000000000 +0000 @@ -73,7 +73,11 @@ write_bytes(addr); ret = read_bytes(addr); - munmap(addr, LENGTH); + /* munmap() length of MAP_HUGETLB memory must be hugepage aligned */ + if (munmap(addr, LENGTH)) { + perror("munmap"); + exit(1); + } return ret; }