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

DNM: Set INIT_ALL=zero #2046

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

DNM: Set INIT_ALL=zero #2046

wants to merge 1 commit into from

Conversation

brooksdavis
Copy link
Member

Zero bits of the stack the compiler can't prove are initialized before use or escape by default.

Needs a corresponding change to devel/llvm-base and sufficient benchmarking to demonstrate it's not a problem.

Copy link
Collaborator

@bsdjhb bsdjhb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title of the second commit needs s/none/zero/ :)

@jrtc27
Copy link
Member

jrtc27 commented Mar 14, 2024

We should take the first commit now

@brooksdavis
Copy link
Member Author

For the record: spec benchmark results were disappointing with substantial regressions in some cases so further investigation is required.

Zero portions of the stack the compiler can not prove are initialized
before use or escape.
@brooksdavis brooksdavis changed the title Set INIT_ALL=zero DNM: Set INIT_ALL=zero Jul 24, 2024
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.

Zeroing uninitialised stack stuff and LLVM for both the baseline aarch64 and also aarch64c ABIs
3 participants