]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf0a01d768a0a9ca56ebca17b978a904f8ab9d1a5
tree8521c7cece19c9912c4ad7364fd4e05ac6b479a2
parent1e992022b6a025d4ccfacc71b5713c0b62be13eb
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