]> 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)
commit3c0db3ec608d399b0590d8b2274a931fc3c19a82
tree3da983c4888bc5b606db9051f2322af27048fa68
parentb85a56fc02841269f8f4e36d5879216d94a75427
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