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

Control Flow Integrity and Shadow Stack? #23

Open
hiowaguy opened this issue Nov 18, 2022 · 1 comment
Open

Control Flow Integrity and Shadow Stack? #23

hiowaguy opened this issue Nov 18, 2022 · 1 comment

Comments

@hiowaguy
Copy link

Currently, for the GCC 12 and Clang 11 TL;DR, I don't see the control flow integrity flag mentioned on the detailed page... is this because it is Intel specific?
-fcf-protection=full

In some other references, I see recommendations to enable the following flag for Intel x86 as well:
-mshstk

@trou
Copy link
Collaborator

trou commented Nov 19, 2022

Hello, I was not fully sure of the impact and limitations of CFI so I chose not to add it directly on the tl;dr.

-mshstk is confusing:

mshstk
Target Mask(ISA_SHSTK) Var(ix86_isa_flags) Save
Enable shadow stack built-in functions from Control-flow Enforcement
Technology (CET).

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

No branches or pull requests

2 participants