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

Issue 919203002: Linux Sandbox: add resource limits to NaCl (Closed)

Created:
5 years, 10 months ago by jln (very slow on Chromium)
Modified:
5 years, 9 months ago
Reviewers:
Mark Seaborn
CC:
chromium-reviews, darin-cc_chromium.org, jam, rickyz+watch_chromium.org, 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: add resource limits to NaCl Add address space resource limits to NaCl processes. BUG=455839 Committed: https://crrev.com/97718598d764d4798333044869c7639737bf88bf Cr-Commit-Position: refs/heads/master@{#316286}

Patch Set 1 #

Patch Set 2 : Switch type to rlim_t #

Patch Set 3 : Disable on sanitizers. #

Total comments: 13

Patch Set 4 : Rebase #

Patch Set 5 : Address nits. #

Total comments: 2

Patch Set 6 : Correct typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -19 lines) Patch
M components/nacl/loader/sandbox_linux/nacl_sandbox_linux.h View 1 chunk +3 lines, -1 line 0 comments Download
M components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc View 1 2 3 4 5 4 chunks +36 lines, -0 lines 0 comments Download
M content/common/sandbox_linux/sandbox_linux.cc View 3 chunks +5 lines, -18 lines 0 comments Download
M sandbox/linux/BUILD.gn View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/linux/sandbox_linux_test_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A sandbox/linux/services/resource_limits.h View 1 1 chunk +30 lines, -0 lines 0 comments Download
A sandbox/linux/services/resource_limits.cc View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A sandbox/linux/services/resource_limits_unittests.cc View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
jln (very slow on Chromium)
Mark: PTAL!
5 years, 10 months ago (2015-02-13 00:14:41 UTC) #2
jln (very slow on Chromium)
Mark: so nacl_loader builds with ASAN? I'm surprised (see the failure in PS#2): http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel/builds/34972/steps/browser_tests%20%28with%20patch%29
5 years, 10 months ago (2015-02-13 05:20:10 UTC) #3
Mark Seaborn
LGTM https://codereview.chromium.org/919203002/diff/40001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc File components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc (right): https://codereview.chromium.org/919203002/diff/40001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc#newcode82 components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc:82: // Add a limit to the brk() heap ...
5 years, 10 months ago (2015-02-13 17:11:54 UTC) #4
jln (very slow on Chromium)
Thanks Mark! https://chromiumcodereview.appspot.com/919203002/diff/40001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc File components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/919203002/diff/40001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc#newcode82 components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc:82: // Add a limit to the brk() ...
5 years, 10 months ago (2015-02-13 18:00:06 UTC) #6
Mark Seaborn
https://chromiumcodereview.appspot.com/919203002/diff/40001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc File components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/919203002/diff/40001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc#newcode91 components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc:91: const rlim_t kNewAddressSpaceLimit = std::numeric_limits<uint32_t>::max(); On 2015/02/13 18:00:05, jln ...
5 years, 10 months ago (2015-02-13 18:33:41 UTC) #7
jln (very slow on Chromium)
https://chromiumcodereview.appspot.com/919203002/diff/80001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc File components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc (right): https://chromiumcodereview.appspot.com/919203002/diff/80001/components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc#newcode100 components/nacl/loader/sandbox_linux/nacl_sandbox_linux.cc:100: // bits when running under 64 bits kerneks. Set ...
5 years, 10 months ago (2015-02-13 18:58:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/919203002/100001
5 years, 10 months ago (2015-02-13 19:00:06 UTC) #10
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 10 months ago (2015-02-13 20:58:49 UTC) #11
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/97718598d764d4798333044869c7639737bf88bf Cr-Commit-Position: refs/heads/master@{#316286}
5 years, 10 months ago (2015-02-13 20:59:51 UTC) #12
Mark Seaborn
5 years, 9 months ago (2015-03-09 17:18:19 UTC) #13
Message was sent while issue was closed.
Adding some context now that the rowhammer blog post is published (at
http://googleprojectzero.blogspot.com/2015/03/exploiting-dram-rowhammer-bug-t...):

This change is a rowhammer mitigation, albeit a relatively weak one.  This is a
mitigation to limit the PTE-spraying attack described in the blog post.

This change just brings the NaCl loader process into line with other Chromium
sandboxed processes, which had address space limits before.

Powered by Google App Engine
This is Rietveld 408576698