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

Issue 1218493004: crazy linker: Add a Breakpad "guard region" to reserved space. (Closed)

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

Description

crazy linker: Add a Breakpad "guard region" to reserved space. Breakpad requires currently that a library's reported start_addr actually be its load_bias. It will also complain if there is an apparent overlap in the memory mappings it reads in from a microdump. If something in the process mmaps into the address space between load_bias and start_addr, this will break Breakpad's minidump processor. Work round by adding a "guard region" into the reserved address space but ahead of the start_addr where the library is loaded. Making this part of the reserved address space for the library ensures that nothing will later mmap into it. BUG=504410, 499747 Committed: https://crrev.com/d91775bf59f883b75cce2071ac8b76f7aee062a2 Cr-Commit-Position: refs/heads/master@{#337035}

Patch Set 1 #

Patch Set 2 : Simplify somewhat. #

Total comments: 4

Patch Set 3 : Tweak for review feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -8 lines) Patch
M base/android/linker/linker_jni.cc View 1 3 chunks +21 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.h View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp View 1 2 4 chunks +74 lines, -8 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
simonb (inactive)
First swipe at this. It works correctly both with and without relocation packing on arm32, ...
5 years, 5 months ago (2015-06-26 16:49:27 UTC) #2
simonb (inactive)
Somewhat simplified/clarified version in patch set 2. Tested on both arm32 and arm64, with and ...
5 years, 5 months ago (2015-07-01 10:38:35 UTC) #3
rmcilroy
lgtm, thanks. https://codereview.chromium.org/1218493004/diff/20001/third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp File third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp (right): https://codereview.chromium.org/1218493004/diff/20001/third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp#newcode246 third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp:246: LOG("%s: breakpad: adjusted reservation by %d\n", __FUNCTION__, ...
5 years, 5 months ago (2015-07-01 14:36:54 UTC) #4
simonb (inactive)
Thanks. https://codereview.chromium.org/1218493004/diff/20001/third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp File third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp (right): https://codereview.chromium.org/1218493004/diff/20001/third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp#newcode246 third_party/android_crazy_linker/src/src/crazy_linker_elf_loader.cpp:246: LOG("%s: breakpad: adjusted reservation by %d\n", __FUNCTION__, min_vaddr); ...
5 years, 5 months ago (2015-07-01 14:57:06 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218493004/40001
5 years, 5 months ago (2015-07-01 15:56:40 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-01 16:30:59 UTC) #9
commit-bot: I haz the power
5 years, 5 months ago (2015-07-01 16:31:53 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d91775bf59f883b75cce2071ac8b76f7aee062a2
Cr-Commit-Position: refs/heads/master@{#337035}

Powered by Google App Engine
This is Rietveld 408576698