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:[email protected]

Signed-off-by: Tiwei Bie<[email protected]>
---
  lib/librte_vhost/vhost.h      | 12 ++++++++++++
  lib/librte_vhost/vhost_user.c |  3 +++
  lib/librte_vhost/virtio_net.c | 12 ------------
  3 files changed, 15 insertions(+), 12 deletions(-)


Reviewed-by: Maxime Coquelin <[email protected]>

Thanks,
Maxime

Reply via email to