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 BB265424A0; Fri, 27 Jan 2023 17:55:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6FA2440223; Fri, 27 Jan 2023 17:55:49 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id B8E1440146 for ; Fri, 27 Jan 2023 17:55:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674838548; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=gBtDpLSzQtazVBzwE74YRlQVbimtgCjeqmnT/4QZbXo=; b=anGCBLT4Xs5JG5805k7aPsUJ1Py6NrYJ3Y5z8RxViPjUgxDg13dyeObtHUMi+VHBFoxq62 Xf26pbmvV673UMufDzHLdFZraxo0ZwZoD78G2d/FLtNlugYsZgr6CwWtLAw5BEu+MbF/hC 3MOvr82cMZHRtvBDGZ1Cw9h4nWf5wig= 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-392-vpT5p8hiPQyR_1v8eleL_w-1; Fri, 27 Jan 2023 11:55:44 -0500 X-MC-Unique: vpT5p8hiPQyR_1v8eleL_w-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7EF2E86F15A; Fri, 27 Jan 2023 16:55:43 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 823B1492B01; Fri, 27 Jan 2023 16:55:42 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, david.marchand@redhat.com, chenbo.xia@intel.com Cc: Maxime Coquelin Subject: [PATCH v2 0/2] Vhost: fix FD leaks and improve logs Date: Fri, 27 Jan 2023 17:55:37 +0100 Message-Id: <20230127165540.37863-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 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. 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 | 23 +++++++++++++++-------- 2 files changed, 20 insertions(+), 11 deletions(-) -- 2.39.1