Commit 6d0bc7d9 by Alexander Popov

Update the KSPP recommendations

parent 4852f766
# CONFIGs # CONFIGs
# Linux/arm 5.4.0 Kernel Configuration # Linux/arm 5.14.0 Kernel Configuration
# Report BUG() conditions and kill the offending process. # Report BUG() conditions and kill the offending process.
CONFIG_BUG=y CONFIG_BUG=y
...@@ -152,7 +152,6 @@ CONFIG_GCC_PLUGIN_STACKLEAK=y ...@@ -152,7 +152,6 @@ CONFIG_GCC_PLUGIN_STACKLEAK=y
# use with caution or also use CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE=y # use with caution or also use CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y CONFIG_GCC_PLUGIN_RANDSTRUCT=y
# arm # arm
CONFIG_ARM=y CONFIG_ARM=y
...@@ -168,3 +167,5 @@ CONFIG_CPU_SW_DOMAIN_PAN=y ...@@ -168,3 +167,5 @@ CONFIG_CPU_SW_DOMAIN_PAN=y
# Dangerous; old interfaces and needless additional attack surface. # Dangerous; old interfaces and needless additional attack surface.
# CONFIG_OABI_COMPAT is not set # CONFIG_OABI_COMPAT is not set
# CONFIGs # CONFIGs
# Linux/arm64 5.4.0 Kernel Configuration # Linux/arm64 5.14.0 Kernel Configuration
# Report BUG() conditions and kill the offending process. # Report BUG() conditions and kill the offending process.
CONFIG_BUG=y CONFIG_BUG=y
...@@ -152,7 +152,6 @@ CONFIG_GCC_PLUGIN_STACKLEAK=y ...@@ -152,7 +152,6 @@ CONFIG_GCC_PLUGIN_STACKLEAK=y
# use with caution or also use CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE=y # use with caution or also use CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE=y
CONFIG_GCC_PLUGIN_RANDSTRUCT=y CONFIG_GCC_PLUGIN_RANDSTRUCT=y
# arm64 # arm64
CONFIG_ARM64=y CONFIG_ARM64=y
...@@ -163,8 +162,13 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=32768 ...@@ -163,8 +162,13 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=32768
# Randomize position of kernel (requires UEFI RNG or bootloader support for /chosen/kaslr-seed DT property). # Randomize position of kernel (requires UEFI RNG or bootloader support for /chosen/kaslr-seed DT property).
CONFIG_RANDOMIZE_BASE=y CONFIG_RANDOMIZE_BASE=y
# Randomize kernel stack offset on syscall entry (since v5.13).
CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y
# Make sure PAN emulation is enabled. # Make sure PAN emulation is enabled.
CONFIG_ARM64_SW_TTBR0_PAN=y CONFIG_ARM64_SW_TTBR0_PAN=y
# Enable Kernel Page Table Isolation to remove an entire class of cache timing side-channels. # Enable Kernel Page Table Isolation to remove an entire class of cache timing side-channels.
CONFIG_UNMAP_KERNEL_AT_EL0=y CONFIG_UNMAP_KERNEL_AT_EL0=y
# CONFIGs # CONFIGs
# Linux/i386 5.4.0 Kernel Configuration # Linux/i386 5.14.0 Kernel Configuration
# Report BUG() conditions and kill the offending process. # Report BUG() conditions and kill the offending process.
CONFIG_BUG=y CONFIG_BUG=y
...@@ -171,6 +171,9 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 ...@@ -171,6 +171,9 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
# Randomize position of kernel. # Randomize position of kernel.
CONFIG_RANDOMIZE_BASE=y CONFIG_RANDOMIZE_BASE=y
# Randomize kernel stack offset on syscall entry (since v5.13).
CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y
# Enable Kernel Page Table Isolation to remove an entire class of cache timing side-channels. # Enable Kernel Page Table Isolation to remove an entire class of cache timing side-channels.
CONFIG_PAGE_TABLE_ISOLATION=y CONFIG_PAGE_TABLE_ISOLATION=y
......
# CONFIGs # CONFIGs
# Linux/x86_64 5.4.0 Kernel Configuration # Linux/x86_64 5.14.0 Kernel Configuration
# Report BUG() conditions and kill the offending process. # Report BUG() conditions and kill the offending process.
CONFIG_BUG=y CONFIG_BUG=y
...@@ -167,6 +167,9 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=65536 ...@@ -167,6 +167,9 @@ CONFIG_DEFAULT_MMAP_MIN_ADDR=65536
CONFIG_RANDOMIZE_BASE=y CONFIG_RANDOMIZE_BASE=y
CONFIG_RANDOMIZE_MEMORY=y CONFIG_RANDOMIZE_MEMORY=y
# Randomize kernel stack offset on syscall entry (since v5.13).
CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=y
# Modern libc no longer needs a fixed-position mapping in userspace, remove it as a possible target. # Modern libc no longer needs a fixed-position mapping in userspace, remove it as a possible target.
CONFIG_LEGACY_VSYSCALL_NONE=y CONFIG_LEGACY_VSYSCALL_NONE=y
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment