From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v2] vhost: fix possible null pointer dereferencing Date: Tue, 11 Dec 2018 19:30:18 +0100 Message-ID: <72dc38b9-f49f-ad3b-b99e-4e11fcf1894f@redhat.com> References: <20181127095451.18217-1-maxime.coquelin@redhat.com> <20181127103028.tsbjraer4oz3wiss@jenstp.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com, stable@dpdk.org To: Jens Freimann Return-path: In-Reply-To: <20181127103028.tsbjraer4oz3wiss@jenstp.localdomain> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 11/27/18 11:30 AM, Jens Freimann wrote: > On Tue, Nov 27, 2018 at 10:54:51AM +0100, Maxime Coquelin wrote: >> If mmap() call fails in vhost_user_set_mem_table, dev->mem >> is set to NULL. If later, qva_to_vva() is called, a segfault >> occurs. >> >> Fixes: 8f972312b8f4 ("vhost: support vhost-user") >> Cc: stable@dpdk.org >> >> Reviewed-by: Tiwei Bie >> Signed-off-by: Maxime Coquelin >> --- >> lib/librte_vhost/vhost_user.c | 6 ++++++ >> 1 file changed, 6 insertions(+) >> > > Jumping to an out label would have worked as well, but it doesn't > really matter. > > Reviewed-by: Jens Freimann > Thanks, applied with label change you suggested. Maxime