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

Issue 278583005: Linux Sandbox: Add support for SECCOMP_RET_TRACE. (Closed)

Created:
6 years, 7 months ago by rickyz (Google)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, agl, jln+watch_chromium.org, mdempsky
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Linux Sandbox: Add support for SECCOMP_RET_TRACE. To use, make a BPF program return ErrorCode(ERR_TRACE + ret_data), where ret_data is a 16 bit value that will be available to the tracing process via PTRACE_GETEVENTMSG. BUG=231000 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276595

Patch Set 1 #

Patch Set 2 : Test change #

Total comments: 16

Patch Set 3 : Respond to comments. #

Patch Set 4 : Rebase against current HEAD #

Patch Set 5 : Add missing semicolon on ARM pt_regs struct. #

Patch Set 6 : Fix ptrace registers structs for ARM and minor test fixes #

Patch Set 7 : Special case for Bionic libc (old versions are missing sys/user.h) #

Patch Set 8 : Horrible hacks for inconsistent PTRACE_EVENT_SECCOMP values, one more bionic fix. #

Patch Set 9 : Add cast to PTRACE_SETOPTIONS argument. #

Patch Set 10 : Sync to HEAD #

Patch Set 11 : Fix LOG(FATAL) behavior on Android. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -1 line) Patch
M sandbox/linux/seccomp-bpf/codegen.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/errorcode_unittest.cc View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/linux_seccomp.h View 1 2 3 4 5 6 7 4 chunks +69 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/sandbox_bpf_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +119 lines, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/verifier.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sandbox/linux/tests/main.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
rickyz (Google)
Hey, here's an initial attempt at adding SECCOMP_RET_TRACE.
6 years, 7 months ago (2014-05-09 04:47:59 UTC) #1
rickyz (Google)
On 2014/05/09 04:47:59, Ricky Zhou wrote: > Hey, here's an initial attempt at adding SECCOMP_RET_TRACE. ...
6 years, 7 months ago (2014-05-16 19:27:39 UTC) #2
jln (very slow on Chromium)
On 2014/05/16 19:27:39, Ricky Zhou wrote: > On 2014/05/09 04:47:59, Ricky Zhou wrote: > > ...
6 years, 7 months ago (2014-05-16 19:31:22 UTC) #3
jln (very slow on Chromium)
Sorry for the awfully long wait. This caught me right around "branch point", which was ...
6 years, 7 months ago (2014-05-20 03:02:09 UTC) #4
rickyz (Google)
Thanks for the comments. Yeah, it's pretty annoying that ptrace and signal handler contexts give ...
6 years, 7 months ago (2014-05-20 22:34:01 UTC) #5
rickyz (Google)
Friendly ping :-)
6 years, 6 months ago (2014-05-29 00:20:46 UTC) #6
jln (very slow on Chromium)
lgtm This is great work, thanks Ricky. And sorry for the delays.
6 years, 6 months ago (2014-05-29 21:44:53 UTC) #7
rickyz (Google)
The CQ bit was checked by rickyz@google.com
6 years, 6 months ago (2014-05-29 22:04:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rickyz@google.com/278583005/60001
6 years, 6 months ago (2014-05-29 22:07:34 UTC) #9
rickyz (Google)
The CQ bit was checked by rickyz@google.com
6 years, 6 months ago (2014-05-29 22:19:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rickyz@google.com/278583005/80001
6 years, 6 months ago (2014-05-29 22:24:37 UTC) #11
rickyz (Google)
Thanks! The try bots caught a couple of bugs when I put this on the ...
6 years, 6 months ago (2014-05-30 17:45:28 UTC) #12
jln (very slow on Chromium)
On 2014/05/30 17:45:28, Ricky Zhou wrote: > Thanks! The try bots caught a couple of ...
6 years, 6 months ago (2014-06-05 00:01:43 UTC) #13
keescook
On 2014/06/05 00:01:43, jln wrote: > On 2014/05/30 17:45:28, Ricky Zhou wrote: > > Thanks! ...
6 years, 6 months ago (2014-06-05 01:51:07 UTC) #14
keescook
On 2014/06/05 01:51:07, keescook wrote: > The "good" news is that fixing this in the ...
6 years, 6 months ago (2014-06-05 18:45:31 UTC) #15
rickyz (Google)
On 2014/06/05 18:45:31, keescook wrote: > On 2014/06/05 01:51:07, keescook wrote: > > The "good" ...
6 years, 6 months ago (2014-06-09 22:52:07 UTC) #16
Kees Cook
For strict correctness, probably only the 1 value needs to be tested once the fix ...
6 years, 6 months ago (2014-06-09 22:57:48 UTC) #17
rickyz (Google)
On 2014/06/09 22:57:48, Kees Cook wrote: > For strict correctness, probably only the 1 value ...
6 years, 6 months ago (2014-06-11 00:28:19 UTC) #18
rickyz (Google)
The CQ bit was checked by rickyz@google.com
6 years, 6 months ago (2014-06-11 00:28:22 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rickyz@google.com/278583005/150001
6 years, 6 months ago (2014-06-11 00:32:44 UTC) #20
rickyz (Google)
Heh, and Android manages to fail yet again. The cause is: SANDBOX_DEATH_TEST specifically checks that ...
6 years, 6 months ago (2014-06-11 11:40:20 UTC) #21
rickyz (Google)
The CQ bit was checked by rickyz@google.com
6 years, 6 months ago (2014-06-11 11:40:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rickyz@google.com/278583005/170001
6 years, 6 months ago (2014-06-11 11:42:17 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 20:43:26 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 20:48:13 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/26094)
6 years, 6 months ago (2014-06-11 20:48:14 UTC) #26
rickyz (Google)
The CQ bit was checked by rickyz@google.com
6 years, 6 months ago (2014-06-12 04:12:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rickyz@google.com/278583005/170001
6 years, 6 months ago (2014-06-12 04:16:53 UTC) #28
commit-bot: I haz the power
Change committed as 276595
6 years, 6 months ago (2014-06-12 09:16:31 UTC) #29
Anton
On 2014/06/12 09:16:31, I haz the power (commit-bot) wrote: > Change committed as 276595 FYI ...
6 years, 6 months ago (2014-06-12 13:00:49 UTC) #30
Anton
6 years, 6 months ago (2014-06-12 13:53:59 UTC) #31
Message was sent while issue was closed.
On 2014/06/12 13:00:49, Anton wrote:
> On 2014/06/12 09:16:31, I haz the power (commit-bot) wrote:
> > Change committed as 276595
> 
> FYI this change breaks the build for Android x64.
>
http://chromegw/i/chromium.fyi/builders/Android%20x64%20Builder%20%28dbg%29/b...

Suggested fix:
https://codereview.chromium.org/335623002

Powered by Google App Engine
This is Rietveld 408576698