mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@turbolabs.com>
To: Ken Brownfield <brownfld@irridia.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Continuing /dev/random problems with 2.4
Date: Fri, 1 Feb 2002 12:57:03 -0700	[thread overview]
Message-ID: <20020201125703.H763@lynx.adilger.int> (raw)
In-Reply-To: <20020201031744.A32127@asooo.flowerfire.com> <1012582401.813.1.camel@phantasy> <a3enf3$93p$1@cesium.transmeta.com> <20020201133833.B8599@asooo.flowerfire.com>
In-Reply-To: <20020201133833.B8599@asooo.flowerfire.com>; from brownfld@irridia.com on Fri, Feb 01, 2002 at 01:38:33PM -0600

On Feb 01, 2002  13:38 -0600, Ken Brownfield wrote:
> Of course, in my case deleting the /dev/random character node still
> doesn't allow entropy to drain in (after at least a month) so I suspect
> the kernel's entropy generation would be sufficient if it didn't
> artificially stall or drain from within the kernel.

Hmm, you may also need to delete /dev/urandom too.  Reading from
/dev/urandom will also deplete the entropy pool just as much as
reading from /dev/random.  The only difference is that /dev/random
will block if there aren't enough bits as requested, while reads
from /dev/urandom will happily continue to return data which isn't
"backed" by any entropy.

You could also enable debugging in drivers/char/random.c to see what
is going on (it may be very verbose).  You could even change the one
message in extract_entropy() to include the command name, like:

	DEBUG_ENT("%s has %d bits, %s wants %d bits\n",
		  r == sec_random_state ? "secondary" :
		  r == random_state ? "primary" : "unknown",
		  current->comm, r->entropy_bits, nbytes * 8);

(not sure of exact usage for current->comm, but you could use ->pid
instead).


Note that even traffic over the network will deplete your entropy
pool, because it is using secure_tcp_sequence_number() and secure_ip_id().
Also, using SYN cookies appears to increase the amount of entropy used.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/


  reply	other threads:[~2002-02-01 19:57 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-01  9:17 Ken Brownfield
2002-02-01 16:36 ` Andreas Dilger
2002-02-01 17:00   ` Ken Brownfield
2002-02-01 16:53 ` Robert Love
2002-02-01 17:01   ` Ken Brownfield
2002-02-04  9:28     ` Sean Hunter
2002-02-01 18:40   ` H. Peter Anvin
2002-02-01 19:38     ` Ken Brownfield
2002-02-01 19:57       ` Andreas Dilger [this message]
2002-02-01 20:22         ` Ken Brownfield
2002-02-01 19:43     ` Andreas Dilger
2002-02-01 20:12       ` H. Peter Anvin
2002-02-01 20:28         ` Jeff Garzik
2002-02-02  1:33           ` David Wagner
2002-02-02  8:01             ` Jeff Garzik
2002-02-04 22:13         ` Bill Davidsen
2002-02-04 22:37           ` Roland Dreier
2002-02-04 22:45           ` Robert Love
2002-02-05 23:02             ` Bill Davidsen
2002-02-05 23:17               ` Robert Love
2002-02-06 16:16                 ` Bill Davidsen
2002-02-06 16:31                   ` Need a clew WRT fig2dev Kirk Reiser
2002-02-06 16:42                     ` Adrian Bunk
2002-02-06 20:40                     ` Jeff Garzik
2002-02-09 19:45                   ` Continuing /dev/random problems with 2.4 Nix N. Nix
2002-02-02  8:54       ` Kai Henningsen
2002-02-02 11:13         ` Andreas Dilger
2002-02-03 12:51       ` Henning P. Schmiedehausen
2002-02-01 19:50     ` Robert Love
2002-02-01 19:52       ` Ken Brownfield
2002-02-01 20:23   ` Peter Monta
2002-02-01 20:27     ` H. Peter Anvin
2002-02-01 20:36       ` Jeff Garzik
2002-02-01 20:33     ` Jeff Garzik
2002-02-01 20:40       ` H. Peter Anvin
2002-02-01 20:54         ` Jeff Garzik
2002-02-01 20:56     ` Peter Monta
2002-02-01 22:54       ` H. Peter Anvin
2002-02-01 23:27       ` Peter Monta
2002-02-02  1:50         ` H. Peter Anvin
2002-02-02  2:05     ` David Wagner
2002-02-02 21:02       ` Martin Dalecki
2002-02-02  3:30     ` Peter Monta
2002-02-04 21:53 Ishan O. Jayawardena

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=20020201125703.H763@lynx.adilger.int \
    --to=adilger@turbolabs.com \
    --cc=brownfld@irridia.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®