]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kaslr: Announce KASLR status on boot
authorMark Brown <broonie@kernel.org>
Fri, 8 Nov 2019 17:12:43 +0000 (17:12 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 8 Nov 2019 17:36:48 +0000 (17:36 +0000)
commit1e992022b6a025d4ccfacc71b5713c0b62be13eb
treec7c0c96500a850e4957ae66d71fbda68ef1d1ae1
parent1a1521bb50a95f9e476c2109d83bfa47e4706c56
arm64: kaslr: Announce KASLR status on boot

Currently the KASLR code is silent at boot unless it forces on KPTI in
which case a message will be printed for that. This can lead to users
incorrectly believing their system has the feature enabled when it in
fact does not, and if they notice the problem the lack of any
diagnostics makes it harder to understand the problem. Add an initcall
which prints a message showing the status of KASLR during boot to make
the status clear.

This is particularly useful in cases where we don't have a seed. It
seems to be a relatively common error for system integrators and
administrators to enable KASLR in their configuration but not provide
the seed at runtime, often due to seed provisioning breaking at some
later point after it is initially enabled and verified.

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