From: H. Peter Anvin Date: Tue, 12 Nov 2013 06:45:20 +0000 (-0800) Subject: x86, kaslr: Add a circular multiply for better bit diffusion X-Git-Tag: v3.14-rc1~156^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8236c4d9338d52d0f2fcecc0b792ac0542e4ee9;p=pandora-kernel.git 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 Signed-off-by: H. Peter Anvin Link: http://lkml.kernel.org/r/20131111222839.GA28616@www.outflux.net --- Reading git-diff-tree failed