Skip to content

Close the listener in the parent process

German Maglione requested to merge ghm-virtio-fs/virtiofsd:parent-close-fds into main

The namespace sandbox spawn a process that set the namespaces and wait for the for worker process to finish.

The worker process drops the vhost::Listener after the first accept(). However, util::wait_forchild() never returns, so the parent keeps all the FDs open, like the socket's FD in a listen state. This is problematic because nothing prevents a miss configured VMM to try to connect twice to the same socket leaving the VMM waiting forever.

Resolves: https://issues.redhat.com/browse/RHEL-10199

Edited by German Maglione

Merge request reports

Loading