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

Issue 9661001: If using the suid sandbox, but not using the seccomp sandbox, there is a (Closed)

Created:
8 years, 9 months ago by Markus (顧孟勤)
Modified:
8 years, 9 months ago
Reviewers:
agl
CC:
chromium-reviews
Visibility:
Public.

Description

If using the suid sandbox, but not using the seccomp sandbox, there is a good chance that we will produce a zombie process inside of the new pid namespace. This happens, because we create a short-lived helper process when setting up the pid namespace, but the new "init" process never gets around to reaping this process. It would have reaped it, if it had received a SIGCHLD signal from any other process that died. But without the seccomp sandbox, that doesn't happen very frequently. This changelist reorders instructions so that we always look for dead children at least once, when starting the mainloop of the new "init" process. In doing so, we will always find and reap our dead helper process. BUG=109944 TEST=Run Chrome with the suid but without the seccomp sandbox, grep for "defunct" processes in the output of "ps auxw". There shouldn't be any. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=126188

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M sandbox/linux/suid/init_process.c View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Markus (顧孟勤)
8 years, 9 months ago (2012-03-09 00:12:32 UTC) #1
agl
8 years, 9 months ago (2012-03-12 15:24:01 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698