Skip to content

[v10.x] deps:openssl: cherry-pick c19c5a6 from upstream - #28983

Closed
ofrobots wants to merge 1 commit into
nodejs:v10.x-stagingfrom
ofrobots:fix-28932
Closed

[v10.x] deps:openssl: cherry-pick c19c5a6 from upstream#28983
ofrobots wants to merge 1 commit into
nodejs:v10.x-stagingfrom
ofrobots:fix-28932

Conversation

@ofrobots

@ofrobotsofrobots commented Aug 5, 2019

Copy link
Copy Markdown
Contributor

Original commit message:

Revert the DEVRANDOM_WAIT feature
The DEVRANDOM_WAIT feature added a select() call to wait for the
`/dev/random` device to become readable before reading from the
`/dev/urandom` device. It was introduced in commit 38023b8
in order to mitigate the fact that the `/dev/urandom` device
does not block until the initial seeding of the kernel CSPRNG
has completed, contrary to the behaviour of the `getrandom()`
system call.
It turned out that this change had negative side effects on the
performance which were not acceptable. After some discussion it
was decided to revert this feature and leave it up to the OS
resp. the platform maintainer to ensure a proper initialization
during early boot time.
Fixes 9078
This partially reverts commit 38023b8.

Refs: openssl/openssl#9084
Fixes: #28932

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Original commit message:
Revert the DEVRANDOM_WAIT feature
The DEVRANDOM_WAIT feature added a select() call to wait for the
`/dev/random` device to become readable before reading from the
`/dev/urandom` device. It was introduced in commit 38023b8
in order to mitigate the fact that the `/dev/urandom` device
does not block until the initial seeding of the kernel CSPRNG
has completed, contrary to the behaviour of the `getrandom()`
system call.
It turned out that this change had negative side effects on the
performance which were not acceptable. After some discussion it
was decided to revert this feature and leave it up to the OS
resp. the platform maintainer to ensure a proper initialization
during early boot time.
Fixes 9078
This partially reverts commit 38023b8.
Refs: openssl/openssl#9084Fixes: nodejs#28932
@nodejs-github-botnodejs-github-bot added openssl Issues and PRs related to the OpenSSL dependency. v10.x labels Aug 5, 2019
@ofrobotsofrobots changed the title deps:openssl: cherry-pick c19c5a6 from upstream[v10.x] deps:openssl: cherry-pick c19c5a6 from upstreamAug 5, 2019
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ofrobots

Copy link
Copy Markdown
ContributorAuthor

@nodejs/lts @nodejs/crypto this needs a review, but otherwise good to go. CI is green.

@shigekishigeki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM but it means that Google Cloud needs to have more entropies as

the platform maintainer to ensure a proper initialization during early boot time.

https://github.com/openssl/openssl/blob/f2bb79a78a1681f9a137d7560a17982f6e54333c/CHANGES#L37-L38

BethGriggs pushed a commit that referenced this pull request Aug 6, 2019
Original commit message:
Revert the DEVRANDOM_WAIT feature
The DEVRANDOM_WAIT feature added a select() call to wait for the
`/dev/random` device to become readable before reading from the
`/dev/urandom` device. It was introduced in commit 38023b8
in order to mitigate the fact that the `/dev/urandom` device
does not block until the initial seeding of the kernel CSPRNG
has completed, contrary to the behaviour of the `getrandom()`
system call.
It turned out that this change had negative side effects on the
performance which were not acceptable. After some discussion it
was decided to revert this feature and leave it up to the OS
resp. the platform maintainer to ensure a proper initialization
during early boot time.
Fixes 9078
This partially reverts commit 38023b8.
Refs: openssl/openssl#9084Fixes: #28932
PR-URL: #28983
Reviewed-By: Shigeki Ohtsu <ohtsu@ohtsu.org>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
@BethGriggsBethGriggs mentioned this pull request Aug 6, 2019
@MylesBorins

Copy link
Copy Markdown
Contributor

landed in 894a9dd

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

Labels

opensslIssues and PRs related to the OpenSSL dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@ofrobots@nodejs-github-bot@MylesBorins@bnoordhuis@shigeki@addaleax@cjihrig@BethGriggs