Re: [dpdk-dev] [PATCH 2/4] vhost: fix potential use-after-free for zero copy mbuf

2019-02-26 Thread Maxime Coquelin
On 2/22/19 3:42 AM, Tiwei Bie wrote: Don't free the zero copy mbufs before they have been consumed, otherwise there could be use-after-free. Fixes: b0a985d1f340 ("vhost: add dequeue zero copy") Cc:sta...@dpdk.org Signed-off-by: Tiwei Bie --- lib/librte_vhost/vhost.h | 12

[dpdk-dev] [PATCH 2/4] vhost: fix potential use-after-free for zero copy mbuf

2019-02-21 Thread Tiwei Bie
Don't free the zero copy mbufs before they have been consumed, otherwise there could be use-after-free. Fixes: b0a985d1f340 ("vhost: add dequeue zero copy") Cc: sta...@dpdk.org Signed-off-by: Tiwei Bie --- lib/librte_vhost/vhost.h | 12 lib/librte_vhost/vhost_user.c | 3 +++