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

Clean UB in BSS static initalization #286

Open
berkus opened this issue Jan 27, 2025 · 0 comments · May be fixed by #287
Open

Clean UB in BSS static initalization #286

berkus opened this issue Jan 27, 2025 · 0 comments · May be fixed by #287
Milestone

Comments

@berkus
Copy link
Member

berkus commented Jan 27, 2025

As per discussion here accessing any static (including __BSS_START and __BSS_END) from Rust code before the static area (including BSS) is initialized is UB in Rust abstract machine.

This means BSS initialization must be moved to the assembly routine.

@berkus berkus added this to the UB cleanup milestone Jan 27, 2025
@berkus berkus linked a pull request Jan 30, 2025 that will close this issue
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 a pull request may close this issue.

1 participant