]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit671978d063f13f0dcc6e4b4af643b4b257233bfe
tree3da983c4888bc5b606db9051f2322af27048fa68
parent7aae04a65acc0c90ab6d34e59125ad8639615208
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