Re: /dev/random issue

2020-10-02 Thread Thor Lancelot Simon
On Thu, Oct 01, 2020 at 06:11:20PM +0200, Martin Husemann wrote: > On Thu, Oct 01, 2020 at 05:57:12PM +0200, Manuel Bouyer wrote: > > Source Bits Type Flags > > /dev/random 0 ??? estimate, collect, v > [..] > > seed 0 ??? estimate, collect,

Re: /dev/random issue

2020-10-01 Thread Taylor R Campbell
> Date: Thu, 1 Oct 2020 18:30:29 +0200 > From: Manuel Bouyer > > that doens't explain why the other sources of entropy, which were working > bedore, are not working any more. They are working exactly as well as they did before. What is different is that NetBSD is no longer lying to you about

Re: /dev/random issue

2020-10-01 Thread Robert Elz
Date:Thu, 1 Oct 2020 18:57:12 +0200 From:Manuel Bouyer Message-ID: <20201001165712.ga1...@antioche.eu.org> | which, basically. means that one should not use reboot, halt or poweroff | any more ... And of course, the system must never cash, hang, or suffer a

Re: /dev/random issue

2020-10-01 Thread Tobias Nygren
On Thu, 1 Oct 2020 18:57:12 +0200 Manuel Bouyer wrote: > > > OK. But how is it preserved across reboot ? Where does the kernel stores > > > it ? > > > > Shutdown process will store a new seed file > > ha OK, so it's preserved on shutdown(8), not reboot(2) > > which, basically. means that

Re: /dev/random issue

2020-10-01 Thread Manuel Bouyer
On Thu, Oct 01, 2020 at 09:39:18AM -0700, Paul Goyette wrote: > > > > > On another machine with working random number generator (nearly all > > > modernish > > > amd64 machines have that) do: > > > > > > dd if=/dev/random of=/tmp/file bs=32 count=1 > > > > > > then scp the file over and dd

Re: /dev/random issue

2020-10-01 Thread Martin Husemann
On Thu, Oct 01, 2020 at 06:30:29PM +0200, Manuel Bouyer wrote: > that doens't explain why the other sources of entropy, which were working > bedore, are not working any more. I'll let Taylor explain that in more details (my own memorized management summary: they used to lie and now don't - but

Re: /dev/random issue

2020-10-01 Thread Paul Goyette
On another machine with working random number generator (nearly all modernish amd64 machines have that) do: dd if=/dev/random of=/tmp/file bs=32 count=1 then scp the file over and dd it into /dev/random: dd if=/tmp/file of=/dev/random bs=32 count=1 This will be preserved

Re: /dev/random issue

2020-10-01 Thread Manuel Bouyer
On Thu, Oct 01, 2020 at 06:11:20PM +0200, Martin Husemann wrote: > On Thu, Oct 01, 2020 at 05:57:12PM +0200, Manuel Bouyer wrote: > > Source Bits Type Flags > > /dev/random 0 ??? estimate, collect, v > [..] > > seed 0 ??? estimate, collect,

Re: /dev/random issue

2020-10-01 Thread Martin Husemann
On Thu, Oct 01, 2020 at 05:57:12PM +0200, Manuel Bouyer wrote: > Source Bits Type Flags > /dev/random 0 ??? estimate, collect, v [..] > seed 0 ??? estimate, collect, v No random number generator and you did not seed the machine. On

/dev/random issue

2020-10-01 Thread Manuel Bouyer
Hello, I just got what looks like a /dev/random issue on HEAD. A python process, part of the glib2 build, hangs on entropy. I have enabled all the possible sources but rndctl show '0' for everything: Source Bits Type Flags /dev/random 0 ??? estimate, collect, v