Re: [dpdk-dev] [PATCH] vhost: fix possible null pointer dereferencing

2018-11-27 Thread Maxime Coquelin
On 11/27/18 10:44 AM, Tiwei Bie wrote: On Tue, Nov 27, 2018 at 10:23:25AM +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: sta...

Re: [dpdk-dev] [PATCH] vhost: fix possible null pointer dereferencing

2018-11-27 Thread Tiwei Bie
On Tue, Nov 27, 2018 at 10:23:25AM +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: sta...@dpdk.org > > Signed-off-by: Max

[dpdk-dev] [PATCH] vhost: fix possible null pointer dereferencing

2018-11-27 Thread Maxime Coquelin
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: sta...@dpdk.org Signed-off-by: Maxime Coquelin --- lib/librte_vhost/vhost_user.c | 3 +++ 1 file changed, 3 inser