arm64: kaslr: Check command line before looking for a seed
authorMark Brown <broonie@kernel.org>
Fri, 8 Nov 2019 17:12:44 +0000 (17:12 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 8 Nov 2019 17:36:51 +0000 (17:36 +0000)
commit2203e1adb936a92ab2fd8f705e888af322462736
tree8521c7cece19c9912c4ad7364fd4e05ac6b479a2
parent294a9ddde6cdbf931a28b8c8c928d3f799b61cb5
arm64: kaslr: Check command line before looking for a seed

Now that we print diagnostics at boot the reason why we do not initialise
KASLR matters. Currently we check for a seed before we check if the user
has explicitly disabled KASLR on the command line which will result in
misleading diagnostics so reverse the order of those checks. We still
parse the seed from the DT early so that if the user has both provided a
seed and disabled KASLR on the command line we still mask the seed on
the command line.

Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/kaslr.c