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

Issue 286363003: Non-SFI NaCl: Disallow fancy clock IDs (Closed)

Created:
6 years, 7 months ago by mdempsky
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Non-SFI NaCl: Disallow fancy clock IDs Restrict the admissible set of clock IDs to just CLOCK_MONOTONIC, CLOCK_PROCESS_CPUTIME_ID, CLOCK_REALTIME, and CLOCK_THREAD_CPUTIME_ID (i.e., the same clocks allowed in regular NaCl). In particular, we do not allow arbitrary per-process CPU clocks, which can leak information about the state of other non-SFI processes. BUG=374479 TBR=cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271859

Patch Set 1 #

Patch Set 2 : Add unit tests #

Patch Set 3 : Use delegate API instead of static initializers #

Patch Set 4 : Allow CPU clocks for the current process/thread to match SFI NaCl #

Total comments: 6

Patch Set 5 : Respond to hamaji@ feedback #

Patch Set 6 : Fix test name #

Total comments: 4

Patch Set 7 : Respond to mseaborn@ feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -3 lines) Patch
M components/nacl/loader/nonsfi/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox.cc View 1 2 3 4 5 6 3 chunks +26 lines, -3 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc View 1 2 3 4 5 6 3 chunks +41 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
mdempsky
6 years, 7 months ago (2014-05-17 02:07:50 UTC) #1
mdempsky
Some thoughts I had about this on the way home: 1. POSIX requires clock_gettime(), etc ...
6 years, 7 months ago (2014-05-17 03:18:00 UTC) #2
hamaji
Thanks for doing this! I think returning EINVAL should be done in (nexe-side) libc, so ...
6 years, 7 months ago (2014-05-19 05:54:10 UTC) #3
mdempsky
https://codereview.chromium.org/286363003/diff/60001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc File components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc (right): https://codereview.chromium.org/286363003/diff/60001/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc#newcode399 components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc:399: BPF_ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts)); On 2014/05/19 05:54:11, hamaji wrote: > ...
6 years, 7 months ago (2014-05-19 06:59:21 UTC) #4
hamaji
LGTM, but you'd like to wait for Julien's review.
6 years, 7 months ago (2014-05-19 10:01:01 UTC) #5
jln (very slow on Chromium)
Great, thanks! (We should probably do the same in the baseline policy). Adding Mark for ...
6 years, 7 months ago (2014-05-20 03:18:48 UTC) #6
jln (very slow on Chromium)
I forgot: lgtm
6 years, 7 months ago (2014-05-20 03:19:07 UTC) #7
Mark Seaborn
LGTM https://codereview.chromium.org/286363003/diff/100001/components/nacl/loader/nonsfi/nonsfi_sandbox.cc File components/nacl/loader/nonsfi/nonsfi_sandbox.cc (right): https://codereview.chromium.org/286363003/diff/100001/components/nacl/loader/nonsfi/nonsfi_sandbox.cc#newcode78 components/nacl/loader/nonsfi/nonsfi_sandbox.cc:78: // CLOCK_REALTIME, and CLOCK_THREAD_CPUTIME_ID. Maybe also say: "Don't ...
6 years, 7 months ago (2014-05-20 21:21:30 UTC) #8
mdempsky
https://codereview.chromium.org/286363003/diff/100001/components/nacl/loader/nonsfi/nonsfi_sandbox.cc File components/nacl/loader/nonsfi/nonsfi_sandbox.cc (right): https://codereview.chromium.org/286363003/diff/100001/components/nacl/loader/nonsfi/nonsfi_sandbox.cc#newcode78 components/nacl/loader/nonsfi/nonsfi_sandbox.cc:78: // CLOCK_REALTIME, and CLOCK_THREAD_CPUTIME_ID. On 2014/05/20 21:21:30, Mark Seaborn ...
6 years, 7 months ago (2014-05-20 23:02:50 UTC) #9
mdempsky
cpu: Please review addition to components/nacl/loader/nonsfi/DEPS for OWNERS approval. Thanks!
6 years, 7 months ago (2014-05-20 23:03:37 UTC) #10
mdempsky
mseaborn: jln@ suggests that I emphasize that I've added a use of LSS to nonsfi_sandbox_unittest.cc ...
6 years, 7 months ago (2014-05-21 00:24:21 UTC) #11
Mark Seaborn
On 20 May 2014 17:24, <mdempsky@chromium.org> wrote: > mseaborn: jln@ suggests that I emphasize that ...
6 years, 7 months ago (2014-05-21 01:11:56 UTC) #12
mdempsky
The CQ bit was checked by mdempsky@chromium.org
6 years, 7 months ago (2014-05-21 01:12:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mdempsky@chromium.org/286363003/120001
6 years, 7 months ago (2014-05-21 01:14:41 UTC) #14
commit-bot: I haz the power
6 years, 7 months ago (2014-05-21 04:07:40 UTC) #15
Message was sent while issue was closed.
Change committed as 271859

Powered by Google App Engine
This is Rietveld 408576698