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

Issue 2984933002: Allocator shims design prototype. (Closed)

Created:
3 years, 5 months ago by njanevsk
Modified:
3 years, 4 months ago
CC:
syzygy-changes_googlegroups.com, etienneb
Target Ref:
refs/heads/master
Project:
syzygy
Visibility:
Public.

Description

This is a prototype of the allocator shim. Currently it compiles and the integration tests compile and link and use the allocator shims. It's been tested that the methods from the shims are used not the ones ucrt. Other comments and questions on the design are welcome. BUG= Review-Url: https://codereview.chromium.org/2984933002 Committed: https://github.com/google/syzygy/commit/d0372eb9d3bbf7451a908762babbe8e9c08cccef

Patch Set 1 #

Patch Set 2 : Removing files nto needed for this branch #

Total comments: 37

Patch Set 3 : Response to reviewers comments. #

Total comments: 6

Patch Set 4 : Response to reviewers comments. #

Patch Set 5 : Removed the set new mode methods.c #

Total comments: 8

Patch Set 6 : Response to reviewers comments. #

Patch Set 7 : Response to reviewers comments and added missing asan_heap initialization. #

Total comments: 20

Patch Set 8 : Response to reviewers comments. #

Total comments: 6

Patch Set 9 : Response to reviewer comments. #

Total comments: 14

Patch Set 10 : Response to reviers comments. #

Total comments: 6

Patch Set 11 : Response to reviewers comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -1 line) Patch
A syzygy/integration_tests/allocator_shim.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +119 lines, -0 lines 0 comments Download
M syzygy/integration_tests/integration_tests.gyp View 1 chunk +4 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 61 (30 generated)
njanevsk
This is a prototype of the allocator shim. Currently when compiling it give a link ...
3 years, 5 months ago (2017-07-24 22:22:29 UTC) #3
njanevsk
This is a prototype of the allocator shim. Currently when compiling it give a link ...
3 years, 5 months ago (2017-07-24 22:22:31 UTC) #4
Sébastien Marchand
Could you remove all the changes that are not about the allocator shim? (i.e. the ...
3 years, 5 months ago (2017-07-25 14:00:37 UTC) #5
njanevsk
PTAL
3 years, 5 months ago (2017-07-25 15:59:17 UTC) #9
Sébastien Marchand
https://codereview.chromium.org/2984933002/diff/20001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/20001/syzygy/integration_tests/allocator_shim.cc#newcode1 syzygy/integration_tests/allocator_shim.cc:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 5 months ago (2017-07-25 16:21:53 UTC) #12
njanevsk
Chris we need your feedback here. PTAL. https://codereview.chromium.org/2984933002/diff/20001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/20001/syzygy/integration_tests/allocator_shim.cc#newcode1 syzygy/integration_tests/allocator_shim.cc:1: // Copyright ...
3 years, 5 months ago (2017-07-25 17:43:02 UTC) #13
chrisha
https://codereview.chromium.org/2984933002/diff/20001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/20001/syzygy/integration_tests/allocator_shim.cc#newcode32 syzygy/integration_tests/allocator_shim.cc:32: struct asan_shim_struct { On 2017/07/25 17:43:02, njanevsk wrote: > ...
3 years, 5 months ago (2017-07-25 18:47:14 UTC) #14
njanevsk
I haven't received response to my question in the description of the CL. I'll have ...
3 years, 5 months ago (2017-07-25 19:49:17 UTC) #15
Sébastien Marchand
I'd prefer to not have to add the ___asan_after_dynamic_init / ___asan_before_dynamic_init functions just because we ...
3 years, 5 months ago (2017-07-25 20:07:07 UTC) #16
njanevsk
PTAL https://codereview.chromium.org/2984933002/diff/40001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/40001/syzygy/integration_tests/allocator_shim.cc#newcode17 syzygy/integration_tests/allocator_shim.cc:17: // from the ucrt library that we are ...
3 years, 4 months ago (2017-07-26 16:23:45 UTC) #18
njanevsk
Removed a line of commented out dead code.
3 years, 4 months ago (2017-07-26 18:46:02 UTC) #19
Sébastien Marchand
Basic approach looks good, but it's be good to get another pair of eyes on ...
3 years, 4 months ago (2017-07-26 19:12:02 UTC) #20
njanevsk
Fixed the comments and discovered that I was not initializing the asan_heap variable. Now, I ...
3 years, 4 months ago (2017-07-27 18:02:00 UTC) #21
Sigurður Ásgeirsson
https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode37 syzygy/integration_tests/allocator_shim.cc:37: asan_runtime_ptrs->asan_module = GetModuleHandle(L"syzyasan_rtl.dll"); if this returns nullptr, then the ...
3 years, 4 months ago (2017-07-28 17:03:14 UTC) #24
Sébastien Marchand
https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode33 syzygy/integration_tests/allocator_shim.cc:33: // If the syzyasan_rtl.dll is not loaded it loads ...
3 years, 4 months ago (2017-07-31 15:01:40 UTC) #25
njanevsk
PTAL https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode33 syzygy/integration_tests/allocator_shim.cc:33: // If the syzyasan_rtl.dll is not loaded it ...
3 years, 4 months ago (2017-07-31 18:57:28 UTC) #28
Sigurður Ásgeirsson
https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode96 syzygy/integration_tests/allocator_shim.cc:96: bool __acrt_initialize_heap() { On 2017/07/31 18:57:28, njanevsk wrote: > ...
3 years, 4 months ago (2017-07-31 19:05:53 UTC) #29
njanevsk
PTAL. https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode96 syzygy/integration_tests/allocator_shim.cc:96: bool __acrt_initialize_heap() { On 2017/07/31 19:05:52, Sigurður Ásgeirsson ...
3 years, 4 months ago (2017-08-01 15:46:44 UTC) #34
Sébastien Marchand
https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode96 syzygy/integration_tests/allocator_shim.cc:96: bool __acrt_initialize_heap() { On 2017/08/01 15:46:43, njanevsk wrote: > ...
3 years, 4 months ago (2017-08-03 21:49:45 UTC) #37
Sigurður Ásgeirsson
https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/120001/syzygy/integration_tests/allocator_shim.cc#newcode96 syzygy/integration_tests/allocator_shim.cc:96: bool __acrt_initialize_heap() { On 2017/08/03 21:49:45, Sébastien Marchand wrote: ...
3 years, 4 months ago (2017-08-04 13:55:14 UTC) #38
Sigurður Ásgeirsson
On 2017/08/04 13:55:14, Sigurður Ásgeirsson wrote: > No, this isn't OK, and this WILL fail ...
3 years, 4 months ago (2017-08-04 19:34:44 UTC) #39
Sébastien Marchand
Yep, all these functions directly talk to the heap (via ::Heap*) and don't use the ...
3 years, 4 months ago (2017-08-07 14:47:08 UTC) #40
Sébastien Marchand
https://codereview.chromium.org/2984933002/diff/160001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/160001/syzygy/integration_tests/allocator_shim.cc#newcode17 syzygy/integration_tests/allocator_shim.cc:17: // heap_create, heap_destroy, heap_alloc, heap_realloc, and heap_free Add a ...
3 years, 4 months ago (2017-08-08 15:11:56 UTC) #41
njanevsk
PTAL!
3 years, 4 months ago (2017-08-08 17:28:13 UTC) #42
njanevsk
PTAL!
3 years, 4 months ago (2017-08-08 17:28:17 UTC) #43
njanevsk
Marked comments as Done. https://codereview.chromium.org/2984933002/diff/160001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/160001/syzygy/integration_tests/allocator_shim.cc#newcode17 syzygy/integration_tests/allocator_shim.cc:17: // heap_create, heap_destroy, heap_alloc, heap_realloc, ...
3 years, 4 months ago (2017-08-08 18:05:58 UTC) #44
Sébastien Marchand
lgtm with a few nits https://codereview.chromium.org/2984933002/diff/180001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/180001/syzygy/integration_tests/allocator_shim.cc#newcode54 syzygy/integration_tests/allocator_shim.cc:54: static AsanRuntimePointers asan_runtime; static ...
3 years, 4 months ago (2017-08-08 18:12:32 UTC) #47
njanevsk
Done! https://codereview.chromium.org/2984933002/diff/180001/syzygy/integration_tests/allocator_shim.cc File syzygy/integration_tests/allocator_shim.cc (right): https://codereview.chromium.org/2984933002/diff/180001/syzygy/integration_tests/allocator_shim.cc#newcode54 syzygy/integration_tests/allocator_shim.cc:54: static AsanRuntimePointers asan_runtime; On 2017/08/08 18:12:32, Sébastien Marchand ...
3 years, 4 months ago (2017-08-08 19:24:20 UTC) #50
njanevsk
Done!
3 years, 4 months ago (2017-08-08 19:24:26 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2984933002/200001
3 years, 4 months ago (2017-08-08 20:53:07 UTC) #58
commit-bot: I haz the power
3 years, 4 months ago (2017-08-08 20:53:29 UTC) #61
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://github.com/google/syzygy/commit/d0372eb9d3bbf7451a908762babbe8e9c08cccef

Powered by Google App Engine
This is Rietveld 408576698