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

Hardening flags #2090

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Hardening flags #2090

merged 1 commit into from
Oct 11, 2024

Conversation

RossBrunton
Copy link
Contributor

@RossBrunton RossBrunton commented Sep 13, 2024

UR_DEVELOPER_MODE has also been changed to only set Werror. The
previous other flags set by this variable either have no effect
(-fno-omit-frame-pointer) or are now always enabled
(-fstack-protector-strong).

Some smaller warnings have also been fixed.

@github-actions github-actions bot added ci/cd Continuous integration/devliery level-zero L0 adapter specific issues labels Sep 13, 2024
@RossBrunton RossBrunton force-pushed the ross/harden branch 3 times, most recently from 0024ae8 to 39103d7 Compare September 16, 2024 11:02
@github-actions github-actions bot added the specification Changes or additions to the specification label Sep 16, 2024
@RossBrunton RossBrunton force-pushed the ross/harden branch 6 times, most recently from acd3f90 to 64ca4eb Compare September 20, 2024 10:12
@github-actions github-actions bot added the conformance Conformance test suite issues. label Sep 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 20, 2024
@github-actions github-actions bot added loader Loader related feature/bug images UR images cuda CUDA adapter specific issues hip HIP adapter specific issues labels Sep 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 20, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 23, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 23, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Sep 23, 2024
@RossBrunton RossBrunton changed the title Enable hardening flags on Linux Hardening flags and replaced UR_DEVELOPER_MODE Oct 8, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 8, 2024
@RossBrunton RossBrunton changed the title Hardening flags and replaced UR_DEVELOPER_MODE Hardening flags Oct 8, 2024
@RossBrunton RossBrunton force-pushed the ross/harden branch 2 times, most recently from 46abcb5 to b3c51b0 Compare October 8, 2024 11:58
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 8, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 8, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 8, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 8, 2024
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 8, 2024
@RossBrunton RossBrunton added the ready to merge Added to PR's which are ready to merge label Oct 8, 2024
UR_DEVELOPER_MODE has also been changed to only set Werror. The
previous other flags set by this variable either have no effect
(-fno-omit-frame-pointer) or are now always enabled
(-fstack-protector-strong).

Some smaller warnings have also been fixed.
RossBrunton added a commit to RossBrunton/intel-llvm that referenced this pull request Oct 9, 2024
@RossBrunton
Copy link
Contributor Author

@oneapi-src/unified-runtime-level-zero-write Are you okay with this change? It's adding a bunch of "hardening" flags to the loader targets.

@RossBrunton RossBrunton removed the ready to merge Added to PR's which are ready to merge label Oct 10, 2024
@pbalcer
Copy link
Contributor

pbalcer commented Oct 10, 2024

@oneapi-src/unified-runtime-level-zero-write Are you okay with this change? It's adding a bunch of "hardening" flags to the loader targets.

We can do that, but it will only affect UR and intel/llvm builds. Normally the loader is shipped with the driver package.

My (very slight) preference would be that we don't set any flags that might affect the performance or cause difference in behavior compared to the unmodified loader.

@RossBrunton RossBrunton added the ready to merge Added to PR's which are ready to merge label Oct 10, 2024
@aarongreig aarongreig merged commit 4814e50 into oneapi-src:main Oct 11, 2024
74 of 76 checks passed
martygrant pushed a commit to intel/llvm that referenced this pull request Oct 14, 2024
@RossBrunton RossBrunton deleted the ross/harden branch November 6, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd Continuous integration/devliery conformance Conformance test suite issues. level-zero L0 adapter specific issues loader Loader related feature/bug ready to merge Added to PR's which are ready to merge sanitizer Sanitizer layer issues/changes/specification specification Changes or additions to the specification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants