Merge branch 'next' into for-linus
[linux-2.6-block.git] / security / Kconfig.hardening
index d766b7d0ffd138592862e9706413ac584ee990da..53baa95cb644fd047ff790526f501ffc89d1753e 100644 (file)
@@ -257,6 +257,9 @@ config INIT_ON_FREE_DEFAULT_ON
 
 config CC_HAS_ZERO_CALL_USED_REGS
        def_bool $(cc-option,-fzero-call-used-regs=used-gpr)
+       # https://github.com/ClangBuiltLinux/linux/issues/1766
+       # https://github.com/llvm/llvm-project/issues/59242
+       depends on !CC_IS_CLANG || CLANG_VERSION > 150006
 
 config ZERO_CALL_USED_REGS
        bool "Enable register zeroing on function exit"