Stream: git-wasmtime

Topic: wasmtime / PR #7263 PCC: switch "max" facts to "range" fa...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 00:41):

cfallin requested fitzgen for a review on PR #7263.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 00:41):

cfallin requested wasmtime-compiler-reviewers for a review on PR #7263.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 00:41):

cfallin opened PR #7263 from cfallin:pcc-two-sided-range to bytecodealliance:main:

This is needed for soundness when verifying accesses to memtype fields: it's not enough to know that we're accessing an offset in 0 up to field_offset inclusive, we need to know the access is actually to field_offset.

The simplest change that validates this turned out to be the most general one: making ranges two-sided rather than one-sided. The transform is mostly mechanical, but a few new tests verify that ranges are updated on both sides, and some fail-tests verify that "fuzzily imprecise" pointers to struct fields fail to validate.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 15:59):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 15:59):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 15:59):

fitzgen created PR review comment:

This can use ? propagation now.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 15:59):

fitzgen created PR review comment:

:bike: :paintbrush: Maybe we should just call this Range? That matches the text format.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 15:59):

fitzgen created PR review comment:

Can use ? here as well.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:24):

cfallin updated PR #7263.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:24):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:24):

cfallin created PR review comment:

Ah, yeah, that makes more sense!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:24):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:24):

cfallin created PR review comment:

Done!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:25):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:25):

cfallin created PR review comment:

Done!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 16:25):

cfallin has enabled auto merge for PR #7263.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 17 2023 at 17:38):

cfallin merged PR #7263.


Last updated: Nov 22 2024 at 17:03 UTC