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

Issue 251183004: Linux GPU sandbox: only allocate broker policy in the broker. (Closed)

Created:
6 years, 7 months ago by jln (very slow on Chromium)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jln+watch_chromium.org
Visibility:
Public.

Description

Linux GPU sandbox: only allocate broker policy in the broker. The GPU broker policy was allocated in the main GPU process and then used in the broker process. We switch the logic so that the broker policy is only ever allocated in the broker process itself. Besides fixing a small memory leak (in the GPU process), this makes sure that a policy is only ever used in the process that allocated it. This will allow to bind policies with properties such as "which processes does this policy allow to send signal to". BUG=367986 R=jorgelo@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266726

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -18 lines) Patch
M content/common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc View 2 chunks +7 lines, -7 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.h View 1 chunk +3 lines, -3 lines 2 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 5 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jln (very slow on Chromium)
Jorge, could you please take a look at this small CL?
6 years, 7 months ago (2014-04-28 23:11:42 UTC) #1
Jorge Lucangeli Obes
lgtm https://codereview.chromium.org/251183004/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.h File content/common/sandbox_linux/bpf_gpu_policy_linux.h (right): https://codereview.chromium.org/251183004/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.h#newcode38 content/common/sandbox_linux/bpf_gpu_policy_linux.h:38: sandbox::SandboxBPFPolicy* (*broker_sandboxer_allocator)(void), It was nice to have base::Callback's ...
6 years, 7 months ago (2014-04-28 23:43:53 UTC) #2
jln (very slow on Chromium)
Thanks Jorge! https://codereview.chromium.org/251183004/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.h File content/common/sandbox_linux/bpf_gpu_policy_linux.h (right): https://codereview.chromium.org/251183004/diff/1/content/common/sandbox_linux/bpf_gpu_policy_linux.h#newcode38 content/common/sandbox_linux/bpf_gpu_policy_linux.h:38: sandbox::SandboxBPFPolicy* (*broker_sandboxer_allocator)(void), On 2014/04/28 23:43:53, Jorge Lucangeli ...
6 years, 7 months ago (2014-04-28 23:53:17 UTC) #3
jln (very slow on Chromium)
The CQ bit was checked by jln@chromium.org
6 years, 7 months ago (2014-04-28 23:58:24 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jln@chromium.org/251183004/1
6 years, 7 months ago (2014-04-29 00:00:16 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 00:46:23 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit tryserver.chromium on linux_chromium_rel
6 years, 7 months ago (2014-04-29 00:46:24 UTC) #7
jln (very slow on Chromium)
6 years, 7 months ago (2014-04-29 01:16:01 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 manually as r266726 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698