arch/Kconfig: Drop always true condition from RANDOMIZE_KSTACK_OFFSET

Now that the minimum supported version of LLVM for building the kernel
has been bumped to 15.0.0, the second depends line in
RANDOMIZE_KSTACK_OFFSET is always true, so it can be removed.

Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://lore.kernel.org/r/20250821-bump-min-llvm-ver-15-v2-2-635f3294e5f0@kernel.org
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
pull/1354/merge
Nathan Chancellor 2025-08-21 14:15:39 -07:00
parent 20c0989283
commit 65aebf6f58
No known key found for this signature in database
GPG Key ID: 1D6B269171C01A96
1 changed files with 0 additions and 1 deletions

View File

@ -1475,7 +1475,6 @@ config RANDOMIZE_KSTACK_OFFSET
bool "Support for randomizing kernel stack offset on syscall entry" if EXPERT bool "Support for randomizing kernel stack offset on syscall entry" if EXPERT
default y default y
depends on HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET depends on HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
depends on INIT_STACK_NONE || !CC_IS_CLANG || CLANG_VERSION >= 140000
help help
The kernel stack offset can be randomized (after pt_regs) by The kernel stack offset can be randomized (after pt_regs) by
roughly 5 bits of entropy, frustrating memory corruption roughly 5 bits of entropy, frustrating memory corruption