diff options
author | Ard Biesheuvel <[email protected]> | 2023-11-27 13:00:51 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-11-30 19:07:33 +0000 |
commit | f5259997f3e8d6edfcc2daf5b2c0b34f074d7bc0 (patch) | |
tree | c75586549a22d09829b57f9dfc987b9ff4a43197 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | c0a8574204054effad6ac83cc75c02576e2985fe (diff) |
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 <[email protected]>
Acked-by: Will Deacon <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions