X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=security%2FKconfig;fp=security%2FKconfig;h=9b2c4925585a3a761019cd8b5358ecf09279a29c;hb=f87cbd0565eb7e2fa15296c74210658db1346431;hp=88a0bc8c592bdb09c9287d886f0a6a37c7a885d4;hpb=229a08a4f4e4f9949801cc39b6480ddc9c487183;p=linux-2.6-microblaze.git diff --git a/security/Kconfig b/security/Kconfig index 88a0bc8c592b..9b2c4925585a 100644 --- a/security/Kconfig +++ b/security/Kconfig @@ -177,9 +177,10 @@ config HARDENED_USERCOPY_PAGESPAN config FORTIFY_SOURCE bool "Harden common str/mem functions against buffer overflows" depends on ARCH_HAS_FORTIFY_SOURCE - # https://bugs.llvm.org/show_bug.cgi?id=50322 # https://bugs.llvm.org/show_bug.cgi?id=41459 - depends on !CC_IS_CLANG + depends on !CC_IS_CLANG || CLANG_VERSION >= 120001 + # https://github.com/llvm/llvm-project/issues/53645 + depends on !CC_IS_CLANG || !X86_32 help Detect overflows of buffers in common string and memory functions where the compiler can determine and validate the buffer sizes.