-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
crypto: fix regression on randomFillSync #35723
Conversation
Review requested:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RSLGTM
f1a56dc
to
32635ff
Compare
Please 👍 to fast-track. @panva ... added the Fixes note |
This comment has been minimized.
This comment has been minimized.
Regression test? (I'm stepping away for dinner so don't block on it, but if you could add a regression test that would be great because obviously the regression wasn't covered by our existing tests). |
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: nodejs#35722
regression test added |
32635ff
to
98cfdaf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
That said, it's strange that this wasn't caught.
That also affects e.g.
const x = Buffer.from("hello");
const y = Buffer.from("world");
require('crypto').randomFillSync(y)
Perhaps something like that could be added to tests.
It's concerning that none of the existing tests caught this particular variation. The regression test should cover that case @ChALkeR but we can extend it after this lands. |
Some unrelated flaky failures so far in CI. Once the full CI run completes I'll resume it. |
This comment has been minimized.
This comment has been minimized.
The ARM job in CI appeared to hang up.. not sure what's up there... restarting CI to hopefully get a green run on the flaky failures |
Sigh. Another unrelated flaky failure and ARM is still hanging behind a list of pending CI runs. Assuming those clear out today and we can get by the flaky failures, this is ready to land any time |
Still waiting on the arm CI to get unjammed before we can move forward with this.... (@nodejs/build) |
removed arm-fanned from the roster, I had to cancel a few people's builds, you should dismiss them for now |
New test run complete, you've got a very flaky parallel/test-http2-respond-file-error-pipe-offset on linux for both runs, this one on alpine and centos, the last run on the other alpine. But I don't suppose that has anything to do with this change. |
Good ci run finally. Tagging for the Commit queue |
Commit Queue failed- Loading data for nodejs/node/pull/35723 ✔ Done loading data for nodejs/node/pull/35723 ----------------------------------- PR info ------------------------------------ Title crypto: fix regression on randomFillSync (#35723) Author James M Snell (@jasnell) Branch jasnell:fix-randomfillsync-regression -> nodejs:master Labels author ready, crypto, fast-track Commits 1 - crypto: fix regression on randomFillSync Committers 1 - James M Snell PR-URL: https://github.com/nodejs/node/pull/35723 Reviewed-By: Myles Borins Reviewed-By: Beth Griggs Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Evan Lucas ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/35723 Reviewed-By: Myles Borins Reviewed-By: Beth Griggs Reviewed-By: Сковорода Никита Андреевич Reviewed-By: Evan Lucas -------------------------------------------------------------------------------- ✖ Last GitHub CI failed ℹ Last Full PR CI on 2020-10-21T03:18:37Z: https://ci.nodejs.org/job/node-test-pull-request/33766/ - Querying data for job/node-test-pull-request/33766/ ✔ Build data downloaded ✔ Last Jenkins CI successful ℹ This PR was created on Tue, 20 Oct 2020 17:01:25 GMT ✔ Approvals: 4 ✔ - Myles Borins (@MylesBorins) (TSC): https://github.com/nodejs/node/pull/35723#pullrequestreview-512950520 ✔ - Beth Griggs (@BethGriggs) (TSC): https://github.com/nodejs/node/pull/35723#pullrequestreview-512951409 ✔ - Сковорода Никита Андреевич (@ChALkeR) (TSC): https://github.com/nodejs/node/pull/35723#pullrequestreview-512977935 ✔ - Evan Lucas (@evanlucas): https://github.com/nodejs/node/pull/35723#pullrequestreview-513223234 ℹ This PR is being fast-tracked -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu Commit Queue action: https://github.com/nodejs/node/actions/runs/319044303 |
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: #35722 PR-URL: #35723 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
landed in 4cbcfae |
Signed-off-by: James M Snell <jasnell@gmail.com> Fixes: #35722 PR-URL: #35723 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Node.js 15.0.0 included a regression on crypto.randomFillSync that needs a quick patch. We should do a quick 15.0.1 once this lands. This should be fast-tracked.
Signed-off-by: James M Snell jasnell@gmail.com
@panva @nodejs/releasers
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes