Stream: git-wasmtime

Topic: wasmtime / PR #9708 winch: Improve frame handling


view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 20:18):

saulecabrera requested abrown for a review on PR #9708.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 20:18):

saulecabrera requested wasmtime-compiler-reviewers for a review on PR #9708.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 02 2024 at 20:18):

saulecabrera opened PR #9708 from saulecabrera:improve-local-management to bytecodealliance:main:

This commit addresses issues identified while working on issue #8091. It improves the frame handling in Winch to prevent subtle bugs and enhance the robustness of the code generation process.

Previously, there was no clear mechanism to verify when the frame was fully set up and safe to access the local slots allocated for register arguments, including the special slots used for the VMContext. As a result, it was possible to inadvertently read from uninitialized memory if calls were made before the frame was properly set up and sealed.

This commit introduces two main changes with the objective to help reduce the risk of introducing bugs related to the above:

<!--
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 (Dec 02 2024 at 21:44):

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

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 (Dec 04 2024 at 17:13):

abrown submitted PR review:

Makes sense; sorry for missing this review earlier.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 04 2024 at 19:00):

saulecabrera updated PR #9708.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 04 2024 at 19:01):

saulecabrera commented on PR #9708:

Thanks for the review @abrown -- and no worries!

view this post on Zulip Wasmtime GitHub notifications bot (Dec 04 2024 at 19:03):

saulecabrera has enabled auto merge for PR #9708.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 04 2024 at 19:28):

saulecabrera merged PR #9708.


Last updated: Dec 23 2024 at 12:05 UTC