From: Siddhesh Poyarekar <siddhesh@sourceware.org>
To: Adhemerval Zanella <adhemerval.zanella@linaro.org>,
Libc-alpha <libc-alpha@sourceware.org>,
Carlos O'Donell <carlos@redhat.com>, DJ Delorie <dj@redhat.com>
Subject: Re: sbrk() failure while processing tunables
Date: Mon, 1 Nov 2021 22:47:34 +0530 [thread overview]
Message-ID: <65280714-a0f4-a649-204d-bf12d0972bb9@sourceware.org> (raw)
In-Reply-To: <ef2c91c0-43ef-8950-c3f9-f046f859f6da@linaro.org>
On 11/1/21 22:24, Adhemerval Zanella wrote:
> And the issue seems that tunables_strdup() does calls srbk() to allocate the new
> string. On a059f9505bbef1 we changed to return a _dl_fatal_printf since BZ#25035
> states that in practice no setting a tunable should not prevent the process
> start.
>
> I commented it with Carlos on the weekly call and he brought that he has discussed
> it internally. My question is there something preventing us to provide a mmap()
> allocator similar to the one used by rtld_malloc to used along with tunables?
>
> I think using an explicit allocator disjointed from rtld_malloc (since it might
> free blocks either in default or error path) should provide a more robust tunables
> experience.
Straight up mmap should be fine I think. AFAICT, we should have to
allocate exactly once, to copy the tunable string.
Thanks,
Siddhesh
next prev parent reply other threads:[~2021-11-01 17:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-01 16:54 Adhemerval Zanella
2021-11-01 17:17 ` Siddhesh Poyarekar [this message]
2021-11-02 19:56 ` Adhemerval Zanella
2021-11-03 3:12 ` Siddhesh Poyarekar
2021-11-03 3:15 ` DJ Delorie
2021-11-03 3:25 ` Siddhesh Poyarekar
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=65280714-a0f4-a649-204d-bf12d0972bb9@sourceware.org \
--to=siddhesh@sourceware.org \
--cc=adhemerval.zanella@linaro.org \
--cc=carlos@redhat.com \
--cc=dj@redhat.com \
--cc=libc-alpha@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: link
Be 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).