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

Issue 2131423002: Implement use_cfi_cast to optionally enable cast checks. (Closed)

Created:
4 years, 5 months ago by krasin
Modified:
4 years, 5 months ago
Reviewers:
Dirk Pranke, Nico, pcc, pcc1, krasin1
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement use_cfi_cast to optionally enable cast checks. This is to allow launching cfi-vcal first, and follow up with additional strictness later. BUG=626794, 464797 Committed: https://crrev.com/59d3718ac1328d46fac147720f078c53f63070cf Cr-Commit-Position: refs/heads/master@{#404956}

Patch Set 1 #

Patch Set 2 : fix gyp typo #

Patch Set 3 : add a test for invalid vcall; disable cast check if CFI_CAST_CHECK is not defined #

Patch Set 4 : Delete debug leftovers #

Total comments: 2

Patch Set 5 : make sure it could not be devirtualized #

Total comments: 2

Patch Set 6 : NOINLINE #

Total comments: 4

Patch Set 7 : Localize CFI_CAST_CHECK define #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -13 lines) Patch
M base/BUILD.gn View 1 2 3 4 5 6 3 chunks +8 lines, -1 line 0 comments Download
M base/base.gyp View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M base/tools_sanity_unittest.cc View 1 2 3 4 5 2 chunks +29 lines, -1 line 0 comments Download
M build/common.gypi View 1 3 4 5 6 5 chunks +31 lines, -4 lines 0 comments Download
M build/config/sanitizers/BUILD.gn View 3 4 5 6 2 chunks +14 lines, -7 lines 0 comments Download
M build/config/sanitizers/sanitizers.gni View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (23 generated)
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/2131423002/20001
4 years, 5 months ago (2016-07-08 21:46:39 UTC) #4
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 5 months ago (2016-07-08 21:46:41 UTC) #6
krasin1
Peter, Dirk, please, review this CL. It's a step forward gradual CFI launch: we'll only ...
4 years, 5 months ago (2016-07-09 00:01:34 UTC) #11
pcc1
On 2016/07/09 00:01:34, krasin1 wrote: > Peter, Dirk, > > please, review this CL. It's ...
4 years, 5 months ago (2016-07-11 20:42:05 UTC) #12
krasin1
> > The test ToolsSanityTest.BadCast is failing. I would suggest changing that test > to ...
4 years, 5 months ago (2016-07-11 21:50:43 UTC) #13
pcc1
https://codereview.chromium.org/2131423002/diff/60001/base/tools_sanity_unittest.cc File base/tools_sanity_unittest.cc (right): https://codereview.chromium.org/2131423002/diff/60001/base/tools_sanity_unittest.cc#newcode378 base/tools_sanity_unittest.cc:378: EXPECT_DEATH(a_ptr->f(), "ILL_ILLOPN"); I'm not sure if this is quite ...
4 years, 5 months ago (2016-07-11 21:56:47 UTC) #17
Dirk Pranke
lgtm
4 years, 5 months ago (2016-07-11 22:56:03 UTC) #18
krasin1
https://codereview.chromium.org/2131423002/diff/60001/base/tools_sanity_unittest.cc File base/tools_sanity_unittest.cc (right): https://codereview.chromium.org/2131423002/diff/60001/base/tools_sanity_unittest.cc#newcode378 base/tools_sanity_unittest.cc:378: EXPECT_DEATH(a_ptr->f(), "ILL_ILLOPN"); I've played a bit with the code, ...
4 years, 5 months ago (2016-07-12 03:33:56 UTC) #21
pcc1
lgtm https://codereview.chromium.org/2131423002/diff/80001/base/tools_sanity_unittest.cc File base/tools_sanity_unittest.cc (right): https://codereview.chromium.org/2131423002/diff/80001/base/tools_sanity_unittest.cc#newcode375 base/tools_sanity_unittest.cc:375: __attribute__((noinline)) void KillVptrAndCall(A *obj) { Use NOINLINE macro ...
4 years, 5 months ago (2016-07-12 18:54:28 UTC) #22
krasin1
Peter: all done, thanks! Nico, can you please take a look? In particular, it wants ...
4 years, 5 months ago (2016-07-12 20:30:06 UTC) #23
krasin1
Nico, can you please take a look? In particular, it wants your LGTM for base/tools_sanity_unittest.cc. ...
4 years, 5 months ago (2016-07-12 21:09:55 UTC) #27
krasin1
Things are looking good so far in the CQ dry run. Pending the LGTM for ...
4 years, 5 months ago (2016-07-12 22:01:49 UTC) #28
Nico
https://codereview.chromium.org/2131423002/diff/100001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/2131423002/diff/100001/build/common.gypi#newcode6248 build/common.gypi:6248: 'CFI_CAST_CHECK', do we really have to globally add a ...
4 years, 5 months ago (2016-07-12 23:23:59 UTC) #29
krasin1
https://codereview.chromium.org/2131423002/diff/100001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/2131423002/diff/100001/build/common.gypi#newcode6248 build/common.gypi:6248: 'CFI_CAST_CHECK', On 2016/07/12 23:23:59, Nico wrote: > do we ...
4 years, 5 months ago (2016-07-13 00:02:51 UTC) #32
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/2131423002/120001
4 years, 5 months ago (2016-07-13 00:07:28 UTC) #35
Nico
lgtm
4 years, 5 months ago (2016-07-13 00:22:12 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) linux_chromium_chromeos_rel_ng on ...
4 years, 5 months ago (2016-07-13 02:16:23 UTC) #38
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/2131423002/120001
4 years, 5 months ago (2016-07-13 03:02:32 UTC) #40
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-07-13 03:24:48 UTC) #41
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 03:25:05 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 03:28:18 UTC) #44
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/59d3718ac1328d46fac147720f078c53f63070cf
Cr-Commit-Position: refs/heads/master@{#404956}

Powered by Google App Engine
This is Rietveld 408576698