[dpdk-dev] [PATCH v2] vhost: dequeue zero copy should restore mbuf before return to pool

Maxime Coquelin maxime.coquelin at redhat.com
Thu Jan 18 09:44:41 CET 2018



On 01/17/2018 04:45 PM, Junjie Chen wrote:
> dequeue zero copy change buf_addr and buf_iova of mbuf, and return
> to mbuf pool without restore them, it breaks vm memory if others allocate
> mbuf from same pool since mbuf reset doesn't reset buf_addr and buf_iova.
> 
> Signed-off-by: Junjie Chen <junjie.j.chen at intel.com>
> ---
> v2 changes:
> Remove useless restore
>   lib/librte_vhost/virtio_net.c | 17 +++++++++++++++++
>   1 file changed, 17 insertions(+)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime


More information about the dev mailing list