On 9/7/26 5:54 PM, Stefano Garzarella wrote:
> On Thu, Aug 20, 2026 at 02:39:49PM +0300, Andrey Drobyshev wrote:
>> In vhost_vsock_device_realize(), after unsuccessful call to
>> qemu_set_blocking(vhostfd, false), vhostfd gets leaked. Let's close it
>> explicitly in this case. CPR-saved FDs don't get automatically closed,
>> thus it is safe both for vhostfd obtained from cpr_find_fd() and from
>> open(/dev/vhost-vsock).
>>
>
> Fixes tag?
Sure, should probably be 2 tags:
Fixes: 384c2561bddf ("vhost-vsock: set vhostfd to non-blocking mode")
Fixes: 701544cfaf46 ("hw: replace qemu_set_nonblock()")
Will add them on the next respin.
Andrey
>> Signed-off-by: Andrey Drobyshev <[email protected]>
>> ---
>> hw/virtio/vhost-vsock.c | 11 ++++-------
>> 1 file changed, 4 insertions(+), 7 deletions(-)
>
> Reviewed-by: Stefano Garzarella <[email protected]>
>