RE: [PATCH v2 2/2] vhost: fix possible FD leaks on truncation

2023-02-06 Thread Xia, Chenbo
> -Original Message- > From: Maxime Coquelin > Sent: Saturday, January 28, 2023 12:56 AM > To: dev@dpdk.org; david.march...@redhat.com; Xia, Chenbo > > Cc: Coquelin, Maxime ; sta...@dpdk.org > Subject: [PATCH v2 2/2] vhost: fix possible FD leaks on truncation

[PATCH v2 2/2] vhost: fix possible FD leaks on truncation

2023-01-27 Thread Maxime Coquelin
This patch fixes possible FDs leaks when truncation happens on either the message buffer or its control data. Indeed, by returning early, it did not let a chance to retrieve the FDs passed as ancillary data, and so caused a potential FDs leak. This patch fixes this by extracting the FDs from the a