aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
authorNathan Chancellor <nathan@kernel.org>2026-05-17 13:05:07 -1000
committerNathan Chancellor <nathan@kernel.org>2026-05-27 15:20:04 -0700
commit9331258bc129a007a5f10e2a2b45d1e71624d115 (patch)
tree02bf6f173928846a22c6aefaa4812137c690dc7e /security
parent8ad2017578c99ba7851bca5df52f82a3ade2e603 (diff)
downloadath-9331258bc129a007a5f10e2a2b45d1e71624d115.tar.gz
security/Kconfig.hardening: Remove tautological condition from CC_HAS_RANDSTRUCT
Now that the minimum supported version of LLVM for building the kernel has been raised to 17.0.1, the '!Clang || Clang >= 16' dependency for CONFIG_CC_HAS_RANDSTRUCT is always true, so it can be removed. Reviewed-by: Nicolas Schier <nsc@kernel.org> Link: https://patch.msgid.link/20260517-bump-minimum-supported-llvm-version-to-17-v2-4-b3b8cda46bdd@kernel.org Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'security')
-rw-r--r--security/Kconfig.hardening3
1 files changed, 0 insertions, 3 deletions
diff --git a/security/Kconfig.hardening b/security/Kconfig.hardening
index 364c2ff553f65..6923036e1a2f5 100644
--- a/security/Kconfig.hardening
+++ b/security/Kconfig.hardening
@@ -275,9 +275,6 @@ endmenu
config CC_HAS_RANDSTRUCT
def_bool $(cc-option,-frandomize-layout-seed-file=/dev/null)
- # Randstruct was first added in Clang 15, but it isn't safe to use until
- # Clang 16 due to https://github.com/llvm/llvm-project/issues/60349
- depends on !CC_IS_CLANG || CLANG_VERSION >= 160000
choice
prompt "Randomize layout of sensitive kernel structures"