Thanks to visit codestin.com
Credit goes to github.com

Skip to content

virtio-devices: Do not close an unowned FD - #7679

Merged
rbradford merged 1 commit into
cloud-hypervisor:mainfrom
DemiMarie:no-double-close-simple
Feb 11, 2026
Merged

rbradford merged 1 commit into
cloud-hypervisor:mainfrom
DemiMarie:no-double-close-simple

Conversation

@DemiMarie

Copy link
Copy Markdown
Contributor

Instead of closing a file descriptor that belongs to the vhost-user frontend, drop the vu_common_ctrl::VhostUserHandle and the vhost::vhost_user::Frontend it contains. This causes the destructor to drop the file descriptor.

@rbradford

rbradford commented Feb 10, 2026

Copy link
Copy Markdown
Member

All the other tests for dpdk live migration are disabled referencing #5532. I'd approve this PR with a commit that disables this failing test referencing an issue. I think this fix is clearly the right thing. There may need to be some extra fixes around migration but this currently crashing out so needs to be addressed ASAP.

Instead of closing a file descriptor that belongs to the vhost-user
frontend, drop the vu_common_ctrl::VhostUserHandle and the
vhost::vhost_user::Frontend it contains.  This causes the destructor to
drop the file descriptor.

This breaks the last DPDK test, so disable it.  See cloud-hypervisor#7689.

Fixes: cloud-hypervisor#7163
Signed-off-by: Demi Marie Obenour <[email protected]>
@DemiMarie
DemiMarie force-pushed the no-double-close-simple branch from 2e4d552 to b600449 Compare February 10, 2026 21:33
@DemiMarie

Copy link
Copy Markdown
Contributor Author

All the other tests for dpdk live migration are disabled referencing #5532. I'd approve this PR with a commit that disables this failing test referencing an issue. I think this fix is clearly the right thing. There may need to be some extra fixes around migration but this currently crashing out so needs to be addressed ASAP.

Done! Filed #7689 for the broken live migration, and also referenced #5532.

@rbradford
rbradford added this pull request to the merge queue Feb 11, 2026
Merged via the queue into cloud-hypervisor:main with commit 92b58ba Feb 11, 2026
43 checks passed
@DemiMarie
DemiMarie deleted the no-double-close-simple branch February 12, 2026 00:16
DemiMarie added a commit to DemiMarie/cloud-hypervisor that referenced this pull request Feb 12, 2026
All but one of them has been broken for over 2 years (issue cloud-hypervisor#5532), and
the last one is broken (issue cloud-hypervisor#7689) by a critical bug fix (PR cloud-hypervisor#7679).
There is no point in having broken tests in the repository, so delete
them.  They can be restored from git history if necessary.

Signed-off-by: Demi Marie Obenour <[email protected]>
@likebreath likebreath added the bug-fix Bug fix to include in release notes label Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Bug fix to include in release notes

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants