alexcrichton commented on issue #3215:
It's worth pointing out that another thing I looked into to do this was Linux's
mremap
syscall. From what I could tell thoughmremap
failed on memory regions where there were varying protections, which is what we do for our memory regions with guard pages and such. Consequently I don't think that we can usemremap
on Linux, or at least not that I know of, unless I'm just being naive and there is actually a way tomremap
a region with varying protections.
bjorn3 commented on issue #3215:
- What if you first set a single protection, then remap and then revert back to the original protection?
- I don't think you will need to remap the guard pages.
- Can you remap each memory region with different protection separately?
github-actions[bot] commented on issue #3215:
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 commented on issue #3215:
@bjorn3 I was unable to get
mremap
to work in my tests, if you're able to get it to work though I think it would be great to implement!
Last updated: Dec 23 2024 at 12:05 UTC