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

Issue 2294373002: Certificate Transparency: Remove the obsolete invalid sct status. (Closed)

Created:
4 years, 3 months ago by Eran Messeri
Modified:
4 years, 3 months ago
CC:
Eran Messeri, cbentzel+watch_chromium.org, certificate-transparency-chrome_googlegroups.com, chromium-reviews, darin-cc_chromium.org, jam, markusheintz_, msramek+watch_chromium.org, nasko, raymes+watch_chromium.org, rsleevi+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Certificate Transparency: Remove the obsolete invalid sct status. Remove the obsolete enum value SCT_STATUS_INVALID which was replaced by two distinct enum values. To avoid crashing Chrome clients which have entries cached on disk with the obsolete enum value, fail to de-serialize such cache entries. This reverts commit 321ed2a53224c50af40387e8211726f8400ecad2. BUG=640296, 634006, 640689 Committed: https://crrev.com/b082a9ffa25c1bcb6e884379f0f3cf4e0997931f Cr-Commit-Position: refs/heads/master@{#418367}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressing review comments #

Total comments: 4

Patch Set 3 : Merging with master #

Patch Set 4 : Use uint32_t as enum base #

Total comments: 2

Patch Set 5 : Making common headers available to nacl code #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -14 lines) Patch
M chrome/browser/ssl/chrome_expect_ct_reporter.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M net/cert/ct_sct_to_string.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M net/cert/sct_status_flags.h View 1 2 3 4 chunks +11 lines, -7 lines 0 comments Download
A net/cert/sct_status_flags.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M net/http/http_response_info.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M net/http/http_response_info_unittest.cc View 1 2 chunks +33 lines, -0 lines 1 comment Download
M net/net.gypi View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 37 (23 generated)
Eran Messeri
nasko, felt, rsleevi: Please review this change that is related to estark's change for fixing ...
4 years, 3 months ago (2016-08-31 19:16:02 UTC) #4
estark
lgtm https://codereview.chromium.org/2294373002/diff/1/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc (right): https://codereview.chromium.org/2294373002/diff/1/content/common/ssl_status_serialization.cc#newcode42 content/common/ssl_status_serialization.cc:42: case 2: Is this necessary? Can we just ...
4 years, 3 months ago (2016-08-31 22:03:33 UTC) #8
Ryan Sleevi
https://codereview.chromium.org/2294373002/diff/1/content/common/ssl_status_serialization.cc File content/common/ssl_status_serialization.cc (right): https://codereview.chromium.org/2294373002/diff/1/content/common/ssl_status_serialization.cc#newcode42 content/common/ssl_status_serialization.cc:42: case 2: On 2016/08/31 22:03:33, estark (OOO through Sept ...
4 years, 3 months ago (2016-09-01 00:01:29 UTC) #9
Eran Messeri
Ryan, PTAL - addressed all comments, as suggested, created a function for checking if the ...
4 years, 3 months ago (2016-09-01 14:16:35 UTC) #12
nasko
I don't understand this area as well as I wish, but happy to rubberstamp for ...
4 years, 3 months ago (2016-09-01 17:00:29 UTC) #15
Ryan Sleevi
LGTM % compile fix & style nit https://codereview.chromium.org/2294373002/diff/20001/net/cert/sct_status_flags.h File net/cert/sct_status_flags.h (right): https://codereview.chromium.org/2294373002/diff/20001/net/cert/sct_status_flags.h#newcode8 net/cert/sct_status_flags.h:8: #include "net/base/net_export.h" ...
4 years, 3 months ago (2016-09-01 21:29:46 UTC) #16
Eran Messeri
felt: Please review chrome/browser/ui/website_settings/website_settings.cc rsleevi: Addressed your comment. nasko to cc because the content/common changes ...
4 years, 3 months ago (2016-09-09 09:38:14 UTC) #20
Ryan Sleevi
LGTM % compile fix https://codereview.chromium.org/2294373002/diff/60001/net/net.gypi File net/net.gypi (right): https://codereview.chromium.org/2294373002/diff/60001/net/net.gypi#newcode446 net/net.gypi:446: 'cert/sct_status_flags.cc', You will need to ...
4 years, 3 months ago (2016-09-09 18:35:22 UTC) #23
Eran Messeri
https://codereview.chromium.org/2294373002/diff/60001/net/net.gypi File net/net.gypi (right): https://codereview.chromium.org/2294373002/diff/60001/net/net.gypi#newcode446 net/net.gypi:446: 'cert/sct_status_flags.cc', On 2016/09/09 at 18:35:22, Ryan Sleevi (slow) wrote: ...
4 years, 3 months ago (2016-09-13 18:30:32 UTC) #25
felt
lgtm
4 years, 3 months ago (2016-09-13 20:54:03 UTC) #29
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/2294373002/80001
4 years, 3 months ago (2016-09-13 20:56:34 UTC) #32
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-13 21:03:48 UTC) #33
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b082a9ffa25c1bcb6e884379f0f3cf4e0997931f Cr-Commit-Position: refs/heads/master@{#418367}
4 years, 3 months ago (2016-09-13 21:05:38 UTC) #35
Jeffrey Yasskin
4 years, 3 months ago (2016-09-15 19:10:14 UTC) #37
Message was sent while issue was closed.
https://codereview.chromium.org/2294373002/diff/80001/net/http/http_response_...
File net/http/http_response_info_unittest.cc (right):

https://codereview.chromium.org/2294373002/diff/80001/net/http/http_response_...
net/http/http_response_info_unittest.cc:104: ct::GetX509CertSCT(&sct);
FYI, this fails to initialize the 'origin' field, which is then written to
response_info_, causing an MSan failure at
https://build.chromium.org/p/chromium.memory.full/builders/Linux%20MSan%20Tes...:

Uninitialized bytes in __msan_check_mem_is_initialized at offset 0 inside
[0x7ffcdf07e8b8, 4)
==31610==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0xa7ce15a in WriteBytesCommon base/pickle.cc:478:3
    #1 0xa7ce15a in WriteBytesStatic<4> base/pickle.cc:443:0
    #2 0x98c5407 in WritePOD<int> base/pickle.h:367:5
    #3 0x98c5407 in WriteInt base/pickle.h:229:0
    #4 0x98c5407 in Persist net/cert/signed_certificate_timestamp.cc:43:0
    #5 0x991c383 in Persist net/http/http_response_info.cc:381:18
    #6 0x2cb75d0 in TestBody net/http/http_response_info_unittest.cc:111:18
    #7 0xa9af466 in HandleExceptionsInMethodIfSupported<testing::Test, void>
testing/gtest/src/gtest.cc:2458:12
    #8 0xa9af466 in Run testing/gtest/src/gtest.cc:2474:0
    #9 0xa9b2757 in Run testing/gtest/src/gtest.cc:2656:11
    #10 0xa9b3f7b in Run testing/gtest/src/gtest.cc:2774:28
    #11 0xa9d1121 in RunAllTests testing/gtest/src/gtest.cc:4647:43
    #12 0xa9d0124 in
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
testing/gtest/src/gtest.cc:2458:12
    #13 0xa9d0124 in Run testing/gtest/src/gtest.cc:4255:0
    #14 0xba78ae0 in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2237:46
    #15 0xba78ae0 in Run base/test/test_suite.cc:246:0
    #16 0xba7d487 in Run base/callback.h:64:12
    #17 0xba7d487 in LaunchUnitTestsInternal
base/test/launcher/unit_test_launcher.cc:206:0
    #18 0xba7ccfe in LaunchUnitTests
base/test/launcher/unit_test_launcher.cc:445:10
    #19 0x5f4b8a7 in main net/test/run_all_unittests.cc:59:10
    #20 0x7f6a633157ec in __libc_start_main
/build/eglibc-oqps9y/eglibc-2.15/csu/libc-start.c:226:0
    #21 0x870af0 in _start ??:0

  Uninitialized value was stored to memory at
    #0 0x98c57fd in Persist net/cert/signed_certificate_timestamp.cc:43:3
    #1 0x991c383 in Persist net/http/http_response_info.cc:381:18
    #2 0x2cb75d0 in TestBody net/http/http_response_info_unittest.cc:111:18
    #3 0xa9af466 in HandleExceptionsInMethodIfSupported<testing::Test, void>
testing/gtest/src/gtest.cc:2458:12
    #4 0xa9af466 in Run testing/gtest/src/gtest.cc:2474:0
    #5 0xa9b2757 in Run testing/gtest/src/gtest.cc:2656:11
    #6 0xa9b3f7b in Run testing/gtest/src/gtest.cc:2774:28
    #7 0xa9d1121 in RunAllTests testing/gtest/src/gtest.cc:4647:43
    #8 0xa9d0124 in
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
testing/gtest/src/gtest.cc:2458:12
    #9 0xa9d0124 in Run testing/gtest/src/gtest.cc:4255:0
    #10 0xba78ae0 in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2237:46
    #11 0xba78ae0 in Run base/test/test_suite.cc:246:0
    #12 0xba7d487 in Run base/callback.h:64:12
    #13 0xba7d487 in LaunchUnitTestsInternal
base/test/launcher/unit_test_launcher.cc:206:0
    #14 0xba7ccfe in LaunchUnitTests
base/test/launcher/unit_test_launcher.cc:445:10
    #15 0x5f4b8a7 in main net/test/run_all_unittests.cc:59:10
    #16 0x7f6a633157ec in __libc_start_main
/build/eglibc-oqps9y/eglibc-2.15/csu/libc-start.c:226:0

  Uninitialized value was created by a heap allocation
    #0 0x8da8c2 in operator new(unsigned long) ??:0
    #1 0xa68c2f8 in GetX509CertSCT net/test/ct_test_util.cc:220:14
    #2 0x2cb7451 in TestBody net/http/http_response_info_unittest.cc:104:3
    #3 0xa9af466 in HandleExceptionsInMethodIfSupported<testing::Test, void>
testing/gtest/src/gtest.cc:2458:12
    #4 0xa9af466 in Run testing/gtest/src/gtest.cc:2474:0
    #5 0xa9b2757 in Run testing/gtest/src/gtest.cc:2656:11
    #6 0xa9b3f7b in Run testing/gtest/src/gtest.cc:2774:28
    #7 0xa9d1121 in RunAllTests testing/gtest/src/gtest.cc:4647:43
    #8 0xa9d0124 in
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
testing/gtest/src/gtest.cc:2458:12
    #9 0xa9d0124 in Run testing/gtest/src/gtest.cc:4255:0
    #10 0xba78ae0 in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2237:46
    #11 0xba78ae0 in Run base/test/test_suite.cc:246:0
    #12 0xba7d487 in Run base/callback.h:64:12
    #13 0xba7d487 in LaunchUnitTestsInternal
base/test/launcher/unit_test_launcher.cc:206:0
    #14 0xba7ccfe in LaunchUnitTests
base/test/launcher/unit_test_launcher.cc:445:10
    #15 0x5f4b8a7 in main net/test/run_all_unittests.cc:59:10
    #16 0x7f6a633157ec in __libc_start_main
/build/eglibc-oqps9y/eglibc-2.15/csu/libc-start.c:226:0

SUMMARY: MemorySanitizer: use-of-uninitialized-value
(/b/swarming/w/irP1cChJ/out/Release/net_unittests+0xa7ce15a)

Powered by Google App Engine
This is Rietveld 408576698