/dev/random cleanup

/dev/random cleanup

Post by Oliver Xymoro » Sun, 29 Sep 2002 08:00:06



[resent with current l-k address]

Linus,

The following patches against 2.5.39 clean up the RNG support
substantially. Please pay special attention to the first patch, which
fixes two major bugs in the reseeding logic. They can be easily
demonstrated by running 'cat /dev/random | hexdump' on a quiescent
system. When it blocks, lightly tapping the mouse generates a large
stream of additional output, despite very little entropy being added.

The second and third patches introduce my fixes for the more
theoretical issues and should address all the issues that have been
raised.

The fourth and fifth make the pool and reseeding logic much more clear
and create a new pool for /dev/urandom that avoids starving
/dev/random readers.

Six and seven propagate the new API to the rest of the kernel and
remove dead code.

Please apply.

--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.."
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/