Commit a8a56d2e authored by Stephan Müller's avatar Stephan Müller Committed by William McVicker
Browse files

UPSTREAM: crypto: jitter - use permanent health test storage



The health test result in the current code is only given for the currently
processed raw time stamp. This implies to react on the health test error,
the result must be checked after each raw time stamp being processed. To
avoid this constant checking requirement, any health test error is recorded
and stored to be analyzed at a later time, if needed.

This change ensures that the power-up test catches any health test error.
Without that patch, the power-up health test result is not enforced.

The introduced changes are already in use with the user space version of
the Jitter RNG.

Fixes: 04597c8d ("jitter - add RCT/APT support for different OSRs")
Reported-by: default avatarJoachim Vandersmissen <git@jvdsn.com>
Signed-off-by: default avatarStephan Mueller <smueller@chronox.de>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>

(cherry picked from commit cf27d947)
Bug: 425813935
Change-Id: I7721efbb69d3ccd8db400e0610468f1f511e1e02
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent ede62837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment