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

Latest release spins CPU #493

Open
notramo opened this issue Jan 31, 2023 · 4 comments
Open

Latest release spins CPU #493

notramo opened this issue Jan 31, 2023 · 4 comments

Comments

@notramo
Copy link

notramo commented Jan 31, 2023

On Void Linux musl, age 1.1.1 infinitely spins CPU when using password encryption.

@rumpelsepp
Copy link

Can confirm this. Decrypting a small textfile with one line takes up to 5 minutes. I traced this down to this:

age/scrypt.go

Line 163 in 8e3f74c

k, err := scrypt.Key(i.password, salt, 1<<logN, 8, 1, chacha20poly1305.KeySize)

@FiloSottile
Copy link
Owner

Interesting, I don't think we changed anything related to scrypt in this release. Did you maybe update the Go version at the same time? What happens if you build age v1.1.1 with an older version of Go?

@rumpelsepp
Copy link

rumpelsepp commented Feb 7, 2023

I did a few tests yesterday, I downgraded the crypto package a few times. The problem stayed the same and was reproducible. Currently, I am not suffering from this problem any more, because I did a sysupgrade and rebooted my system. 😮 I will try a different go version once it reappears.

@FiloSottile
Copy link
Owner

because I did a sysupgrade and rebooted my system

Huh!

If anyone else can reproduce it, I would love to get the binary and uname -a output, so I can try to track it down.

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

No branches or pull requests

3 participants