summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-12-05 13:31:54 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-12-08 17:41:46 +0000
commitda7a5b5f4df247726806ec7c5ce57d6bf4290a01 (patch)
treea21d86138dc6173b85a29051c783de5849fce060
parent7701243cceeaeabc0852fb20ad80f17389cb1921 (diff)
downloadglibc-da7a5b5f4df247726806ec7c5ce57d6bf4290a01.tar.gz
cheri: malloc: Set __always_fail_morecore
Morello linux does not support brk syscall, so fail early in the malloc implementation instead of trying to use the syscall which always fails.
-rw-r--r--malloc/arena.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 85cc2ad066..c63cb70f74 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -327,6 +327,7 @@ ptmalloc_init (void)
#endif
#ifdef __CHERI_PURE_CAPABILITY__
+ __always_fail_morecore = true;
if (TUNABLE_GET_FULL (glibc, mem, cap_narrowing, int32_t, NULL) == 0)
cap_narrowing_enabled = false;
else