public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* /dev/random probs in 2.4test(12-pre3)
@ 2000-12-01 17:26 Matthew Kirkwood
  2000-12-01 18:18 ` H. Peter Anvin
  0 siblings, 1 reply; 28+ messages in thread
From: Matthew Kirkwood @ 2000-12-01 17:26 UTC (permalink / raw)
  To: Theodore Y Ts'o; +Cc: linux-kernel, vpnd

Hi,

It looks like the random driver in 2.4test will return a
short read, rather than blocking.  This is breaking vpnd
(http://sunsite.dk/vpnd/) which breaks with "failed to
gather random data" or similar.

Here's a sample strace:

open("/dev/random", O_RDONLY)           = 3
read(3, "q\321Nu\204\251^\234i\254\350\370\363\"\305\366R\2708V"..., 72) = 29
close(3)                                = 0

Have the semantics of the device changed, or is vpnd doing
something wrong?

Matthew.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: /dev/random probs in 2.4test(12-pre3)
@ 2000-12-01 17:33 folkert
  2000-12-02 11:09 ` Matthew Kirkwood
  0 siblings, 1 reply; 28+ messages in thread
From: folkert @ 2000-12-01 17:33 UTC (permalink / raw)
  To: Matthew Kirkwood, Theodore Y Ts'o, linux-kernel, vpnd

I've seen that happen with kernel version 2.2.16!

> Hi,
> 
> It looks like the random driver in 2.4test will return a
> short read, rather than blocking.  This is breaking vpnd
> (http://sunsite.dk/vpnd/) which breaks with "failed to
> gather random data" or similar.
> 
> Here's a sample strace:
> 
> open("/dev/random", O_RDONLY)           = 3
> read(3, "q\321Nu\204\251^\234i\254\350\370\363\"\305\366R\2708V"..., 72) = 29
> close(3)                                = 0
> 
> Have the semantics of the device changed, or is vpnd doing
> something wrong?
> 
> Matthew.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: vpnd-unsubscribe@sunsite.auc.dk
> For additional commands, e-mail: vpnd-help@sunsite.auc.dk
> 


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2000-12-19 21:52 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-01 17:26 /dev/random probs in 2.4test(12-pre3) Matthew Kirkwood
2000-12-01 18:18 ` H. Peter Anvin
2000-12-02 12:01   ` Matthew Kirkwood
  -- strict thread matches above, loose matches on Subject: below --
2000-12-01 17:33 folkert
2000-12-02 11:09 ` Matthew Kirkwood
2000-12-02 18:58   ` Igmar Palsenberg
2000-12-02 18:03     ` Jeff Garzik
2000-12-02 21:32       ` Igmar Palsenberg
2000-12-02 20:42         ` David Ford
2000-12-02 22:00           ` Albert D. Cahalan
2000-12-02 23:18             ` Theodore Y. Ts'o
2000-12-02 23:34               ` Alexander Viro
2000-12-03  3:01                 ` Theodore Y. Ts'o
2000-12-03 12:20                 ` Andrew Morton
2000-12-03 16:32               ` Igmar Palsenberg
2000-12-03  7:20             ` H. Peter Anvin
2000-12-03  7:41               ` Albert D. Cahalan
2000-12-03 16:25           ` Igmar Palsenberg
2000-12-03 18:52             ` Jeff Garzik
2000-12-03 21:18               ` Igmar Palsenberg
2000-12-03 20:15                 ` David Ford
2000-12-03  7:17         ` H. Peter Anvin
2000-12-19 19:24           ` Kai Henningsen
2000-12-02 21:35       ` Igmar Palsenberg
2000-12-02 20:44         ` David Ford
2000-12-03 16:27           ` Igmar Palsenberg
2000-12-03  7:19         ` H. Peter Anvin
2000-12-03  7:16     ` H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox