Guest resource drops do not release host-side WASI handles
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust, wasm
- Lĩnh vực
- backend, embedded-iot
Hướng nghiên cứu
Start by reading the component-binding tracking issue hyperlight-dev/hyperlight#810 and the sandbox reproduction in hyperlight-dev/hyperlight-sandbox#250. Trace how guest-owned WASI resources are represented in the generated host resource table and how drops are handled. Done means dropping a guest resource notifies the host and releases its table entry while live guest resources remain usable across executions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
When a Wasm guest drops a host-owned resource such as a WASI descriptor, stream, or directory-entry stream, hyperlight-wasm does not notify the host that the resource was released. The generated host resource table therefore retains the entry, and host-side implementations cannot safely distinguish closed resources from resources intentionally retained by a stateful guest.
This becomes visible in long-lived sandboxes that preserve state across executions. In hyperlight-dev/hyperlight-sandbox#250, a regression test opened and closed 600 unique output files in one run and another 600 in the next. Without run-boundary cleanup, the second run failed on file 424 when CapFs reached its 1,024 open-handle limit:
OSError: [Errno 29] I/O error: '/output/second-424.txt'
Clearing all host handles at each execution boundary avoids the leak, but it also means a guest file object retained in interpreter memory cannot remain usable across runs. Keeping all handles preserves live objects but leaks every resource the guest has already closed.
Expected behavior
Dropping a guest-owned host resource should notify the host and release or return the corresponding host resource-table entry. Host implementations could then clean up closed descriptors and streams while preserving genuinely live resources across executions.
References
- Upstream component-binding tracking issue: hyperlight-dev/hyperlight#810
- Sandbox behavior and concrete reproduction: hyperlight-dev/hyperlight-sandbox#250
- Ngôn ngữ chính
- Rust
- Star
- 734
- Fork
- 39
- Merge trung bình
- 3 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của hyperlight-dev/hyperlight-wasm
-
lifecycle/needs review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
hyperlight-dev/hyperlight-wasm#567 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lifecycle/needs review
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
hyperlight-dev/hyperlight-wasm#583 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/enhancement lifecycle/needs review
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
hyperlight-dev/hyperlight-wasm#577 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Remove temporary workaroundĐang mởlifecycle/needs review
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
hyperlight-dev/hyperlight-wasm#573 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
lifecycle/needs review
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
hyperlight-dev/hyperlight-wasm#550 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của hyperlight-dev/hyperlight-wasm
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vfarcic/dot-agent-deck#2512 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pop-os/cosmic-applets#1641 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
pop-os/cosmic-store#650 ·