Sandbox crashes when building with rustc >= 1.48
Categories
(Core :: Security: Process Sandboxing, task)
Tracking
()
People
(Reporter: emilio, Assigned: emilio)
Details
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-esr78+
|
Details | Review |
Visiting pages that require opening files from rust like https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme crashes if you have a local build with rust >= 1.48
Patch incoming.
Assignee | ||
Comment 1•5 years ago
|
||
It's a common way to check the existence of the system call. Since we
handle them, let's return -EFAULT as if it was supported.
This is needed for the sandbox not to constantly crash due to this statx
call in rustc:
Comment 4•5 years ago
|
||
Incidentally, that type of nullptr
trick is also used by the sandbox to detect seccomp-bpf support / features.
Comment 5•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/60066199c32b
https://hg.mozilla.org/mozilla-central/rev/d69e924f3538
Comment 6•4 years ago
|
||
Can we please get this uplifted into Firefox ESR 78? We are hitting this in Gentoo Linux with latest >=rust-1.50.
Assignee | ||
Comment 7•4 years ago
|
||
Comment on attachment 9190710 [details]
Bug 1680166 - Return EFAULT when given a null path to stat* calls in the sandbox filter. r=jld,gcp
ESR Uplift Approval Request
- If this is not a sec:{high,crit} bug, please state case for ESR consideration: Linux sandbox fix for newer compilers. See comment 6.
- User impact if declined: none
- Fix Landed on Version: 85
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Relatively straight-forward sandbox fix+test.
- String or UUID changes made by this patch: none
Comment 8•4 years ago
|
||
Comment on attachment 9190710 [details]
Bug 1680166 - Return EFAULT when given a null path to stat* calls in the sandbox filter. r=jld,gcp
Approved for 78.11esr.
Comment 9•4 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-esr78/rev/ff436849850a
https://hg.mozilla.org/releases/mozilla-esr78/rev/8aa3952dd720
Description
•