From: Kees Cook Date: Fri, 11 Oct 2013 00:18:15 +0000 (-0700) Subject: x86, kaslr: Provide randomness functions X-Git-Tag: v3.14-rc1~156^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bfce5ef55cbe78ee2ee6e97f2e26a8a582008f3;p=pandora-kernel.git x86, kaslr: Provide randomness functions Adds potential sources of randomness: RDRAND, RDTSC, or the i8254. This moves the pre-alternatives inline rdrand function into the header so both pieces of code can use it. Availability of RDRAND is then controlled by CONFIG_ARCH_RANDOM, if someone wants to disable it even for kASLR. Signed-off-by: Kees Cook Link: http://lkml.kernel.org/r/1381450698-28710-4-git-send-email-keescook@chromium.org Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed