Repository navigation
release-19.1: engine: Build with non-executable stacks - #38011
Merged
Merged
Conversation
Three lines of inscrutable magic (and plenty of comments) to avoid tripping a complex series of heuristics resulting in a security risk. Fixes cockroachdb#37885 Release note (security improvement): Stack memory used by CockroachDB is now marked as non-executable, improving security and compatibility with SELinux.
Member
Contributor
Author
|
Looks like this change breaks the windows build (in a way that isn't picked up by CI) so we can't merge it yet. |
Assembly files are supposed to be run through the preprocessor only when they end in a captial .S. On the linux build, it appears to run through the preprocessor anyway, but this is not the case for the windows build (note that our windows binary is cross-compiled from linux; this is not about case-insensitivity of the windows filesystem). The windows build is broken when this file has a lowercase .s. Renames that consist only of case changes are poorly supported by git and other tools, so also change the base name of the file. Some tools support a .sx extension for a less-subtle version of this distinction, but go does not. Release note: None
Contributor
Author
|
Added the commit from #38021 to fix the windows build. |
Contributor
Author
|
Ping |
petermattis
approved these changes
Jun 7, 2019
bdarnell
added a commit
to bdarnell/cockroach
that referenced
this pull request
Jun 11, 2019
Manual backport from cockroachdb#38011. Fixes cockroachdb#37991 Release note (security improvement): Stack memory used by CockroachDB is now marked as non-executable, improving security and compatibility with SELinux.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport 1/1 commits from #37939.
/cc @cockroachdb/release
Fixes #37991
Three lines of inscrutable magic (and plenty of comments) to avoid
tripping a complex series of heuristics resulting in a security risk.
Fixes #37885
Release note (security improvement): Stack memory used by CockroachDB
is now marked as non-executable, improving security and compatibility
with SELinux.