Skip to contentSkip to conversation

Problem with /dev/random and rngd daemon

uml-devel Jeff Dike 1 participant 1 message Jun 1, 2005 1 message not in the archive User-mode Linux (UML)

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jeff Dike

author
#1 lore raw
Quoted 2 lines · Anthony Brock

I'm wondering if the first host to launch is exhausting the entropy pool and the second host is attempting to read from an empty pool.

The strace would seem to bear this out:

Quoted 8 lines

open("/dev/hwrng", O_RDONLY) = 3
rt_sigaction(SIGALRM, {0x400267a0, [], 0}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [ALRM], NULL, 8) = 0
alarm(10) = 0
read(3, 0xbfb50380, 4) = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn() = ? (mask now [RTMIN])
exit_group(1) = ?

This looks to me like "read from hwrng, but give up after 10 seconds if nothing happens".

Quoted 2 lines

If this is the case, then I have no idea how you could resolve this with multiple UML instances per host.

Can you read /dev/random on the host directly during this time? If not, and you are out of entropy, I would say you need to find a source of more of it.

Jeff

-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel