]> Pileus Git - ~andy/linux/commit
random: drop trickle mode
authorTheodore Ts'o <tytso@mit.edu>
Thu, 3 Oct 2013 01:10:35 +0000 (21:10 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Oct 2013 18:32:21 +0000 (14:32 -0400)
commit95b709b6be49e4ff3933ef6a5b5e623de2713a71
tree29d560bdef37bafaf732900ec3f14380e4ec0d70
parent6e9fa2c8a630e6d0882828012431038abce285b9
random: drop trickle mode

The add_timer_randomness() used to drop into trickle mode when entropy
pool was estimated to be 87.5% full.  This was important when
add_timer_randomness() was used to sample interrupts.  It's not used
for this any more --- add_interrupt_randomness() now uses fast_mix()
instead.  By elimitating trickle mode, it allows us to fully utilize
entropy provided by add_input_randomness() and add_disk_randomness()
even when the input pool is above the old trickle threshold of 87.5%.

This helps to answer the criticism in [1] in their hypothetical
scenario where our entropy estimator was inaccurate, even though the
measurements in [2] seem to indicate that our entropy estimator given
real-life entropy collection is actually pretty good, albeit on the
conservative side (which was as it was designed).

[1] http://eprint.iacr.org/2013/338.pdf
[2] http://eprint.iacr.org/2012/251.pdf

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
drivers/char/random.c