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

runtime: use .openbsd.randomdata for startupRand #69781

Open
FiloSottile opened this issue Oct 4, 2024 · 2 comments
Open

runtime: use .openbsd.randomdata for startupRand #69781

FiloSottile opened this issue Oct 4, 2024 · 2 comments
Assignees
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-OpenBSD
Milestone

Comments

@FiloSottile
Copy link
Contributor

OpenBSD has its version of AT_RANDOM, the .openbsd.randomdata ELF section documented at SPECS.randomdata. We should use that instead of reading from /dev/urandom.

@FiloSottile FiloSottile added help wanted OS-OpenBSD NeedsFix The path to resolution is known, but the work has not been done. labels Oct 4, 2024
@FiloSottile FiloSottile added this to the Backlog milestone Oct 4, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Oct 4, 2024
@jharshman
Copy link
Contributor

Looking at this, just want to make sure this is the documentation you're referring to:
https://github.com/openbsd/src/blob/master/libexec/ld.so/SPECS.randomdata

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/618155 mentions this issue: runtime: Use OpenBSD AT_RANDOM for startupRand

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. help wanted NeedsFix The path to resolution is known, but the work has not been done. OS-OpenBSD
Projects
Status: In Progress
Development

No branches or pull requests

3 participants