Stream: git-wasmtime

Topic: wasmtime / PR #3149 fuzz: Implement finer memory limits p...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2021 at 18:14):

alexcrichton opened PR #3149 from better-fuzz-limits to main:

This commit implements a custom resource limiter for fuzzing. Locally I
was seeing a lot of ooms while fuzzing and I believe it was generally
caused from not actually having any runtime limits for wasm modules. I'm
actually surprised that this hasn't come up more on oss-fuzz more in
reality, but with a custom store limiter I think this'll get the job
done where we have an easier knob to turn for controlling the memory
usage of fuzz-generated modules.

For now I figure a 2gb limit should be good enough for limiting fuzzer
execution. Additionally the "out of resources" check if instantiation
fails now looks for the oom flag to be set instead of pattern matching
on some error messages about resources.

<!--

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 (Aug 05 2021 at 18:27):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2021 at 18:27):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2021 at 19:00):

alexcrichton updated PR #3149 from better-fuzz-limits to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2021 at 20:07):

alexcrichton merged PR #3149.


Last updated: Nov 22 2024 at 16:03 UTC