hwrng: core - zeroize buffers with random data
authorStephan Mueller <smueller@chronox.de>
Sat, 22 Oct 2016 13:57:05 +0000 (15:57 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 1 Nov 2016 00:37:10 +0000 (08:37 +0800)
commit2cc751545854d7bd7eedf4d7e377bb52e176cd07
tree3da983c4888bc5b606db9051f2322af27048fa68
parentd7db7a882debaffc78f91aabedee973aa1f73390
hwrng: core - zeroize buffers with random data

The HWRNG core allocates two buffers during initialization which are
used to obtain random data. After that data is processed, it is now
zeroized as it is possible that the HWRNG core will not be asked to
produce more random data for a long time. This prevents leaving such
sensitive data in memory.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c