Skip to content

Deny partial -Z stack-protector by default in all editions#157941

Open
arielb1 wants to merge 1 commit into
rust-lang:mainfrom
arielb1:deny-partial-stack-protector
Open

Deny partial -Z stack-protector by default in all editions#157941
arielb1 wants to merge 1 commit into
rust-lang:mainfrom
arielb1:deny-partial-stack-protector

Conversation

@arielb1

@arielb1 arielb1 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

This enables RFC 3855 for stack-protector. With this PR, uses of stack-protector that only have it enabled for a subset of the crates within a process need to pass -Z allow-partial-mitigations=stack-protector as well.

This was not done in #149357 to allow for a smooth transition period.

cc the stack-protector tracking issue at #114903.

r? @rcvalle (do we need any special protocol for the breaking change?)

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 15, 2026
@rustbot

This comment has been minimized.

@arielb1 arielb1 force-pushed the deny-partial-stack-protector branch from cffa608 to 1a9ed85 Compare June 15, 2026 21:47
@rustbot

This comment has been minimized.

@arielb1 arielb1 force-pushed the deny-partial-stack-protector branch from 1a9ed85 to 5e3dc2c Compare June 15, 2026 21:51
@rustbot

This comment has been minimized.

@arielb1 arielb1 force-pushed the deny-partial-stack-protector branch from 5e3dc2c to 42cf0c9 Compare June 15, 2026 21:52
@rust-log-analyzer

This comment has been minimized.

@arielb1 arielb1 force-pushed the deny-partial-stack-protector branch from 42cf0c9 to 7312a2c Compare June 15, 2026 22:47
@rustbot

rustbot commented Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in tests/codegen-llvm/stack-protector.rs

cc @rust-lang/project-exploit-mitigations, @rcvalle

@rustbot rustbot added the PG-exploit-mitigations Project group: Exploit mitigations label Jun 15, 2026
This enables RFC 3855 for stack-protector. With this PR, uses of stack-protector
that only have it enabled for a subset of the crates within a process need to pass
`-Z allow-partial-mitigations=stack-protector` as well.

This was not done in issue 149357 to allow for a smooth transition period.

cc the stack-protector tracking issue at issue 114903.
@arielb1 arielb1 force-pushed the deny-partial-stack-protector branch from 7312a2c to 5edba65 Compare June 15, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants