Skip to content

random: cleanup of code after removal of nonblocking pool

Stephan Müller linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8random: remove stale maybe_reseed_primary_crngdrivers/char/random.c+0 -70 replies
2/8random: remove stale urandom_init_waitdrivers/char/random.c+0 -10 replies
3/8random: trigger random_ready callback upon crng_init == 1drivers/char/random.c+1 -02 replies
4/8random: remove unused branch in hot code pathdrivers/char/random.c+1 -22 replies
5/8random: remove variable limitdrivers/char/random.c+7 -230 replies
6/8random: fix comment for unused random_min_urandom_seeddrivers/char/random.c+1 -30 replies
7/8random: remove noop function call to xfer_secondary_pooldrivers/char/random.c+0 -11 reply
8/8random: move FIPS continuous test to output functionsdrivers/char/random.c+43 -280 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] random: cleanup of code after removal of nonblocking pool

Hi Ted,

with the removal of the nonblocking_pool, several code paths are now unused which were only applicable to the nonblocking pool. This patch set removes these unused code paths.

Also, a code path in the add_interrupt_randomness function that is never used is removed.

In addition, the FIPS 140-2 continuous self tests are required to process the output data of the RNG given to a caller. A patch is added to cover this requirement.

Ciao
Stephan

Stephan Mueller (8):
random: remove stale maybe_reseed_primary_crng
random: remove stale urandom_init_wait
random: trigger random_ready callback upon crng_init == 1
random: remove unused branch in hot code path
random: remove variable limit
random: fix comment for unused random_min_urandom_seed
random: remove noop function call to xfer_secondary_pool
random: move FIPS continuous test to output functions

 drivers/char/random.c | 118 +++++++++++++++++++++++---------------------------
 1 file changed, 53 insertions(+), 65 deletions(-)
Signature · 1 line
2.9.3