summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2022-09-22 15:59:31 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2022-09-30 13:59:12 +0800
commitb006c439d58db625318bf2207feabf847510a8a6 (patch)
treec8f96d6e00fe791fe54c787d2dacd274e1598318 /sound
parent4edff849f7a0abca962374512907b3e2151091f4 (diff)
downloadlinux-stable-b006c439d58db625318bf2207feabf847510a8a6.tar.gz
linux-stable-b006c439d58db625318bf2207feabf847510a8a6.tar.bz2
linux-stable-b006c439d58db625318bf2207feabf847510a8a6.zip
hwrng: core - start hwrng kthread also for untrusted sources
Start the hwrng kthread even if the hwrng source has a quality setting of zero. Then, every crng reseed interval, one batch of data from this zero-quality hwrng source will be mixed into the CRNG pool. This patch is based on the assumption that data from a hwrng source will not actively harm the CRNG state. Instead, many hwrng sources (such as TPM devices), even though they are assigend a quality level of zero, actually provide some entropy, which is good enough to mix into the CRNG pool every once in a while. Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions