[dpdk-dev] [PATCH v2] virtio: fix buffer leak on vlan insert

Jens Freimann jfreimann at redhat.com
Mon Apr 8 11:21:57 CEST 2019


On Fri, Apr 05, 2019 at 09:31:15AM -0700, Stephen Hemminger wrote:
>The function rte_vlan_insert may allocate a new buffer for the
>vlan header and return a different mbuf than originally passed.
>In this case, the stored mbuf in txm[] array could point to wrong
>buffer.
>
>Fixes: dd856dfcb9e7 ("virtio: use any layout on Tx")
>Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
>---
>v2 - catch a couple more places.
>     The virtio code needs some refactoring to not have 3 copies of same
>     loop...
>
> drivers/net/virtio/virtio_rxtx.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>

Added stable@ back to Cc list as it was for v1. 

Reviewed-by: Jens Freimann <jfreimann at redhat.com>




More information about the dev mailing list