/dev/urandom uses uninit bytes, leaks user data

From: Matti Linnanvuori
Date: Sat Dec 15 2007 - 02:27:21 EST


From: Matti Linnanvuori <mattilinnnvuori@xxxxxxxxx>

/dev/urandom use no uninit bytes, leak no user data

Signed-off-by: Matti Linnanvuori <mattilinnnvuori@xxxxxxxxx>

---

--- a/drivers/char/random.c 2007-12-15 09:09:37.895414000 +0200
+++ b/drivers/char/random.c 2007-12-15 09:12:02.607831500 +0200
@@ -689,7 +689,7 @@ static ssize_t extract_entropy(struct en
*/
static void xfer_secondary_pool(struct entropy_store *r, size_t nbytes)
{
- __u32 tmp[OUTPUT_POOL_WORDS];
+ static __u32 tmp[OUTPUT_POOL_WORDS];

if (r->pull && r->entropy_count < nbytes * 8 &&
r->entropy_count < r->poolinfo->POOLBITS) {




Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/