Skip to content

Commit

Permalink
hardening: Enable i386 FORTIFY_SOURCE on Clang 16+
Browse files Browse the repository at this point in the history
The i386 regparm bug exposed with FORTIFY_SOURCE with Clang was fixed
in Clang 16[1].

Link: llvm/llvm-project@c167c0a [1]
Reviewed-by: Nathan Chancellor <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
kees committed Mar 4, 2025
1 parent a3aac12 commit e612e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/Kconfig.hardening
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ config FORTIFY_SOURCE
bool "Harden common str/mem functions against buffer overflows"
depends on ARCH_HAS_FORTIFY_SOURCE
# https://github.com/llvm/llvm-project/issues/53645
depends on !CC_IS_CLANG || !X86_32
depends on !X86_32 || !CC_IS_CLANG || CLANG_VERSION >= 160000
help
Detect overflows of buffers in common string and memory functions
where the compiler can determine and validate the buffer sizes.
Expand Down

0 comments on commit e612e94

Please sign in to comment.