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

Issue 509783003: Non-SFI NaCl: Allow openat system call to gracefully fail on BareMetal seccomp-bpf. (Closed)

Created:
6 years, 3 months ago by Junichi Uekawa
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

Non-SFI NaCl: Allow openat system call to gracefully fail on BareMetal seccomp-bpf. sysconf via get_nprocs_conf glibc function calls opendir() which calls openat() syscall, make them gracefully fail with EPERM instead of killing with SIGSYS. This fixes crash trying to start chrome tracing when running application with BareMetal with recent glibc. BUG=407516 TESTED=launched BareMetal NaCl app and started chrome tracing and doesn't crash. Committed: https://crrev.com/8348200de4dbd124b18dd2ecbf6cd44368083012 Cr-Commit-Position: refs/heads/master@{#292287}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix unit test #

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

Messages

Total messages: 12 (0 generated)
Junichi Uekawa
uekawa@chromium.org changed reviewers: + hamaji@chromium.org, mazda@chromium.org, mseaborn@chromium.org
6 years, 3 months ago (2014-08-27 05:44:30 UTC) #1
Junichi Uekawa
Hi Mark, PTAL. FYI mazda, hamaji.
6 years, 3 months ago (2014-08-27 05:44:30 UTC) #2
hamaji
Could you add "Non-SFI NaCl:" prefix to the subject of this change? https://codereview.chromium.org/509783003/diff/1/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc File components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc ...
6 years, 3 months ago (2014-08-27 05:59:55 UTC) #3
Junichi Uekawa
https://codereview.chromium.org/509783003/diff/1/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc File components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc (right): https://codereview.chromium.org/509783003/diff/1/components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc#newcode517 components/nacl/loader/nonsfi/nonsfi_sandbox_unittest.cc:517: RESTRICT_SYSCALL_EPERM_TEST(openat); On 2014/08/27 05:59:55, hamaji wrote: > I think ...
6 years, 3 months ago (2014-08-27 06:21:24 UTC) #4
Junichi Uekawa
6 years, 3 months ago (2014-08-27 06:38:15 UTC) #5
Junichi Uekawa
On 2014/08/27 05:59:55, hamaji wrote: > Could you add "Non-SFI NaCl:" prefix to the subject ...
6 years, 3 months ago (2014-08-27 22:48:32 UTC) #6
jln (very slow on Chromium)
lgtm Modern libcs also tend to replace open with openat and open doesn't even exist ...
6 years, 3 months ago (2014-08-27 22:53:59 UTC) #7
Mark Seaborn
LGTM
6 years, 3 months ago (2014-08-27 23:08:20 UTC) #8
Junichi Uekawa
The CQ bit was checked by uekawa@chromium.org
6 years, 3 months ago (2014-08-27 23:38:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/uekawa@chromium.org/509783003/20001
6 years, 3 months ago (2014-08-27 23:39:46 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001) as c01b19c52cf60eb92eaa7c4a84acf0ccd3051681
6 years, 3 months ago (2014-08-28 00:48:11 UTC) #11
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:56:17 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8348200de4dbd124b18dd2ecbf6cd44368083012
Cr-Commit-Position: refs/heads/master@{#292287}

Powered by Google App Engine
This is Rietveld 408576698