Skip to content

entropy: retry /dev/urandom read after EINTR - #443

Open
tokenjunkielabs wants to merge 1 commit into
Tarsnap:masterfrom
woahwhattheheck:zz-sol-2306/entropy-read-eintr-20260920
Open

tokenjunkielabs wants to merge 1 commit into
Tarsnap:masterfrom
woahwhattheheck:zz-sol-2306/entropy-read-eintr-20260920

Conversation

@tokenjunkielabs

@tokenjunkielabs tokenjunkielabs commented Sep 21, 2026 •

Copy link
Copy Markdown

Retry the entropy-source read() when it returns -1 with errno == EINTR, preserving the existing failure behavior for every other errno and unexpected EOF. A signal arriving before bytes are transferred should not turn an otherwise valid scrypt operation into a hard entropy failure.

Bounty attribution

The first report was emailed to Colin before source publication. Under this repository's AGENTS.md, any bounty is for the report rather than the patch. This pull request is not a separate bounty claim; it is the focused source carrier supporting the existing first-reporter submission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants