[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <977119.41267.qm@web52005.mail.re2.yahoo.com>
Date: Fri, 14 Dec 2007 23:20:30 -0800 (PST)
From: Matti Linnanvuori <mattilinnanvuori@...oo.com>
To: linux-kernel@...r.kernel.org
Subject: /dev/urandom uses uninit bytes, leaks user data
From: Matti Linnanvuori <mattilinnnvuori@...oo.com>
/dev/urandom use no uninit bytes, leak no user data
Signed-off-by: Matti Linnanvuori <mattilinnnvuori@...oo.com>
---
--- 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists