]> git.ipfire.org Git - thirdparty/linux.git/commit
arm64: kaslr: Use feature override instead of parsing the cmdline again
authorArd Biesheuvel <ardb@kernel.org>
Wed, 14 Feb 2024 12:28:57 +0000 (13:28 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Feb 2024 12:42:31 +0000 (12:42 +0000)
commitaf73b9a2dd39fb458627a325dcdc9c76e274eae0
tree58b2965c50d30ca6c877dbabe90dd616bb5a564b
parent35876f35f4821c92fb1bbff7eec5780dba4fffdb
arm64: kaslr: Use feature override instead of parsing the cmdline again

The early kaslr code open codes the detection of 'nokaslr' on the kernel
command line, and this is no longer necessary now that the feature
detection code, which also looks for the same string, executes before
this code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20240214122845.2033971-56-ardb+git@google.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/cpufeature.h
arch/arm64/kernel/kaslr.c
arch/arm64/kernel/pi/kaslr_early.c