Stream: git-wasmtime

Topic: wasmtime / PR #3823 Limit total memory usage in instantia...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 17 2022 at 16:12):

alexcrichton opened PR #3823 from instantiate-many-less-memor to main:

Per-Store allocations are already limited with the StoreLimits
structure while fuzzing to ensure fuzz targets don't allocate more than
1GB of memory, but the instantiate-many fuzzer created many separate
stores which each had their own limit, meaning that the 2GB limit of
fuzzing could be pretty easily reached.

This commit fixes the issue by making StoreLimits a shareable type via
Rc to ensure the same limits can be applied to all stores created
within a fuzz run, globally limiting the memory even across stores to 1GB.

<!--

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 (Feb 17 2022 at 16:12):

alexcrichton requested peterhuene for a review on PR #3823.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 17 2022 at 18:26):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 17 2022 at 18:26):

fitzgen merged PR #3823.


Last updated: Oct 23 2024 at 20:03 UTC