From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 929BD41C4F; Thu, 9 Feb 2023 13:13:25 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 821D5410EA; Thu, 9 Feb 2023 13:13:25 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id D67E3400D5 for ; Thu, 9 Feb 2023 13:13:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1675944803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ulSjDvbPUJAIZBlphrkY+nxv/i7I4pQhXm/gfdSBgpc=; b=MLhwQeRENzrKmzuMRfzCJYHgcuKy8oka0RktJ+7Kee8SI47zyUAckKFYir/F0//WOfQlod L/xF7YvMf8DNvw9zkX7tIMTn7wtqrBzXyEMDGA+S+KoI50Plfs6hbcgo5erifDUEBKeZFv rHf2dfB251G2JtRNLUy91s6LXQnQYE4= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-533-cu_P_ww7NyKKqu14-OF9kA-1; Thu, 09 Feb 2023 07:13:20 -0500 X-MC-Unique: cu_P_ww7NyKKqu14-OF9kA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D919C185A7A4; Thu, 9 Feb 2023 12:13:19 +0000 (UTC) Received: from [10.39.208.26] (unknown [10.39.208.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2865E40398A2; Thu, 9 Feb 2023 12:13:18 +0000 (UTC) Message-ID: Date: Thu, 9 Feb 2023 13:13:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v3 0/2] Vhost: fix FD leaks and improve logs To: dev@dpdk.org, david.marchand@redhat.com, chenbo.xia@intel.com References: <20230207162240.292020-1-maxime.coquelin@redhat.com> From: Maxime Coquelin In-Reply-To: <20230207162240.292020-1-maxime.coquelin@redhat.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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