DragonFly BSD
DragonFly kernel List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: kernel: Entropy device is blocking


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jan 2005 16:30:56 +0100
Mail-followup-to: kernel@crater.dragonflybsd.org

On Fri, Jan 28, 2005 at 09:57:49PM +0800, sam wrote:
> Every now and then when I freshly install FreeBSD, I sometimes get an 
> error message saying "kernel: Entropy device blocking" when I turn on 
> sshd in rc.conf file. I have search around in google but coudln't find a 
>  right fix for it.

The problem is that during boot, only a small amount of entropy
is generated. Since sshd depends on full random bits, it can't
and doesn't the normal /dev/urandom. /dev/random can block, if
not enough random bits are available.

I'm not sure what triggers the omission of a normal entropy
level for you. It could happen in a low-irq environment like
pure ramdisks or so, it might be enough to just create some process
doing nothing. Very difficult to say. One idea to find out the 
amount of entropy needed is changing the rc.d script to run
sshd under ktrace and check for the read calls to /dev/random.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]