kcmp: Defer pointer obfuscation cookie initialization

If the kcmp cookie is predictable, then KASLR can be easily
defeated, and calling get_random_bytes from an arch_initcall might
give predictable results.  Defer initialization as long as possible
to give the random number subsystem time to initialize.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
1 file changed