diff options
author | 2013-11-11 22:45:20 -0800 | |
---|---|---|
committer | 2013-11-11 23:05:49 -0800 | |
commit | e8236c4d9338d52d0f2fcecc0b792ac0542e4ee9 (patch) | |
tree | bf3b408a92ba327ce264a47ee1bb30417feaf5d5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86, kaslr: Mix entropy sources together as needed (diff) | |
download | linux-dev-e8236c4d9338d52d0f2fcecc0b792ac0542e4ee9.tar.xz linux-dev-e8236c4d9338d52d0f2fcecc0b792ac0542e4ee9.zip |
x86, kaslr: Add a circular multiply for better bit diffusion
If we don't have RDRAND (in which case nothing else *should* matter),
most sources have a highly biased entropy distribution. Use a
circular multiply to diffuse the entropic bits. A circular multiply
is a good operation for this: it is cheap on standard hardware and
because it is symmetric (unlike an ordinary multiply) it doesn't
introduce its own bias.
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/20131111222839.GA28616@www.outflux.net
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions