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

Issue 1296523003: asan: Don’t pad the CrashpadInfo struct with a red zone (Closed)

Created:
5 years, 4 months ago by Mark Mentovai
Modified:
5 years, 4 months ago
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

asan: Don’t pad the CrashpadInfo struct with a red zone MachOImageReader::GetCrashpadInfo() expects the CrashpadInfo struct to be the only thing in a __DATA,__crashpad_info section, and enforces this by checking that the section’s size matches the size declared in the struct’s size_ field. Under AddressSanitizer, a red zone follows the structure. While not reflected in the size of the structure, it is reflected in the size of the section, causing MachOImageReader::GetCrashpadInfo() to reject the CrashpadInfo on the assumption that something else is present in the section. By specifying an alignment greater than the minimum red zone size of 32 bytes, red zone generation can be suppressed. TEST=crashpad_snapshot_test BUG=crashpad:44 R=glider@chromium.org, rsesek@chromium.org Committed: https://chromium.googlesource.com/crashpad/crashpad/+/f21b7401713c3bda50d747d3c13d27136bcc6030

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M client/crashpad_info.cc View 1 chunk +11 lines, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
Mark Mentovai
5 years, 4 months ago (2015-08-20 14:34:41 UTC) #2
Robert Sesek
LGTM. If we need to do this more than once, maybe create a macro like ...
5 years, 4 months ago (2015-08-20 14:52:01 UTC) #3
Alexander Potapenko
On 2015/08/20 14:52:01, Robert Sesek wrote: > LGTM. If we need to do this more ...
5 years, 4 months ago (2015-08-20 15:04:39 UTC) #4
Mark Mentovai
The blacklist is a bit more hairy build work. I was hoping an attribute or ...
5 years, 4 months ago (2015-08-20 15:13:28 UTC) #5
Alexander Potapenko
On 2015/08/20 15:13:28, Mark Mentovai - out til August wrote: > The blacklist is a ...
5 years, 4 months ago (2015-08-20 15:17:41 UTC) #6
Mark Mentovai
Thanks. If you do come up with an attribute for this, please let me know ...
5 years, 4 months ago (2015-08-20 16:40:27 UTC) #7
Mark Mentovai
5 years, 4 months ago (2015-08-20 18:10:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
f21b7401713c3bda50d747d3c13d27136bcc6030 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698