lkml.org 
[lkml]   [2021]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/3] crypto: jitterentropy - bound collection loop
On Tue, Nov 30, 2021 at 03:10:06PM +0100, Nicolai Stange wrote:
> Hi,
>
> the sampling loop in jent_gen_entropy() can potentially run indefinitely
> w/o making any forward progress, namely if only stuck samples are taken
> for whatever reason.
>
> There's a straight-forward way to make the entropy collection more robust,
> namely to terminate the loop and report an error if this happens. This
> patchset here implements that.
>
> Applies to herbert/cryptodev-2.6.git master.
>
> Thanks!
>
> Nicolai
>
> Nicolai Stange (3):
> crypto: drbg - ignore jitterentropy errors if not in FIPS mode
> crypto: jitter - don't limit ->health_failure check to FIPS mode
> crypto: jitter - quit sample collection loop upon RCT failure
>
> crypto/drbg.c | 7 +++++--
> crypto/jitterentropy-kcapi.c | 6 ------
> crypto/jitterentropy.c | 6 +-----
> crypto/jitterentropy.h | 1 -
> 4 files changed, 6 insertions(+), 14 deletions(-)
>
> --
> 2.26.2

All applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

\
 
 \ /
  Last update: 2021-12-11 06:57    [W:0.069 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site