[PATCH] arm64: kaslr: Use standard early random function

Mark Brown broonie at kernel.org
Fri Aug 7 07:09:23 EDT 2020


On Thu, Aug 06, 2020 at 05:49:04PM -0700, Guenter Roeck wrote:

> Use arch_get_random_seed_long_early() instead of arm64 specific functions
> to solve the problem. As a side effect of this change, the code no longer
> bypasses ARCH_RANDOM, which I consider desirable (after all, ARCH_RANDOM
> was disabled for a reason).

This should be fine since the entire implementation is still static
inline in the header other than the prints in the WARN_ON() which should
never be triggered here so it should be fine.

Reviewed-by: Mark Brown <broonie at kernel.org>
Tested-by: Mark Brown <broonie at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200807/f61e1261/attachment.sig>


More information about the linux-arm-kernel mailing list