Enable wasm sandboxing on 64-bits Windows
Categories
(Core :: Security: Process Sandboxing, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
(Blocks 1 open bug)
Details
Attachments
(8 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Assignee | ||
Comment 1•3 years ago
|
||
Assignee | ||
Comment 2•3 years ago
|
||
RTL flags are flags that chooses which C/C++ runtime library to use
(multi-threaded, debug, etc.). They're only relevant when targeting
Windows, not when targeting wasi.
Frame pointer flags are not relevant to wasm (as a matter of fact,
the same wasm code is generated whether using -fomit-frame-pointer
or -fno-omit-frame-pointer)
Assignee | ||
Comment 3•3 years ago
|
||
The build system assumes the target compiler is of the same type as the
wasm compiler, but that's not true for wasm32-wasi, which we compile
with clang, while targeting windows, which we compile with clang-cl.
We handle the duality for host/target in a compiler-specific way, but
here, the wasm compiler is always going to be clang.
Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Backed out for multiple crashes.
-
backout: https://hg.mozilla.org/integration/autoland/rev/e0309c1ae0fe14ab9a30270fce542cfd4de08849
-
failure logs:
*REFTEST PROCESS-CRASH | pid: None | application crashed [@ mozilla::dom::ContentChild::RecvSetProcessSandbox(mozilla::Maybe<mozilla::ipc::FileDescriptor> const&)]
*PROCESS-CRASH | marionette.py | application crashed [@ XUL + 0x2846f7b]
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Backed out for causing windows build bustages.
Failure logs:
- https://treeherder.mozilla.org/logviewer?job_id=349341835&repo=autoland
- https://treeherder.mozilla.org/logviewer?job_id=349341864&repo=autoland
Backout link: https://hg.mozilla.org/integration/autoland/rev/2cb2d3457a50fc88fb24f54858c3c99678811e44
Assignee | ||
Comment 7•3 years ago
|
||
Comment 8•3 years ago
|
||
glandium, could these clang-format bustages that have appeared on try be caused by your changes?
Assignee | ||
Comment 9•3 years ago
|
||
MKCSHLIB, used to build WASM_LIBRARY, refers to DSO_LDOPTS, which refers
to IMPORT_LIBRARY on mingw builds, but for WASM_LIBRARY, IMPORT_LIBRARY
is never set by the build backend.
Assignee | ||
Comment 10•3 years ago
|
||
Assignee | ||
Comment 11•3 years ago
|
||
(In reply to Alexandru Michis [:malexandru] from comment #8)
glandium, could these clang-format bustages that have appeared on try be caused by your changes?
clang-format bustages are bug 1726623
Assignee | ||
Comment 12•3 years ago
|
||
Comment 13•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/57c71115a1f4
https://hg.mozilla.org/mozilla-central/rev/773a665c0383
https://hg.mozilla.org/mozilla-central/rev/7b148be964f0
https://hg.mozilla.org/mozilla-central/rev/b71fd68e042d
https://hg.mozilla.org/mozilla-central/rev/bf13adfe9000
https://hg.mozilla.org/mozilla-central/rev/b8f32a6925a6
https://hg.mozilla.org/mozilla-central/rev/a2b7afb35bb9
https://hg.mozilla.org/mozilla-central/rev/24648ecd582b
Comment 14•3 years ago
|
||
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/796a54dcb5f0 Preload rlbox library on all platforms. r=nika https://hg.mozilla.org/integration/autoland/rev/d53f62933fd0 Remove unrelevant flags from wasm builds. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/e2047ab95703 Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
Comment 15•3 years ago
|
||
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/e12c90f66a6c Preload rlbox library on Windows. r=nika https://hg.mozilla.org/integration/autoland/rev/938043bb1ca2 Remove unrelevant flags from wasm builds. r=firefox-build-system-reviewers,mhentges https://hg.mozilla.org/integration/autoland/rev/1dcd8069568e Always use clang-type flags when targeting wasm. r=firefox-build-system-reviewers,mhentges
Description
•