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

Issue 1092153005: Reland: Introduce sys_sigprocmask and sys_sigaction. (patchset #5 id:160001 of https://codereview.c… (Closed)

Created:
5 years, 8 months ago by hidehiko
Modified:
5 years, 8 months ago
Reviewers:
mdempsky
CC:
chromium-reviews, rickyz+watch_chromium.org, jln+watch_chromium.org, Mark Seaborn, hamaji, mazda
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland: Introduce sys_sigprocmask and sys_sigaction. (patchset #5 id:160001 of https://codereview.chromium.org/1077143002/) This CL is relanding the CL https://codereview.chromium.org/1077143002/, which was reverted due to false alarm of the memory sanitizer. Because the memory sanitizer does not know about direct kernel syscall does, so it warns the arguments of the signal handler, unexpectedly. This CL adds the msan unpoisoning to the arguemtns, so that the memory sanitizer should understand it. TEST=Ran sandbox_linux_unittests with msan=1. Ran bots. BUG=358465 CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_chromium_trusty32_rel,linux_arm Committed: https://crrev.com/c1c944e1ee0b100c9717084b50bdd697c6b308d2 Cr-Commit-Position: refs/heads/master@{#326270}

Patch Set 1 : #

Patch Set 2 : Fix MSAN error. #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -359 lines) Patch
M sandbox/linux/BUILD.gn View 1 chunk +5 lines, -4 lines 0 comments Download
M sandbox/linux/sandbox_linux.gypi View 1 chunk +5 lines, -5 lines 0 comments Download
M sandbox/linux/sandbox_linux_test_sources.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
M sandbox/linux/seccomp-bpf/die.cc View 2 chunks +6 lines, -1 line 0 comments Download
M sandbox/linux/seccomp-bpf/syscall.h View 1 chunk +1 line, -5 lines 0 comments Download
M sandbox/linux/seccomp-bpf/trap.h View 2 chunks +3 lines, -3 lines 0 comments Download
M sandbox/linux/seccomp-bpf/trap.cc View 1 2 3 7 chunks +25 lines, -17 lines 0 comments Download
A sandbox/linux/seccomp-bpf/trap_unittest.cc View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
M sandbox/linux/services/credentials.cc View 2 chunks +3 lines, -7 lines 0 comments Download
M sandbox/linux/services/syscall_wrappers.h View 2 chunks +12 lines, -0 lines 0 comments Download
M sandbox/linux/services/syscall_wrappers.cc View 2 chunks +61 lines, -0 lines 0 comments Download
M sandbox/linux/services/syscall_wrappers_unittest.cc View 2 chunks +14 lines, -0 lines 0 comments Download
D sandbox/linux/system_headers/android_arm64_ucontext.h View 1 chunk +0 lines, -29 lines 0 comments Download
D sandbox/linux/system_headers/android_arm_ucontext.h View 1 chunk +0 lines, -32 lines 0 comments Download
D sandbox/linux/system_headers/android_i386_ucontext.h View 1 chunk +0 lines, -79 lines 0 comments Download
D sandbox/linux/system_headers/android_mips_ucontext.h View 1 chunk +0 lines, -51 lines 0 comments Download
D sandbox/linux/system_headers/android_ucontext.h View 1 chunk +0 lines, -28 lines 0 comments Download
D sandbox/linux/system_headers/android_x86_64_ucontext.h View 1 chunk +0 lines, -88 lines 0 comments Download
A + sandbox/linux/system_headers/arm64_linux_ucontext.h View 2 chunks +3 lines, -3 lines 0 comments Download
A sandbox/linux/system_headers/arm_linux_ucontext.h View 1 chunk +67 lines, -0 lines 0 comments Download
A + sandbox/linux/system_headers/i386_linux_ucontext.h View 2 chunks +15 lines, -1 line 0 comments Download
A sandbox/linux/system_headers/linux_signal.h View 1 chunk +73 lines, -0 lines 0 comments Download
A sandbox/linux/system_headers/linux_ucontext.h View 1 chunk +28 lines, -0 lines 0 comments Download
A + sandbox/linux/system_headers/mips_linux_ucontext.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + sandbox/linux/system_headers/x86_64_linux_ucontext.h View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
hidehiko
Trying to reland. PTAL. NOTE: msan error is reproduced on my local env, and it ...
5 years, 8 months ago (2015-04-21 14:15:19 UTC) #3
mdempsky
lgtm https://codereview.chromium.org/1092153005/diff/40001/sandbox/linux/seccomp-bpf/trap.cc File sandbox/linux/seccomp-bpf/trap.cc (right): https://codereview.chromium.org/1092153005/diff/40001/sandbox/linux/seccomp-bpf/trap.cc#newcode125 sandbox/linux/seccomp-bpf/trap.cc:125: if (info) MSAN_UNPOISON(info, sizeof(*info)); nit: in sandbox, the ...
5 years, 8 months ago (2015-04-21 17:37:33 UTC) #4
hidehiko
Thank you for review. Submitting. https://codereview.chromium.org/1092153005/diff/40001/sandbox/linux/seccomp-bpf/trap.cc File sandbox/linux/seccomp-bpf/trap.cc (right): https://codereview.chromium.org/1092153005/diff/40001/sandbox/linux/seccomp-bpf/trap.cc#newcode125 sandbox/linux/seccomp-bpf/trap.cc:125: if (info) MSAN_UNPOISON(info, sizeof(*info)); ...
5 years, 8 months ago (2015-04-22 06:54:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1092153005/80001
5 years, 8 months ago (2015-04-22 06:55:00 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 8 months ago (2015-04-22 11:17:15 UTC) #9
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c1c944e1ee0b100c9717084b50bdd697c6b308d2 Cr-Commit-Position: refs/heads/master@{#326270}
5 years, 8 months ago (2015-04-22 11:18:16 UTC) #10
magjed_chromium
A revert of this CL (patchset #4 id:80001) has been created in https://codereview.chromium.org/1102543003/ by magjed@chromium.org. ...
5 years, 8 months ago (2015-04-22 13:00:59 UTC) #11
hidehiko
On 2015/04/22 13:00:59, magjed wrote: > A revert of this CL (patchset #4 id:80001) has ...
5 years, 8 months ago (2015-04-22 16:37:44 UTC) #12
mdempsky
5 years, 8 months ago (2015-04-22 19:57:23 UTC) #13
Message was sent while issue was closed.
On 2015/04/22 16:37:44, hidehiko wrote:
> Matthew, I found the root cause, so please let me send another code review
> request...

SGTM, go ahead :)

Powered by Google App Engine
This is Rietveld 408576698