Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use -fstack-check when compiling C code #552

Closed
briansmith opened this issue Jun 19, 2017 · 3 comments
Closed

Use -fstack-check when compiling C code #552

briansmith opened this issue Jun 19, 2017 · 3 comments

Comments

@briansmith
Copy link
Owner

See https://www.qualys.com/2017/06/19/stack-clash/stack-clash.txt.

@briansmith
Copy link
Owner Author

https://twitter.com/CopperheadOS/status/876835207701200896: "A simple, important mitigation like -fstack-check is a no-op in Clang and broken in GCC: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68065, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66479."

@sanmai-NL
Copy link
Contributor

-fstack-check is a no-op in Clang

See also copperhead/bugtracker#308.


@briansmith: Am I correct in believing that the current status as discussed under rust-lang/rust#43241 means CopperheadOS’ comments on Twitter are outdated wrt. Stack Clash protection for tier-1 platforms?

@thestinger
Copy link

You should pass -fstack-clash-protection to GCC. Clang doesn't support it yet.

GCC implemented -fstack-clash-protection instead of fixing -fstack-check. You don't want -fstack-check. I don't think they plan to fix it. :\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants