-
Notifications
You must be signed in to change notification settings - Fork 491
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
Add cf protection to assembler files #2035
Comments
An example patch:
The same should be implemented for all the ASM sources |
Thanks for the report. Is it accurate to say that this is something that should ideally be fixed upstream? (i.e., in https://github.com/pq-crystals/kyber for this example) |
Yes. |
This looks like a "mechanical" (automat-able) code addition: Am I right with this @beldmit ? All that's needed is adding these lines (always the same?!) to all .S files? Or is there more to it? Or asked differently, could you add such a |
Unfortunately, it's not enough Quoting the link https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
|
Thanks for the clarification/pointer. In that case, it's a task for the upstreams, indeed. |
Describe the bug
Our annobin check has found out that the library doesn't implement the CET protection https://sourceware.org/annobin/annobin.html/Test-cf-protection.html
because of lack of the corresponding code in ASM files (see the example in the link).
SO even when the C sources are compiled with
-fcf-protection
the protection is still not enabledThe text was updated successfully, but these errors were encountered: