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

OpenSSL dlloads node static linked executable #28045

Closed
wants to merge 1 commit into from

Conversation

lal12
Copy link
Contributor

@lal12 lal12 commented Jun 4, 2019

Fix: OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded via dload. However when linked statically this will lead to dloading the main executable, which is not valid.

Checklist

See more here: #21848

@nodejs-github-bot nodejs-github-bot added the build Issues and PRs related to build files or the CI. label Jun 4, 2019
common.gypi Outdated Show resolved Hide resolved
@BridgeAR
Copy link
Member

BridgeAR commented Jun 4, 2019

@lal12 do you know if this might also fix #21845?

@lal12
Copy link
Contributor Author

lal12 commented Jun 4, 2019

@lal12 do you know if this might also fix #21845?

Hmm in my case node wasn't compiled as PIE, therefore the dlopen failed all together, and it didn't came that far. However without looking deeply into it, I guess the whole problematic code path should not be used, therefore it is probably ok to close the ticket.

OpenSSL dlloads itself to prevent unloading, in case it might be dynamically loaded. However when linked statically this will lead to dloading the main executable.

Fixes: nodejs#27925
Refs: nodejs#21848 (comment)
@lal12
Copy link
Contributor Author

lal12 commented Jun 4, 2019

Btw this fix applies to OpenSSL >= v1.1.1b.

@nodejs-github-bot
Copy link
Collaborator

@BridgeAR BridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jul 5, 2019
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@Trott
Copy link
Member

Trott commented Jul 30, 2019

Landed in 1567461

@Trott Trott closed this Jul 30, 2019
Trott pushed a commit to Trott/io.js that referenced this pull request Jul 30, 2019
OpenSSL dlloads itself to prevent unloading, in case it might be
dynamically loaded. However when linked statically this will lead to
dloading the main executable.

Refs: nodejs#21848 (comment)
PR-URL: nodejs#28045
Fixes: nodejs#27925
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
targos pushed a commit that referenced this pull request Aug 2, 2019
OpenSSL dlloads itself to prevent unloading, in case it might be
dynamically loaded. However when linked statically this will lead to
dloading the main executable.

Refs: #21848 (comment)
PR-URL: #28045
Fixes: #27925
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@lal12 lal12 mentioned this pull request Oct 16, 2019
AshCripps pushed a commit to AshCripps/node that referenced this pull request Oct 17, 2019
OpenSSL dlloads itself to prevent unloading, in case it might be
dynamically loaded. However when linked statically this will lead to
dloading the main executable.

Refs: nodejs#21848 (comment)
Fixes: nodejs#29992
PR-URL: nodejs#28045
Fixes: nodejs#27925
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
BethGriggs pushed a commit that referenced this pull request Oct 17, 2019
OpenSSL dlloads itself to prevent unloading, in case it might be
dynamically loaded. However when linked statically this will lead to
dloading the main executable.

Refs: #21848 (comment)
Fixes: #29992

Backport-PR-URL: #30005
PR-URL: #28045
Fixes: #27925
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
@BethGriggs BethGriggs mentioned this pull request Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. build Issues and PRs related to build files or the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants