mbox series

[v3,0/2] Vhost: fix FD leaks and improve logs

Message ID 20230207162240.292020-1-maxime.coquelin@redhat.com (mailing list archive)
Headers
Series Vhost: fix FD leaks and improve logs |

Message

Maxime Coquelin Feb. 7, 2023, 4:22 p.m. UTC
  This two-patches series fix possible FD leaks when
receiving Vhost-user messages fails. It also improve
logging by differentiating message's buffer truncation
and control data truncation.

Changes in v3:
==============
- Improve logs on error (David)

Maxime Coquelin (2):
  vhost: fix possible FDs leak
  vhost: fix possible FD leaks on truncation

 lib/vhost/socket.c     |  8 +++++---
 lib/vhost/vhost_user.c | 40 ++++++++++++++++++++++++++--------------
 2 files changed, 31 insertions(+), 17 deletions(-)
  

Comments

Maxime Coquelin Feb. 9, 2023, 12:13 p.m. UTC | #1
On 2/7/23 17:22, Maxime Coquelin wrote:
> This two-patches series fix possible FD leaks when
> receiving Vhost-user messages fails. It also improve
> logging by differentiating message's buffer truncation
> and control data truncation.
> 
> Changes in v3:
> ==============
> - Improve logs on error (David)
> 
> Maxime Coquelin (2):
>    vhost: fix possible FDs leak
>    vhost: fix possible FD leaks on truncation
> 
>   lib/vhost/socket.c     |  8 +++++---
>   lib/vhost/vhost_user.c | 40 ++++++++++++++++++++++++++--------------
>   2 files changed, 31 insertions(+), 17 deletions(-)
> 


Applied to dpdk-next-virtio/main.

Thanks,
Maxime