From: bugzilla-daemon@freedesktop.org
Subject: [Bug 107516] Firefox for WebGL fallbacks to swrast_dri.so, not using
radeon_si.so
Date: Mon, 03 Sep 2018 09:35:03 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1938958949=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id 8F6F46E1C7
for ; Mon, 3 Sep 2018 09:35:03 +0000 (UTC)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dri-devel-bounces@lists.freedesktop.org
Sender: "dri-devel"
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
--===============1938958949==
Content-Type: multipart/alternative; boundary="15359673030.3dF93c.24936"
Content-Transfer-Encoding: 7bit
--15359673030.3dF93c.24936
Date: Mon, 3 Sep 2018 09:35:03 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
https://bugs.freedesktop.org/show_bug.cgi?id=3D107516
--- Comment #8 from Gian-Carlo Pascutto ---
To clarify the underlying cause of this:
>Earlier commit reworked our sysfs handling to use realpath.
>Sadly that backfired since the Firefox sandboxing mechanism rejects
>that. Despite the files/folders being in the allowed list, of the
>sandboxing mechanism.
The problem is that the underlying implementation of realpath() in libc will
issue lstat calls on each of the path components. In Mesa's case, this will
cause it to try to stat /sys, which is not on the list of allowed paths. Th=
is
in turn causes the realpath() call to fail. If this failure isn't handled
things broke.
Firefox 62 and later will now specifically allow the stat call (only).
>Oddly enough, the Chromium sandboxing doesn't complain about any of
>this.
I'm not sure how much of Chromium's GPU sandbox is enabled by default (on
non-Chromebooks), but they literally just did the same fix as we did a few =
days
ago:
https://chromium.googlesource.com/chromium/src/+/8655d49f657d3878c937f1387b=
3d31fa66c8e76a%5E%21/content/gpu/gpu_sandbox_hook_linux.cc
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--15359673030.3dF93c.24936
Date: Mon, 3 Sep 2018 09:35:03 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.freedesktop.org/
Auto-Submitted: auto-generated
Commen=
t # 8
on bug 10751=
6
from =
Gian-Carlo Pascutto
To clarify the underlying cause of this:
>Earlier commit reworked our sysfs handling to use=
realpath.
>Sadly that backfired since the Firefox sandboxing mechanism rejects
>that. Despite the files/folders being in the allowed list, of the
>sandboxing mechanism.
The problem is that the underlying implementation of realpath() in libc will
issue lstat calls on each of the path components. In Mesa's case, this will
cause it to try to stat /sys, which is not on the list of allowed paths. Th=
is
in turn causes the realpath() call to fail. If this failure isn't handled
things broke.
Firefox 62 and later will now specifically allow the stat call (only).
>Oddly enough, the Chromium sandboxing doesn't com=
plain about any of
>this.
I'm not sure how much of Chromium's GPU sandbox is enabled by default (on
non-Chromebooks), but they literally just did the same fix as we did a few =
days
ago:
http=
s://chromium.googlesource.com/chromium/src/+/8655d49f657d3878c937f1387b3d31=
fa66c8e76a%5E%21/content/gpu/gpu_sandbox_hook_linux.cc
You are receiving this mail because:
- You are the assignee for the bug.
=
--15359673030.3dF93c.24936--
--===============1938958949==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============1938958949==--