Stream: git-wasmtime

Topic: wasmtime / PR #12909 winch: Fix `memory.atomic.*` with ov...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:40):

alexcrichton opened PR #12909 from alexcrichton:winch-memory-atomic-overflow to bytecodealliance:main:

This commit fixes a spec-compliance issue with memory.atomic.* instructions using the Winch compiler. Specifically Winch previously added the dynamic offset to the static offset when calculating the effective address of the operation, but this addition was allowed to overflow. This meant that an operation which should trap would continue instead. The fix here is to use checked arithmetic at runtime to ensure that the address computation does not overflow.

<!--
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 (Mar 31 2026 at 13:40):

alexcrichton requested fitzgen for a review on PR #12909.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:40):

alexcrichton requested wasmtime-compiler-reviewers for a review on PR #12909.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:40):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12909.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 13:56):

alexcrichton updated PR #12909.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 17:03):

github-actions[bot] added the label winch on PR #12909.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 17:04):

github-actions[bot] commented on PR #12909:

Subscribe to Label Action

cc @saulecabrera

<details>
This issue or pull request has been labeled: "winch"

Thus the following users have been cc'd because of the following labels:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 18:25):

saulecabrera submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 18:26):

saulecabrera added PR #12909 winch: Fix memory.atomic.* with overflowing offsets to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 18:57):

saulecabrera merged PR #12909.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 18:57):

saulecabrera removed PR #12909 winch: Fix memory.atomic.* with overflowing offsets from the merge queue.


Last updated: Apr 12 2026 at 23:10 UTC