Bug 1123007
| Summary: | libguestfs 'direct' backend should close file descriptors before exec-ing qemu to avoid leaking !O_CLOEXEC fds | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Richard W.M. Jones <rjones> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | acathrow, hannsj_uhl, mbooth, ptoscano | ||||
| Target Milestone: | --- | Keywords: | Reopened | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-07-31 13:05:03 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1123794, 1123797 | ||||||
| Attachments: |
|
||||||
|
Description
Richard W.M. Jones
2014-07-24 15:18:17 UTC
Upstream in commit 115fcc34325f965ac3723683e4462fc667dcd254. Fix is included in libguestfs >= 1.26.6 & libguestfs >= 1.27.24. Created attachment 921744 [details]
leaky.pl
Test script which you can use to see if the bug has been fixed
in the currently installed version of libguestfs (note you will
need to install the Perl bindings -- perl-Sys-Guestfs).
I *always* regret pushing patches without letting them live in several releases of libguestfs ... This patch causes a regression. The child process should display the qemu command line arguments, but it does not when this patch is used. Try running: LIBGUESTFS_BACKEND=direct libguestfs-test-tool With this commit you don't see the full qemu command line. I have reverted this patch in master and will look at fixing it later. Revert commit is 286f116691c8aad4ac8bf0d044e9f6ca8d5b3356. v2 patch is upstream in libguestfs >= 1.27.25 and >= 1.26.7. |