From da7a5b5f4df247726806ec7c5ce57d6bf4290a01 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 5 Dec 2022 13:31:54 +0000 Subject: 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. --- malloc/arena.c | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1