Stream: git-wasmtime

Topic: wasmtime / PR #10263 winch(aarch64): Sync SP with SSP whe...


view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2025 at 20:44):

saulecabrera requested abrown for a review on PR #10263.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2025 at 20:44):

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

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2025 at 20:44):

saulecabrera opened PR #10263 from saulecabrera:winch-sync-sp-ssp-on-drop to bytecodealliance:main:

This commit is a follow-up to
https://github.com/bytecodealliance/wasmtime/pull/10146 and represents another step toward fixing the remaining issues discovered through spec tests in the same vein as https://github.com/bytecodealliance/wasmtime/pull/10201

Specifically, this commit ensures that the stack pointer is always in sync with the shadow stack pointer. The previous approach was lossy because it only performed the sync when reserving stack space. While this approach worked in some cases, it failed to account for situations where the shadow stack pointer might be adjusted and aligned for calls. As a result, the stack pointer could become unaligned when claiming stack space, leading to issues at call sites.

It is possible to avoid the unconditional move and perform it only when alignment is needed, i.e., at call sites and when the real stack pointer is unaligned. However, as of now, the simplest solution is to always perform the sync, which integrates best with the current infrastructure.

<!--
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 (Feb 20 2025 at 21:01):

saulecabrera requested dicej for a review on PR #10263.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2025 at 21:01):

saulecabrera requested wasmtime-core-reviewers for a review on PR #10263.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2025 at 21:01):

saulecabrera updated PR #10263.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 20 2025 at 21:03):

saulecabrera commented on PR #10263:

The diff is considerably large, since this change touches all of the disassembly tests for aarch64. The relevant changes are in the first commit https://github.com/bytecodealliance/wasmtime/pull/10263/commits/97d7f740b8180358fd1aef63a5f12cc35d59374c

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2025 at 13:06):

saulecabrera updated PR #10263.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2025 at 16:27):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 26 2025 at 16:51):

alexcrichton merged PR #10263.


Last updated: Feb 28 2025 at 03:10 UTC