[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120531105453.GA6266@gondor.apana.org.au>
Date: Thu, 31 May 2012 20:54:53 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Peter Korsgaard <jacmet@...site.dk>
Cc: nicolas.ferre@...el.com, jamie@...ieiles.com,
linux-kernel@...r.kernel.org, GPontis@...com,
stable@...r.kernel.org
Subject: Re: [PATCH] hw_random: atmel-rng: fix race condition leading to
repeated bits
On Fri, May 25, 2012 at 11:12:38AM +0200, Peter Korsgaard wrote:
> Data valid gets cleared by reading the ISR (status register) and NOT from
> reading ODATA (data register). A new data word can become available between
> checking ISR and reading ODATA, causing us to reuse the same data word next
> time atmel_trng_read() gets called, if that happens before the following
> data word is ready.
Patch applied crypto. Thanks!
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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