public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/arm/morello/main] cheri: malloc: Set __always_fail_morecore
@ 2022-12-09 12:21 Szabolcs Nagy
  0 siblings, 0 replies; only message in thread
From: Szabolcs Nagy @ 2022-12-09 12:21 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=da7a5b5f4df247726806ec7c5ce57d6bf4290a01

commit da7a5b5f4df247726806ec7c5ce57d6bf4290a01
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Mon Dec 5 13:31:54 2022 +0000

    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.

Diff:
---
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-09 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09 12:21 [glibc/arm/morello/main] cheri: malloc: Set __always_fail_morecore Szabolcs Nagy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).