Closed CSpyridakis closed 2 months ago
Uhm... it seems wasmtime may not be loaded on SGX.
Did you check in the official documentation if this is a known limitation or if there are workarounds?
@raphaelhetzel any thoughts on this?
Wasmtime is using a JIT, so it is expected that it executes and writes to the same memory region.
I would expect that there is some way to allow this in SGX/Scone (not an expert here).
Alternatively, you can switch to the wasmi-based runtime, which can be enabled using a Rust feature. That is just a pure interpreter and should also work in SGX.
I guess we can close this given one can use it with WASMI. If we need a JIT inside a TEE we can open a more specific issue.
The environment used is represented in the following image.
It is based on 385b06d4a7ca2a82369653125ea4386b0ffe1a9b commit, and it contains the minimal EDGELESS system.
The trusted image of the edgeless_node has been built (using the
SecureExecutor
tool) and during its evaluation process the following error is experienced.The reason behind this issue, as it seams, is that a part of the code is stored directly in main memory and it is tried to be executed from there and not from inside the enclave.