From Fedora Project Wiki
Hardening detection: -fstack-check
We might want to enable -fstack-check
, to make sure that stack overflows lead to crashes reliably (without any potential for code execution). Then we need a way to check that all functions/objects are compiled with it.
Due to way -fstack-check
is implemented, this depends on page size information. It could be useful to cross-check functions not instrumented for stack size against the recorded stack space requirement.