]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[PATCH] random: fix seeding with zero entropy (CVE-2007-2453 2 of 2)
authorMatt Mackall <mpm@selenic.com>
Wed, 30 May 2007 02:58:10 +0000 (21:58 -0500)
committerChris Wright <chrisw@sous-sol.org>
Thu, 7 Jun 2007 21:25:30 +0000 (14:25 -0700)
commit7bd369b1346bf7f15bba42ddf369fb79fe759b50
treeac5ef00387d79a8bf3609f61389d2cb9e8862b93
parent374f167dfb97c1785515a0c41e32a66b414859a8
[PATCH] 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: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/char/random.c