[dpdk-dev] [PATCH 3/4] vhost: fix potential use-after-free for memory region
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Feb 26 15:42:35 CET 2019
On 2/22/19 3:42 AM, Tiwei Bie wrote:
> Reclaim outstanding zmbufs first before freeing memory regions,
> otherwise there could be use-after-free.
>
> Fixes: b0a985d1f340 ("vhost: add dequeue zero copy")
> Cc:stable at dpdk.org
>
> Signed-off-by: Tiwei Bie<tiwei.bie at intel.com>
> ---
> lib/librte_vhost/vhost.h | 6 +++++
> lib/librte_vhost/vhost_user.c | 46 +++++++++++++++++++++++++----------
> lib/librte_vhost/virtio_net.c | 6 -----
> 3 files changed, 39 insertions(+), 19 deletions(-)
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list