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

Issue 930333003: Fix Linker.sInBrowserProcess to avoid false negatives (Closed)

Created:
5 years, 10 months ago by petrcermak
Modified:
5 years, 5 months ago
Reviewers:
Yaron, rmcilroy
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, oth, simonb (inactive)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Linker.sInBrowserProcess to avoid false negatives Linker.sInBrowserProcess can currently be incorrectly set to false in the browser process if it uses shared RELROs and loading a library fails. This problem is fixed by renaming Linker.initServiceProcess() to Linker.enableSharedRelros() and factoring out common code shared by Linker.disableSharedRelros() and Linker.enableSharedRelros() into a separate method Linker.initServiceProcess(). Consequently, LibraryLoader.loadAlreadyLocked() can call Linker.disableSharedRelros() without setting Linker.sInBrowserProcess to false. BUG=423699, 458056

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -19 lines) Patch
M base/android/java/src/org/chromium/base/library_loader/Linker.java View 5 chunks +25 lines, -18 lines 1 comment Download
M content/public/android/java/src/org/chromium/content/app/ChildProcessService.java View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (2 generated)
petrcermak
Hi, please review this patch. rmcilroy: * simonb: * yfriedman: content/ Thanks, Petr
5 years, 10 months ago (2015-02-17 16:32:03 UTC) #2
rmcilroy
This is definitely a step in the right direction. I'm wondering if we could improve ...
5 years, 10 months ago (2015-02-17 17:30:34 UTC) #3
petrcermak
+cc oth
5 years, 8 months ago (2015-04-10 15:29:07 UTC) #5
petrcermak
On 2015/04/10 15:29:07, petrcermak wrote: > +cc oth Ross, do you think we should still ...
5 years, 5 months ago (2015-07-14 13:16:17 UTC) #6
rmcilroy
+simonb I think the proper fix for this is Orion's CL which he did based ...
5 years, 5 months ago (2015-07-14 14:22:57 UTC) #7
petrcermak
5 years, 5 months ago (2015-07-14 17:36:29 UTC) #8
Message was sent while issue was closed.
On 2015/07/14 14:22:57, rmcilroy wrote:
> +simonb
> 
> I think the proper fix for this is Orion's CL which he did based on this CL
> (https://codereview.chromium.org/1101473006/). We've closed this for now, but
> SimonB agreed we should do this at some point during the refactor for
> LinkerModern/Legacy.

Thanks for your reply. In that case, I'm closing this issue.

Petr

Powered by Google App Engine
This is Rietveld 408576698