On Thu, Sep 22, 2022 at 03:59:31PM +0200, Dominik Brodowski wrote: > 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@xxxxxxxxxxxxxxxxxxx> > Cc: Jason A. Donenfeld <Jason@xxxxxxxxx> > Signed-off-by: Dominik Brodowski <linux@xxxxxxxxxxxxxxxxxxxx> > --- > Thanks to Jason for splitting my v1 into two parts, as per Herbert's > request. In comparison to v2, I've updated (and shortened) the commit > message. Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt