From f1455b557e1fa2d1dbb0aa6efad2c721796bd43f Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 19:19:46 +0000 Subject: Apply patch 0006-tests-map-high-truncate-2-Skip-if-truncation-point-i.patch patch_name: 0006-tests-map-high-truncate-2-Skip-if-truncation-point-i.patch present_in_specfile: true --- diff --git a/tests/map_high_truncate_2.c b/tests/map_high_truncate_2.c index 2a2560b..fc44a13 100644 --- a/tests/map_high_truncate_2.c +++ b/tests/map_high_truncate_2.c @@ -56,6 +56,7 @@ #define TRUNCATE_POINT 0x60000000UL #endif #define HIGH_ADDR 0xa0000000UL +#define FOURGIG ((off64_t)0x100000000ULL) int main(int argc, char *argv[]) { @@ -69,6 +70,12 @@ int main(int argc, char *argv[]) hpage_size = check_hugepagesize(); + if (hpage_size > TRUNCATE_POINT) + CONFIG("Huge page size is too large"); + + if (TRUNCATE_POINT % hpage_size) + CONFIG("Truncation point is not aligned to huge page size"); + check_free_huge_pages(4); fd = hugetlbfs_unlinked_fd();