hyperlight-dev / hyperlight-dev/hyperlight
`impl Drop` for host resources in the guest
Open
lifecycle/confirmed
- Dominant language
- Rust
- Stars
- 4.7k
- Forks
- 208
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 47
Description
The types that hold host resource handles in the guest don't currently have an appropriate `impl Drop`, so they can be leaked if ownership is not passed back to the host by another host or guest call. We should make sure that when a resource handle to a host resource is dropped in the guest, a hostcall is made to drop it in the host.
Contributor guide
Assessment
This issue has not been assessed yet.