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

Test _FORTIFY_SOURCE=3 #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

siddhesh
Copy link
Contributor

I have added a proposal in glibc to implement a new fortification level _FORTIFY_SOURCE=3 which enables potentially more expensive hardening, as is done by __builtin_dynamic_object_size. This patch adds support in tests for allocating the buffer dynamically and then testing _FORTIFY_SOURCE=3 with them.

The current state is that with upstream clang and gcc, all of the tests fail with _FORTIFY_SOURCE=3. With the glibc changes to add _FORTIFY_SOURCE=3 (I'll post the final patches soon), clang passes all tests because it has __builtin_dynamic_object_size.

This change is actually just one commit, the other three commits belong to the other two PRs.

@siddhesh
Copy link
Contributor Author

Here's the glibc patchset to verify results: https://sourceware.org/pipermail/libc-alpha/2020-December/120610.html

Mark failures and continue execution of the testsuite.  Display a
summary at the end of each compiler run.
I have added a proposal in glibc to implement a new fortification
level _FORTIFY_SOURCE=3 which enables potentially more expensive
hardening, as is done by __builtin_dynamic_object_size.  This patch
adds support in tests for allocating the buffer dynamically and then
testing _FORTIFY_SOURCE=3 with them.

The current state is that with upstream clang and gcc, all of the
tests fail with _FORTIFY_SOURCE=3.  With the glibc changes to add
_FORTIFY_SOURCE=3, clang passes all tests because it has
__builtin_dynamic_object_size.
@siddhesh
Copy link
Contributor Author

Rebased over #10 to allow the test to run to completion.

@siddhesh
Copy link
Contributor Author

siddhesh commented Jan 4, 2021

_FORTIFY_SOURCE=3 is now in upstream glibc.

@MaskRay
Copy link

MaskRay commented Nov 9, 2022

@serge-sans-paille ^^

@serge-sans-paille
Copy link
Owner

@siddhesh : could you rebase your patch?

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

Successfully merging this pull request may close these issues.

None yet

3 participants