NetBSD-Bugs archive

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

Re: kern/48028: Read from /dev/random hangs



The following reply was made to PR kern/48028; it has been noted by GNATS.

From: Aran Clauson <aran%otsys.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/48028: Read from /dev/random hangs
Date: Wed, 10 Jul 2013 09:05:46 -0700 (PDT)

 >  Did it hang before a kernel update?  If so, when was your previous
 >  kernel from?
 >  
 >  Does banging on the keyboard like a monkey unwedge the system?
 >  
 >  What entropy sources do you have on your system (rndctl -l)?
 >  
 >  Is this in the usual /etc/rc.d/cgd -- that is, for a device listed in
 >  /etc/cgd/cgd.conf?  If not, how are you invoking cgdconfig?
 >  
 >  Did you have an entropy file (/var/db/entropy-file)?  (Note that
 >  /etc/rc.d/rndctl will delete it on boot, and recreate it on shutdown
 >  -- if shutdown is clean.)
 >  
 >  Can you try using a kernel with options RND_DEBUG and RND_VERBOSE?
 >  
 The kernel build from 
 
 $ cvs -q up -dP -D '07/01/2013' 
 
 works just fine.  Kernel build from 
 
 $ cvs -q up -dP -D '07/02/2013' 
 
 hangs on cgdconfig at boot.  My current kernel source is from 07/07/2013 with
 the same behavior as 07/02. 
 
 I am trying to read from /dev/random while I write this email.  I'm still
 waiting...  It took 1m25.524s.  
 
 $ rndctl -l 
 
 Source                 Bits Type      Flags
 cd0                       0 disk estimate, collect
 wd0                   15816 disk estimate, collect
 cpu3                    545 vm   estimate, collect
 cpu2                    165 vm   estimate, collect
 cpu1                    154 vm   estimate, collect
 cpu0                   1926 vm   estimate, collect
 coretemp1-cpu2          839 env  estimate, collect
 coretemp0-cpu0          718 env  estimate, collect
 wm0                       0 net  
 pms0                  36559 tty  estimate, collect
 pckbd0                 4317 tty  estimate, collect
 acpitz0-cpu0/cp          12 env  estimate, collect
 thinkpad0-fan-s          21 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe           0 env  estimate, collect
 thinkpad0-tempe          51 env  estimate, collect
 acpibat0-discha           0 env  estimate, collect
 acpibat0-charge           0 env  estimate, collect
 system-power              1 power estimate, collect
 callout                   0 skew collect
 
 
 I have to cgd devices.  One has a fixed key and contains my normal file 
systems.
 The other uses a random key and contains my swap space.  Basically I followed
 the how to in the cgd manual.  
 
 I'm not sure how to check if I have an entropy-file.  This, however, may be the
 problem.  /var is one of the cgd filesystems.  
 
 I will build a new kernel with these two options and report back.
 
 
 Aran
 


Home | Main Index | Thread Index | Old Index