Closed Bug 1726474 Opened 3 years ago Closed 3 years ago

Enable wasm sandboxing on 64-bits Windows

Categories

(Core :: Security: Process Sandboxing, task)

task

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 1 open bug)

Details

Attachments

(8 files)

No description provided.
Depends on: 1726476

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)

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.

Attachment #9236955 - Attachment description: Bug 1726474 - Always use clang flags when targeting wasm. → Bug 1726474 - Always use clang-type flags when targeting wasm.
See Also: → 1727143
Attachment #9236953 - Attachment description: Bug 1726474 - Preload rlbox library on all platforms. → Bug 1726474 - Preload rlbox library on Windows.
Blocks: 1727266

glandium, could these clang-format bustages that have appeared on try be caused by your changes?

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.

(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

Flags: needinfo?(mh+mozilla)
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
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
Regressions: 1729232
Blocks: 1758626
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: