Skip to content

fix(macos): avoid double-closing virtiofs descriptors#2

Merged
ZhiXiao-Lin merged 1 commit into
feat/snapshot-restorefrom
fix/macos-virtiofs-ebadf
Jul 11, 2026
Merged

fix(macos): avoid double-closing virtiofs descriptors#2
ZhiXiao-Lin merged 1 commit into
feat/snapshot-restorefrom
fix/macos-virtiofs-ebadf

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown

Summary

  • stop explicitly closing the raw descriptor already owned by File
  • prevent descriptor-reuse races that surface as sporadic guest EBADF during virtio-fs traversal
  • align the macOS path with the existing Linux ownership fix

Verification

  • built through the A3S Box vendored libkrun path on macOS arm64
  • A3S Box virtio-fs tar regression: 2,000 mounted files copied successfully without Bad file descriptor

Required by A3S-Lab/Box#18.

@ZhiXiao-Lin
ZhiXiao-Lin merged commit 3e99ff4 into feat/snapshot-restore Jul 11, 2026
3 of 13 checks passed
@ZhiXiao-Lin
ZhiXiao-Lin deleted the fix/macos-virtiofs-ebadf branch July 11, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant