Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Issue 962593002: Use dlsym(RTLD_DEFAULT) instead of dlsym(dlopen(NULL)) in aesgcmchromium.patch. (Closed)

Created:
5 years, 10 months ago by ppi
Modified:
5 years, 9 months ago
Reviewers:
jamesr, qsr, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, blundell, ramant (doing other things)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use dlsym(RTLD_DEFAULT) instead of dlsym(dlopen(NULL)) in aesgcmchromium.patch. This patch updates the dynamic lookup of NSS symbols to use dlsym(RTLD_DEFAULT) instead of dlsym on the dlopen(NULL) handle. The latter doesn't work if the binary that does the dynamic lookup was loaded dynamically itself (as dlopen(NULL) gives access only to the symbols loaded at the start of the program). Note that RTLD_DEFAULT requires setting _GNU_SOURCE. BUG=462203 Committed: https://crrev.com/f7302e6c7f955f11679ab844cfe3d326f47bb0dc Cr-Commit-Position: refs/heads/master@{#318863}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Address Ryan's comments. #

Total comments: 1

Patch Set 3 : Merge the patch change into aesgcmchromium.patch #

Total comments: 10

Patch Set 4 : Rebase. #

Patch Set 5 : Address Ryan's comments -> fix the .patch. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -21 lines) Patch
M net/third_party/nss/patches/aesgcmchromium.patch View 1 2 3 4 6 chunks +15 lines, -13 lines 0 comments Download
M net/third_party/nss/ssl/ssl3con.c View 1 2 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
ppi
So it turns out that dlsym(RTLD_DEFAULT) is actually different from dlsym(dlopen(NULL)) and works for us, ...
5 years, 10 months ago (2015-02-26 13:31:26 UTC) #2
Ryan Sleevi
Rather than tweaking the GYP/GN files, what about as below? https://codereview.chromium.org/962593002/diff/1/net/third_party/nss/ssl/ssl3con.c File net/third_party/nss/ssl/ssl3con.c (right): https://codereview.chromium.org/962593002/diff/1/net/third_party/nss/ssl/ssl3con.c#newcode10 ...
5 years, 10 months ago (2015-02-27 00:36:51 UTC) #3
ppi
Thanks Ryan, ptal. BTW I assume that adding a separate .patch here is more reasonable ...
5 years, 9 months ago (2015-02-27 15:24:27 UTC) #4
Ryan Sleevi
On 2015/02/27 15:24:27, ppi wrote: > Thanks Ryan, ptal. > > BTW I assume that ...
5 years, 9 months ago (2015-02-27 21:28:09 UTC) #5
Ryan Sleevi
I would prefer you kept it in the original patch. I am not keen to ...
5 years, 9 months ago (2015-02-27 21:28:53 UTC) #6
davidben
Question mostly for Ryan: is NSS's soname not something we can depend on? It seems ...
5 years, 9 months ago (2015-02-27 21:37:29 UTC) #7
Ryan Sleevi
On 2015/02/27 21:37:29, David Benjamin wrote: > Question mostly for Ryan: is NSS's soname not ...
5 years, 9 months ago (2015-02-27 21:52:59 UTC) #8
ppi
Ryan, by "bitrot" I meant that when I try to apply the patches on top ...
5 years, 9 months ago (2015-02-27 21:55:37 UTC) #9
Ryan Sleevi
On 2015/02/27 21:55:37, ppi wrote: > Ryan, by "bitrot" I meant that when I try ...
5 years, 9 months ago (2015-02-27 22:06:59 UTC) #10
ppi
Thanks, Ryan! In ps3 I applied the change directly in aesgcmchromium.patch . As discussed, I ...
5 years, 9 months ago (2015-03-02 21:07:56 UTC) #12
Ryan Sleevi
LGTM https://codereview.chromium.org/962593002/diff/60001/net/third_party/nss/patches/aesgcmchromium.patch File net/third_party/nss/patches/aesgcmchromium.patch (right): https://codereview.chromium.org/962593002/diff/60001/net/third_party/nss/patches/aesgcmchromium.patch#newcode12 net/third_party/nss/patches/aesgcmchromium.patch:12: @@ -44,6 +44,9 @@ +44,9 -> +45,9 https://codereview.chromium.org/962593002/diff/60001/net/third_party/nss/patches/aesgcmchromium.patch#newcode22 ...
5 years, 9 months ago (2015-03-02 21:15:15 UTC) #13
ppi
Thanks, Ryan! https://codereview.chromium.org/962593002/diff/60001/net/third_party/nss/patches/aesgcmchromium.patch File net/third_party/nss/patches/aesgcmchromium.patch (right): https://codereview.chromium.org/962593002/diff/60001/net/third_party/nss/patches/aesgcmchromium.patch#newcode12 net/third_party/nss/patches/aesgcmchromium.patch:12: @@ -44,6 +44,9 @@ On 2015/03/02 21:15:14, ...
5 years, 9 months ago (2015-03-03 10:17:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/962593002/100001
5 years, 9 months ago (2015-03-03 10:19:36 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:100001)
5 years, 9 months ago (2015-03-03 11:38:11 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-03 11:38:46 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f7302e6c7f955f11679ab844cfe3d326f47bb0dc
Cr-Commit-Position: refs/heads/master@{#318863}

Powered by Google App Engine
This is Rietveld 408576698