Diagnosing Missing GCC -fstack-protector-strong Protection
How to detect and fix missing stack canary protection when using GCC's -fstack-protector-strong flag.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
How to detect and fix missing stack canary protection when using GCC's -fstack-protector-strong flag.
A production GCC build requires stack-buffer-overflow mitigation under a runtime-overhead budget with attention to code size and instruction-cache effects. The decision is between -fstack-protector-strong and -fstack-protector-all, where coverage is not equivalent and overhead is workload and target dependent. The build may target a custom or freestanding C
Goal I need to select a stack-protector level for x86-64 server binaries built with GCC, bounding runtime overhead while maximizing buffer-overflow coverage. Constraints -fstack-protector emits canaries only for functions with local character arrays. -fstack-protector-strong extends coverage to functions with local arrays, address-taken locals, or frame-addr