opnsense-src/sys/dev/random
Kyle Evans 642701abc8 kern: harvest entropy from callouts
74cf7cae4d ("softclock: Use dedicated ithreads for running callouts.")
switched callouts away from the swi infrastructure.  It turns out that
this was a major source of entropy in early boot, which we've now lost.

As a result, first boot on hardware without a 'fast' entropy source
would block waiting for fortuna to be seeded with little hope of
progressing without manual intervention.

Let's resolve it by explicitly harvesting entropy in callout_process()
if we've handled any callouts.  cc/curthread/now seem to be reasonable
sources of entropy, so use those.

Discussed with:	jhb (also proposed initial patch)
Reported by:	many
Reviewed by:	cem, markm (both csprng)
Differential Revision:	https://reviews.freebsd.org/D34150
2022-02-03 10:05:06 -06:00
..
fenestrasX kern: harvest entropy from callouts 2022-02-03 10:05:06 -06:00
build.sh
darn.c
fortuna.c
fortuna.h
hash.c
hash.h
ivy.c
nehemiah.c nehemiah: manually assemble xstore(-rng) 2021-10-23 02:31:16 +03:00
other_algorithm.c
other_algorithm.h
random_harvestq.c kern: harvest entropy from callouts 2022-02-03 10:05:06 -06:00
random_harvestq.h kern: random: drop read_rate and associated functionality 2021-09-23 01:03:01 -05:00
random_infra.c
randomdev.c randomdev: Remove 100 ms sleep from write routine 2021-11-16 10:27:27 -08:00
randomdev.h
uint128.h
unit_test.c
unit_test.h