All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Anthony Brock <Anthony_Brock@ous.edu>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Problem with /dev/random and rngd daemon
Date: Wed, 1 Jun 2005 16:29:36 -0400	[thread overview]
Message-ID: <20050601202936.GA14652@ccure.user-mode-linux.org> (raw)
In-Reply-To: <s29d94d2.052@ORANGE.OUS.EDU>

On Wed, Jun 01, 2005 at 10:57:59AM -0700, Anthony Brock wrote:
> 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:

> 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".

> 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
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

       reply	other threads:[~2005-06-01 21:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <s29d94d2.052@ORANGE.OUS.EDU>
2005-06-01 20:29 ` Jeff Dike [this message]
2005-06-01 17:57 [uml-devel] Problem with /dev/random and rngd daemon Anthony Brock
  -- strict thread matches above, loose matches on Subject: below --
2005-06-01 17:09 Anthony Brock
2005-06-01 17:37 ` Jeff Dike
2005-06-01 18:25 ` Blaisorblade
2005-06-01 20:42   ` Jeff Dike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050601202936.GA14652@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=Anthony_Brock@ous.edu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.