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

Issue 893993004: Linux sandbox: Provide AssertSingleThreaded() helper (Closed)

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

Description

Linux sandbox: Provide AssertSingleThreaded() helper Provide a new helper API to assert being single threaded that can wait on the kernel to update /proc/self/task/ Use the helper when started the seccomp sandbox single threaded. BUG=455407 Committed: https://crrev.com/7b02f56d77aa785784f117c2c71e56987d80a57b Cr-Commit-Position: refs/heads/master@{#315435}

Patch Set 1 #

Patch Set 2 : Update comment. #

Patch Set 3 : Use new API. #

Total comments: 4

Patch Set 4 : Address comments. #

Total comments: 10

Patch Set 5 : Rebase #

Patch Set 6 : Address nits. #

Patch Set 7 : Only run death test in Debug mode. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -59 lines) Patch
M sandbox/linux/bpf_dsl/bpf_dsl_more_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M sandbox/linux/services/thread_helpers.h View 1 2 1 chunk +11 lines, -1 line 0 comments Download
M sandbox/linux/services/thread_helpers.cc View 1 2 3 4 5 4 chunks +97 lines, -40 lines 0 comments Download
M sandbox/linux/services/thread_helpers_unittests.cc View 1 2 3 4 5 6 4 chunks +50 lines, -13 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
jln (very slow on Chromium)
Ricky, could you please take a look?
5 years, 10 months ago (2015-02-04 23:05:21 UTC) #2
rickyz (no longer on Chrome)
lgtm https://codereview.chromium.org/893993004/diff/40001/sandbox/linux/services/thread_helpers.cc File sandbox/linux/services/thread_helpers.cc (right): https://codereview.chromium.org/893993004/diff/40001/sandbox/linux/services/thread_helpers.cc#newcode95 sandbox/linux/services/thread_helpers.cc:95: LOG(FATAL) << kAssertSingleThreadedError << " (iterations:" << iterations ...
5 years, 10 months ago (2015-02-05 00:11:56 UTC) #3
jln (very slow on Chromium)
Thanks Ricky! https://codereview.chromium.org/893993004/diff/40001/sandbox/linux/services/thread_helpers.cc File sandbox/linux/services/thread_helpers.cc (right): https://codereview.chromium.org/893993004/diff/40001/sandbox/linux/services/thread_helpers.cc#newcode95 sandbox/linux/services/thread_helpers.cc:95: LOG(FATAL) << kAssertSingleThreadedError << " (iterations:" << ...
5 years, 10 months ago (2015-02-05 00:36:49 UTC) #5
jln (very slow on Chromium)
Matthew: PTAL!
5 years, 10 months ago (2015-02-05 00:37:27 UTC) #7
jln (very slow on Chromium)
Matthew: send to CQ if you're happy with it, btw.
5 years, 10 months ago (2015-02-05 01:00:17 UTC) #8
mdempsky
lgtm https://codereview.chromium.org/893993004/diff/60001/sandbox/linux/services/thread_helpers.cc File sandbox/linux/services/thread_helpers.cc (right): https://codereview.chromium.org/893993004/diff/60001/sandbox/linux/services/thread_helpers.cc#newcode51 sandbox/linux/services/thread_helpers.cc:51: fstatat(proc_self_task, thread_id_dir_str.c_str(), &task_stat, 0); minor: Since you don't ...
5 years, 10 months ago (2015-02-05 02:12:42 UTC) #9
jln (very slow on Chromium)
Thanks Matthew! I left a few of the nits as-is. In particular I keep for ...
5 years, 10 months ago (2015-02-09 22:24:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893993004/100001
5 years, 10 months ago (2015-02-09 22:37:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/893993004/120001
5 years, 10 months ago (2015-02-09 22:41:18 UTC) #15
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 10 months ago (2015-02-09 23:34:30 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-09 23:35:07 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7b02f56d77aa785784f117c2c71e56987d80a57b
Cr-Commit-Position: refs/heads/master@{#315435}

Powered by Google App Engine
This is Rietveld 408576698