summaryrefslogtreecommitdiff
path: root/drivers/acpi/arm64/gtdt.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2023-11-27 13:00:51 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2023-11-30 19:07:33 +0000
commitf5259997f3e8d6edfcc2daf5b2c0b34f074d7bc0 (patch)
treec75586549a22d09829b57f9dfc987b9ff4a43197 /drivers/acpi/arm64/gtdt.c
parentc0a8574204054effad6ac83cc75c02576e2985fe (diff)
downloadlwn-f5259997f3e8d6edfcc2daf5b2c0b34f074d7bc0.tar.gz
lwn-f5259997f3e8d6edfcc2daf5b2c0b34f074d7bc0.zip
arm64: Avoid enabling KPTI unnecessarily
Commit 42c5a3b04bf6 refactored the KPTI init code in a way that results in the use of non-global kernel mappings even on systems that have no need for it, and even when KPTI has been disabled explicitly via the command line. Ensure that this only happens when we have decided (based on the detected system-wide CPU features) that KPTI should be enabled. Fixes: 42c5a3b04bf6 ("arm64: Split kpti_install_ng_mappings()") Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Acked-by: Will Deacon <will@kernel.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20231127120049.2258650-6-ardb@google.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers/acpi/arm64/gtdt.c')
0 files changed, 0 insertions, 0 deletions