abrown opened PR #7789 from abrown:pku-async
to bytecodealliance:main
:
Previously, when a fiber was suspended, other computation could change the PKRU state on the current CPU. This means that the fiber could be resumed with a different PKRU state. This could be bad, resulting in situations in which the fiber can access more memory slots than it should or cannot even access its own memory slots.
This change saves the PKRU state prior to a fiber being suspended. When the fiber resumes execution, that PKRU state is restored.
This probably needs an
async_functions.rs
test but I'm still struggling on how to craft a scenario that checks for this issue.
abrown edited a comment on PR #7789:
This probably needs an
async_functions.rs
test but I'm still struggling with how to craft a scenario that checks for this issue.
github-actions[bot] commented on PR #7789:
Subscribe to Label Action
cc @peterhuene
<details>
This issue or pull request has been labeled: "wasmtime:api"Thus the following users have been cc'd because of the following labels:
- peterhuene: wasmtime:api
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
alexcrichton submitted PR review:
Looks good to me :+1:
With a test that fails without this change I think it's good-to-go.
abrown updated PR #7789.
abrown updated PR #7789.
abrown updated PR #7789.
abrown has marked PR #7789 as ready for review.
abrown requested fitzgen for a review on PR #7789.
abrown requested wasmtime-core-reviewers for a review on PR #7789.
abrown requested alexcrichton for a review on PR #7789.
alexcrichton submitted PR review.
alexcrichton merged PR #7789.
Last updated: Nov 22 2024 at 16:03 UTC