Re: /dev/random is hot garbage

2019-07-23 Thread Paul.Koning



> On Jul 21, 2019, at 5:03 PM, Joerg Sonnenberger  wrote:
> 
> 
> [EXTERNAL EMAIL] 
> 
> On Sun, Jul 21, 2019 at 08:50:30PM +, paul.kon...@dell.com wrote:
>> /dev/urandom is equivalent to /dev/random if there is adequate entropy,
>> but it will also deliver random numbers not suitable for cryptography before 
>> that time.
> 
> This is somewhat misleading. The problem is that with an unknown entropy
> state, the system cannot ensure that an attacker couldn't predict the
> seed used for the /dev/urandom stream. That doesn't mean that the stream
> itself is bad. It will still pass any statistical test etc.

That's exactly my point.  If you're interested in a statistically high quality 
pseudo-random bit stream, /dev/urandom is a gread source.  But if you need a 
cryptographically strong random number, then you can't safely proceed with an 
unknown entropy state for the reason you stated, which translates into "you 
must use /dev/random".

> Note that with the option of seeding the CPRNG at boot time, a lot of
> the distinction is actually moot.

Yes, if at boot time you get enough entropy then /dev/random is unblocked.  The 
distinction still matters because an application can't know this, so it should 
express its requirements by choosing the correct device.

paul


fallocate for ffs

2019-07-23 Thread APOORV SACHAN
hi!
i am apoorv! I'm interested in working on this project.
fallocate for ffs: https://wiki.netbsd.org/projects/project/ffs-fallocate/
can you direct me further ?
thanks


Re: /dev/random is hot garbage

2019-07-23 Thread Thor Lancelot Simon
On Mon, Jul 22, 2019 at 07:11:34PM +0200, Kamil Rytarowski wrote:
> 
> It looks like we need a paravirt random driver for xen that could solve
> the rust / random(6) problem.

Or just run on a CPU that has RDRAND / RDSEED available.  Our package
builders are old; I'd chip in a few bucks to replace them, if that
helped.

-- 
 Thor Lancelot Simon t...@panix.com
  "Whether or not there's hope for change is not the question.  If you
   want to be a free person, you don't stand up for human rights because
   it will work, but because it is right."  --Andrei Sakharov