Skip to content

release-19.1: engine: Build with non-executable stacks - #38011

Merged
bdarnell merged 2 commits into
cockroachdb:release-19.1from
bdarnell:backport19.1-37939
Jun 7, 2019
Merged

bdarnell merged 2 commits into
cockroachdb:release-19.1from
bdarnell:backport19.1-37939

Conversation

@bdarnell

@bdarnell bdarnell commented Jun 4, 2019

Copy link
Copy Markdown
Contributor

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.

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.
@bdarnell
bdarnell requested review from a team June 4, 2019 17:52
@cockroach-teamcity

Copy link
Copy Markdown
Member

This change is Reviewable

@bdarnell

bdarnell commented Jun 4, 2019

Copy link
Copy Markdown
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
@bdarnell

bdarnell commented Jun 4, 2019

Copy link
Copy Markdown
Contributor Author

Added the commit from #38021 to fix the windows build.

@bdarnell
bdarnell requested a review from petermattis June 6, 2019 22:57
@bdarnell

bdarnell commented Jun 6, 2019

Copy link
Copy Markdown
Contributor Author

Ping

@bdarnell
bdarnell merged commit cbd571c into cockroachdb:release-19.1 Jun 7, 2019
@bdarnell
bdarnell deleted the backport19.1-37939 branch June 7, 2019 13:38
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.
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.

3 participants