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

Issue 656023003: Fix crash with --use-gl=egl on Linux. (Closed)

Created:
6 years, 2 months ago by dshwang
Modified:
6 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, jln+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix crash with --use-gl=egl on Linux. eglCreateWindowSurface() in mesa egl driver needs mincore() system call, so allow gpu process to call mincore(). BUG=423674 Committed: https://crrev.com/43815b018eb71e762657cb650496ea6d83134c31 Cr-Commit-Position: refs/heads/master@{#300445}

Patch Set 1 #

Patch Set 2 : shorten code #

Total comments: 1

Patch Set 3 : use allow_mincore_ instead of new class #

Total comments: 1

Patch Set 4 : #

Total comments: 1

Patch Set 5 : alphabetical order in switch #

Total comments: 1

Patch Set 6 : rollback __NR_access #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -2 lines) Patch
M content/common/sandbox_linux/bpf_gpu_policy_linux.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 2 3 4 5 2 chunks +13 lines, -1 line 0 comments Download
M content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc View 1 2 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 26 (7 generated)
dshwang
jln@, could you review? BUG=423674 needs to use --use-gl=egl commend line but it causes crash. ...
6 years, 2 months ago (2014-10-15 13:47:26 UTC) #2
dshwang
I guess link_freon chromebook might need this CL, because link_freon uses mesa egl driver. +kalyan
6 years, 2 months ago (2014-10-15 13:56:25 UTC) #4
dshwang
Jorge, could you review?
6 years, 2 months ago (2014-10-17 14:24:54 UTC) #8
jln (very slow on Chromium)
Adding Stéphane for some GPU expertise. https://codereview.chromium.org/656023003/diff/20001/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc File content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc (right): https://codereview.chromium.org/656023003/diff/20001/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc#newcode161 content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc:161: class GpuEGLProcessPolicy : ...
6 years, 2 months ago (2014-10-17 18:13:38 UTC) #10
Jorge Lucangeli Obes
I think Julien's suggestion here makes sense.
6 years, 2 months ago (2014-10-17 18:17:02 UTC) #11
dshwang
On 2014/10/17 18:13:38, jln wrote: > Adding Stéphane for some GPU expertise. > > https://codereview.chromium.org/656023003/diff/20001/content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc ...
6 years, 2 months ago (2014-10-17 19:56:40 UTC) #12
jln (very slow on Chromium)
On 2014/10/17 19:56:40, dshwang wrote: > On 2014/10/17 18:13:38, jln wrote: > > Adding Stéphane ...
6 years, 2 months ago (2014-10-17 20:31:56 UTC) #13
dshwang
I update it as Julien's suggestion. Could you review again?
6 years, 2 months ago (2014-10-20 11:26:04 UTC) #14
Jorge Lucangeli Obes
https://codereview.chromium.org/656023003/diff/40001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/656023003/diff/40001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode183 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:183: if (allow_mincore_ && sysno == __NR_mincore) Please add this ...
6 years, 2 months ago (2014-10-20 18:41:03 UTC) #15
dshwang
On 2014/10/20 18:41:03, Jorge Lucangeli Obes wrote: > https://codereview.chromium.org/656023003/diff/40001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc > File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): > > ...
6 years, 2 months ago (2014-10-20 18:50:22 UTC) #16
Jorge Lucangeli Obes
https://codereview.chromium.org/656023003/diff/60001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/656023003/diff/60001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode208 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:208: return Allow(); We try to keep this in alphabetical ...
6 years, 2 months ago (2014-10-20 19:01:07 UTC) #17
dshwang
On 2014/10/20 19:01:07, Jorge Lucangeli Obes wrote: > https://codereview.chromium.org/656023003/diff/60001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc > File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): > > ...
6 years, 2 months ago (2014-10-20 19:08:34 UTC) #18
Jorge Lucangeli Obes
https://codereview.chromium.org/656023003/diff/80001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): https://codereview.chromium.org/656023003/diff/80001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc#newcode184 content/common/sandbox_linux/bpf_gpu_policy_linux.cc:184: case __NR_access: While we order things mostly alphabetically, we ...
6 years, 2 months ago (2014-10-20 19:52:59 UTC) #19
dshwang
On 2014/10/20 19:52:59, Jorge Lucangeli Obes wrote: > https://codereview.chromium.org/656023003/diff/80001/content/common/sandbox_linux/bpf_gpu_policy_linux.cc > File content/common/sandbox_linux/bpf_gpu_policy_linux.cc (right): > > ...
6 years, 2 months ago (2014-10-20 20:32:21 UTC) #20
Jorge Lucangeli Obes
lgtm
6 years, 2 months ago (2014-10-20 21:05:43 UTC) #21
dshwang
On 2014/10/20 21:05:43, Jorge Lucangeli Obes wrote: > lgtm Thank you for review!
6 years, 2 months ago (2014-10-21 09:28:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/656023003/100001
6 years, 2 months ago (2014-10-21 09:29:14 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 2 months ago (2014-10-21 10:29:32 UTC) #25
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 10:30:36 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/43815b018eb71e762657cb650496ea6d83134c31
Cr-Commit-Position: refs/heads/master@{#300445}

Powered by Google App Engine
This is Rietveld 408576698