From: Florian Weimer <fweimer@redhat.com>
To: Zack Weinberg <zackw@panix.com>, Joseph Myers <joseph@codesourcery.com>
Cc: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: Remove add-ons mechanism
Date: Fri, 29 Sep 2017 11:04:00 -0000 [thread overview]
Message-ID: <04a26ee0-1b14-2949-1cae-6e318525d87c@redhat.com> (raw)
In-Reply-To: <CAKCAbMjrESb7_3=9ueuMKWeHwBJ9q_8_TdtojPejNPCr3JEUrw@mail.gmail.com>
On 09/29/2017 12:01 AM, Zack Weinberg wrote:
> On Thu, Sep 28, 2017 at 1:49 PM, Joseph Myers <joseph@codesourcery.com> wrote:
>>
>> Add-ons involve significant, little-used complexity in the glibc build
>> system, and make it hard to understand what the space of possible
>> glibc configurations is. This patch removes the add-ons mechanism.
>
> I don't disagree with this patch exactly, but I was thinking of using
> the add-ons mechanism to prototype a CSPRNG addition to glibc
I've got something towards an implementation of arc4random (not
certifiable, but it should be unpredictable in practice).
I think I found a way to do full fork protection even without
MADV_WIPEONFORK, using a global counter in a MAP_SHARED segment.
Reseeding is still needed to deal with a counter overflow on 32-bit
architectures, and there is some overhead by the globally shared
counter, but I think it is superior to all approaches I've seen so far
(and it does not require a fork handler or a system call for every
random number generation).
Thanks,
Florian
next prev parent reply other threads:[~2017-09-29 11:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-28 17:49 Joseph Myers
2017-09-28 22:01 ` Zack Weinberg
2017-09-28 22:38 ` Joseph Myers
2017-09-29 11:04 ` Florian Weimer [this message]
2017-09-30 6:35 ` Florian Weimer
2017-09-30 21:42 ` Joseph Myers
2017-10-05 10:39 ` Andreas K. Huettel
2017-10-05 11:07 ` Florian Weimer
2017-10-05 12:54 ` Joseph Myers
2017-10-05 13:16 ` libcidn (was: Re: Remove add-ons mechanism) Andreas K. Huettel
2017-10-05 13:39 ` libcidn Andreas Schwab
2017-10-05 13:40 ` libcidn Florian Weimer
2017-10-05 21:11 ` Remove add-ons mechanism Andreas K. Huettel
2017-10-05 21:30 ` Joseph Myers
2017-10-05 15:59 ` Joseph Myers
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=04a26ee0-1b14-2949-1cae-6e318525d87c@redhat.com \
--to=fweimer@redhat.com \
--cc=joseph@codesourcery.com \
--cc=libc-alpha@sourceware.org \
--cc=zackw@panix.com \
/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).