From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8A9472BA2 for ; Wed, 19 Apr 2017 03:08:11 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP; 18 Apr 2017 18:08:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,219,1488873600"; d="scan'208";a="847434723" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by FMSMGA003.fm.intel.com with ESMTP; 18 Apr 2017 18:08:10 -0700 Date: Wed, 19 Apr 2017 09:05:01 +0800 From: Yuanhan Liu To: Maxime Coquelin Cc: dev@dpdk.org Message-ID: <20170419010501.GP7333@yliu-dev.sh.intel.com> References: <1492414024-18413-1-git-send-email-yuanhan.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] vhost: fix use after free X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2017 01:08:13 -0000 On Tue, Apr 18, 2017 at 10:20:41AM +0200, Maxime Coquelin wrote: > > > On 04/17/2017 09:27 AM, Yuanhan Liu wrote: > >A "return" is missing on error, which could lead to a "use after free" > >issue (about var "conn"). > > > >Fixes: 65388b43f592 ("vhost: fix fd leaks for vhost-user server mode") > >Coverity issue: 143476 > > > >Reported-by: John McNamara > >Signed-off-by: Yuanhan Liu > >--- > > lib/librte_vhost/socket.c | 1 + > > 1 file changed, 1 insertion(+) > > Reviewed-by: Maxime Coquelin Applied to dpdk-next-virtio. --yliu