Граф коммитов

143 Коммитов

Автор SHA1 Сообщение Дата
Chris Fallin d70b8edad9 Bug 1655848: vendor in new Cranelift to fix fuzzbug. r=jseward
This patch vendors in the latest version of Cranelift, rev
026fb8d388964c7c1bace7019c4fe0d63c584560. This includes a fix for bug
1655848 (from GitHub PR #2081), as well as several other miscellaneous
changes.

Differential Revision: https://phabricator.services.mozilla.com/D85773
2020-08-03 16:53:46 +00:00
Benjamin Bouvier 2269596e45 Bug 1654813 - Bump Cranelift to dd098656111396afa58e90084a705744e836bf10; r=cfallin
This is waiting on https://github.com/bytecodealliance/wasmtime/pull/2068 to be
landed first.

Differential Revision: https://phabricator.services.mozilla.com/D84711
2020-07-31 17:57:34 +00:00
Nathan Froyd 9d38c2fd4a Bug 1655929 - bump upstream versions of rlbox + lucet; r=firefox-build-system-reviewers,rstewart
We need this bump for a couple of reasons:

1. It enables floating the libc crate version, which makes keeping up-to-date
   with upstream changes easier.
2. It enables floating the getrandom crate version, which enables updating
   getrandom to a version with less buggy behavior around the Linux
   `getrandom` syscall on some architectures.

We also take this opportunity to sync up our vendored lucet with the lucet
that we use to build things in taskcluster.

Differential Revision: https://phabricator.services.mozilla.com/D85408
2020-07-30 15:55:30 +00:00
Nick Alexander 89e6512181 Bug 1636539 - Part 2: Add defaultagent-static Rust crate fetching remote disabled flag. r=bytesized
This lays out a Rust crate and statically links it into
`windows-default-agent.exe`.  It declares a single-method API (which
will be invoked in the next commit).

Strings cross the C/C++ <-> Rust FFI boundary as null-terminated
UTF-8.  (This will matter more if and when we use ETag and
If-None-Match to get 304 results.)

Errors are reported as Windows result codes, with the "customer" bit
set to encode certain classes of failure.

The bulk of the work is in implementing a
[Viaduct](https://github.com/mozilla/application-services/tree/master/components/viaduct)
backend built on top of `wininet.dll`.  The motivation is that if and
when this Remote Settings Rust client grows features (say,
Content-Signature: verification), then by using Viaduct there is a
smooth path to consume the client inside Firefox itself, because
Viaduct already has a backend on top of Necko.  That makes this
abstraction relatively low friction: it exists, is in-tree already,
and has a path to use in Gecko proper.

It is expected that the layer above this will handle "gracefully
failing", either open or closed; and will mirror Remote Settings
configuration to the registry so that testers can use prod/stage/dev
easily.

For follow-up:

- Configure logging to use the Windows event logger.  See [Bug
  1648617](https://bugzilla.mozilla.org/show_bug.cgi?id=1648617).

- Consider propagating errors into the Telemetry we send.

Differential Revision: https://phabricator.services.mozilla.com/D78579
2020-07-21 22:17:26 +00:00
Chris Fallin 1438721c3a Bug 1653502: Update vendored Cranelift to fix fuzzbug. r=bbouvier
This patch pulls in revision 1b3b2dbfd00492161032760992a8699d19b640ca of
Cranelift. This includes PR bytecodealliance/wasmtime#2042, which fixes
bug 1653502 by properly masking the shift amount in a shift incorporated
into an aarch64 arithmetic instruction.

This patch also includes various other miscellaneous Cranelift
improvements that have been merged since the last version-bump,
including some aarch64 codegen improvements.

Differential Revision: https://phabricator.services.mozilla.com/D84101
2020-07-20 10:04:31 +00:00
Chris Fallin c07df47355 Bug 1633721, part 1 of 2: Bump Cranelift to revision 5e0268a542f612fee36d0256ed1f6a0e18dc02b3. r=bbouvier
This patch updates the vendored version of Cranelift, pulling in the
reference-types support recently merged in Cranelift's PR
bytecodealliance/wasmtime#1852. Usage of this update to support reftypes
in SpiderMonkey on aarch64 is added in the subsequent commit.

Differential Revision: https://phabricator.services.mozilla.com/D83582
2020-07-16 19:15:05 +00:00
Chris Fallin 35cf81d389 Bug 1648885 and Bug 1649432: vendor latest Cranelift to get Spectre mitigations and fix fuzzbug. r=bbouvier
This patch pulls in Cranelift revision
47a218f908e6bdeb7a0fb65ed74e58a0b608080d, which incorporates several
relevant changes:

- It includes the Spectre mitigation for explicit heap bounds checks
  merged in PR bytecodealliance/wasmtime#1930, resolving Bug 1648885.

- It includes the fix for an out-of-bounds subtraction on large shift
  amounts merged in PR bytecodealliance/wasmtime#1954, resolving Bug
  1649432.

We need to temporarily disable the `wasm/limits.js` jit-test on
Cranelift configurations because it now needs shared memory to work, and
the Cranelift backend does not support this yet. Given that this should
be ready in the next month at most (requires atomics support on AArch64,
which is currently being examined), it seems simpler to temporarily
disable the test on aarch64 than to try to disentangle the bits that
depend on shared memories explicitly.

This patch also edits the `regexp/bug1445907.js` jit-test to run only if
Wasm debugging is supported. This is needed for the test not to fail
with `--wasm-compiler=cranelift` (which disables Baseline, the only Wasm
compiler that supports debugging).

Differential Revision: https://phabricator.services.mozilla.com/D81936
2020-07-02 15:47:56 +00:00
J.C. Jones b3dd4acf6b Bug 1649227 - Upgrade authenticator-rs to v0.2.13 r=kjacobs
https://crates.io/crates/authenticator/0.2.13
- Support for Linux on MIPS
- Fix a race condition in the main state machine causing repeated signature requests

Differential Revision: https://phabricator.services.mozilla.com/D81604
2020-06-29 21:26:19 +00:00
Ted Campbell 4b5638af5a Bug 1642708 - Remove BinAST Rust modules r=arai,emilio
Differential Revision: https://phabricator.services.mozilla.com/D77947
2020-06-17 13:57:07 +00:00
Csoregi Natalia e722c196bc Backed out 5 changesets (bug 1642708) for build bustages. CLOSED TREE
Backed out changeset d307b00c7e1b (bug 1642708)
Backed out changeset d210a60ad435 (bug 1642708)
Backed out changeset bcc2728b5ca5 (bug 1642708)
Backed out changeset 1c245d4e8244 (bug 1642708)
Backed out changeset ad613fa94a83 (bug 1642708)
2020-06-17 16:51:16 +03:00
Ted Campbell b08256508e Bug 1642708 - Remove BinAST Rust modules r=arai,emilio
Differential Revision: https://phabricator.services.mozilla.com/D77947
2020-06-17 13:22:41 +00:00
Benjamin Bouvier 23b40c5736 Bug 1645336: Bump Cranelift to 238ae3bf2111847f60089656eb97fc9345295b1f; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D79659
2020-06-15 10:16:20 +00:00
Chris Fallin 771d76eb57 Bug 1641504: Bump Cranelift to 4d5fdfcbba1a8f38002a4223d7a329fc795d0e9f. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D78587
2020-06-11 23:34:39 +00:00
Razvan Maries d641e64a5e Backed out 3 changesets (bug 1641504) for valgrind bustages. CLOSED TREE
Backed out changeset 95646dbd26a1 (bug 1641504)
Backed out changeset bf1919e75e65 (bug 1641504)
Backed out changeset dedeac296eaa (bug 1641504)
2020-06-11 23:56:02 +03:00
Chris Fallin 6944be383a Bug 1641504: Bump Cranelift to e3d89c8a92a5fadedd75359b8485d23ac45ecf29. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D78587
2020-06-09 22:37:06 +00:00
Dzmitry Malyshau 6c3a233284 Bug 1636068 - Update spirv-cross to 0.20.0 r=groves
This change updates spirv-cross to a new version.
Unlike the previous one, it now points to a SPIRV-Cross submodule in
https://github.com/kvark/SPIRV-Cross behind "gecko3" branch, which will guarantee the rev
to be accessible.

Differential Revision: https://phabricator.services.mozilla.com/D75648
2020-05-16 02:27:33 +00:00
Benjamin Bouvier 9d52aedf32 Bug 1618595 - Bump Cranelift to b7cfd39b531680217537cfcf5294a22077a0a58d; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D73251
2020-04-30 11:57:24 +00:00
Dzmitry Malyshau 06da709344 Bug 1629891 - Fix spirv-cross revision in root Cargo.toml overrides r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D70900

--HG--
extra : moz-landing-system : lando
2020-04-14 17:18:05 +00:00
Dzmitry Malyshau e8a60d2eab Bug 1624174 - Update wgpu to get the coordinate spaces right r=jgilbert
The updated wgpu has the coordinate space fixes.
Depends on

  - https://phabricator.services.mozilla.com/D70421
  - https://phabricator.services.mozilla.com/D70432
  - https://phabricator.services.mozilla.com/D70646

Differential Revision: https://phabricator.services.mozilla.com/D70140

--HG--
rename : third_party/rust/rendy-descriptor/Cargo.toml => third_party/rust/gfx-descriptor/Cargo.toml
rename : third_party/rust/rendy-memory/Cargo.toml => third_party/rust/gfx-memory/Cargo.toml
rename : third_party/rust/rendy-memory/src/allocator/dynamic.rs => third_party/rust/gfx-memory/src/allocator/general.rs
rename : third_party/rust/rendy-memory/src/heaps/heap.rs => third_party/rust/gfx-memory/src/heaps/heap.rs
rename : third_party/rust/rendy-memory/src/utilization.rs => third_party/rust/gfx-memory/src/stats.rs
extra : moz-landing-system : lando
2020-04-13 13:42:15 +00:00
Benjamin Bouvier 0c19028f8f Bug 1626967: bump Cranelift to 6a68130d5b0296379fae0b8de5fbb8a1499b67a5; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D69977

--HG--
extra : moz-landing-system : lando
2020-04-10 09:52:55 +00:00
Sebastian Hengst b5fa1b7063 Backed out 4 changesets (bug 1626967) for breaking Raptor tests godot-c and wm-c. a=backout
Backed out changeset 985eea91c36c (bug 1626967)
Backed out changeset 837dab8ce31c (bug 1626967)
Backed out changeset f48ad40e60af (bug 1626967)
Backed out changeset 29aaf3ff21ea (bug 1626967)

--HG--
extra : amend_source : 8f86b92aa59cde8a0fdc9fec7b9994c79a6f19df
2020-04-08 10:06:47 +02:00
Benjamin Bouvier 5333bbb793 Bug 1626967: bump Cranelift to 6a68130d5b0296379fae0b8de5fbb8a1499b67a5; r=jseward
Differential Revision: https://phabricator.services.mozilla.com/D69977

--HG--
extra : moz-landing-system : lando
2020-04-07 10:43:14 +00:00
Michal Novotny e4de0c38d1 Bug 1587353 - Add an http3 test server r=agrover
Differential Revision: https://phabricator.services.mozilla.com/D48666

--HG--
extra : moz-landing-system : lando
2020-03-28 20:06:41 +00:00
Jon Bauman 6ec77fef76 Bug 1624057 - Update mp4parse-rust to 63ca8c6. r=kinetik
Also update the update-rust.sh script in a couple ways:
- Stop copying the source for mp4parse_fallible into the tree; use crates.io
- Include submodules in mp4parse-rust checkout; needed for tests
- Exclude unnecessary build.rs from mp4parse_fallible, it was causing problems
- Update mp4rust_capi/Cargo.toml patch to exclude cdylib. It's only necessary for test_ffi and causes build problems otherwise

Differential Revision: https://phabricator.services.mozilla.com/D68139

--HG--
extra : moz-landing-system : lando
2020-03-26 02:08:51 +00:00
Benjamin Bouvier e8a9503af3 Bug 1620284 - Bump Cranelift to 5cfcbeb59d477e028c6fb312f1cf63aa711fcc3c; r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D65557

--HG--
extra : moz-landing-system : lando
2020-03-25 14:43:05 +00:00
Michael Woerister 5327bb2166 Bug 1623085 - Only explicitly set number of Rust codegen-units for target artifacts. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D67162

--HG--
extra : moz-landing-system : lando
2020-03-17 16:47:52 +00:00
Adam Gashlin 215d47ef61 Bug 1515451 Part 1 - Update agent scheduled task r=mhowell,bytesized,nalexander
This is the skeleton for interacting with the Windows Task Scheduler, it
produces an exe that can register and unregister itself as a scheduled
task.

The schedule is to run once daily. Bug 1568287 is reserved for discussions
of other trigger patterns, possibly depending on the channel.

This uses a the Windows Event Log for logging, Bug 1343676 deals with
possibly extending that to a rotating log file.

Differential Revision: https://phabricator.services.mozilla.com/D35507

--HG--
extra : moz-landing-system : lando
2020-03-12 06:20:19 +00:00
Mihai Alexandru Michis e1e250413b Backed out 3 changesets (bug 1515451) for causing sm failures in components/updateagent/Cargo.toml
CLOSED TREE

Backed out changeset 85ea1d36da66 (bug 1515451)
Backed out changeset 779bc1fa07ae (bug 1515451)
Backed out changeset 0c6771b60b76 (bug 1515451)
2020-03-11 22:03:19 +02:00
Adam Gashlin 4b591f8eae Bug 1515451 Part 1 - Update agent scheduled task r=mhowell,bytesized,nalexander
This is the skeleton for interacting with the Windows Task Scheduler, it
produces an exe that can register and unregister itself as a scheduled
task.

The schedule is to run once daily. Bug 1568287 is reserved for discussions
of other trigger patterns, possibly depending on the channel.

This uses a the Windows Event Log for logging, Bug 1343676 deals with
possibly extending that to a rotating log file.

Differential Revision: https://phabricator.services.mozilla.com/D35507

--HG--
extra : moz-landing-system : lando
2020-03-11 18:04:11 +00:00
Andreea Pavel c0adfbbf21 Backed out changeset 4c839456c3ff (bug 1620284) for build bustages on a CLOSED TREE
--HG--
extra : amend_source : b632dccf4524a77201507b45b5025d72446e6ef7
2020-03-06 12:33:59 +02:00
Benjamin Bouvier 3b8709ed44 Bug 1620284 - Bump Cranelift to 135a48ca7e9a45d7d31911753e602e6de8b14e2a; r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D65557

--HG--
extra : moz-landing-system : lando
2020-03-05 20:59:42 +00:00
Dorel Luca 61edf989ef Backed out changeset 156832378185 (bug 1619094) for build bustages. CLOSED TREE
--HG--
extra : amend_source : 9470c89b8508ee8d4834b11a75e5c88106718388
2020-03-03 19:19:08 +02:00
Sylvestre Ledru a3f90e6cec Bug 1619094 - move dom/webauthn/libudev-sys in third_party/rust r=jcj
And move from 0.1.3 to 0.1.4

Differential Revision: https://phabricator.services.mozilla.com/D64877

--HG--
extra : moz-landing-system : lando
2020-03-03 16:52:09 +00:00
Tooru Fujisawa 350ed0cf8c Bug 1612515 - Part 6: Import the SmooshMonkey change from rust-frontend. r=jorendorff,glandium
Differential Revision: https://phabricator.services.mozilla.com/D64170

--HG--
extra : moz-landing-system : lando
2020-02-28 14:17:33 +00:00
Mike Hommey 58228b3764 Bug 1617794 - Add a toolchain task to build a LD_PRELOAD helper for Windows cross builds. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64295

--HG--
extra : moz-landing-system : lando
2020-02-27 21:40:50 +00:00
Razvan Maries 2e07e8ca83 Backed out 2 changesets (bug 1617794) for Gecko Decision Task bustage. CLOSED TREE
Backed out changeset e6cdc99bb877 (bug 1617794)
Backed out changeset 71cfd922f86a (bug 1617794)
2020-02-27 23:35:10 +02:00
Mike Hommey c2a988f4e0 Bug 1617794 - Add a toolchain task to build a LD_PRELOAD helper for Windows cross builds. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D64295

--HG--
extra : moz-landing-system : lando
2020-02-27 15:55:20 +00:00
Sylvestre Ledru ef6f6d2886 Bug 1361341 - Add rust clippy to mozlint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D58250

--HG--
extra : moz-landing-system : lando
2020-02-19 08:50:35 +00:00
shravanrn@gmail.com 826acb823b Bug 1615786 - Fix crash report about wasm library sandbox creation on AMD machines r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D63034

--HG--
extra : moz-landing-system : lando
2020-02-17 15:37:27 +00:00
Ciure Andrei 7ab2d76537 Backed out changeset a63ccd650889 (bug 1361341) for causing mozlint failures CLOSED TREE 2020-02-14 11:10:29 +02:00
Sylvestre Ledru d284704bb3 Bug 1361341 - Add rust clippy to mozlint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D58250

--HG--
extra : moz-landing-system : lando
2020-02-13 23:22:56 +00:00
Coroiu Cristina ec8506ea56 Backed out 4 changesets (bug 1361341, bug 1578058) for mozilint failure at test_clippy.py on a CLOSED TREE
Backed out changeset 76d91acac82c (bug 1361341)
Backed out changeset aa0f5c68a325 (bug 1578058)
Backed out changeset 6df34f8ff016 (bug 1578058)
Backed out changeset 066a58eea385 (bug 1361341)
2020-02-14 01:15:11 +02:00
Sylvestre Ledru 39658a665b Bug 1361341 - Add rust clippy to mozlint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D58250

--HG--
extra : moz-landing-system : lando
2020-02-13 21:39:51 +00:00
Benjamin Bouvier 399c0377a9 Bug 1614303 - Bump Cranelift to "98c818c129979e98a3db150f8f9698f6451b7ef7"; r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D62233

--HG--
extra : moz-landing-system : lando
2020-02-10 16:50:57 +00:00
Nathan Froyd 9e0a0b2407 Bug 1614365 - use a git hash for packed_smid; r=hsivonen
A hash is better than a branch name.

Differential Revision: https://phabricator.services.mozilla.com/D62279

--HG--
extra : moz-landing-system : lando
2020-02-12 21:18:32 +00:00
shravanrn@gmail.com 4fbd7a0f7c Bug 1610991 - Update rlbox_lucet lib to Mac compatible version r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D61077

--HG--
extra : moz-landing-system : lando
2020-02-12 04:11:49 +00:00
Cosmin Sabou 6e265ec468 Backed out changeset ee582f48caa1 (bug 1614365) for causing build bustages about packed_simd.
CLOSED TREE

--HG--
extra : amend_source : a1ae996e8d7454923bb421f6fe777d85b11c2567
2020-02-12 00:51:58 +02:00
Nathan Froyd 06d810da5c Bug 1614365 - use a git hash for packed_smid; r=hsivonen
A hash is better than a branch name.

Differential Revision: https://phabricator.services.mozilla.com/D62279

--HG--
extra : moz-landing-system : lando
2020-02-11 08:20:58 +00:00
Noemi Erli cd1cea5a15 Backed out changeset e0e11528ba44 (bug 1610991) for causing failures in test_memory_usage.py CLOSED TREE 2020-02-11 01:11:41 +02:00
Dzmitry Malyshau 9f2416ae5b Bug 1612619 - Fix spirv-cross override revision r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D62331

--HG--
extra : moz-landing-system : lando
2020-02-10 21:08:00 +00:00