Stream: git-wasmtime

Topic: wasmtime / PR #3343 Restore running precompiled modules w...


view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 14:25):

alexcrichton opened PR #3343 from run-cwasm to main:

This was accidentally broken when Module::deserialize was split out of
Module::new long ago, so this adds the detection in the CLI to call
the appropriate method to load the module.

Closes #3338

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 17:06):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 17:06):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 17:06):

pchickey created PR review comment:

The versioning check does give us a small amount of additional safety, since that has to pass before we bincode::deserialize. Maybe worth mentioning?

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 17:23):

peterhuene submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 17:23):

peterhuene created PR review comment:

Thoughts on peeking at the file and using Module::deserialize_file if ELF?

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 17:26):

peterhuene submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 18:33):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 18:33):

alexcrichton created PR review comment:

Yeah the main thing we're worried about with Module::deserialize is that it's not safe to pass user-defined input into it because it's easy to construct an ELF file which executes arbitrary things but passes our deserialization. I do think, though, that we have enough checks in place to catch accidental usage without segfaulting.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 18:42):

alexcrichton updated PR #3343 from run-cwasm to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 18:42):

alexcrichton requested peterhuene for a review on PR #3343.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 19:01):

peterhuene submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 19:53):

alexcrichton updated PR #3343 from run-cwasm to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 13 2021 at 20:30):

alexcrichton merged PR #3343.


Last updated: Dec 23 2024 at 12:05 UTC