From: "Theodore Ts'o" <tytso@mit.edu>
To: Denys Vlasenko <vda.linux@googlemail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
"H. Peter Anvin" <hpa@linux.intel.com>,
Denys Vlasenko <dvlasenk@redhat.com>
Subject: Re: random: /dev/random often returns short reads
Date: Tue, 17 Jan 2017 12:15:39 -0500 [thread overview]
Message-ID: <20170117171539.dadciiz2kfjtqrfk@thunk.org> (raw)
In-Reply-To: <CAK1hOcMmmbt8SMBefbG265fp9OzoV47UH3j67EL06HnxbWoAkQ@mail.gmail.com>
On Tue, Jan 17, 2017 at 09:21:31AM +0100, Denys Vlasenko wrote:
> > If someone wants to send me a patch, I'll happily take a look at it,
>
> Will something along these lines be accepted?
The problem is that this won't work. In the cases that we're talking
about, the entropy counter in the secondary pool is not zero, but
close to zero, we'll still have short reads. And that's going to
happen a fair amount of the time.
Perhaps the best *hacky* solution would be to say, ok if the entropy
count is less than some threshold, don't use the correct entropy
calculation, but rather assume that all of the new bits won't land on
top of existing entropy bits. It undoes some of Peter's very careful
and accurate calculations (so I'd like Peter's thoughts), but in
reality, very few people use /dev/random these days except for GPG and
people hacking OpenSSL for FIPS certification so they can feed at at
the US Federal Government's trough.
I'm not sure I care *that* much, but then I think FIPS certification
is a complete waste of Taxpayer dollars, so it's not something I care
a whole lot about fixing, either. :-)
- Ted
next prev parent reply other threads:[~2017-01-17 17:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-16 18:50 Denys Vlasenko
2017-01-16 18:52 ` Denys Vlasenko
2017-01-17 4:36 ` Theodore Ts'o
2017-01-17 8:21 ` Denys Vlasenko
2017-01-17 17:15 ` Theodore Ts'o [this message]
2017-01-17 17:34 ` Denys Vlasenko
2017-01-17 22:29 ` H. Peter Anvin
2017-01-17 23:41 ` Theodore Ts'o
2017-01-18 1:54 ` H. Peter Anvin
2017-01-18 15:44 ` Denys Vlasenko
2017-01-18 18:07 ` Theodore Ts'o
2017-01-19 21:45 ` Denys Vlasenko
2017-01-20 3:17 ` H. Peter Anvin
2017-02-15 17:55 ` Denys Vlasenko
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=20170117171539.dadciiz2kfjtqrfk@thunk.org \
--to=tytso@mit.edu \
--cc=dvlasenk@redhat.com \
--cc=hpa@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vda.linux@googlemail.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
all inboxes | Powered by JetHome®