aboutsummaryrefslogtreecommitdiff
path: root/tests/task-size-overrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/task-size-overrun.c')
-rw-r--r--tests/task-size-overrun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/task-size-overrun.c b/tests/task-size-overrun.c
index 0140277..0ab76c7 100644
--- a/tests/task-size-overrun.c
+++ b/tests/task-size-overrun.c
@@ -82,6 +82,10 @@ static unsigned long find_task_size(void)
}
munmap(p, getpagesize());
addr += getpagesize();
+#if defined(__s390x__)
+ if (addr > (1UL << 42) && addr < (1UL << 53))
+ addr = 1UL << 53;
+#endif
}
/* addr wrapped around */
return 0;