random: fix seeding with zero entropy (CVE-2007-2453 2 of 2)
commit46f6fdb65fb9a80fa31ab25c5aad3d150bb7c398
authorMatt Mackall <mpm@selenic.com>
Sat, 6 Oct 2007 22:24:49 +0000 (7 00:24 +0200)
committerAdrian Bunk <bunk@kernel.org>
Sat, 6 Oct 2007 22:24:49 +0000 (7 00:24 +0200)
tree05c06d9108f4fe6cbde7547042cb5fe46cff0800
parent5561123a8a3a55328174164901ef66f7a5ec2130
random: fix seeding with zero entropy (CVE-2007-2453 2 of 2)

Add data from zero-entropy random_writes directly to output pools to
avoid accounting difficulties on machines without entropy sources.

Tested on lguest with all entropy sources disabled.

Signed-off-by: Matt Mackall <mpm@selenic.com>
Acked-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
drivers/char/random.c