Stream: git-wasmtime

Topic: wasmtime / PR #6810 aarch64: Fix `return_call`'s interact...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2023 at 16:30):

alexcrichton opened PR #6810 from alexcrichton:fix-return-call-api-keys to bytecodealliance:main:

This commit fixes an issue where a return_call would not decrypt the return address when pointer authentication is enabled. The return address would be encrypted upon entry into the function but would never get restored later on.

This addresses the issue by changing the encryption keys in use from the A/B key plus SP to instead using A/B plus the zero key. The reason for this is that during a normal function call before returning the SP value is guaranteed to be the same as it was upon entry. For tail calls though SP may be different due to differing numbers of stack arguments. This means that the modifier of SP can't be used for the tail convention.

New APIKey definitions were added and that now additionally represents the A/B key plus the modifier. Non-tail calling conventions still use the same keys as before, it's just the tail convention that's different.

Closes #6799

<!--
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 (Aug 05 2023 at 16:30):

alexcrichton requested fitzgen for a review on PR #6810.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2023 at 16:30):

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

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2023 at 16:39):

alexcrichton updated PR #6810.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 05 2023 at 16:45):

alexcrichton updated PR #6810.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 08 2023 at 15:40):

fitzgen submitted PR review:

Thanks for digging into this!

Is it possible to have a runtest for this? Is there a way to get qemu to enable these features?

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

alexcrichton updated PR #6810.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2023 at 17:46):

alexcrichton has enabled auto merge for PR #6810.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 09 2023 at 19:14):

alexcrichton merged PR #6810.


Last updated: Dec 23 2024 at 12:05 UTC