xref: /linux/arch/arm64/configs/hardening.config (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1# Basic kernel hardening options (specific to arm64)
2
3# Make sure PAN emulation is enabled.
4CONFIG_ARM64_SW_TTBR0_PAN=y
5
6# Software Shadow Stack or PAC
7CONFIG_SHADOW_CALL_STACK=y
8
9# Pointer authentication (ARMv8.3 and later). If hardware actually supports
10# it, one can turn off CONFIG_STACKPROTECTOR_STRONG with this enabled.
11CONFIG_ARM64_PTR_AUTH=y
12CONFIG_ARM64_PTR_AUTH_KERNEL=y
13
14# Available in ARMv8.5 and later.
15CONFIG_ARM64_BTI=y
16CONFIG_ARM64_BTI_KERNEL=y
17CONFIG_ARM64_MTE=y
18CONFIG_KASAN_HW_TAGS=y
19CONFIG_ARM64_E0PD=y
20
21# Available in ARMv8.7 and later.
22CONFIG_ARM64_EPAN=y
23