public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] cheri: malloc: Set __always_fail_morecore Date: Fri, 9 Dec 2022 12:21:40 +0000 (GMT) [thread overview] Message-ID: <20221209122140.E5ECC383234E@sourceware.org> (raw) 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
reply other threads:[~2022-12-09 12:21 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221209122140.E5ECC383234E@sourceware.org \ --to=nsz@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).